<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: nexus.war (V1.9.2.3) doesn't work on JBoss AS 7
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/saltnlight5">Zemian Deng</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/717764#717764">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I still have same problem with latest nexus-2.0.war on latest AS 7.1.0 deployment. What's worse is that once I deployed with error, the AS server will hang and can not be shutdown. I understand that there coule problem with Nexus war file, but shouldn't AS handle error more gracefully that in any deployment error condition, it should at least let user to issue proper shutdown right?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Zemian@Zemian-PC /c/apps/jboss-as-7.1.0.Final</p><p>$ bin/standalone.bat</p><p>Calling "C:\apps\jboss-as-7.1.0.Final\bin\standalone.conf.bat"</p><p>===============================================================================</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; JBoss Bootstrap Environment</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; JBOSS_HOME: C:\apps\jboss-as-7.1.0.Final</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; JAVA: C:\apps\jdk1.7.0\bin\java</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>===============================================================================</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>09:04:05,885 INFO&#160; [org.jboss.modules] JBoss Modules version 1.1.1.GA</p><p>09:04:06,025 INFO&#160; [org.jboss.msc] JBoss MSC version 1.0.2.GA</p><p>09:04:06,056 INFO&#160; [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting</p><p>09:04:06,774 INFO&#160; [org.xnio] XNIO Version 3.0.3.GA</p><p>09:04:06,774 INFO&#160; [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)</p><p>09:04:06,790 INFO&#160; [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA</p><p>09:04:06,790 INFO&#160; [org.jboss.remoting] JBoss Remoting version 3.2.2.GA</p><p>09:04:06,805 INFO&#160; [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers</p><p>09:04:06,805 INFO&#160; [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem</p><p>09:04:06,836 INFO&#160; [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)</p><p>09:04:06,836 INFO&#160; [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.</p><p>09:04:06,883 INFO&#160; [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem</p><p>09:04:06,914 INFO&#160; [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem</p><p>09:04:06,961 INFO&#160; [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem</p><p>09:04:07,086 INFO&#160; [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension</p><p>09:04:07,102 INFO&#160; [org.jboss.as.connector] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)</p><p>09:04:07,117 INFO&#160; [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.6.final</p><p>09:04:07,117 INFO&#160; [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service</p><p>09:04:07,226 INFO&#160; [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]</p><p>09:04:07,382 INFO&#160; [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.1.GA</p><p>09:04:07,554 INFO&#160; [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment nexus-2.0.war</p><p>09:04:07,554 INFO&#160; [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory C:\apps\jboss-as-7.1.0.Final\standalone\deployments</p><p>09:04:07,570 INFO&#160; [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999</p><p>09:04:07,570 INFO&#160; [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:4447</p><p>09:04:07,663 INFO&#160; [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080</p><p>09:04:07,710 INFO&#160; [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]</p><p>09:04:07,710 INFO&#160; [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 2028ms - Started 134 of 205 services (70 services are passive or on-demand)</p><p>09:04:07,726 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "nexus-2.0.war"</p><p>09:04:10,378 WARN&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry activation.jar in "/C:/apps/jboss-as-7.1.0.Final/content/nexus-2.0.war/WEB-INF/lib/mail-1.4.jar"&#160; does not point to a valid jar for a Class-Path reference.</p><p>09:04:10,424 WARN&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'</p><p>09:04:10,440 INFO&#160; [org.jboss.as.pojo] (MSC service thread 1-3) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).</p><p>09:04:10,643 INFO&#160; [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/nexus-2.0]] (MSC service thread 1-3) Configuring Nexus in vanilla WAR...</p><p>09:04:10,658 INFO&#160; [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/nexus-2.0]] (MSC service thread 1-3) Setting Plexus basedir context variable to (discovered from Servlet container): C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) ===================================</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) Application context "nexus" dump:</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) "nexus-work"="C:\Users\Zemian/sonatype-work/nexus" (raw: "${user.home}/sonatype-work/nexus", src: propsFile(C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF\plexus.properties, size:5))</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) "runtime"="C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF" (raw: "${bundleBasedir}", src: propsFile(C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF\plexus.properties, size:5))</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) "application-conf"="C:\Users\Zemian/sonatype-work/nexus/conf" (raw: "${nexus-work}/conf", src: propsFile(C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF\plexus.properties, size:5))</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) "nexus-app"="C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF" (raw: "${runtime}", src: propsFile(C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF\plexus.properties, size:5))</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) "security-xml-file"="C:\Users\Zemian/sonatype-work/nexus/conf/security.xml" (raw: "${nexus-work}/conf/security.xml", src: propsFile(C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF\plexus.properties, size:5))</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) "bundleBasedir"="C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF" (raw: "C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF", src: static("bundleBasedir"="C:\apps\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempaad46067ebef183f\nexus-2.0.war-52dedfdd79861db1\WEB-INF"))</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) Total of 6 entries.</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3) ===================================</p><p>09:04:10,674 INFO&#160; [stdout] (MSC service thread 1-3)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Exception: java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread "MSC service thread 1-3"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Exception: java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread "MSC service thread 1-4"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I hit CTRL+C, I get these and the server will hang.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>09:04:46,055 INFO&#160; [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers</p><p>09:04:46,055 INFO&#160; [org.apache.catalina.core.StandardContext] Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started</p><p>09:04:46,070 INFO&#160; [org.apache.coyote.http11.Http11Protocol] Pausing Coyote HTTP/1.1 on http--127.0.0.1-8080</p><p>09:04:46,055 WARN&#160; [org.jboss.remoting.remote] JBREM000205: Failed to accept a connection: java.nio.channels.ClosedChannelException</p><p>09:04:46,070 INFO&#160; [org.apache.coyote.http11.Http11Protocol] Stopping Coyote HTTP/1.1 on http--127.0.0.1-8080</p><p>09:05:07,583 INFO&#160; [org.jboss.as.server] JBAS015870: Deploy of deployment "nexus-2.0.war" was rolled back with failure message Operation cancelled</p><p>09:05:07,755 ERROR [org.jboss.as.server.deployment.scanner] JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [60 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/717764#717764">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>