Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Weblogic - 12.2.1 - not initializing the ServerContainer !

Teja BaluAug 18 2016 — edited Sep 13 2016

Hello Everyone ,

I am facing an issue while starting my application on weblogic 12.2.1 , as per the websocket spec i am initializing the websocket end-point at the time of startup of application in ServletContextListener . I am using atmosphere framework to start the websocket endpoint.  While initializing the socket endpoint in class JSR356AsyncSupport - atmosphere framework tries to fetch the attribute from servletContext object . It doesn't find it and fails .... in weblogic 12.2.1 / 12.1.3. However the same application when deployed on other web/appservers like tomcat , websphere liberty , jboss works fine. (Am using jdk1.8)

(https://github.com/Atmosphere/atmosphere/blob/master/modules/cpr/src/main/java/org/atmosphere/container/JSR356AsyncSuppo… )

I don't have clue how to solve this - Much Appreciated if some one can help me out. Thank you.

public JSR356AsyncSupport(AtmosphereConfig config, ServletContext ctx) {

        super(config);

        ServerContainer container = (ServerContainer) ctx.getAttribute(ServerContainer.class.getName()); //javax.websocket.server.ServerContainer

        if (container == null) {

            if (ctx.getServerInfo().contains("WebLogic")) {

                logger.error("{} must use JDK 1.8+ with WebSocket", ctx.getServerInfo());

            }

            throw new IllegalStateException("Unable to configure jsr356 at that stage. ServerContainer is null");

        }

}

Exception stack trace.

2016-08-16 16:10:31,459 [            WGHALBW7] [  STANDARD] [ ] [ ] (pr.DefaultAsyncSupportResolver) ERROR   - Real error: Unable to configure jsr356 at that stage. ServerContainer is null

  1. java.lang.IllegalStateException: Unable to configure jsr356 at that stage. ServerContainer is null

at org.atmosphere.container.JSR356AsyncSupport.<init>(JSR356AsyncSupport.java:51)

at org.atmosphere.container.JSR356AsyncSupport.<init>(JSR356AsyncSupport.java:40)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:235)

at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:307)

at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:293)

at org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:2004)

at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:911)

at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:835)

Comments

270337
I have tora 1.3.21 with Postgres and Oracle connections on Debian. I think that you should compile from tora source for Oracle connection. For this, you should download instant client from OTN and specify the instant client path in the parameters:

./configure with-instant-client with-oracle-includes=/usr/local/instantclient_10_2/sdk/include/ with-oracle-libraries=/usr/local/instantclient_10_2/lib with-oci-version=10G

You should review configure parameters file for new features or customize this for your platform
Billy Verreynne
Assuming that you've downloaded TOra with OCI support, this could mean that TOra is not seeing the OCI client drivers and therefore not presenting you with an option to connect via an Oracle client driver.

Check you LD_LIBRARY_PATH and make sure that it includes $ORACLE_HOME/lib - or download Instant Client and point the path there.
1 - 2

Post Details

Added on Aug 18 2016
1 comment
2,433 views