|
From: Leif M. <le...@ta...> - 2007-05-15 22:26:38
|
Peter,
Your classpath elements all use absolute directory references and
are to a local drive so I do not see anything obvious that would be
causing any of your classes not to be found.
One possibility is a file permission restriction on the directory. It
may be that the account you are running as does not have the ability
to see those files.
Try setting wrapper.debug=true and then rerunning your
application. Seeing that output might help me to give you some
advice.
Also, the wrapper supports wildcards in its classpath definitions.
Your classpath can be reduced to the following:
wrapper.java.classpath.1=c:\Evergreen Service\lib\*.jar
wrapper.java.classpath.2=c:\Evergreen Service\classes
In the debug output you will see a line containing the full generated
command used to launch Java. Check to make sure that all of the
required jar files are listed in that classpath. It will have the above
wildcard expanded, but should only include files that will be visible to
Java.
Cheers,
Leif
Peter Choe wrote:
>
> I am trying to get Java wrapper service running as a NT service. I am
> able to do it when I run the service as the local system account. But
> when I try to run it as a different user on the system, I get a
> ClassNotFoundException. I tried to setting the CLASSPATH system
> variable but that didn't work.
>
> I can't tell where the classpath is set when I run the service as a
> different user.
>
> Anyone have a suggestion on where I can set the classpath.
>
> #COPY OF MY wrapper.conf file
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application
> wrapper.java.command=c:\j2sdk1.4.2_08\bin\java
>
> # 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=c:\Evergreen Service\lib\wrapper.jar
> wrapper.java.classpath.2=c:\Evergreen Service\classes
> wrapper.java.classpath.3=c:\Evergreen Service\lib\commons-fileupload.jar
> wrapper.java.classpath.4=c:\Evergreen Service\lib\commons-io.jar
> wrapper.java.classpath.5=c:\Evergreen Service\lib\commons-logging.jar
> wrapper.java.classpath.6=c:\Evergreen Service\lib\jdom.jar
> wrapper.java.classpath.7=c:\Evergreen Service\lib\msi_core.jar
> wrapper.java.classpath.8=c:\Evergreen Service\lib\msi_ecm.jar
> wrapper.java.classpath.9=c:\Evergreen Service\lib\msi_fs.jar
> wrapper.java.classpath.10=c:\Evergreen Service\lib\msi_loader.jar
> wrapper.java.classpath.11=c:\Evergreen Service\lib\msi_utils.jar
> wrapper.java.classpath.12=c:\Evergreen Service\lib\msi_wsmp.jar
> wrapper.java.classpath.13=c:\Evergreen Service\lib\msi_wsmpweb.jar
> wrapper.java.classpath.14=c:\Evergreen Service\lib\quartz.jar
> wrapper.java.classpath.15=c:\Evergreen Service\lib\wom.jar
> wrapper.java.classpath.16=c:\Evergreen Service\lib\worksitemp.jar
> wrapper.java.classpath.17=c:\Evergreen Service\lib\worksitemp-auth.jar
> wrapper.java.classpath.18=c:\Evergreen Service\lib\castor.jar
> wrapper.java.classpath.19=c:\Evergreen Service\lib\commons-lang.jar
> wrapper.java.classpath.20=c:\Evergreen Service\lib\xercesImpl.jar
> wrapper.java.classpath.21=c:\Evergreen Service\lib\log4j.jar
> wrapper.java.classpath.22=c:\Evergreen Service\lib\xml-apis.jar
> wrapper.java.classpath.23=c:\Evergreen Service\lib\bcprov-jdk14-119.jar
> wrapper.java.classpath.24=c:\Evergreen Service\lib\j2ee.jar
> wrapper.java.classpath.25=c:\Evergreen
> Service\lib\commons-collections-3.2.jar
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=c:\Evergreen Service\lib
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
>
> # Maximum Java Heap Size (in MB)
> #wrapper.java.maxmemory=64
>
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1=com.microstrat.wsmp.cpg.ap.evergreen.EvergreenBatchScheduler
>
> #wrapper.app.parameter.2=test
>
> #********************************************************************
> # 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=5000k
>
> # 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=5
>
> # Log Level for sys\event log output. (See docs for log levels)
> wrapper.syslog.loglevel=NONE
>
> wra...@ap...@
>
> # Name of the service
> wrapper.ntservice.name=Evergreen Check
>
> # Display name of the service
> wrapper.ntservice.displayname=Evergreen Check
>
> # Description of the service
> wrapper.ntservice.description=Evergreen Check Processing
>
> # 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
>
|