i did it on the exploded war, but with maven replace deps with org.apache.openejb:javaee-api:6.0-4:provided jar.
for the web.xml you have the configuration of the maven war plugin which lets you specify you don't need it: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> Then i skipped tests to avoid to rewrite urls (i tested manually). *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/8/20 Todd Deshane <todd.deshane.excels...@gmail.com> > When you say you simply removed the web.xml and dependencies, how do > you not get: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-war-plugin:2.1.1: > ar (default-war) on project workbook-ex03_1: Error assembling WAR: webxml > attri > ute is required (or pre-existing WEB-INF/web.xml if executing in update > mode) - > [Help 1] > > Also, do you add in > > dependencies> > <dependency> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-rt-frontend-jaxrs</artifactId> > <version>2.5.2</version> > </dependency> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.8.2</version> > <scope>test</scope> > </dependency> > </dependencies> > > to the pom.xml? > > Otherwise maven doesn't compile it. > > Thanks for the tips. > > > > On Mon, Aug 20, 2012 at 10:19 AM, Romain Manni-Bucau > <rmannibu...@gmail.com> wrote: > > yes it is linked but it seems to work fine on the snapshot, > > > > i simply removed the web.xml + dependencies > > > > *Romain Manni-Bucau* > > *Twitter: @rmannibucau* > > *Blog: http://rmannibucau.wordpress.com* > > > > > > > > > > 2012/8/20 Todd Deshane <todd.deshane.excels...@gmail.com> > > > >> Hi All, > >> > >> I'm testing the examples from the O'Reilly book "RESTful Java with > >> JAX-RS" on TomEE Plus. The examples were written for Resteasy, but I'm > >> following the guidelines for converting to CXF. > >> > >> The error is: > >> > >> SEVERE: Error deploying web application archive > >> C:\tomee\webapps\workbook-ex03_1-1.0.war > >> java.lang.IllegalArgumentException: Class 'java.lang.Object' is not > >> annotated with Path > >> at > >> org.apache.cxf.jaxrs.impl.UriBuilderImpl.path(UriBuilderImpl.java:333) > >> > >> I tried on the released version of TomEE plus 1.0 and also the 1.1 > >> release snapshot from . Same error. > >> ( > >> > https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.1.0-SNAPSHOT/apache-tomee-1.1.0-20120819.041051-112-plus.zip > >> ) > >> > >> The specific example is here: > >> > >> > https://github.com/resteasy/Resteasy/tree/master/jaxrs/examples/oreilly-workbook/ex03_1 > >> > >> I've converted the pom.xml and web.xml as described in: > >> > >> http://www.jroller.com/gmazza/entry/jersey_samples_on_cxf > >> > >> Is this related to? > >> https://issues.apache.org/jira/browse/TOMEE-221 > >> > >> Any suggestions on things to try? > >> > >> Thanks, > >> Todd > >> >