You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Peter Go <pe...@bea.com> on 2001/01/10 00:12:02 UTC

Unable to initialize context error

I finally have an EJB successfully defined as a deployed service in WebLogic
server, via the command line using ServiceManagerClient. The service shows
up in the XML-SOAP Admin listing. I am using
..\java\samples\ejb\ejbtest.java as the JVM client and
..\java\src\org\apache\soap\providers\StatelessEJBProvider.java sa the
provider, and I modified the latter since it had "iiop://localhost:900"
hardcoded in it (I should change it to my "http://localhost:7001", right?).
Anyway I'm getting "Unable to initialize context" error, which seems to be
related to this CNTXT_PROVIDER_URL setting. I left the other setting
CNTXT_FACTORY_NAME to what was there,
"com.ibm.ejs.ns.jndi.CNInitialContextFactory".

SERVER RESPONDS with this SOAP fault:
-----------------------------------------------------------------
...
<stackTrace>
[SOAPException: faultCode=SOAP-ENV:Server; msg=Unable to initialize context]
at
org.apache.soap.providers.StatelessEJBProvider.initialize(StatelessEJBProvid
er.java:129) at
org.apache.soap.providers.StatelessEJBProvider.locate(StatelessEJBProvider.j
ava:223) at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:25
5) ...

Any revelations highly sought!
Thanks.
Peter