|
From: Nathan W. <wr...@de...> - 2007-11-05 21:39:31
|
If possible, I suggest you test with your network-drive content copied locally. I've had problems in the past with services and mapped drives under windows, it would be a useful debugging step to eliminate this as your problem before looking elsewhere. Even running the service as a user that has the drives mapped on login will generally not work. There are a lot of discussions about this problem elsewhere online. Nathan On 11/5/07, Gesly George <ges...@gm...> wrote: > > Hi, > > My Java app (Jar1.MainClass) calls Rumtime.exec() to execute another java > app (jar2.MainClass). This works when I run the app from the command line > (hence I would assume my Rumtime.exec() is working properly). It > successfully execs the new process. > > But when I wrap the app (inside the java service wrapper, the app ( > jar1.MainClass) starts up fine, but the Rumtime.exec() fails. My app gets > a NoClassDefFoundError on the call to the Runtime.exec() - Its not able to > find the main class of the process that my App is trying to exec(). What > intrigues me if how does wrapping my app in a service differ from running > the app from the command line. The service is not failing since it runs my > app ( jar1.MainClass), but somehow it fails on the exec. > > I have tried the following: > - Since my path includes a network drive, I thought the problem might be > related to security - so I run the service as a permissioned user instead of > the default system user. > - Since this could be a classpath problem I added the jar to wrapper's > classpath in the conf file. > > I searched the website, but could not find something that would help me > solve the problem. It would be great if any of you have a suggestion for > this. > > Thanks > Gesly > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- Nathan Wray nw...@de... -- |