I can't get Jetty8 etc/jetty-webapps.xml extractWars="false" to work -
i migrating application jetty 7 jetty 8 , not going well. battle @ etc/jetty-webapps.xml. prior migration, our configuration set value "false"
<configure id="server" class="org.eclipse.jetty.server.server"> <ref id="deploymentmanager"> <call id="webappprovider" name="addappprovider"> <arg> <new class="org.eclipse.jetty.deploy.providers.webappprovider"> <set name="monitoreddirname"><property name="jetty.home" default="." />/webapps</set> <set name="defaultsdescriptor"><property name="jetty.home" default="."/>/etc/webdefault.xml</set> <set name="scaninterval">1</set> <set name="contextxmldir"><property name="jetty.home" default="." />/contexts</set> <set name="extractwars">false</set> </new> </arg> </call> </ref>
when try bin/jetty.sh start value set "false" jetty spews exceptions like...
2013-04-08 17:33:03.380:info:oejd.deploymentmanager:deployable added: /users/bobk/work/workspace/dm_server/build/distributions/device-management-1.6.5-develop-dev/webapps/root.war 2013-04-08 17:33:04.526:warn:oejw.webappclassloader:exception java.lang.illegalargumentexception: !file: jar:file:/users/bobk/work/workspace/dm_server/build/distributions/device-management-1.6.5-develop-dev/webapps/root.war!/web-inf/lib/guava-14.0.1.jar @ org.eclipse.jetty.webapp.webappclassloader.addclasspath(webappclassloader.java:245) @ org.eclipse.jetty.webapp.webappclassloader.addjars(webappclassloader.java:282) blah...blah...blah...
...for each , every jar file in war's web-inf/lib directory. can jetty.sh start load webapp if change value of extractwars in etc/jetty-webapps.xml "false" "true". said, though, value has been "false" ever since jetty 6 , frustrating no longer works.
is "false" legitimate setting more? if is, else have set, unset, include in etc/ directory, jetty.conf, or start.ini file work?
any appreciated.
bob,
the bug tracker , doco jetty-7,8 , 9 found on @ eclipse, here: http://www.eclipse.org/jetty/
iirc, in jetty-6, despite having extractwar set false, under-the-covers jetty extracting , copying web-inf directory overcome issues under windows hot redeployment. if thought weren't extracting full war, @ least part of anyway.
with jetty-7,8,9 obey settings of extractwar, copywebinf, copywebdir precisely. default extract - each iteration of servlet spec has encouraged extraction there more more features work best on unpacked war.
jan
Comments
Post a Comment