Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-6852

0.10.x - ClassNotFoundException: JaxbAnnotationIntrospector on Sign In

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • unifiedpush-server-0.10.3.war on LiveOak dist

    • Hide
      curl -L http://dl.bintray.com/aerogear/AeroGear-UnifiedPush/org/jboss/aerogear/unifiedpush/unifiedpush-server/0.10.3/unifiedpush-server-0.10.3.war -o ~/Downloads/unifiedpush-server-0.10.3.war
      
      curl https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/0.10.x/databases/unifiedpush-h2-ds.xml -o ~/Downloads/unifiedpush-h2-ds.xml
      
      git clone git@github.com:liveoak-io/liveoak.git
      cd liveoak
      mvn clean install -DskipTests
      
      cp ~/Downloads/unifiedpush-server-0.10.3.war dist/target/liveoak/standalone/deployments/
      cp ~/Downloads/unifiedpush-h2-ds.xml dist/target/liveoak/standalone/deployments/
      
      dist/target/liveoak/bin/standalone.sh
      

      Go to http://localhost:8080/unifiedpush-server-0.10.3 and try to log in.

      Show
      curl -L http://dl.bintray.com/aerogear/AeroGear-UnifiedPush/org/jboss/aerogear/unifiedpush/unifiedpush-server/0.10.3/unifiedpush-server-0.10.3.war -o ~/Downloads/unifiedpush-server-0.10.3.war curl https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/0.10.x/databases/unifiedpush-h2-ds.xml -o ~/Downloads/unifiedpush-h2-ds.xml git clone git@github.com:liveoak-io/liveoak.git cd liveoak mvn clean install -DskipTests cp ~/Downloads/unifiedpush-server-0.10.3.war dist/target/liveoak/standalone/deployments/ cp ~/Downloads/unifiedpush-h2-ds.xml dist/target/liveoak/standalone/deployments/ dist/target/liveoak/bin/standalone.sh Go to http://localhost:8080/unifiedpush-server-0.10.3 and try to log in.
    • Hide

      The problem can be worked around by deploying .war in exploded form and copying jackson-xc.jar to its WEB-INF/lib:

      cp ~/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.12/jackson-xc-1.9.12.jar dist/target/liveoak/standalone/deployments/unifiedpush-server-0.10.3.war/WEB-INF/lib/
      
      Show
      The problem can be worked around by deploying .war in exploded form and copying jackson-xc.jar to its WEB-INF/lib: cp ~/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.12/jackson-xc-1.9.12.jar dist/target/liveoak/standalone/deployments/unifiedpush-server-0.10.3.war/WEB-INF/lib/

      Exception when signing in:

      15:32:51,195 ERROR [io.undertow.request] (default task-5) UT005023: Exception handling request to /unifiedpush-server-0.10.3/rest/auth/login: java.lang.NoClassDefFoundError: org/codehaus/jackson/xc/JaxbAnnotationIntrospector
      	at org.codehaus.jackson.jaxrs.MapperConfigurator._resolveIntrospector(MapperConfigurator.java:171) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.codehaus.jackson.jaxrs.MapperConfigurator._resolveIntrospectors(MapperConfigurator.java:146) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.codehaus.jackson.jaxrs.MapperConfigurator._setAnnotations(MapperConfigurator.java:133) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.codehaus.jackson.jaxrs.MapperConfigurator.getDefaultMapper(MapperConfigurator.java:70) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.codehaus.jackson.jaxrs.JacksonJsonProvider.locateMapper(JacksonJsonProvider.java:648) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:413) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider$Proxy$_$$_WeldClientProxy.readFrom(Unknown Source) [jackson-jaxrs-1.9.2.jar:1.9.2]
      	at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.readFrom(AbstractReaderInterceptorContext.java:59) [resteasy-jaxrs-3.0.8.Final.jar:]
      	at org.jboss.resteasy.core.interception.ServerReaderInterceptorContext.readFrom(ServerReaderInterceptorContext.java:62) [resteasy-jaxrs-3.0.8.Final.jar:]
      ...
      Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.xc.JaxbAnnotationIntrospector from [Module "deployment.unifiedpush-server-0.10.3.war:main" from Service Module Loader]
      

              mwessend@redhat.com Matthias Wessendorf
              marko.strukelj@gmail.com Marko Strukelj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: