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 <[email protected]> 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 <[email protected]> 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
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>
>
>
> --
> Jan Bartel <[email protected]>
> <http://www.webtide.com>www.webtide.com
> *Expert assistance from the creators of Jetty and CometD*
>
>
>
> _______________________________________________
> jetty-users mailing [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visithttps://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
--
Jan Bartel <[email protected]>
www.webtide.com
*Expert assistance from the creators of Jetty and CometD*
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users