In trying to resolve an issue with Netbeans 8.1 / Tomee 7 I am dropping an existing .war file into Tomcat 8.5.3 / TomEE 7 and starting the Tomcat from the command prompt. This a .war file from a current project on Tomcat 7.0.69 / TomEE 1.7.4.
Deployment fails with: 15-Jun-2016 15:32:58.322 WARNING [localhost-startStop-1] org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.getLookupMethod Method 'lookup' is not available for 'javax.ejb.EJB'. The old API 'file:/C:/Program%20Files/tomcat-8.5.3-tomee7/lib/annotations-api.jar' was found on the classpath. 15-Jun-2016 15:32:58.337 SEVERE [localhost-startStop-1] sun.reflect.NativeMethodAccessorImpl.invoke ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Metrics]] Caused by: java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/SynchronizationType; -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/old-API-file-C-Program-20Files-tomcat-8-5-3-tomee7-lib-annotations-api-jar-was-found-on-the-classpath-tp4678911.html Sent from the TomEE Users mailing list archive at Nabble.com.
