Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3765

Deployment of Nexus 2.0 war fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Awaiting Volunteers
    • 7.1.0.Final
    • Logging
    • None
    • Workaround Exists
    • Hide

      Get the web.xml configuration file from the WAR. Comment out the org.sonatype.nexus.web.LogConfigListener listener in the web.xml and re-add it to the WAR.

      Second workaround is to insert a jboss-deployment-structure.xml that excludes slf4j dependencies.

      <jboss-deployment-structure>
        <deployment>
          <!-- Exclusions allow you to prevent the server from automatically adding some dependencies     -->
          <exclusions>
              <module name="org.slf4j" />
              <module name="org.slf4j.impl" />
          </exclusions>
        </deployment>
      </jboss-deployment-structure>
      
      Show
      Get the web.xml configuration file from the WAR. Comment out the org.sonatype.nexus.web.LogConfigListener listener in the web.xml and re-add it to the WAR. Second workaround is to insert a jboss-deployment-structure.xml that excludes slf4j dependencies. <jboss-deployment-structure> <deployment> <!-- Exclusions allow you to prevent the server from automatically adding some dependencies --> <exclusions> <module name= "org.slf4j" /> <module name= "org.slf4j.impl" /> </exclusions> </deployment> </jboss-deployment-structure>

      Dropping the Nexus 2.0 war into upstream master AS7 results in a hang (.isdeploying marker file) and the log output

      14:22:06 /:@ INFO  JBAS015876: Starting deployment of "nexus-2.0.war"
      14:22:14 /:@ WARN  Class Path entry activation.jar in "/C:/Java/dev/AS7/build/target/jboss-as-7.1.0.Final-SNAPSHOT/bin/content/nexus-2.0.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:22:15 /:@ WARN  JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
      14:22:15 /:@ INFO  JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).
      14:22:16 /:@ INFO  Configuring Nexus in vanilla WAR...
      14:22:16 /:@ INFO  Setting Plexus basedir context variable to (discovered from Servlet container): C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF
      14:22:16 /:@ INFO  ===================================
      14:22:16 /:@ INFO  Application context "nexus" dump:
      14:22:16 /:@ INFO  "nexus-work"="C:\Users\karlsnic/sonatype-work/nexus" (raw: "${user.home}/sonatype-work/nexus", src: propsFile(C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF\plexus.properties, size:5))
      14:22:16 /:@ INFO  "runtime"="C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF" (raw: "${bundleBasedir}", src: propsFile(C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF\plexus.properties, size:5))
      14:22:16 /:@ INFO  "application-conf"="C:\Users\karlsnic/sonatype-work/nexus/conf" (raw: "${nexus-work}/conf", src: propsFile(C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF\plexus.properties, size:5))
      14:22:16 /:@ INFO  "nexus-app"="C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF" (raw: "${runtime}", src: propsFile(C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF\plexus.properties, size:5))
      14:22:16 /:@ INFO  "security-xml-file"="C:\Users\karlsnic/sonatype-work/nexus/conf/security.xml" (raw: "${nexus-work}/conf/security.xml", src: propsFile(C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF\plexus.properties, size:5))
      14:22:16 /:@ INFO  "bundleBasedir"="C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF" (raw: "C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF", src: static("bundleBasedir"="C:\Java\dev\AS7\build\target\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\vfs\temp1a9b1390bbbbec8d\nexus-2.0.war-87bcc73f67f0dfd8\WEB-INF"))
      14:22:16 /:@ INFO  Total of 6 entries.
      14:22:16 /:@ INFO  ===================================
      14:22:16 /:@ INFO  
      

              jperkins-rhn James Perkins
              nickarls Nicklas Karlsson (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: