You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/10/13 13:46:34 UTC

[jira] [Resolved] (TOMEE-1026) Web Profile distro (javaee-api-6.0-5-tomcat.jar) includes APIs it should not

     [ https://issues.apache.org/jira/browse/TOMEE-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved TOMEE-1026.
---------------------------------------
    Resolution: Fixed

> Web Profile distro (javaee-api-6.0-5-tomcat.jar) includes APIs it should not
> ----------------------------------------------------------------------------
>
>                 Key: TOMEE-1026
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1026
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.1, 1.5.2, 1.5.3, 1.6.0, 1.7.0
>         Environment: Windows 7, Java 7
>            Reporter: Matthieu Chase Heimer
>              Labels: jax-rs, tomee
>
> TomEE Web Profile contains javaee-api-6.0-5-tomcat.jar (or javaee-api-6.0-5-SNAPSHOT-tomcat.jar) which includes the javax.ws.rs package.
> This would be okay for the JAX-RS version or the PLUS version but the Web Profile should not include the javax.ws.rs package.
> This is important because developers should be able to add the JAX-RS 2 reference implementation (Jersey 2.X) to TomEE Web Profile because it should install on any Servlet 2.5 or 3 container but the JAX-RS 1.1 libraries that are incorrectly bundled in the Web Profile distro and cause exceptions.
> In my apache-tomee-webprofile-1.5.2\logs\localhost.2013-09-07.log file I have:
> Sep 07, 2013 12:50:57 PM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
> 	at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:271)
> 	at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:298)
> 	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:167)
> 	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:349)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
> 	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033)
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> 	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
> 	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)