[JBoss-user] Trouble loading JBossMQ libraries within tomcat/webapps directory
I have a couple of Web applications that contain JMS clients communicating to a JBoss server. The Jboss libraries are packaged in the appropriate WAR file and then unzipped into the webapps//WEB-INF/lib directory. When the servlet/jsp page tries to make a JMS call I always get a NamingException because the org.jnp.interfaces.NamingContextFactory can't be instatiated (see error below). If I move the JBossMQ libraries to the tomcat/lib directory and make them global to all web applications the problems goes a way. But now this introduces other library conflicts because I run multiple web applications within Tomcat. Any suggestions on the above problem would be greatly appreciated. Thanks, Brett /** Stack Trace **/ 2001-10-02 13:53:59,732 [Thread-5] ERROR ServiceLocator - NamingException - Cou ld not create JNDI context: javax.naming.NoInitialContextException: Cannot insta ntiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.la ng.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] 2001-10-02 13:53:59,752 [Thread-5] ERROR ServiceLocator - javax.naming.NoInitia lContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFac tory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.Na mingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:195) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav a:45) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 55) _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS connection failures
I'm using JMS to provide asynchronous auditing of components in our J2EE application. I've created a MessageServiceActivator that listens to a Queue (i.e. testQueue) and the auditing component processes the messages. I've been testing the Activator with the example SenderToQueue client and it works fine for 20 or so messages and then I get a java.io.EOFException from JMS (UILClientILService specifically). I want to be able to continually listen to the queue without having to reconnect every time an error occurs. Has anyone had similar problems with JBossMQ? Any suggestions would be greatly appreciated. I have included a stack trace of the error. Thanks in advance, Brett 2001-09-10 17:59:07,737 [Thread Pool Worker] DEBUG MessageServiceActivator - Entered onMessage 2001-09-10 17:59:07,737 [Thread Pool Worker] DEBUG MessageServiceActivator - onMessage did not receive a TextMessage 2001-09-10 17:59:07,737 [Thread Pool Worker] DEBUG MessageServiceActivator - Exiting onMessage 2001-09-10 17:59:37,410 [UILClientILService] DEBUG OILClientILService - Waiting for a messgage from the server 2001-09-10 17:59:37,410 [UILClientILService] DEBUG Connection - java.io.EOFException 2001-09-10 17:59:37,420 [UILClientILService] WARN Connection - JBossMQ Connection failure: javax.jms.JMSException: Connection failure at org.jbossmq.Connection.asynchFailure(Connection.java:642) at org.jbossmq.il.oil.OILClientILService.run(OILClientILService.java:130) at java.lang.Thread.run(Thread.java:484) java.io.EOFException at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1907) at org.jbossmq.il.oil.OILClientILService.run(OILClientILService.java:123) at java.lang.Thread.run(Thread.java:484) _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Docs for JBoss Test suite
I've recently downloaded the latest suite of tests for JBoss. Are there any docs for these tests or is the documentation in the tests? It would be nice to know what the dependencies are for each tests (e.g. Bean1 must be deployed prior to running test1, etc)? Any information on the subject would be appreciated. Brett _ Get your FREE download of MSN Explorer at http://explorer.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error getting InitialContext when running Tomcat separate from JBoss
We are having problems connecting to a JBoss EJB from a servlet when running Tomcat in its own JVM. The error occurs when we try to get an InitialContext, and we get a org.jnp.interfaces.NamingContextFactory class not found exception. I believe we have put all the necessary Jboss libraries in the "webapps/myapp/lib" directory. This error does not occur when we try to access the EJB from a regular test client (JUnit test) or when we run Tomcat embedded with JBoss. The following is an output of our error. Any suggestions would be greatly appreciated. Thanks, Brett 28491 [Thread-7] INFO- get new ContainerContext() 28521 [Thread-7] INFO ContainerContext - ContainerContext - Getting TheUserSesion 28541 [Thread-7] ERROR ContainerContext - ContainerContext - Error with connect() javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) _ _ Get your FREE download of MSN Explorer at http://explorer.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user