tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Bassi <fvba...@gmail.com>
Subject Fwd: Tomcat 7.0.47 Websocket + JNDI problems
Date Sun, 27 Oct 2013 21:49:26 GMT
Hello everybody.

I just downloaded 7.0.47 and updated one web application that I developed
in order to use the new standard JSR 356 websocket implementation.

With this new implementation, I noticed that during the processing of
incoming websocket events, it's not possible to access the JNDI resources.

ie:

            Context initCtx = new InitialContext();
            Context c = (Context) initCtx.lookup("java:comp/env");

gives

javax.naming.NameNotFoundException: Name [comp/env] is not bound in this
Context. Unable to find [comp].

I'm using a custom ServerEndpointConfig.Configurator.

Everything used to work properly with the old custom tomcat implementation.

Is it an expected behaviour?

thanks,

--fb

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message