|
From: Thorsten L. <kar...@ya...> - 2007-10-08 10:07:58
|
Yes, I tried setting=0A=0Awrapper.java.library.path.append_system_path=3Dtr= ue=0A=0Abut that only seems to append the system path when the wrapper star= ts (I guess) - the JVM started by the wrapper does not, unfortunately, inhe= rit the system PATH value.. Find below the non-commented lines from my wrap= per.conf:=0A=0A=0Awrapper.java.command=3Djava=0A=0Awrapper.java.mainclass= =3Dorg.tanukisoftware.wrapper.WrapperSimpleApp=0A=0Awrapper.java.classpath.= 1=3D../lib/*.jar=0Awrapper.java.classpath.2=3D%CLASSPATH%=0A=0Awrapper.java= .library.path.1=3D../lib=0A=0Awrapper.java.additional.1=3D=0A=0Awrapper.jav= a.initmemory=3D64=0A=0Awrapper.java.maxmemory=3D1024=0A=0Awrapper.app.param= eter.1=3Dcom.eads.df.service.execution.backend.management.RemoteConsole=0Aw= rapper.app.parameter.2=3D-c ../conf/config.xml=0Awrapper.app.parameter.3=3D= -l ../conf/logging.conf=0A=0A#*********************************************= ***********************=0A# Wrapper Logging Properties=0A#*****************= ***************************************************=0Awrapper.console.logle= vel=3DINFO=0A=0Awrapper.logfile=3D../logs/wrapper.log=0A=0Awrapper.logfile.= format=3DLPTM=0A=0Awrapper.logfile.loglevel=3DINFO=0A=0Awrapper.logfile.max= size=3D5m=0A=0Awrapper.logfile.maxfiles=3D5=0A=0Awrapper.syslog.loglevel=3D= NONE=0A=0A#****************************************************************= ****=0A# Wrapper Windows Properties=0A#************************************= ********************************=0Awrapper.console.title=3DDataFarmingExecu= tionBackend=0A=0A#*********************************************************= ***********=0A# Wrapper Windows NT/2000/XP Service Properties=0A#**********= **********************************************************=0Awrapper.ntserv= ice.name=3DExecutionBackend=0A=0Awrapper.ntservice.displayname=3DExecutionB= ackend=0A=0Awrapper.ntservice.description=3DExecution Backend=0A=0Awrapper.= ntservice.dependency.1=3DCondor=0Awrapper.ntservice.dependency.2=3DMySQL=0A= =0Awrapper.ntservice.starttype=3DAUTO_START=0A=0Awrapper.ntservice.interact= ive=3Dfalse=0A=0Awrapper.ntservice.account=3D.\Administrator=0Awrapper.ntse= rvice.password.prompt=3DTRUE=0A=0A=0A=0AAny ideas are still warmly welcome!= Thank you,=0A=0A=0AThorsten=0A=0A=0A=0A----- Urspr=FCngliche Mail ----=0AV= on: Hubert Felber <Hub...@ab...>=0AAn: wra...@li...= forge.net=0AGesendet: Freitag, den 5. Oktober 2007, 13:04:03 Uhr=0ABetreff:= Re: [Wrapper-user] Confusion about Windows PATH variable=0A=0ADid you try:= =0A=0Awrapper.java.library.path.append_system_path=3Dtrue=0A=0Ain the confi= g file?=0A=0Ahth=0A=0Ahub=0A=0A>>> Thorsten Lampe <kar...@ya...= > 05.10.2007 12:59 >>>=0AI installed a service using a local account (namel= y Administrator for testing purposes) and have experienced that afterwards = calling=0A=0ASystem.getEnv().get("PATH")=0A(or a system call "set %PATH%" f= rom within my Java application)=0A=0Areturns only the PATH variable exactly= as defined in the Administrator's variables - whereas I would have expecte= d the standard Windows behavior of appending Administrator's PATH to the sy= stem PATH.=0ACan anyone tell me why this happens when using the service wra= pper? Or is this the default Windows behavior when starting any service usi= ng a local user account?=0A=0AThe problem resulting for my app is that it m= akes an external system call to a batch file of a third-party product which= , in turn, expects java.exe to be on the PATH. Now when I start my Java app= lication manually everything runs fine (since "C:\Windows\system32" is on t= he (global system) PATH and JRE copies its java.exe there) but using the se= rvice wrapper it fails because the batch file started from within my Java a= pp cannot locate java.exe on the PATH (which is now cut down to the Adminis= trator user PATH).=0A=0AWhile I could, of course, include the java home dir= to the user PATH or modify the batch file telling it where to find java, I= would not really want to do this since it implies yet another adjustment t= o make on any system where my application will be installed.=0A=0AAny help = is appreciated.=0A=0A=0AThorsten=0A=0A=0A=0A=0A=0A Die etwas anderen I= nfos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/cle= ver=0A=0A=0A---------------------------------------------------------------= ----------=0AThis SF.net email is sponsored by: Splunk Inc.=0AStill greppin= g through log files to find problems? Stop.=0ANow Search log events and co= nfiguration files using AJAX and a browser.=0ADownload your FREE copy of Sp= lunk now >> http://get.splunk.com/=0A______________________________________= _________=0AWrapper-user mailing lis...@li...= =0Ahttps://lists.sourceforge.net/lists/listinfo/wrapper-user=0A=0A=0A=0A=0A= =0A=0A=0A Wissenswertes zum Thema PC, Zubeh=F6r oder Programme. BE A B= ETTER INTERNET-GURU! www.yahoo.de/clever |