Looks like an issue with the snapshot. 4.5.0 works fine.

On Tue, Oct 16, 2012 at 10:56 AM, Todd Deshane
<[email protected]> wrote:
> Yes.
>
> See:
> https://github.com/deshantm/rest-testing/blob/master/ex03_1/src/main/java/com/restfully/shop/services/CustomerResource.java
>
> On Tue, Oct 16, 2012 at 10:52 AM, Romain Manni-Bucau
> <[email protected]> wrote:
>> at least the exception says the error
>>
>> does you class have a @Path annotation?
>>
>> *Romain Manni-Bucau*
>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> *Blog: 
>> **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> *Github: https://github.com/rmannibucau*
>>
>>
>>
>>
>> 2012/10/16 Todd Deshane <[email protected]>
>>
>>> The 4.5.1-SNAPSHOT builds the app, but there is still a deployment error:
>>>
>>> (This example worked fine before)
>>>
>>> INFO: Deployed
>>> Application(path=C:\development\apache-tomee-jaxrs-1.5.0\webapps\workbook-ex03_1-1.0)
>>> Oct 16, 2012 10:39:58 AM org.apache.openejb.observer.ObserverManager
>>> fireEvent
>>> SEVERE: error invoking
>>> org.apache.openejb.observer.ObserverManager$Observer@3cf4921b
>>> java.lang.reflect.InvocationTargetException
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>         at
>>> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
>>>         at
>>> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
>>>         at
>>> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:105)
>>>         at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1108)
>>>         at
>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
>>>         at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>         at
>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>         at
>>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>>>         at
>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
>>>         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:618)
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
>>>         at
>>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
>>>         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)
>>> Caused by: java.lang.IllegalArgumentException: no @Path annotation on
>>> com.restfully.shop.services.CustomerResource
>>>         at
>>> org.apache.openejb.server.rest.RESTService.getAddress(RESTService.java:459)
>>>         at
>>> org.apache.openejb.server.rest.RESTService.deployPojo(RESTService.java:368)
>>>         at
>>> org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:237)
>>>         at
>>> org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:51)
>>>         ... 24 more
>>>
>>> On Tue, Oct 16, 2012 at 10:33 AM, Romain Manni-Bucau
>>> <[email protected]> wrote:
>>> > maybe try 4.5.1-SNAPSHOT or 4.5.0
>>> >
>>> > *Romain Manni-Bucau*
>>> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>> > *Blog: **http://rmannibucau.wordpress.com/*<
>>> http://rmannibucau.wordpress.com/>
>>> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>> > *Github: https://github.com/rmannibucau*
>>> >
>>> >
>>> >
>>> >
>>> > 2012/10/16 Todd Deshane <[email protected]>
>>> >
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-cxf-rs/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-cxf-rs/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1004 B at 2.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/server/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/server/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (605 B at 2.6 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (606 B at 3.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-http/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-http/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1002 B at 4.9 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-core/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-core/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1002 B at 4.8 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/container/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/container/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (608 B at 3.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/mbean-annotation-api/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/mbean-annotation-api/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1010 B at 5.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/deps/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/deps/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (603 B at 2.8 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-jpa-integration/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-jpa-integration/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1013 B at 5.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-api/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-api/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1001 B at 5.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-loader/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-loader/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1004 B at 5.0 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-javaagent/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-javaagent/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1007 B at 4.9 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-jee/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-jee/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1001 B at 4.9 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-impl/1.1.6-SNAPSHOT/maven-metadata.xml
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-impl/1.1.6-SNAPSHOT/openwebbeans-impl-1.1.6-SNAPSHOT.pom
>>> >> [WARNING] The POM for
>>> >> org.apache.openwebbeans:openwebbeans-impl:jar:1.1.6-SNAPSHOT is
>>> >> missing, no dependency information available
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-spi/1.1.6-SNAPSHOT/maven-metadata.xml
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-spi/1.1.6-SNAPSHOT/openwebbeans-spi-1.1.6-SNAPSHOT.pom
>>> >> [WARNING] The POM for
>>> >> org.apache.openwebbeans:openwebbeans-spi:jar:1.1.6-SNAPSHOT is
>>> >> missing, no dependency information available
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ejb/1.1.6-SNAPSHOT/maven-metadata.xml
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ejb/1.1.6-SNAPSHOT/openwebbeans-ejb-1.1.6-SNAPSHOT.pom
>>> >> [WARNING] The POM for
>>> >> org.apache.openwebbeans:openwebbeans-ejb:jar:1.1.6-SNAPSHOT is
>>> >> missing, no dependency information available
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ee/1.1.6-SNAPSHOT/maven-metadata.xml
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ee/1.1.6-SNAPSHOT/openwebbeans-ee-1.1.6-SNAPSHOT.pom
>>> >> [WARNING] The POM for
>>> >> org.apache.openwebbeans:openwebbeans-ee:jar:1.1.6-SNAPSHOT is missing,
>>> >> no dependency information available
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ee-common/1.1.6-SNAPSHOT/maven-metadata.xml
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ee-common/1.1.6-SNAPSHOT/openwebbeans-ee-common-1.1.6-SNAPSHOT.pom
>>> >> [WARNING] The POM for
>>> >> org.apache.openwebbeans:openwebbeans-ee-common:jar:1.1.6-SNAPSHOT is
>>> >> missing, no dependency information available
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-web/1.1.6-SNAPSHOT/maven-metadata.xml
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-web/1.1.6-SNAPSHOT/openwebbeans-web-1.1.6-SNAPSHOT.pom
>>> >> [WARNING] The POM for
>>> >> org.apache.openwebbeans:openwebbeans-web:jar:1.1.6-SNAPSHOT is
>>> >> missing, no dependency information available
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-server/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-server/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1004 B at 4.8 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-client/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-client/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1004 B at 4.8 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-ejbd/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-ejbd/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1002 B at 4.8 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-rest/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-rest/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1002 B at 4.3 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-cxf-transport/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> Downloaded:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-cxf-transport/4.1.0-SNAPSHOT/maven-metadata.xml
>>> >> (1011 B at 4.5 KB/sec)
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-impl/1.1.6-SNAPSHOT/openwebbeans-impl-1.1.6-SNAPSHOT.jar
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-spi/1.1.6-SNAPSHOT/openwebbeans-spi-1.1.6-SNAPSHOT.jar
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ejb/1.1.6-SNAPSHOT/openwebbeans-ejb-1.1.6-SNAPSHOT.jar
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ee/1.1.6-SNAPSHOT/openwebbeans-ee-1.1.6-SNAPSHOT.jar
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-ee-common/1.1.6-SNAPSHOT/openwebbeans-ee-common-1.1.6-SNAPSHOT.jar
>>> >> Downloading:
>>> >>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/openwebbeans/openwebbeans-web/1.1.6-SNAPSHOT/openwebbeans-web-1.1.6-SNAPSHOT.jar
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] BUILD FAILURE
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] Total time: 15.120s
>>> >> [INFO] Finished at: Tue Oct 16 10:27:37 EDT 2012
>>> >> [INFO] Final Memory: 7M/121M
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [ERROR] Failed to execute goal on project workbook-ex03_1: Could not
>>> >> resolve dependencies for project
>>> >> com.oreilly.rest.workbook:workbook-ex03_1:war:1.0: The following
>>> >> artifacts could not be resolved:
>>> >> org.apache.openwebbeans:openwebbeans-impl:jar:1.1.6-SNAPSHOT,
>>> >> org.apache.openwebbeans:openwebbeans-spi:jar:1.1.6-SNAPSHOT,
>>> >> org.apache.openwebbeans:openwebbeans-ejb:jar:1.1.6-SNAPSHOT,
>>> >> org.apache.openwebbeans:openwebbeans-ee:jar:1.1.6-SNAPSHOT,
>>> >> org.apache.openwebbeans:openwebbeans-ee-common:jar:1.1.6-SNAPSHOT,
>>> >> org.apache.openwebbeans:openwebbeans-web:jar:1.1.6-SNAPSHOT: Could not
>>> >> find artifact
>>> org.apache.openwebbeans:openwebbeans-impl:jar:1.1.6-SNAPSHOT
>>> >> in apacheSnapshots
>>> >> (http://repository.apache.org/content/groups/snapshots/) -> [Help 1]
>>> >> [ERROR]
>>> >> [ERROR] To see the full stack trace of the errors, re-run Maven with
>>> >> the -e switch.
>>> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> >> [ERROR]
>>> >> [ERROR] For more information about the errors and possible solutions,
>>> >> please read the following articles:
>>> >> [ERROR] [Help 1]
>>> >>
>>> >>
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> >>
>>> >>
>>> >> On Tue, Oct 16, 2012 at 10:13 AM, Romain Manni-Bucau
>>> >> <[email protected]> wrote:
>>> >> > which dependencies are missing?
>>> >> >
>>> >> > you use snapshot deps i think you miss the apache snapshot repo
>>> >> >
>>> >> > *Romain Manni-Bucau*
>>> >> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>> >> > *Blog: **http://rmannibucau.wordpress.com/*<
>>> >> http://rmannibucau.wordpress.com/>
>>> >> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>> >> > *Github: https://github.com/rmannibucau*
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > 2012/10/16 Todd Deshane <[email protected]>
>>> >> >
>>> >> >> I have an example that worked on TomEE plus pre 1.0 and I'm trying to
>>> >> >> update it to work on TomEE JAX-RS 1.5
>>> >> >>
>>> >> >> https://github.com/deshantm/rest-testing/blob/master/ex03_1/
>>> >> >>
>>> >> >> I'm also tried the openejb example:
>>> >> >>
>>> >> >> http://openejb.apache.org/examples-trunk/rest-example/README.html
>>> >> >>
>>> >> >> Both give missing dependencies. Is there a good model pom.xml that I
>>> >> >> can follow that has the proper dependencies for TomEE JAX-RS 1.5?
>>> >> >>
>>> >> >> Thanks,
>>> >> >> Todd
>>> >> >>
>>> >>
>>>

Reply via email to