There are some tests that excercise bad war deployment that are failing inconsistently.
Two are:
http://jira.jboss.com/jira/browse/JBAS-4085
http://jira.jboss.com/jira/browse/JBAS-4031
In the example I looked at, jbossweb is claiming a given webapp is not available even
though the server log indicates otherwise:
| The test.log shows that jbossweb claims that no such webapp exists:
|
| 2007-02-08 08:12:06,843 DEBUG [org.jboss.test.util.web.HttpUtils] RequestURI:
http://localhost:8080/redeploy/index.html
| 2007-02-08 08:12:06,843 DEBUG [org.apache.commons.httpclient.HttpConnection] Open
connection to localhost:8080
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "GET
/redeploy/index.html HTTP/1.1[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding
Host request header
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "User-Agent:
Jakarta Commons-HttpClient/3.0[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "Host:
localhost:8080[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "HTTP/1.1 503
This application is not currently available[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Server:
Apache-Coyote/1.1[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Content-Type:
text/html[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] <<
"Transfer-Encoding: chunked[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Date: Thu, 08
Feb 2007 16:12:06 GMT[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Connection:
close[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [org.apache.commons.httpclient.HttpConnection] Input
data available
| 2007-02-08 08:12:06,843 DEBUG [org.jboss.test.util.web.HttpUtils] responseCode=503,
response=This application is not currently available
|
|
| Even though the server.log indicates it was started:
| 2007-02-08 08:12:06,750 DEBUG [org.jboss.system.ServiceController] starting service
jboss.web.deployment:war=good-web.war,id=627826940
| 2007-02-08 08:12:06,750 DEBUG [org.jboss.web.WebModule] Starting
jboss.web.deployment:war=good-web.war,id=627826940
| 2007-02-08 08:12:06,750 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer]
webContext: /redeploy
| ...
| 2007-02-08 08:12:06,828 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer]
Initialized: {WebApplication:
/C:/svn/JBossAS/Branch_4_2/build/output/jboss-4.2.0.CR1/server/jacc/tmp/deploy/tmp44326jbosstest-good.ear-contents/good-web-exp.war/,
URL:
file:/C:/svn/JBossAS/Branch_4_2/build/output/jboss-4.2.0.CR1/server/jacc/tmp/deploy/tmp44326jbosstest-good.ear-contents/good-web-exp.war/,
classLoader: java.net.FactoryURLClassLoader@248f34:2395956}
jboss.web:j2eeType=WebModule,name=//localhost/redeploy,J2EEApplication=none,J2EEServer=none
| 2007-02-08 08:12:06,828 DEBUG [org.jboss.web.WebModule] Started
jboss.web.deployment:war=good-web.war,id=627826940
| 2007-02-08 08:12:06,828 DEBUG [org.jboss.system.ServiceController] Starting dependent
components for: jboss.web.deployment:war=good-web.war,id=627826940 dependent components:
[]
| 2007-02-08 08:12:06,843 DEBUG [org.jboss.deployment.MainDeployer] End deployment start
on package: good-web.war
|
There is no NPE in the log as Brian saw in another issue. I have had the failing test
switch from testBadWarRedeploy to testBadEarRedeploy to no failure.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013113#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...