Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9.3.x Hot Deployment on external drive fails

Jan,

did so with a little pretty printing look like this:
/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/bin/java
    -Djava.io.tmpdir=/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/
    -Djetty.home=/Volumes/CRBS/test-server-1
    -Djetty.base=/Volumes/CRBS/test-server-1
    -cp /Volumes/CRBS/test-server-1/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar
        :/Volumes/CRBS/test-server-1/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.23.M1.jar
        :/Volumes/CRBS/test-server-1/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.23.M1.jar
        :/Volumes/CRBS/test-server-1/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar
        :/Volumes/CRBS/test-server-1/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar
        :/Volumes/CRBS/test-server-1/resources:/Volumes/CRBS/test-server-1/lib/servlet-api-3.1.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-schemas-3.1.jar:/Volumes/CRBS/test-server-1/lib/jetty-http-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-server-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-xml-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-util-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-io-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-jndi-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar
        :/Volumes/CRBS/test-server-1/lib/jndi/javax.transaction-api-1.2.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-security-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-servlet-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-webapp-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-deploy-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-plus-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/jetty-annotations-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/annotations/asm-5.0.1.jar
        :/Volumes/CRBS/test-server-1/lib/annotations/asm-commons-5.0.1.jar
        :/Volumes/CRBS/test-server-1/lib/annotations/javax.annotation-api-1.2.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/javax.websocket-api-1.0.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/javax-websocket-client-impl-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/javax-websocket-server-impl-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/websocket-api-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/websocket-client-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/websocket-common-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/websocket-server-9.3.3.v20150827.jar
        :/Volumes/CRBS/test-server-1/lib/websocket/websocket-servlet-9.3.3.v20150827.jar
    org.eclipse.jetty.xml.XmlConfiguration
    java.version=1.8.0_66
    java.version.major=1
    java.version.minor=8
    java.version.revision=0
    java.version.update=66
    /Volumes/CRBS/test-server-1/etc/home-base-warning.xml
    /Volumes/CRBS/test-server-1/etc/jetty.xml /Volumes/CRBS/test-server-1/etc/jetty-http.xml
    /Volumes/CRBS/test-server-1/etc/jetty-deploy.xml
    /Volumes/CRBS/test-server-1/etc/jetty-plus.xml
    /Volumes/CRBS/test-server-1/etc/jetty-annotations.xml

Regards,
Erik


On 26/10/15 07:04, Jan Bartel wrote:
Erik,

Something bizarre is happening. Somehow, the servlet-api jar that is inside your webapp is being considered as being on the container classpath after a redeploy!

1st deploy here:

2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///Volumes/CRBS/test-server-1/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar in 128ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///Volumes/CRBS/test-server-1/lib/servlet-api-3.1.jar in 95ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/classes/ in 49ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/commons-codec-1.6.jar in 125ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/gson-2.2.2.jar in 144ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/h2-1.4.188.jar in 333ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/hamcrest-core-1.3.jar in 78ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/javax.servlet-api-3.1.0.jar in 26ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/javax.ws.rs-api-2.0-m10.jar in 28ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/junit-4.12.jar in 167ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/olingo-odata2-api-2.0.4.jar in 151ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/olingo-odata2-core-2.0.4.jar in 181ms
2015-10-26 06:15:47.751:DBUG:oeja.AnnotationConfiguration:main: Scanned 2 container path jars, 9 WEB-INF/lib jars, 1 WEB-INF/classes dirs in 336ms for context o.e.j.w.WebAppContext@6d8a00e3{/JUnitRM,file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/,STARTING}{/JUnitRM.war}


then on the redeploy:

2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-1985591512874713986.dir/webapp/WEB-INF/lib/javax.servlet-api-3.1.0.jar in 0ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///Volumes/CRBS/test-server-1/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar in 64ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///Volumes/CRBS/test-server-1/lib/servlet-api-3.1.jar in 48ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/classes/ in 19ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/commons-codec-1.6.jar in 70ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/gson-2.2.2.jar in 70ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/h2-1.4.188.jar in 234ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/hamcrest-core-1.3.jar in 31ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/javax.servlet-api-3.1.0.jar in 20ms
2015-10-26 06:16:21.745:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/javax.ws.rs-api-2.0-m10.jar in 19ms
2015-10-26 06:16:21.746:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/junit-4.12.jar in 136ms
2015-10-26 06:16:21.746:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/olingo-odata2-api-2.0.4.jar in 119ms
2015-10-26 06:16:21.746:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/WEB-INF/lib/olingo-odata2-core-2.0.4.jar in 140ms
2015-10-26 06:16:21.746:DBUG:oeja.AnnotationConfiguration:Scanner-0: Scanned 3 container path jars, 9 WEB-INF/lib jars, 1 WEB-INF/classes dirs in 236ms for context o.e.j.w.WebAppContext@72ffc175{/JUnitRM,file:///private/var/folders/sj/jyk9h8792tzfgdy2by2p72yr0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7607105486472461234.dir/webapp/,STARTING}{/JUnitRM.war}


At the moment I can't even imagine how that could possibly happen.

Can you do java -jar start.jar --dry-run to print out what the command line is?

Jan



On 26 October 2015 at 16:30, Erik Dick <deved@xxxxxxxxxx> wrote:
Hi Jan,

looks like it is reproducable again.

What I did.
  • cd'ed to jetty installation directory
  • tweaked the bin/jetty.sh to carry the debug property
  • cd webapps
  • ../bin/jetty.sh start
  • checked the index page: localhost:8080/JUnitRM -> working fine
  • touch JUnitRM.xml
  • checked the index page again -> HTTP ERROR: 503 ... Service unavailable
  • ../bin/jetty.sh stop

Please find attached the log file, the corresponding context file and the conf. Rest of the Jetty setup is out of the shelf.
Havn't tried to reproduce on 9.3.5. but have seen it there as well.

Best regard,
Erik


On 19/10/15 09:35, Jan Bartel wrote:
Erik,

Can you post a log with debug turned on (use -Dorg.eclipse.jetty.LEVEL=DEBUG to turn on debugging) please?

Also include the contex xml file (if there is one) and any changed config files.

thanks
Jan

On 19 October 2015 at 15:12, Erik Dick <deved@xxxxxxxxxx> wrote:
I have a jetty standalone installation on a external drive which is connected to my mac book pro (or my mac pro), via firewire. When I try to trigger a hot deployment via 'touch <war>.xml' I run into the following exception:

2015-10-19 05:58:59.170:INFO:oejs.Server:main: jetty-9.3.3.v20150827
2015-10-19 05:58:59.187:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///Volumes/CRBS/test-server/webapps/] at interval 1
2015-10-19 05:58:59.734:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@724af044{/JUnitRM,file:///private/var/folders/n_/6pdgm8s93m38nzvbwtw8m8ww0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-855703027366426152.dir/webapp/,AVAILABLE}{/JUnitRM.war}
2015-10-19 05:58:59.739:INFO:oejsh.ContextHandler:main: Started o.e.j.s.h.ContextHandler@32cf48b7{/jslearn,file:///Volumes/CRBS/test-server/webapps/jslearn/,AVAILABLE}
2015-10-19 05:58:59.753:INFO:oejs.ServerConnector:main: Started ServerConnector@25ad35e8{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2015-10-19 05:58:59.753:INFO:oejs.Server:main: Started @1145ms
2015-10-19 06:00:29.931:INFO:oejsh.ContextHandler:Scanner-0: Stopped o.e.j.w.WebAppContext@724af044{/JUnitRM,null,UNAVAILABLE}{/JUnitRM.war}
2015-10-19 06:00:30.108:WARN:oejw.WebAppContext:Scanner-0: Failed startup of context o.e.j.w.WebAppContext@5c786d3c{/JUnitRM,file:///private/var/folders/n_/6pdgm8s93m38nzvbwtw8m8ww0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-7642976926383851049.dir/webapp/,STARTING}{/JUnitRM.war}
java.nio.file.NoSuchFileException: /private/var/folders/n_/6pdgm8s93m38nzvbwtw8m8ww0000gn/T/jetty-0.0.0.0-8080-JUnitRM.war-_JUnitRM-any-855703027366426152.dir/webapp/WEB-INF/lib/javax.servlet-api-3.1.0.jar
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
    at java.nio.file.Files.newByteChannel(Files.java:361)
    at java.nio.file.Files.newByteChannel(Files.java:407)
    at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
    at java.nio.file.Files.newInputStream(Files.java:152)
    at org.eclipse.jetty.util.resource.PathResource.getInputStream(PathResource.java:331)
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:907)
    at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:842)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:545)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
    at java.lang.Thread.run(Thread.java:745)

Afterwards the application can no longer be reached; 'HTTP ERROR: 503'; service unavailable'

This does not happen if I move the same installation over to the main drive of the mac book and apply same procedure.
(Mac OS 10.10; Jvm 1.8.0_60).

Not sure if that would be a bug at Jetty or on JVM level.

Regards, Erik
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
Expert assistance from the creators of Jetty and CometD



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
Expert assistance from the creators of Jetty and CometD



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top