You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/05/31 20:20:53 UTC
[Bug 53339] New: ClassNotFoundException when using WebSocketServlet
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
[Bug 53339] ClassNotFoundException when using WebSocketServlet
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53339
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
I suspect we need to set the TCCL correctly for web socket calls.
--
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
[Bug 53339] ClassNotFoundException when using WebSocketServlet
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53339
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Fixed in trunk and 7.0.x and will be included in 7.0.28 onwards.
--
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