anonymous wrote : simple_session> set
CLASSPATH=.;C:\jboss\client\jbossall-client.jar;...
|
| simple_session> java
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
-Djava.naming.provider.url=localhost:1099 -jar client.jar
All you need is the jbossall-client.jar from the %JBOSS_HOME%/client folder to be present
in the classpath of the client.
And going by what you have posted, you seem to be doing that by setting the CLASSPATH.
But, you are running a jar file using java -jar client.jar, in which case, the CLASSPATH
is totally ignored.
When running the jar file, you need to set the Classpath through the MANIFEST.MF file in
the META-INF folder of the client.jar. Have a look at
http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html to see how you can
add classes/jars to the jar's classpath through the manifest file
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139991#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...