tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53339] New: ClassNotFoundException when using WebSocketServlet
Date Thu, 31 May 2012 18:20:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53339

          Priority: P2
            Bug ID: 53339
          Assignee: dev@tomcat.apache.org
           Summary: ClassNotFoundException when using WebSocketServlet
          Severity: normal
    Classification: Unclassified
                OS: Windows XP
          Reporter: ajkrank70@gmail.com
          Hardware: PC
            Status: NEW
           Version: 7.0.27
         Component: Catalina
           Product: Tomcat 7

I'm trying to do a JNDI lookup inside the "onOpen" method of my StreamInbound
class, but it gives me the exception below.  The code works if I move my JNP
JARs to the server lib instead of the webapp lib.  The code also works fine
from anywhere else, like in the "doGet" method.


ERROR http-bio-8080-exec-3 Test 
javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory [Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at Test$TestStreamInbound.onOpen(Test.java:103)
    at
org.apache.catalina.websocket.StreamInbound.onUpgradeComplete(StreamInbound.java:180)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
    at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message