Hi, did you try the snapshot? https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.5.1-SNAPSHOT/
Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/3 deetewari <dee_tew...@hotmail.com>: > Hi,I'm using Tomee 1.5 Plus. I do the development in Eclipse based > SpringSource Tools Suite (STS). Currently I'm using only Eclipse to generate > the WAR file and hence most settings are done from within Eclipse. So here's > the issue I'm facing...I have a Java web application using JPA for > persistence, EJB (mostly stateless session beans). Some of the EJBs also > serve as JAX-RS services generating JSON. All this works perfectly if I > deploy my web application with the context path set to any string like > "/app" ... so the web application can then be reached at > http://localhost/app/.However, when I deploy my app as ROOT.war with the > context path set as "/" then everything else works fine except JAX-RS > services don't start and I get this message on the console:INFO: REST > application deployed: com.foo.app.helpers.RestUrlInitializerDec 03, 2012 > 6:42:04 PM org.apache.openejb.observer.ObserverManager fireEventSEVERE: > error invoking > org.apache.openejb.observer.ObserverManager$obser...@3e4282f4java.lang.reflect.InvocationTargetException...Caused > by: java.lang.IllegalStateException: Invalid context '/rest'. Cannot find > context in host localhost"/rest" is the path I want the JAX-RS services to > be available under. This is set by a Simple class like: > @ApplicationPath("/rest")public class RestUrlInitializer extends Application > {}So what am I missing? How can I start the JAX-RS webservice without any > context path like http://localhost/app/rest.Thanks > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/JAX-RS-webservices-do-not-work-on-TomEE-if-webapp-context-is-tp4659047.html > Sent from the OpenEJB User mailing list archive at Nabble.com.