Quantcast

Service Wrapper and Jetty 9 on Windows 32 bit

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Service Wrapper and Jetty 9 on Windows 32 bit

Dragan Sahpaski
Hi all,
I'm having troubles starting the service wrapper with Jetty9 on windows 32 bit.
I've tried with both WrapperSimpleApp and WrapperJarApp and they both fail with a reason which I cant really understand, while the configs for WrapperSimpleApp and WrapperJarApp respectively work perfectly using Jetty8. 

I'm sending the 2 config files and error logs. Please help if you have any suggestion.


With WrapperSimpleApp I'm getting 

wrapper.conf
set.JETTY_HOME=C:\Users\sahpaski\Desktop\jetty-service\jetty
set.JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp    
wrapper.java.classpath.1=%JETTY_HOME%/lib/wrapper.jar
wrapper.java.classpath.2=%JETTY_HOME%/start.jar
wrapper.java.library.path.1=%JETTY_HOME%/lib    
wrapper.java.additional.1=-Djetty.home=%JETTY_HOME%
wrapper.app.parameter.1=org.eclipse.jetty.start.Main
wrapper.logfile=../logs/wrapper.log

wrapper.log
STATUS | wrapper  | 2014/05/07 15:47:12 | Launching a JVM...
INFO   | jvm 1    | 2014/05/07 15:47:12 | WrapperManager: Initializing...
INFO   | jvm 1    | 2014/05/07 15:47:12 | WARNING: Nothing to start, exiting ...
INFO   | jvm 1    | 2014/05/07 15:47:12 | 
INFO   | jvm 1    | 2014/05/07 15:47:12 | Usage: java -jar start.jar [options] [properties] [configs]
INFO   | jvm 1    | 2014/05/07 15:47:12 |        java -jar start.jar --help  # for more information
STATUS | wrapper  | 2014/05/07 15:47:14 | <-- Wrapper Stopped



With WrapperJarApp I'm getting

wrapper.conf
set.JETTY_HOME=C:\Users\sahpaski\Desktop\jetty-service\jetty
set.JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp    
wrapper.java.classpath.1=%JETTY_HOME%/lib/wrapper.jar
wrapper.java.library.path.1=%JETTY_HOME%/lib    
wrapper.java.additional.1=-Djetty.home=%JETTY_HOME%
wrapper.app.parameter.1=../start.jar
wrapper.logfile=../logs/wrapper.log

wrapper.log
STATUS | wrapper  | 2014/05/07 15:55:19 | --> Wrapper Started as Console
STATUS | wrapper  | 2014/05/07 15:55:19 | Java Service Wrapper Community Edition 32-bit 3.5.24
STATUS | wrapper  | 2014/05/07 15:55:19 |   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2014/05/07 15:55:19 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2014/05/07 15:55:19 | 
STATUS | wrapper  | 2014/05/07 15:55:19 | Launching a JVM...
INFO   | jvm 1    | 2014/05/07 15:55:20 | WrapperManager: Initializing...
INFO   | jvm 1    | 2014/05/07 15:55:20 | java.lang.IllegalArgumentException: URI is not hierarchical
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.io.File.<init>(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.BaseHome.<init>(BaseHome.java:62)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.Main.<init>(Main.java:137)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.Main.main(Main.java:101)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.tanukisoftware.wrapper.WrapperJarApp.run(WrapperJarApp.java:394)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 | 
INFO   | jvm 1    | 2014/05/07 15:55:20 | Usage: java -jar start.jar [options] [properties] [configs]
INFO   | jvm 1    | 2014/05/07 15:55:20 |        java -jar start.jar --help  # for more information


Cheers,
Dragan Sahpaski

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Service Wrapper and Jetty 9 on Windows 32 bit

Alexandre Klein
Dragan,

With WrapperJarApp, can you add this property in wrapper.conf:
wrapper.java.classpath.2=%JETTY_HOME%/start.jar

And can you try this way as well:
wrapper.java.classpath.2=../start.jar

Please let me know the result.

Regards,
Alexandre Klein




Alexandre Klein
Tanuki Software, Ltd.


On Wed, May 7, 2014 at 11:44 PM, Dragan Sahpaski <[hidden email]> wrote:
Hi all,
I'm having troubles starting the service wrapper with Jetty9 on windows 32 bit.
I've tried with both WrapperSimpleApp and WrapperJarApp and they both fail with a reason which I cant really understand, while the configs for WrapperSimpleApp and WrapperJarApp respectively work perfectly using Jetty8. 

I'm sending the 2 config files and error logs. Please help if you have any suggestion.


With WrapperSimpleApp I'm getting 

wrapper.conf
set.JETTY_HOME=C:\Users\sahpaski\Desktop\jetty-service\jetty
set.JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp    
wrapper.java.classpath.1=%JETTY_HOME%/lib/wrapper.jar
wrapper.java.classpath.2=%JETTY_HOME%/start.jar
wrapper.java.library.path.1=%JETTY_HOME%/lib    
wrapper.java.additional.1=-Djetty.home=%JETTY_HOME%
wrapper.app.parameter.1=org.eclipse.jetty.start.Main
wrapper.logfile=../logs/wrapper.log

wrapper.log
STATUS | wrapper  | 2014/05/07 15:47:12 | Launching a JVM...
INFO   | jvm 1    | 2014/05/07 15:47:12 | WrapperManager: Initializing...
INFO   | jvm 1    | 2014/05/07 15:47:12 | WARNING: Nothing to start, exiting ...
INFO   | jvm 1    | 2014/05/07 15:47:12 | 
INFO   | jvm 1    | 2014/05/07 15:47:12 | Usage: java -jar start.jar [options] [properties] [configs]
INFO   | jvm 1    | 2014/05/07 15:47:12 |        java -jar start.jar --help  # for more information
STATUS | wrapper  | 2014/05/07 15:47:14 | <-- Wrapper Stopped



With WrapperJarApp I'm getting

wrapper.conf
set.JETTY_HOME=C:\Users\sahpaski\Desktop\jetty-service\jetty
set.JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp    
wrapper.java.classpath.1=%JETTY_HOME%/lib/wrapper.jar
wrapper.java.library.path.1=%JETTY_HOME%/lib    
wrapper.java.additional.1=-Djetty.home=%JETTY_HOME%
wrapper.app.parameter.1=../start.jar
wrapper.logfile=../logs/wrapper.log

wrapper.log
STATUS | wrapper  | 2014/05/07 15:55:19 | --> Wrapper Started as Console
STATUS | wrapper  | 2014/05/07 15:55:19 | Java Service Wrapper Community Edition 32-bit 3.5.24
STATUS | wrapper  | 2014/05/07 15:55:19 |   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2014/05/07 15:55:19 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2014/05/07 15:55:19 | 
STATUS | wrapper  | 2014/05/07 15:55:19 | Launching a JVM...
INFO   | jvm 1    | 2014/05/07 15:55:20 | WrapperManager: Initializing...
INFO   | jvm 1    | 2014/05/07 15:55:20 | java.lang.IllegalArgumentException: URI is not hierarchical
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.io.File.<init>(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.BaseHome.<init>(BaseHome.java:62)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.Main.<init>(Main.java:137)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.Main.main(Main.java:101)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.tanukisoftware.wrapper.WrapperJarApp.run(WrapperJarApp.java:394)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 | 
INFO   | jvm 1    | 2014/05/07 15:55:20 | Usage: java -jar start.jar [options] [properties] [configs]
INFO   | jvm 1    | 2014/05/07 15:55:20 |        java -jar start.jar --help  # for more information


Cheers,
Dragan Sahpaski

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user



------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Service Wrapper and Jetty 9 on Windows 32 bit

Dragan Sahpaski


On Thu, May 8, 2014 at 5:13 AM, Alexandre Klein <[hidden email]> wrote:
Dragan,

With WrapperJarApp, can you add this property in wrapper.conf:
wrapper.java.classpath.2=%JETTY_HOME%/start.jar

And can you try this way as well:
wrapper.java.classpath.2=../start.jar

​Hey they both worked. Wow thanks.
But I don't understand what seems to be the problem if start.jar is not declared as part of the classpath. Shouldn't the WrapperJarApp ​put it on the classpath as the jar is the app argument i.e. the executable jar? Also in the examples of configuring Hudson the hudson.war is not explicitly declared as part of the classpath.


 


Please let me know the result.

Regards,
Alexandre Klein




Alexandre Klein
Tanuki Software, Ltd.


On Wed, May 7, 2014 at 11:44 PM, Dragan Sahpaski <[hidden email]> wrote:
Hi all,
I'm having troubles starting the service wrapper with Jetty9 on windows 32 bit.
I've tried with both WrapperSimpleApp and WrapperJarApp and they both fail with a reason which I cant really understand, while the configs for WrapperSimpleApp and WrapperJarApp respectively work perfectly using Jetty8. 

I'm sending the 2 config files and error logs. Please help if you have any suggestion.


With WrapperSimpleApp I'm getting 

wrapper.conf
set.JETTY_HOME=C:\Users\sahpaski\Desktop\jetty-service\jetty
set.JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp    
wrapper.java.classpath.1=%JETTY_HOME%/lib/wrapper.jar
wrapper.java.classpath.2=%JETTY_HOME%/start.jar
wrapper.java.library.path.1=%JETTY_HOME%/lib    
wrapper.java.additional.1=-Djetty.home=%JETTY_HOME%
wrapper.app.parameter.1=org.eclipse.jetty.start.Main
wrapper.logfile=../logs/wrapper.log

wrapper.log
STATUS | wrapper  | 2014/05/07 15:47:12 | Launching a JVM...
INFO   | jvm 1    | 2014/05/07 15:47:12 | WrapperManager: Initializing...
INFO   | jvm 1    | 2014/05/07 15:47:12 | WARNING: Nothing to start, exiting ...
INFO   | jvm 1    | 2014/05/07 15:47:12 | 
INFO   | jvm 1    | 2014/05/07 15:47:12 | Usage: java -jar start.jar [options] [properties] [configs]
INFO   | jvm 1    | 2014/05/07 15:47:12 |        java -jar start.jar --help  # for more information
STATUS | wrapper  | 2014/05/07 15:47:14 | <-- Wrapper Stopped



With WrapperJarApp I'm getting

wrapper.conf
set.JETTY_HOME=C:\Users\sahpaski\Desktop\jetty-service\jetty
set.JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp    
wrapper.java.classpath.1=%JETTY_HOME%/lib/wrapper.jar
wrapper.java.library.path.1=%JETTY_HOME%/lib    
wrapper.java.additional.1=-Djetty.home=%JETTY_HOME%
wrapper.app.parameter.1=../start.jar
wrapper.logfile=../logs/wrapper.log

wrapper.log
STATUS | wrapper  | 2014/05/07 15:55:19 | --> Wrapper Started as Console
STATUS | wrapper  | 2014/05/07 15:55:19 | Java Service Wrapper Community Edition 32-bit 3.5.24
STATUS | wrapper  | 2014/05/07 15:55:19 |   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2014/05/07 15:55:19 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2014/05/07 15:55:19 | 
STATUS | wrapper  | 2014/05/07 15:55:19 | Launching a JVM...
INFO   | jvm 1    | 2014/05/07 15:55:20 | WrapperManager: Initializing...
INFO   | jvm 1    | 2014/05/07 15:55:20 | java.lang.IllegalArgumentException: URI is not hierarchical
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.io.File.<init>(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.BaseHome.<init>(BaseHome.java:62)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.Main.<init>(Main.java:137)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.eclipse.jetty.start.Main.main(Main.java:101)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at org.tanukisoftware.wrapper.WrapperJarApp.run(WrapperJarApp.java:394)
INFO   | jvm 1    | 2014/05/07 15:55:20 |  at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2014/05/07 15:55:20 | 
INFO   | jvm 1    | 2014/05/07 15:55:20 | Usage: java -jar start.jar [options] [properties] [configs]
INFO   | jvm 1    | 2014/05/07 15:55:20 |        java -jar start.jar --help  # for more information


Cheers,
Dragan Sahpaski

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user



------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user



------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user
Loading...