[ https://issues.apache.org/jira/browse/TOMEE-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761509#comment-13761509 ]
Romain Manni-Bucau commented on TOMEE-1026: ------------------------------------------- Hi this is consistent with the fact we target JavaEE 6 and not JavaEE 7. you can still use JavaEE 7 API using the zip instead of the jar (see http://rmannibucau.wordpress.com/2013/07/19/little-tip-to-help-you-to-test-javaee-7-in-tomee-with-tomee-maven-plugin/ for details) or using openejb.classloader.forced-load=javax.ws.rs for instance in conf/system.properties. > 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, (trunk/tomee) > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira