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: ajkran...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to