Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem running Java client to asess Websphere Application Server 6.1

770 views
Skip to first unread message

oye...@gmail.com

unread,
Oct 8, 2007, 11:05:36 AM10/8/07
to
I deployed a Stateless Session Bean on Websphere Application Server 6.1 and i wrote a java class application to invoke this Stateless Session bean, I added Websphere Application Server 6.1 Runtime to it , but i am getting this exception, Any suggestions would be appreciated

Oct 8, 2007 10:04:37 AM com.ibm.ws.naming.java.javaURLContextFactory
SEVERE: javaAccessorNotSet
servlet ErrorName space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
javax.naming.ConfigurationException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
at com.ibm.ws.naming.java.javaURLContextFactory.isNameSpaceAccessable(javaURLContextFactory.java:98)
at com.ibm.ws.naming.urlbase.UrlContextFactory.getObjectInstance(UrlContextFactory.java:73)
at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:596)
at javax.naming.spi.NamingManager.getURLContext(NamingManager.java:545)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:291)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at com.ibm.icpcs.transactionserver.scheduler.PresentmentServiceClient.sendMessage(PresentmentServiceClient.java:42)
at com.ibm.icpcs.transactionserver.scheduler.PresentmentServiceClient.main(PresentmentServiceClient.java:23)

Mark Lewis

unread,
Oct 8, 2007, 12:05:51 PM10/8/07
to

Have you packaged your client code in an application client JAR within
an EAR file? You should be doing this and then running your client EAR
using 'launchClient' (in the WAS/bin directory). This will give your
client code access to all the JEE client services that it will need to
to do EJB invocations.

Hope that helps,

Mark.

0 new messages