Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
JBossAS-3.2.6 Final
-
None
Description
SourceForge Submitter: aubergine .
I think that this is a bug.
I built the 3.2.0RC4 and then build the tomcat41 bundle
I then deployed a localhost war with a jboss-web.xml:
<jboss-web>
<context-root>/</context-root>
<virtual-host>localhost</virtual-host>
</jboss-web>
and a web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
</welcome-file-list>
</web-app>
It worked fine when I browsed to http://localhost
I then deployed a localhost ear with the above web.xml
and a modified jboss-web.xml (ie no context-root tag).
The application.xml of the ear file is:
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application
1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>localhost</display-name>
<module>
<web-uri>localhost.war</web-uri>
<context-root>/</context-root>
</module>
</application>
If I browse to http://localhost I get a mapping error.
Looking at the log, I see that the original war
deployed with a StandardManager[], where as the Ear
deployed with a StandardManager[/localhost]
When I browse to http://localhost/localhost it works
----------------------
War deployment
13:22:27,099 INFO [MainDeployer] Starting deployment
of package:
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/deploy/localhost.war
13:22:28,416 INFO [EmbeddedCatalinaService41] deploy,
ctxPath=,
warUrl=file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/tmp/deploy/server/default/deploy/localhost.war/24.localhost.war
13:22:28,599 INFO [Engine] WebappLoader[]: Deploying
class repositories to work directory
/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/tomcat-4.1.x/work/MainEngine/localhost/_
13:22:30,407 INFO [Engine] ContextConfig[]: Added
certificates -> request attribute Valve
13:22:30,644 INFO [EmbeddedCatalinaService41] Using
Java2 parent classloader delegation: true
13:22:30,645 INFO [Engine] StandardManager[]: Seeding
random number generator class
java.security.SecureRandom
13:22:30,646 INFO [Engine] StandardManager[]: Seeding
of random number generator has been completed
13:22:30,649 INFO [Engine] StandardWrapper[:default]:
Loading container servlet default
13:22:30,651 INFO [Engine] StandardWrapper[:invoker]:
Loading container servlet invoker
13:22:30,720 INFO [MainDeployer] Deployed package:
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/deploy/localhost.war
---------------------------------------------
Ear deployment
14:02:40,868 INFO [MainDeployer] Starting deployment
of package:
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/deploy/localhost.ear
14:02:41,038 INFO [EARDeployer] Init J2EE application:
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/deploy/localhost.ear
14:02:41,255 INFO [EARDeployer] looking for nested
deployments in :
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/deploy/localhost.ear
14:02:41,264 INFO [EARDeployer] nested deployment:
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/tmp/deploy/server/default/deploy/localhost.ear/27.localhost.ear-contents/localhost.war
14:02:41,740 INFO [EmbeddedCatalinaService41] deploy,
ctxPath=/localhost,
warUrl=file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/tmp/deploy/server/default/deploy/localhost.ear/27.localhost.ear-contents/localhost.war
14:02:41,890 INFO [Engine] WebappLoader[/localhost]:
Deploying class repositories to work directory
/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/tomcat-4.1.x/work/MainEngine/localhost/localhost
14:02:43,752 INFO [Engine] ContextConfig[/localhost]:
Added certificates -> request attribute Valve
14:02:43,981 INFO [EmbeddedCatalinaService41] Using
Java2 parent classloader delegation: true
14:02:43,982 INFO [Engine]
StandardManager[/localhost]: Seeding random number
generator class java.security.SecureRandom
14:02:43,983 INFO [Engine]
StandardManager[/localhost]: Seeding of random number
generator has been completed
14:02:43,986 INFO [Engine]
StandardWrapper[/localhost:default]: Loading container
servlet default
14:02:43,987 INFO [Engine]
StandardWrapper[/localhost:invoker]: Loading container
servlet invoker
14:02:44,081 INFO [MainDeployer] Deployed package:
file:/export/home/nick/src/servers/jboss-3.2.0RC4-src/tomcat41/output/jboss-3.2.0RC4/server/default/deploy/localhost.ear
Enclosed is the localhost.ear file