[jetty-dev] [jira] (JETTY-1531) WebApp deployment fails with extractWAR == false

"Jonas (JIRA)" <[email protected]> Mon, 2 Jul 2012 09:02:21 -0500 (CDT)
Newsgroups gmane.comp.java.jetty.general
Message-ID <523013237.19372.1341237741146.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
Jonas
created JETTY-1531

WebApp deployment fails with extractWAR == false

Issue Type:

Bug

Affects Versions:

8.1.4, 7.6.4

Assignee:

Unassigned

Created:

02/Jul/12 9:00 AM

Description:

Deployment of WebApps with extractWAR == false seems to be broken in both 8.1.4 and 7.6.4, while it worked fine in 7.6.2.

The easiest way to reproduce this problem is to extract the distributions downloaded from http://download.eclipse.org/jetty/ .

Edit contexts/test.xml and set <Set name="extractWAR">false</Set> (Line 28).

On startup (using java -jar start.jar), you'll get the following stacktrace in the console (using 7.6.4). Startup if extractWAR == true works just fine.

2012-07-02 15:52:03.956:INFO:oejd.DeploymentManager:Deployable added: E:\Tmp\jet

ty-distribution-7.6.4.v20120524\contexts\test.xml

2012-07-02 15:52:04.097:WARN:oejw.WebAppClassLoader:EXCEPTION

java.lang.IllegalArgumentException: !file: jar: file:/E:/Tmp/jetty-distribution-7

.6.4.v20120524/webapps/test.war!/WEB-INF/lib/jetty-util-7.6.4.v20120524.jar

at org.eclipse.jetty.webapp.WebAppClassLoader.addClassPath(WebAppClassLo

ader.java:239)

at org.eclipse.jetty.webapp.WebAppClassLoader.addJars(WebAppClassLoader.

java:276)

at org.eclipse.jetty.webapp.WebInfConfiguration.configure(WebInfConfigur

ation.java:146)

at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:4

42)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav

a:1230)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle

r.java:676)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:468

)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife

Cycle.java:59)

at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan

dardStarter.java:36)

at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1

83)

at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM

anager.java:491)

at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j

ava:138)

at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan

ningAppProvider.java:142)

at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc

anningAppProvider.java:53)

at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)

at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)

at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)

at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife

Cycle.java:59)

at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni

ngAppProvider.java:118)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife

Cycle.java:59)

at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen

tManager.java:552)

at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.

java:227)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife

Cycle.java:59)

at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate

LifeCycle.java:63)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand

ler.java:53)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe

r.java:91)

at org.eclipse.jetty.server.Server.doStart(Server.java:260)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife

Cycle.java:59)

at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12

15)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:113

8)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)

at org.eclipse.jetty.start.Main.start(Main.java:605)

at org.eclipse.jetty.start.Main.main(Main.java:82)

Fix Versions:

7.6.5, 8.1.5

Project:

Jetty

Priority:

Major

Reporter:

Jonas

This message is automatically generated by JIRA.

If you think it was sent incorrectly, please contact your JIRA administrators .

For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email