|
From: David H. <da...@sm...> - 2006-05-16 16:45:39
|
I always thought that when you have a windows service, the user the service runs as was the system account. If this is the case, then it will likely be the lack of network permissions associated with your machines system account and the network file share. Try posting your log file as well, and we should all be able to get a better understanding of what is going on. Many thanks, David Hayes _____ From: wra...@li... [mailto:wra...@li...] On Behalf Of Parker, Gary Sent: 15 May 2006 09:25 To: wra...@li... Subject: [Wrapper-user] Wrapper console vs service problems Hi Everyone, I'm running snipsnap (http://snipsnap.org/space/start) and placing the posted content on a network drive and wanted to make this a Windows service for availability. I'm using integration Method1 (WrapperSimpleApp) In service mode I get the following in the browser: http://myserver:myport/space HTTP ERROR: 404 %2Fspace+Not+Found RequestURI=/space Powered by Jetty:// <http://jetty.mortbay.org> In console mode everything works fine, and everything works fine on the local file system both in console mode and in service mode. I can't use UNC syntax because SnipSnap seems unhappy with this, so have a mapped drive whic is active at the time of these observations. I'm not running the service under the system account, and am using the same account for both the service mode and console mode. I've also tried setting debug on, and working directory with no appreciable effect. Any ideas? Here's my wrapper.conf: #******************************************************************** # Wrapper Properties #******************************************************************** # Java Application wrapper.java.command=%JAVA_HOME%\bin\java wrapper.working.dir=C:\snipsnap\snipsnap-1.0b3-uttoxeter wrapper.debug=TRUE # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=lib/wrapper.jar wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar wrapper.java.classpath.3=lib/snipsnap.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=lib # Java Additional Parameters #wrapper.java.additional.1=-Dprogram.name=run.bat # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=128 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=org.snipsnap.server.SnipSnapLauncher #wrapper.app.parameter.2=-root "//myfileshareserver/Share/Technology/DCMTS/Documentation/Projects/Next/Next SnipSnapWiki/content" #wrapper.app.parameter.2=-root "c:\snipsnap\content" wrapper.app.parameter.2=-root "S:\Technology\DCMTS\Documentation\Projects\Next\NextSnipSnapWiki\content" #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=INFO # Log file to use for wrapper output logging. wrapper.logfile=logs/wrapper.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=INFO # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=0 # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=0 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE #******************************************************************** # Wrapper Windows Properties #******************************************************************** # Title to use when running as a console wrapper.console.title=Next SnipSnap Wiki #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.ntservice.name=Next SnipSnap Wiki # Display name of the service wrapper.ntservice.displayname=Next SnipSnap Wiki # Description of the service wrapper.ntservice.description=Next SnipSnap Wiki # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START or DEMAND_START wrapper.ntservice.starttype=AUTO_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false Parkie This e-mail, its content and any files transmitted with it are intended solely for the addressee(s) and may be legally privileged and/or confidential. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message and any attachments which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for information purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. |