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

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Sun Sep 4 19:10:26 EDT 2011


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

Stuart Douglas resolved AS7-1046.
---------------------------------

         Assignee: Stuart Douglas  (was: Alessio Soldano)
    Fix Version/s: 7.0.1.Final
                       (was: 7.1.0.Beta1)
       Resolution: Done


This was fixed as part of AS7-1429

> 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 Services
>         Environment: Windows XP, JDK 1.6, AS7 upstream
>            Reporter: Nathan Kopp
>            Assignee: Stuart Douglas
>             Fix For: 7.0.1.Final
>
>         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