[seam-issues] [JBoss JIRA] (SEAMREST-51) rest-client example broken

Jozef Hartinger (Created) (JIRA) jira-events at lists.jboss.org
Thu Oct 6 10:12:16 EDT 2011


rest-client example broken
--------------------------

                 Key: SEAMREST-51
                 URL: https://issues.jboss.org/browse/SEAMREST-51
             Project: Seam REST
          Issue Type: Bug
          Components: Examples
    Affects Versions: 3.1.0.Beta3
            Reporter: Jozef Hartinger
            Assignee: Jozef Hartinger
            Priority: Critical
             Fix For: 3.1.0.CR1


mvn clean install -Drun

Also, update the readme file.

{noformat}
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java (run) on project seam-rest-example-client: An exception occured while executing the Java class. null: InvocationTargetException: Exception List with 1 exceptions:
[ERROR] Exception 0 :
[ERROR] javax.enterprise.event.ObserverException
[ERROR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[ERROR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[ERROR] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[ERROR] at java.lang.Class.newInstance0(Class.java:355)
[ERROR] at java.lang.Class.newInstance(Class.java:308)
[ERROR] at org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:395)
[ERROR] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
[ERROR] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:216)
[ERROR] at org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:390)
[ERROR] at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
[ERROR] at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:92)
[ERROR] at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:214)
[ERROR] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
[ERROR] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
[ERROR] at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
[ERROR] at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)
[ERROR] at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:52)
[ERROR] at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:48)
[ERROR] at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:351)
[ERROR] at org.jboss.weld.environment.se.Weld.initialize(Weld.java:91)
[ERROR] at org.jboss.weld.environment.se.StartMain.go(StartMain.java:46)
[ERROR] at org.jboss.weld.environment.se.StartMain.main(StartMain.java:59)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
[ERROR] at java.lang.Thread.run(Thread.java:662)
[ERROR] Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/ext/Providers
[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[ERROR] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[ERROR] at java.lang.Class.forName0(Native Method)
[ERROR] at java.lang.Class.forName(Class.java:247)
[ERROR] at org.jboss.solder.reflection.Reflections.classForName(Reflections.java:323)
[ERROR] at org.jboss.seam.rest.util.Utils.isClassAvailable(Utils.java:14)
[ERROR] at org.jboss.seam.rest.client.RestClientExtension.registerExtension(RestClientExtension.java:40)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
[ERROR] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
[ERROR] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
[ERROR] at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
[ERROR] at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
[ERROR] at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
[ERROR] at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
[ERROR] ... 16 more
[ERROR] Caused by: java.lang.ClassNotFoundException: javax.ws.rs.ext.Providers
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[ERROR] ... 43 more
[ERROR] -> [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/MojoExecutionException
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list