[jboss-jira] [JBoss JIRA] Updated: (AS7-1046) AS7 gives NPE when jboss-web.xml is missing from WAR

Nathan Kopp (JIRA) jira-events at lists.jboss.org
Fri Jun 17 13:01:23 EDT 2011


     [ https://issues.jboss.org/browse/AS7-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Kopp updated AS7-1046:
-----------------------------

    Attachment: jaxws-test.war


> AS7 gives NPE when jboss-web.xml is missing from WAR
> ----------------------------------------------------
>
>                 Key: AS7-1046
>                 URL: https://issues.jboss.org/browse/AS7-1046
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web
>    Affects Versions: Open To Community
>         Environment: Windows XP, JDK 1.6
>            Reporter: Nathan Kopp
>         Attachments: jaxws-test.war
>
>
> I'm trying to deploy a simple WAR (nearly empty, with a single JAX-WS web service) using a fairly recent snapshot of JBoss AS7.  If I do not include jboss-web.xml in the WEB-INF folder, I get the following NPE when deploying to standalone\deployment
>  
> 12:17:25,356 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."jaxws-test.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jaxws-test.war".INSTALL: Failed to process phase INSTALL of deployment "jaxws-test.war"
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_10]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_10]
>         at java.lang.Thread.run(Thread.java:619) [:1.6.0_10]
> Caused by: java.lang.NullPointerException
>         at org.jboss.as.webservices.util.WebMetaDataHelper.getServlets(WebMetaDataHelper.java:130)
>         at org.jboss.as.webservices.tomcat.WebMetaDataCreator.createServlets(WebMetaDataCreator.java:173)
>         at org.jboss.as.webservices.tomcat.WebMetaDataCreator.createWebAppDescriptor(WebMetaDataCreator.java:109)
>         at org.jboss.as.webservices.tomcat.WebMetaDataCreator.create(WebMetaDataCreator.java:93)
>         at org.jboss.as.webservices.tomcat.WebMetaDataCreatingDeploymentAspect.start(WebMetaDataCreatingDeploymentAspect.java:48)
>         at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.internalDeploy(AspectDeploymentProcessor.java:78)
>         at org.jboss.as.webservices.deployers.TCCLDeploymentProcessor.deploy(TCCLDeploymentProcessor.java:42)
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
>         ... 4 more
> When I add a very simple jboss-web.xml file (containing only the context-root tag), the deployment succeeds.
> Attached is the WAR file.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list