Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

More than one JAX-RS ApplicationPath detected (Jersey) #189

Closed
AritonV10 opened this issue Aug 5, 2018 · 2 comments
Closed

More than one JAX-RS ApplicationPath detected (Jersey) #189

AritonV10 opened this issue Aug 5, 2018 · 2 comments

Comments

@AritonV10
Copy link

I've read that's been fixed, but I still happen to get it. I'm running Payara 5. Sometimes it compiles, sometimes It doesn't

2018-08-05T21:10:26.527+0300|Info: Clustered CDI Event bus initialized
2018-08-05T21:10:28.565+0300|Info: Initializing Soteria 1.1-b01 for context '/atom-api'
2018-08-05T21:10:30.834+0300|Info: Ozark version 1.0.0-m03 started
2018-08-05T21:10:30.844+0300|Severe: Error invoking ServletContainerInitializer org.mvcspec.ozark.servlet.OzarkContainerInitializer
java.lang.IllegalStateException: More than one JAX-RS ApplicationPath detected!
	at org.mvcspec.ozark.servlet.OzarkContainerInitializer.onStartup(OzarkContainerInitializer.java:59)
	at org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5825)
	at com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:737)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5722)
	at com.sun.enterprise.web.WebModule.start(WebModule.java:618)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:956)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:939)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:684)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2105)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1750)
	at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107)
	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:123)
	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:294)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:357)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.initialize(ApplicationLifecycle.java:541)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:542)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:549)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:545)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:544)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:575)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:567)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:566)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1475)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:111)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1857)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1733)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:564)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:251)
	at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:166)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:516)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:213)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
	at java.lang.Thread.run(Thread.java:748)
@Daniel-Dos
Copy link
Contributor

Daniel-Dos commented Aug 5, 2018

Hi @AritonV10 ,

in your log, you using the old version of Ozark :

2018-08-05T21:10:30.834+0300|Info: Ozark version 1.0.0-m03 started

upgrade to the Ozark 1.0.0-m04 for fixed the error.

see in site to using the latest version :

https://www.mvc-spec.org/ozark/docs/install-snapshots.html

@chkal
Copy link
Contributor

chkal commented Aug 26, 2018

It looks like we can close this issue now. Feel free to reopen if this error still occurs with the latest snapshots.

@chkal chkal closed this as completed Aug 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants