[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Why would one environment deploy all of the war to /tmp but another environment deploy only the jar's from the war's WEB_INF?
|
Hi,
This involves old Jetty specifically Jetty 4.2.27. Hope you all don't
go running off when you see that. I think this actually may be more
generic than specific to version 4...
Trying to feel my way around here so please bear with me... I have
inherited an app, packaged as an ear file. It uses Jetty embedded in
JBoss. When I started the app in one JBoss environment, it only copies
part of the war file to /tmp so that /tmp/Jetty_0_0_0_0_8080__ ends up
with just 12 jars in /tmp/Jetty_0_0_0_0_8080__/lib/Jetty-nnnnn.jar (12
of these which are the jars from the war - --/WEB-INF/lib/xxx.jar -
although with the generic names Jetty-nnnnn.jar instead of the actual
names from the war file).
This is what's logged in deployment:
2010-09-07 16:17:30,906 INFO [org.jboss.ejb.EjbModule] Started
2010-09-07 16:17:30,906 INFO [org.jboss.ejb.EJBDeployer] Deployed:
file:/home/jboss/jboss-3.2.1/server/digiserver/tmp/deploy/server/digiserver/deploy/digiserver.ear/24.digiserver.ear-contents/digiserver.jar
2010-09-07 16:17:31,202 INFO [org.jboss.jbossweb] Registered
jboss.web:Server=0,JBossWebApplicationContext=0,context=/
2010-09-07 16:17:31,520 INFO [org.jboss.jbossweb] Started
WebApplicationContext[/,jar:file:/home/jboss/jboss-3.2.1/server/digiserver/tmp/deploy/server/digiserver/deploy/digiserver.ear/24.digiserver.ear-contents/digiserver.war!/]
When I start the app in the other JBoss environment (which I think is
the same bu apparently is not), I get the complete war contents copied
to /tmp so that I have something like the following in
/tmp/Jetty_0_0_0_0_8080__/webapp:
errors/ images/ index.html index.jsp js/ scripts/ style/ WEB-INF/
and this is what's logged in deployment:
2010-09-07 16:16:04,602 INFO [org.jboss.ejb.EjbModule] Started
2010-09-07 16:16:04,602 INFO [org.jboss.ejb.EJBDeployer] Deployed:
file:/home/jboss/jboss-3.2.1/server/digiserver/tmp/deploy/server/digiserver/deploy/digiserver.ear/24.digiserver.ear-contents/digiserver.jar
2010-09-07 16:16:05,028 INFO [org.jboss.jbossweb] Registered
jboss.web:Server=0,JBossWebApplicationContext=0,context=/
2010-09-07 16:16:05,047 INFO [org.jboss.jbossweb] Extract
jar:file:/home/jboss/jboss-3.2.1/server/digiserver/tmp/deploy/server/digiserver/deploy/digiserver.ear/24.digiserver.ear-contents/digiserver.war!/
to /tmp/Jetty_0_0_0_0_8080__/webapp
2010-09-07 16:16:05,505 INFO [org.jboss.jbossweb] Started
WebApplicationContext[/,jar:file:/home/jboss/jboss-3.2.1/server/digiserver/tmp/deploy/server/digiserver/deploy/digiserver.ear/24.digiserver.ear-contents/digiserver.war!/]
Note the extra log line "Extract
jar:file:/home/jboss/jboss-3.2.1/server/digiserver/tmp/deploy/server/digiserver/deploy/digiserver.ear/24.digiserver.ear-contents/digiserver.war!/
to /tmp/Jetty_0_0_0_0_8080__/webapp" which I don't see in the former
case.
The ear files are identical in each case.
Can anyone shed any light on why the tow cases might be deploying
their bits to /tmp differently? I'd like to get a grip on this to make
sure I'm building things correctly, as apparently the one JBoss
environment and the other don't seem to be the same.
Thanks in advance.
Chris