|
From: Leif M. <le...@ta...> - 2006-05-17 02:33:59
|
Gary,
As David mentioned, the system account does not have access to
network drives. But
it sounds like you are using another account. Is that the same account
as you are logged
in as?
I had a problem a couple years ago where a customer's 2000 machine
would not start
my service correctly after a reboot because the service was referencing
mapped network
drives. If I start the service after the machine was up, it would work
fine. But on restart,
the network drives would sometimes not be available at the time the
wrapper service was
started. They would then never become available to that particular
service. The solution
was to use UNC paths to reference the network drives. But it doesn't
sound like that is
and option for you.
Cheers,
Leif
Parker, Gary wrote:
>
> 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/NextSnipSnapWiki/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
>
>
|