<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file</title> <atom:link href="http://iderror.com/errors/java/java-ejb/noinitialcontextexception-need-to-specify-class-name-in-environment-or-system-property-or-as-an-applet-parameter-or-in-an-application-resource-file/feed/" rel="self" type="application/rss+xml" /><link>http://iderror.com/errors/java/java-ejb/noinitialcontextexception-need-to-specify-class-name-in-environment-or-system-property-or-as-an-applet-parameter-or-in-an-application-resource-file/</link> <description>You have errors, we have solutions!</description> <lastBuildDate>Fri, 10 Jun 2011 15:06:54 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>By: admin</title><link>http://iderror.com/errors/java/java-ejb/noinitialcontextexception-need-to-specify-class-name-in-environment-or-system-property-or-as-an-applet-parameter-or-in-an-application-resource-file/comment-page-1/#comment-593</link> <dc:creator>admin</dc:creator> <pubDate>Mon, 09 Mar 2009 18:22:43 +0000</pubDate> <guid
isPermaLink="false">http://localhost/idError/?p=353#comment-593</guid> <description>Try to follow the example (Accessing an EJB 2.1 EJB Using RMI from a Standalone Java Client) as follows which is discussed at http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14428/usclient.htm#BABDBIAI:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,&quot;oracle.j2ee.rmi.RMIInitialContextFactory&quot;);
env.put(Context.SECURITY_PRINCIPAL, &quot;oc4jadmin&quot;);
env.put(Context.SECURITY_CREDENTIALS, &quot;password&quot;);
env.put(Context.PROVIDER_URL,&quot;opmn:ormi://myServer:oc4j_inst1/ejbsamples&quot;);Context context = new InitialContext(env);Object homeObject = context.lookup(&quot;MyCart&quot;);
CartHome home = (CartHome)PortableRemoteObject.narrow(homeObject,CartHome.class);</description> <content:encoded><![CDATA[<p>Try to follow the example (Accessing an EJB 2.1 EJB Using RMI from a Standalone Java Client) as follows which is discussed at <a
href="http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14428/usclient.htm#BABDBIAI" rel="nofollow">http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14428/usclient.htm#BABDBIAI</a>:<br
/> Hashtable env = new Hashtable();<br
/> env.put(Context.INITIAL_CONTEXT_FACTORY,&#8221;oracle.j2ee.rmi.RMIInitialContextFactory&#8221;);<br
/> env.put(Context.SECURITY_PRINCIPAL, &#8220;oc4jadmin&#8221;);<br
/> env.put(Context.SECURITY_CREDENTIALS, &#8220;password&#8221;);<br
/> env.put(Context.PROVIDER_URL,&#8221;opmn:ormi://myServer:oc4j_inst1/ejbsamples&#8221;);</p><p>Context context = new InitialContext(env);</p><p>Object homeObject = context.lookup(&#8220;MyCart&#8221;);<br
/> CartHome home = (CartHome)PortableRemoteObject.narrow(homeObject,CartHome.class);</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: iderror.com @ 2012-02-10 19:36:10 -->
