Return-Path: X-Original-To: apmail-openejb-users-archive@www.apache.org Delivered-To: apmail-openejb-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6497DB9B for ; Tue, 21 Aug 2012 12:26:57 +0000 (UTC) Received: (qmail 98591 invoked by uid 500); 21 Aug 2012 12:26:57 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 98541 invoked by uid 500); 21 Aug 2012 12:26:57 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 98526 invoked by uid 99); 21 Aug 2012 12:26:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 12:26:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of todd.deshane.excelsior@gmail.com designates 209.85.214.196 as permitted sender) Received: from [209.85.214.196] (HELO mail-ob0-f196.google.com) (209.85.214.196) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 12:26:51 +0000 Received: by obhx4 with SMTP id x4so2172254obh.11 for ; Tue, 21 Aug 2012 05:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ALXGG214/R20X5hGgW8fxQnoPTBrhUBmwBCsm34AAKw=; b=yh37M/MnFM1gq6UbejOBeM0vApJd9BW40UuNlFFisec/Aq+MPWLNdr13dsPTFNZwK3 rnJuc4h8kfzQuPqrmO5/tCnnn3WEQ4OKfMGOqM4vvPbT0DdjOMisJJ5E/SmPYS0J1saU iHI8kqKCiyRRGrYnWrLlV/2EzaeZkCYp1KtIZcBwRl5sp2wRhVdziHx8a1xH0zCePIx/ FX4vVluolv2+lNCGZJOCczjroheAzF0HyFgUqphIhrDIBT7soQJzQIFyIdh1lsKEgpeH NUFdJ9WiY/Rz+vZctFGlr0uz4wy4/L3Q4ZPqPtPRWyRlVZUMxwR3Z9f8CUDqPqP9CMtS AqTw== MIME-Version: 1.0 Received: by 10.182.76.137 with SMTP id k9mr12660177obw.90.1345551990653; Tue, 21 Aug 2012 05:26:30 -0700 (PDT) Received: by 10.76.97.228 with HTTP; Tue, 21 Aug 2012 05:26:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Aug 2012 08:26:30 -0400 Message-ID: Subject: Re: IllegalArgumentException: Class 'java.lang.Object' is not annotated with Path From: Todd Deshane To: users@openejb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Yes, that seems to just about work. I get a 201 (created) on the POST, but I'm getting a 404 on the GET using the "Location" header directly from the return of the POST. I'm not sure how to debug this one. Any tricks? Thanks, Todd On Mon, Aug 20, 2012 at 12:14 PM, Romain Manni-Bucau wrote: > use the snapshot: > > a diff to help you: https://gist.github.com/3405424 > > (you'll probably need to add as repository and plugin repo the apache repo: > https://repository.apache.org/content/groups/snapshots/ ) > > *Romain Manni-Bucau* > *Twitter: @rmannibucau* > *Blog: http://rmannibucau.wordpress.com* > > > > > 2012/8/20 Todd Deshane > >> closer, new error: >> >> SEVERE: Error deploying web application archive >> C:\apache-tomee-plus-1.0.0\webapps\workbook-ex03_1-1.0.war >> java.lang.IllegalStateException: ContainerBase.addChild: start: >> org.apache.catalina.LifecycleException: Failed to start component >> >> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/workbook-ex03_1-1.0]] >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898) >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) >> at >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962) >> at >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) >> at >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) >> at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> at java.lang.Thread.run(Thread.java:662) >> >> On Mon, Aug 20, 2012 at 11:19 AM, Romain Manni-Bucau >> wrote: >> > 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: >> > >> > >> > org.apache.maven.plugins >> > maven-war-plugin >> > 2.2 >> > >> > false >> > >> > >> > >> > >> > 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 >> > >> >> 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> >> >> >> >> org.apache.cxf >> >> cxf-rt-frontend-jaxrs >> >> 2.5.2 >> >> >> >> >> >> junit >> >> junit >> >> 4.8.2 >> >> test >> >> >> >> >> >> >> >> 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 >> >> 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 >> >> > >> >> >> 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 >> >> >> >> >> >>