Closed glassfishrobot closed 13 years ago
Reported by gmazza
gmazza said: Note it does run with jetty (mvn jetty:run)--it's just embedded glassfish with this problem.
jbenoit said: assign to self
jbenoit said: Regarding your question: "Do versions 1.6 and 1.7 of Jersey implement a different JAX-RS standard than 1.5? " The answer is No.
I don't see this error using "jersey-test-framework-embedded-glassfish" branch: URL: https://svn.java.net/svn/jersey~svn/branches/jersey-test-framework-embedded-glassfish/jersey/samples/helloworld-webapp Repository Root: https://svn.java.net/svn/jersey~svn
Using http://download.java.net/maven/2/com/sun/jersey/samples/jersey-samples/1.5-SNAPSHOT/jersey-samples-1.5-SNAPSHOT-project.zip I see error in attachment embedded.errors.txt.zip
gmazza said: It should not be necessary to download a special branch (i.e., "jersey-test-framework-embedded-glassfish") for this sample to run, because embedded glassfish is the only app server mentioned in the README. I have another JIRA ticket on mentioning how to run on Jetty in the READMEs, but if it is indeed necessary to download a special branch to run with Glassfish, best to update the README to state so.
jbenoit said: Marking as samples Component.
Yes, user should not have to know about branch. Branch needs to be merged back to trunk. Will do, so it won't produce same error going forward. Will investigate if can be marked with 1_5_1-candidate Tag, to be considered for patching if there is a 1.5.1 release.
jbenoit said: merged changes from embedded branch, sample runs using embedded via: mvn clean package embedded-glassfish:run accessing http://localhost:8080/helloworld-webapp/helloworld displays "Hello World"
Here is full output from mvn invocation: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp>mvn clean package embedded-glassfish:run [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Helloworld WebApp - Jersey Sample [INFO] task-segment: [clean, package, embedded-glassfish:run] [INFO] ------------------------------------------------------------------------ [INFO] artifact org.codehaus.mojo:xslt-maven-plugin: checking for updates from maven2-repository.dev.java.net [INFO] artifact org.codehaus.mojo:xslt-maven-plugin: checking for updates from maven2-glassfish-repository.dev.java.net [INFO] [clean:clean
{execution: default-clean}
] [INFO] Deleting directory C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target [INFO] [resources:resources
{execution: default-resources}
] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource Downloading: http://download.java.net/maven/2//com/sun/jersey/contribs/jersey-multipart/1.7-SNAPSHOT/jersey-multipart-1.7-SNAPSHOT.pom [INFO] snapshot com.sun.jersey.contribs:jersey-contribs:1.7-SNAPSHOT: checking for updates from glassfish-repository Downloading: http://download.java.net/maven/2//com/sun/jersey/contribs/jersey-contribs/1.7-SNAPSHOT/jersey-contribs-1.7-SNAPSHOT.pom Downloading: http://download.java.net/maven/2//com/sun/jersey/contribs/jersey-multipart/1.7-SNAPSHOT/jersey-multipart-1.7-SNAPSHOT.jar 48K downloaded (jersey-multipart-1.7-SNAPSHOT.jar) [INFO] [compiler:compile
{execution: default-compile}
] [INFO] Compiling 2 source files to C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\classes [INFO] [resources:testResources
{execution: default-testResources}
] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\src\test\resources [INFO] [compiler:testCompile
{execution: default-testCompile}
] [INFO] Compiling 1 source file to C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\test-classes [INFO] [surefire:test
{execution: default-test}
] [INFO] Surefire report directory: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\surefire-reports
Running com.sun.jersey.samples.helloworld.HelloWorldWebAppTest
Apr 1, 2011 6:46:53 PM com.sun.jersey.test.framework.spi.container.grizzly2.web.
GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer
INFO: Root resource classes found:
class com.sun.jersey.samples.helloworld.resources.HelloWorldResource
Apr 1, 2011 6:46:54 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Apr 1, 2011 6:46:54 PM com.sun.jersey.server.impl.application.WebApplicationImpl
_initiate
INFO: Initiating Jersey application, version 'Jersey: 1.7-SNAPSHOT 03/31/2011 12:15 PM'
Apr 1, 2011 6:46:54 PM com.sun.jersey.test.framework.spi.container.grizzly2.web.
GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer stop
INFO: Stopping the Grizzly2 Web Container...
Apr 1, 2011 6:46:54 PM org.glassfish.grizzly.http.server.NetworkListener stop
INFO: Stopped listener bound to [localhost:9998]
Apr 1, 2011 6:46:54 PM com.sun.jersey.test.framework.spi.container.grizzly2.web.
GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer
INFO: Root resource classes found: class com.sun.jersey.samples.helloworld.resources.HelloWorldResource Apr 1, 2011 6:46:54 PM com.sun.jersey.api.core.ScanningResourceConfig init INFO: No provider classes found. Apr 1, 2011 6:46:54 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate INFO: Initiating Jersey application, version 'Jersey: 1.7-SNAPSHOT 03/31/2011 12:15 PM' Apr 1, 2011 6:46:54 PM com.sun.jersey.test.framework.spi.container.grizzly2.web. GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer stop INFO: Stopping the Grizzly2 Web Container... Apr 1, 2011 6:46:54 PM org.glassfish.grizzly.http.server.NetworkListener stop INFO: Stopped listener bound to [localhost:9998] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.625 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO] [war:war
{execution: default-war}
] [INFO] Packaging webapp [INFO] Assembling webapp[helloworld-webapp] in [C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\helloworld-webapp] [INFO] Processing war project [INFO] Copying webapp resources[C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\src\main\webapp] [INFO] Webapp assembled in[391 msecs] [INFO] Building war: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\helloworld-webapp.war [INFO] [xslt:transform
{execution: update-gf-deps}
] [INFO] # of XML files: 1 [INFO] transform, srcFile: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-weba pp\pom.xml, destFile: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\gf-pom-file\pom.xml [INFO] [assembly:attached
{execution: make-assembly}
] [INFO] Reading assembly descriptor: src/main/assembly/src.xml [INFO] Reading assembly descriptor: src/main/assembly/glassfish.xml [INFO] Building zip: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\helloworld-webapp-project.zip [INFO] helloworld-webapp/ already added, skipping [INFO] Building zip: C:\a\fresh\1.6bugfixes\jersey\samples\helloworld-webapp\target\helloworld-webapp-gf-project.zip [INFO] helloworld-webapp/ already added, skipping [INFO] [embedded-glassfish:run
{execution: default-cli}
]
Created New Bootstrap ClassLoader. ServerId = maven, ClassPaths =
ClassPath Element : file:/C:/Documents%20and%20Settings/jbenoit/.m2/repository/org/glassfish/extras/glassfish-embedded-all/3.1/glassfish-embedded-all-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/glassfish/maven-embedded-glassfish-plugin/3.1/maven-embedded-glassfish-plugin-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/com/sun/jersey/jersey-server/1.7-SNAPSHOT/jersey-server-1.7-SNAPSHOT.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/asm/asm/3.1/asm-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/com/sun/jersey/jersey-core/1.7-SNAPSHOT/jersey-core-1.7-SNAPSHOT.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/glassfish/javax.servlet/3.1/javax.servlet-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/glassfish/javax.ejb/3.1/javax.ejb-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/glassfish/javax.transaction/3.1/javax.transaction-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/glassfish/javax.annotation/3.1/javax.annotation-3.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
ClassPath Element : file:/C:/Documents and Settings/jbenoit/.m2/repository/org/glassfish/simple-glassfish-api/3.1/simple-glassfish-api-3.1.jar
Apr 1, 2011 6:47:03 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl
findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
Apr 1, 2011 6:47:04 PM org.hibernate.validator.util.Version
{GlassFish_Platform=Static}
, GlassFishRuntime = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime@6c9220, GlassFishProperties =
{embedded-glassfish-config.server.network-config.network-listeners.network-listener.http-listener.enabled=true, embedded-glassfish-config.server.network-config.network-listeners.network-listener.http-listener.port=8080}
, GlassFish = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime$1@1ed7524, GlassFish Status = INIT, TimeTaken = 2,672 ms
Apr 1, 2011 6:47:05 PM com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy
INFO: Network listener https-listener on port 0 disabled per domain.xml
Apr 1, 2011 6:47:05 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish Server Open Source Edition 3.1 (java_re-private) startup time :
Embedded (1,640ms), startup services(1,328ms), total(2,968ms)
Apr 1, 2011 6:47:05 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
INFO: Grizzly Framework 1.9.31 started in: 500ms - bound to [0.0.0.0:8080]
Apr 1, 2011 6:47:06 PM org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
INFO: JMXStartupService: JMXConnector system is disabled, skipping.
Apr 1, 2011 6:47:06 PM PluginUtil startGlassFish
INFO: Started GlassFish ServerId = maven, GlassFish = com.sun.enterprise.glassfi
sh.bootstrap.StaticGlassFishRuntime$1@1ed7524, TimeTaken = 1,844 ms
Apr 1, 2011 6:47:07 PM com.sun.enterprise.security.SecurityLifecycle
Apr 1, 2011 6:47:08 PM com.sun.enterprise.web.WebContainer createHosts
INFO: WEB0171: Created virtual server [server]
Apr 1, 2011 6:47:09 PM com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules
INFO: WEB0172: Virtual server [server] loaded default web module []
classLoader = WebappClassLoader (delegate=false; repositories=WEB-INF/classes/)
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@154a291
Apr 1, 2011 6:47:12 PM com.sun.jersey.server.impl.application.WebApplicationImpl
_initiate
INFO: Initiating Jersey application, version 'Jersey: 1.7-SNAPSHOT 03/31/2011 12:15 PM'
Apr 1, 2011 6:47:12 PM com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder
jbenoit said: fixed in trunk, marked as 1_5_1-candidate in case there is a 1.5.x release
File: embedded.errors.txt.zip Attached By: jbenoit
Was assigned to jbenoit
This issue was imported from java.net JIRA JERSEY-661
Marked as fixed on Friday, April 1st 2011, 9:04:58 am
First question, before the bug report: Do versions 1.6 and 1.7 of Jersey implement a different JAX-RS standard than 1.5?
Bug: Running mvn clean package embedded-glassfish:run as described in the readme of the helloworld-webapp returns the following error:
SEVERE: The following errors and warnings have been detected with resource and/or provider classes: SEVERE: Missing dependency for constructor public com.sun.jersey.multipart.impl.MultiPartReader(javax.ws.rs.ext.Providers,com.sun.jersey.multipart.MultiPartConfig,com.sun.jersey.spi.CloseableService) at parameter index 1 SEVERE: Missing dependency for constructor public com.sun.jersey.multipart.impl.MultiPartReader(javax.ws.rs.ext.Providers,com.sun.jersey.multipart.MultiPartConfig,com.sun.jersey.spi.CloseableService) at parameter index 2 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for field: com.sun.jersey.spi.MessageBodyWorkers com.sun.jersey.json.impl.provider.entity.JSONWithPaddingProvider.bodyWorker SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 SEVERE: Missing dependency for method public void com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0 Mar 1, 2011 7:46:41 AM org.apache.catalina.core.ApplicationContext log SEVERE: WebModule[/helloworld-webapp]StandardWrapper.Throwable com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170) at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:697) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:692) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:488) at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318) at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:606) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:213) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556) at javax.servlet.GenericServlet.init(GenericServlet.java:242) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1428) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1230) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5207) at com.sun.enterprise.web.WebModule.start(WebModule.java:499) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.RunMojo.execute(RunMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Mar 1, 2011 7:46:41 AM org.apache.catalina.core.ApplicationContext log SEVERE: WebModule[/helloworld-webapp]PWC1396: Servlet /helloworld-webapp threw load() exception com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170) at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:697) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:692) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:488) at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318) at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:606) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:213) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556) at javax.servlet.GenericServlet.init(GenericServlet.java:242) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1428) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1230) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5207) at com.sun.enterprise.web.WebModule.start(WebModule.java:499) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.RunMojo.execute(RunMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Mar 1, 2011 7:46:41 AM org.apache.catalina.core.StandardContext start SEVERE: PWC1306: Startup of context /helloworld-webapp failed due to previous errors Mar 1, 2011 7:46:41 AM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at org.apache.catalina.core.StandardContext.start(StandardContext.java:5216) at com.sun.enterprise.web.WebModule.start(WebModule.java:499) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.RunMojo.execute(RunMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.catalina.LifecycleException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5207) ... 33 more Caused by: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170) at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:697) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:692) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:488) at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318) at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:606) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:213) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556) at javax.servlet.GenericServlet.init(GenericServlet.java:242) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1428) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1230) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4934) ... 34 more Mar 1, 2011 7:46:41 AM com.sun.enterprise.web.WebApplication start WARNING: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.RunMojo.execute(RunMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Mar 1, 2011 7:46:41 AM org.glassfish.api.ActionReport failure SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.enterprise.web.WebApplication.start(WebApplication.java:117) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.RunMojo.execute(RunMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Mar 1, 2011 7:46:41 AM org.glassfish.api.ActionReport failure SEVERE: Exception while loading the app java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.enterprise.web.WebApplication.start(WebApplication.java:117) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.RunMojo.execute(RunMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) classLoader = WebappClassLoader (delegate=false; repositories=WEB-INF/classes/) SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1c31e2ad Hit ENTER to redeploy, X to exit
Environment
Win 7, either Maven 2.2.x or 3.0 (fails same on both) JDK 6/build 22
Affected Versions
[1.5]