Bug 1160368 - Unable to deploy simple war with jsp
Summary: Unable to deploy simple war with jsp
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR10
: EAP 6.4.0
Assignee: Chao Wang
QA Contact: Michael Cada
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-04 15:50 UTC by Jan Blizňák
Modified: 2019-08-19 12:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:44:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
deployment with jsp mapping (994 bytes, application/zip)
2014-11-04 15:50 UTC, Jan Blizňák
no flags Details

Description Jan Blizňák 2014-11-04 15:50:25 UTC
Created attachment 953698 [details]
deployment with jsp mapping

On EAP 6.4.0.DR8 there is a regression in war deployment.

I have simple war containing static JSP file:

<html>
<body>
Hello
</body>
</html>


with web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  version="2.4">

  <servlet>
    <servlet-name>hello_jsp</servlet-name>
    <jsp-file>/hello.jsp</jsp-file>
  </servlet>

  <servlet-mapping>
    <servlet-name>hello_jsp</servlet-name>
    <url-pattern>/hello</url-pattern>
  </servlet-mapping>
</web-app>



How reproducible:
always

Steps to Reproduce:
1. start AS
2. deploy attached war

Actual results:
deployment fails with stacktrace:

16:49:06,843 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "jsp_mapping.war" (runtime-name: "jsp_mapping.war")
16:49:06,868 INFO  [org.jboss.web] (ServerService Thread Pool -- 12) JBAS018210: Register web context: /jsp_mapping
16:49:06,876 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 12) JBWEB001097: Error starting context /jsp_mapping: java.lang.NullPointerException
	at org.jboss.as.web.deployment.JBossContextConfig.lifecycleEvent(JBossContextConfig.java:231) [jboss-as-web-7.5.0.Final-redhat-10.jar:7.5.0.Final-redhat-10]
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115) [jbossweb-7.5.0.Beta4.jar:7.5.0.Beta4]
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3592) [jbossweb-7.5.0.Beta4.jar:7.5.0.Beta4]
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3802) [jbossweb-7.5.0.Beta4.jar:7.5.0.Beta4]
	at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-10.jar:7.5.0.Final-redhat-10]
	at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-10.jar:7.5.0.Final-redhat-10]
	at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-10.jar:7.5.0.Final-redhat-10]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_67]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
	at org.jboss.threads.JBossThread.run(JBossThread.java:122)

16:49:06,877 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 12) JBWEB001103: Error detected during context /jsp_mapping start, will stop it
16:49:06,878 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 12) MSC000001: Failed to start service jboss.web.deployment.default-host./jsp_mapping: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./jsp_mapping: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
	at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:99)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_67]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
	at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.2.Final.jar:2.1.2.Final]
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
	at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:168)
	at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61)
	at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
	... 6 more

16:49:06,880 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014612: Operation ("deploy") failed - address: ({"deployment" => "jsp_mapping.war"}) - failure description: {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./jsp_mapping" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./jsp_mapping: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
    Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}
16:49:06,880 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "jsp_mapping.war" was rolled back with the following failure message: 
{"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./jsp_mapping" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./jsp_mapping: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
    Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}
16:49:06,886 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment jsp_mapping.war (runtime-name: jsp_mapping.war) in 5ms
16:49:06,886 INFO  [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.deployment.unit."jsp_mapping.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.deployment.unit."jsp_mapping.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.deployment.unit."jsp_mapping.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.deployment.unit."jsp_mapping.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.deployment.unit."jsp_mapping.war".component."org.apache.catalina.servlets.DefaultServlet".START (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.deployment.unit."jsp_mapping.war".component."org.apache.jasper.servlet.JspServlet".START (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.web.deployment.default-host./jsp_mapping (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
      service jboss.web.deployment.default-host./jsp_mapping.realm (missing) dependents: [service jboss.deployment.unit."jsp_mapping.war".deploymentCompleteService] 
JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./jsp_mapping



Expected results:
deployment is successful

Comment 1 Kabir Khan 2014-11-05 09:01:07 UTC
https://github.com/jbossas/jboss-eap/pull/1877

Comment 2 Kabir Khan 2014-11-05 11:13:53 UTC
There are still TCK failures following merge of 1877. This will be reverted along with the work done for https://bugzilla.redhat.com/show_bug.cgi?id=952518 in
https://github.com/jbossas/jboss-eap/pull/1883

Comment 3 Kabir Khan 2014-11-05 13:50:15 UTC
Revert https://github.com/jbossas/jboss-eap/pull/1883 was merged, setting this back to assigned. Once https://bugzilla.redhat.com/show_bug.cgi?id=952518 is merged, it can perhaps be CLOSED.

Comment 5 Jean-frederic Clere 2014-11-11 13:20:36 UTC
Basically it was the fix of 952518 that causes the problem... We should close this one.

Comment 7 Radim Hatlapatka 2014-11-25 15:05:16 UTC
Verified with EAP 6.4.0.DR11


Note You need to log in before you can comment on or make changes to this bug.