Jan/Shingwai/Sahoo,
I wanted to check if you had more info here. I had things working till
Fri. With the latest classloader changes I run into the following NCDFE
This is a basic jaxws application .
Previously once when I had run into similar problem adding the
dependency in pom.xml had solved the issue
I have added javax.servlet dependency too in my pom.xml but no difference
Is there something obvious I am missing?
Thanks,
Bhakti
/cygdrive/c/ap25-v3/v3/webservices/jsr109-impl %
/cygdrive/c/ap25-v3/v3/webservices/jsr109-impl %svn diff pom.xml
Index: pom.xml
===================================================================
--- pom.xml (revision 21591)
+++ pom.xml (working copy)
@@ -168,6 +168,11 @@
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>org.glassfish</groupId>
+ <artifactId>javax.servlet</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>webservices-rt</artifactId>
<version>1.3-SNAPSHOT</version>
These are my HK2-Import-Bundles entry
HK2-Import-Bundles: org.glassfish.core:kernel, org.glassfish.deploymen
t:dol, org.glassfish.common:common-util, org.glassfish.deployment:dep
loyment-common, org.glassfish.common:glassfish-api, org.glassfish.com
mon:internal-api, org.glassfish.common:container-common, org.glassfis
h.web:web-glue, javax.xml:webservices-api, org.glassfish:javax.javaee
, com.sun.xml.ws:webservices-rt, com.sun.tools.ws:webservices-tools
I am unsure how even after entering javax.servlet in the dependency I
cannot get it in the HK2-Import-Bundles
I see the following entry in
HK2-Class-Path-Id: com.sun.enterprise:config:jar:0.3.10-SNAPSHOT com.s
un.enterprise:auto-depends:jar:0.3.10-SNAPSHOT com.sun.enterprise:hk2
-core:jar:0.3.10-SNAPSHOT org.glassfish:javax.servlet:jar:10.0-SNAPSH
OT com.sun.enterprise:tiger-types-osgi:jar:0.3.10-SNAPSHOT
INFO: Loading application rmdemo at /rmdemo
Aug 4, 2008 4:05:22 PM org.apache.catalina.loader.WebappLoader setClassPath
INFO: Unknown loader
org.glassfish.internal.api.DelegatingClassLoader_at_1e78461 cl
ass org.glassfish.internal.api.DelegatingClassLoader
Aug 4, 2008 4:05:36 PM org.apache.catalina.core.ApplicationContext log
SEVERE: WebModule[/rmdemo]PWC1257: Error configuring application
listener of cla
ss com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.NoClassDefFoundError:
javax/servlet/ServletContextAttributeListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(
ContentClassLoader.java:214)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassF
romModule(ContentClassLoader.java:85)
at
org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(Co
ntentLoaderImpl.java:141)
at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:1
01)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDyna
micImports(R4SearchPolicyCore.java:536)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassO
rResource(R4SearchPolicyCore.java:480)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(
R4SearchPolicyCore.java:187)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4Se
archPolicy.java:45)
at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146
)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
at
org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)
at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2.loadClass(OSGiModuleImpl.j
ava:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoade
r.java:1408)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4568)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5
286)
at com.sun.enterprise.web.WebModule.start(WebModule.java:374)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:922)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:90
6)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2
288)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1
911)
at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:87)
at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:78)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.startModules(Applic
ationLifecycle.java:688)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationL
ifecycle.java:291)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplicat
ion(ApplicationLoaderService.java:221)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(A
pplicationLoaderService.java:98)
at
com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(
ApplicationLoaderInjector.java:60)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:1
50)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java
:86)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
a:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:60)
at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.ja
va:130)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:431)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:376)
at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:116)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:591)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:11
25)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258
)
at java.lang.Thread.run(Thread.java:595)
Aug 4, 2008 4:05:15 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: PWC1258: Skipped installing application listeners due to
previous error(
s)
Aug 4, 2008 4:05:22 PM org.apache.catalina.core.StandardContext start
SEVERE: PWC1306: Startup of context /rmdemo failed due to previous errors
Aug 4, 2008 4:05:22 PM com.sun.enterprise.web.WebApplication start
INFO: Loading application rmdemo at /rmdemo
Aug 4, 2008 4:05:22 PM org.apache.catalina.loader.WebappLoader setClassPath
INFO: Unknown loader
org.glassfish.internal.api.DelegatingClassLoader_at_1e78461 cl
ass org.glassfish.internal.api.DelegatingClassLoader
Aug 4, 2008 4:05:36 PM org.apache.catalina.core.ApplicationContext log
SEVERE: WebModule[/rmdemo]PWC1257: Error configuring application
listener of cla
ss com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.NoClassDefFoundError:
javax/servlet/ServletContextAttributeListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(
ContentClassLoader.java:214)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassF
romModule(ContentClassLoader.java:85)
at
org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(Co
ntentLoaderImpl.java:141)
at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:1
01)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImpo
rts(R4SearchPolicyCore.java:507)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassO
rResource(R4SearchPolicyCore.java:468)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(
R4SearchPolicyCore.java:187)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4Se
archPolicy.java:45)
at
org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146
)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
at
org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)
at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2.loadClass(OSGiModuleImpl.j
ava:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoade
r.java:1408)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4568)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5
286)
at com.sun.enterprise.web.WebModule.start(WebModule.java:374)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:922)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:90
6)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2
288)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1
911)
at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:87)
at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:78)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.startModules(Applic
ationLifecycle.java:688)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationL
ifecycle.java:291)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplicat
ion(ApplicationLoaderService.java:221)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(A
pplicationLoaderService.java:98)
at
com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(
ApplicationLoaderInjector.java:60)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:1
50)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java
:86)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
a:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:60)
at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.ja
va:130)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:431)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:376)
at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:116)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:591)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:11
25)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258
)
at java.lang.Thread.run(Thread.java:595)