-
1. Re: configering my jboss
milowe Nov 19, 2003 3:37 AM (in response to kiranchandra)Make sure the client includes jbossall-client.jar in classpath and that jndi.properties points to your Jboss server.
/micke -
2. Re: configering my jboss
kiranchandra Nov 19, 2003 4:03 AM (in response to kiranchandra)hi milowe
I tried by using jboss-client.jar which also has the NamingContextFactory.Also i need one more clarification.does our jar(non jboss compatable jar) need any compilations as u do in weblogic like weblogic.ejbc.i.e how our jar will be turned to jboss compatable.i kept the non compatable jar in c:\jboss-3.2.2\server\all\deploy folder.we do not see our jar in the server when it is run.i used only jboss.do i need tomcat also to run a java application. -
3. Re: configering my jboss
milowe Nov 19, 2003 6:43 AM (in response to kiranchandra)No, jboss doesnt need any special compiler since the the containers are created at run-time.
The default deploy is ...server/default/deploy if no config is is set at startup. (You need to use "-config all" for ...server/all/deploy).
/micke -
4. Re: configering my jboss
kiranchandra Nov 19, 2003 11:33 PM (in response to kiranchandra)dear millow,
i used javac -classpath c:\jboss\jboss-3.2.2\client\j2ee-jar -d . SLClient.java and i got the class file.
i set the classpath to
c:\jboss\jboss-3.2.2\client\jbossall-client.jar as u said
when i am typing
java sless.SLClient i am getting the error
Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp
.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interf
aces.NamingContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.(InitialContext.java:195)
at sless.SLClient.main(SLClient.java:17)
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
... 4 more -
5. Re: configering my jboss
milowe Nov 20, 2003 1:31 AM (in response to kiranchandra)java -classpath c:\jboss\jboss-3.2.2\client\jbossall-client.jar;. sless.SLClient
/micke