|
From: Christian <chr...@ta...> - 2010-01-08 02:51:35
|
Mof, Windows Services encounter some problems when dealing with mapped Networked drives. The source problem you were seeing, is actually at the time when you installed the service. When the wrapper is located also on a Network drive and you install the service from the mapped drive. the location from where you installed the service gets written into the Registry - in your case "P:\[..]\wrapper.exe" But this leads to the "cant find path"-error. The solution for this is to reinstall the wrapper using the UNC-path. \\server\share\[path to wrapper]\wrapper.exe -i ..\conf\wrapper.conf Doing so the wrapper service should be at least able to start up. The UNC pathes in the conf file, like John suggested, will solve further problems finding paths in your network after the service started. A service runs by default under the local System User. this account can not see your mapped network drives but use the unc paths. Hope this information helps you out. cheers, Christian On Thu, 2010-01-07 at 17:45 -0800, mof wrote: > Yes indeed P: is a mapped network drive. > But even UNC paths didn't work but it gave me the idea to move the whole > directory onto a local drive. > It worked perfectly after that. > > Thanks for your help. > Mof. > > On Thu, 07 Jan 2010 18:51:21 -0500, "John Lewis" <4dw...@sn...> > wrote: > > I bet P: is a mapped network drive. If so, try the UNC path (ie. > > \\hostname\SIPServer\lib\wrapper.jar). > > > > mof mof-at-labf.org |wrapper-user/Example Allow| wrote: > >> Hi guys, > >> > >> I'm having a problem where my application will run fine when I run it as > >> a > >> console app: > >> > >> wrapper -c ../conf/wrapper.conf > >> > >> but will fail when run as a service: > >> > >> wrapper -t ../conf/wrapper.conf > >> > >> Here are the relevant parts of the wrapper.conf: > >> > >> wrapper.java.command=java > >> wrapper.java.command.loglevel=INFO > >> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > >> wrapper.java.classpath.1=p:\SIPServer\lib\wrapper.jar > >> wrapper.java.classpath.2=p:\SIPServer\bin\SIPServer.jar > >> > >> wrapper.java.library.path.1=P:\SIPServer\lib\ > >> wrapper.java.additional.auto_bits=TRUE > >> > >> wrapper.app.parameter.1=org.labf.MobileSIPServer > >> > >> wrapper.debug=TRUE > >> wrapper.console.format=PM > >> wrapper.console.loglevel=INFO > >> wrapper.logfile=P:\SIPServer\logs\wrapper.log > >> wrapper.logfile.format=LPTM > >> wrapper.logfile.loglevel=INFO > >> wrapper.logfile.maxsize=0 > >> wrapper.logfile.maxfiles=0 > >> wrapper.syslog.loglevel=INFO > >> wrapper.ignore_sequence_gaps=TRUE > >> wrapper.console.title=SIPServer > >> wrapper.ntservice.name=SIPServer > >> wrapper.ntservice.displayname=SIP Server Integration Service > >> wrapper.ntservice.description=SIP Server Integration Service > >> wrapper.ntservice.dependency.1= > >> wrapper.ntservice.starttype=AUTO_START > >> wrapper.ntservice.interactive=false > >> > >> And the error from the logs is: > >> STATUS | wrapper | 2010/01/07 17:27:45 | Starting the SIP Server > >> Integration Service service... > >> ERROR | wrapper | 2010/01/07 17:27:45 | Unable to start the service - > >> The > >> system cannot find the path specified. (0x3) > >> > >> I've tried relative paths, and then full paths and they both failed with > >> the same error message. > >> Anyone have any idea what the problem could be? > >> > >> Thanks, > >> Mof. > >> > >> > ------------------------------------------------------------------------------ > >> This SF.Net email is sponsored by the Verizon Developer Community > >> Take advantage of Verizon's best-in-class app development support > >> A streamlined, 14 day to market process makes app distribution fast and > >> easy > >> Join now and get one step closer to millions of Verizon customers > >> http://p.sf.net/sfu/verizon-dev2dev > >> _______________________________________________ > >> Wrapper-user mailing list > >> Wra...@li... > >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > >> > > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and > > easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |