Skip to main content

[GF 3.1.1, JDK1.7/1.6, Linux 64bit] Application running on Windows 7 does not deploy on Linux

4 replies [Last post]
matthiasunv
Offline
Joined: 2003-07-06

I have an application running perfectly on [GF 3.1.1, JDK1.7/1.6, Windows 7 64bit].

Problem: It does not deploy on [GF 3.1.1, JDK1.7/1.6, Linux 64bit]. Deployment stops with the following Exception

Caused by: javax.naming.NamingException: Lookup failed for 'com/sun/jersey/config/CDIExtension' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: CDIExtension not found]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
    at com.sun.jersey.server.impl.cdi.CDIExtension.getInitializedExtension(CDIExtension.java:175)
    ... 51 more
Caused by: javax.naming.NameNotFoundException: CDIExtension not found
    at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:248)
    at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:215)
    at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
    at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
    at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
    at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
    at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
    at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:119)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:505)
    ... 53 more

Any hint?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
matthiasunv
Offline
Joined: 2003-07-06

The application runs on [GF 3.1, JDK1.6, Linux 64bit].
I therefore assume it is a bug in [GF 3.1.1].
I will use [GF 3.1] until the bug is fixed.

cf126330
Offline
Joined: 2005-03-29

Could be related to this issue:

http://java.net/jira/browse/JERSEY-601

(CDIExtension: NPE not yet resolved, since lookup fails in JNDI with some container)

dmitriy.balakin
Offline
Joined: 2011-10-19

Oh, you saved my day.

I have same exception when deploy my ear with two war's one of which has a cdi extension. However each war in separate ear's deploys normally.

Thanks!

matthiasunv
Offline
Joined: 2003-07-06

Thank you, very helpful!

I set the system-property "com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true"
It works.