Issue Details (XML | Word | Printable)

Key: JERSEY-1674
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Marek Potociar
Reporter: Jakub Podlesak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jersey

Validation error when deploying jersey-ejb example

Created: 28/Jan/13 10:36 AM   Updated: 29/May/13 01:33 PM   Resolved: 26/Mar/13 02:42 PM
Component/s: examples
Affects Version/s: 2.0-m11
Fix Version/s: 2.0-rc1, 2.0

Time Tracking:
Not Specified

Tags:
Participants: Jakub Podlesak and Marek Potociar


 Description  « Hide

The following error messages are written to GF server.log when trying to deploy jersey-ejb example on GF 4.0 container
with the latest Jersey 2.0 trunk version. To workaround the deployment error, it is sufficient to comment out registration
of MessageBoardResourceBean in MyApplication class.

[#|2013-01-11T17:48:32.839+0000|INFO|glassfish 4.0|org.glassfish.jersey.server.ApplicationHandler|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512839;_LevelValue=800;|Initiating Jersey application, version Jersey: 2.0-SNAPSHOT 2013-01-11 15:15:25...|#]

[#|2013-01-11T17:48:32.850+0000|WARNING|glassfish 4.0|org.glassfish.jersey.internal.inject.Providers|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512850;_LevelValue=900;|A provider org.glassfish.jersey.examples.jersey_ejb.entities.Message registered in SERVER runtime implements only client provider interfaces.Due to constraint configuration problems the provider org.glassfish.jersey.examples.jersey_ejb.entities.Message will be ignored.|#]

[#|2013-01-11T17:48:32.850+0000|WARNING|glassfish 4.0|org.glassfish.jersey.internal.inject.Providers|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512850;_LevelValue=900;|A provider org.glassfish.jersey.examples.jersey_ejb.resources.MessageHolderSingletonBean registered in SERVER runtime implements only client provider interfaces.Due to constraint configuration problems the provider org.glassfish.jersey.examples.jersey_ejb.resources.MessageHolderSingletonBean will be ignored.|#]

[#|2013-01-11T17:48:32.856+0000|INFO|glassfish 4.0|org.glassfish.jersey.gf.ejb.EjbComponentProvider|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512856;_LevelValue=800;|The Jersey EJB interceptor is bound. JAX-RS EJB integration support is enabled.|#]

[#|2013-01-11T17:48:32.877+0000|SEVERE|glassfish 4.0|org.glassfish.jersey.internal.Errors|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512877;_LevelValue=1000;|The following errors and warnings have been detected:
WARNING: A resource, Resource {"/", 1 child resources,0 resource methods, 0 sub-resource locators, 0 method handler classes, 0 method handler instances}, has ambiguous path definition with resource Resource {[unbound], 1 child resources,2 resource methods, 0 sub-resource locators, 1 method handler classes, 0 method handler instances}. Both resource matche to the same path pattern (/.*)?.

#]

[#|2013-01-11T17:48:32.878+0000|SEVERE|glassfish 4.0|javax.enterprise.web|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512878;_LevelValue=1000;|WebModule[/jersey-ejb]StandardWrapper.Throwable
org.glassfish.jersey.server.model.ModelValidationException: [[FATAL] ]
at org.glassfish.jersey.server.ApplicationHandler.validate(ApplicationHandler.java:626)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:384)
at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:144)
at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:263)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:210)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:207)
at org.glassfish.jersey.internal.Errors.process(Errors.java:226)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:207)
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:260)
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:254)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:144)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:326)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1583)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1382)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5663)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5905)
at com.sun.enterprise.web.WebModule.start(WebModule.java:696)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2304)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1950)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:140)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:273)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:312)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:548)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1425)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1760)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1676)
at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:391)
at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:358)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:353)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:99)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:203)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:316)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:179)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:790)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321)
at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:320)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:184)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:818)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:562)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:542)
at java.lang.Thread.run(Thread.java:722)

#]

[#|2013-01-11T17:48:32.879+0000|SEVERE|glassfish 4.0|javax.enterprise.web|_ThreadID=76;_ThreadName=admin-listener(1);_TimeMillis=1357926512879;_LevelValue=1000;|WebModule[/jersey-ejb]Servlet /jersey-ejb threw load() exception
org.glassfish.jersey.server.model.ModelValidationException: [[FATAL] ]
at org.glassfish.jersey.server.ApplicationHandler.validate(ApplicationHandler.java:626)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:384)
at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:144)
at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:263)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:210)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:207)
at org.glassfish.jersey.internal.Errors.process(Errors.java:226)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:207)
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:260)
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:254)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:144)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:326)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1583)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1382)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5663)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5905)
at com.sun.enterprise.web.WebModule.start(WebModule.java:696)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2304)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1950)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:140)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:273)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:312)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:548)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1425)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1760)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1676)
at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:391)
at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:358)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:353)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:99)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:203)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:316)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:179)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:790)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321)
at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:320)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:184)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:818)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:562)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:542)
at java.lang.Thread.run(Thread.java:722)



Jakub Podlesak added a comment - 28/Jan/13 10:37 AM

As discussed with Mira offline, the above is probably caused by a bug in the server validation logic, where a valid application refuses to deploy.


Marek Potociar added a comment - 26/Mar/13 02:42 PM

Already resolved.