|
From: Leif M. <le...@ta...> - 2007-05-16 21:55:06
|
Peter, Great, glad you got it working. What was the exact permission problem that you had? There have been several users over the years who have had problems like this. I would like to find a way to make the Wrapper report a more helpful message describing the problem. > The only think I 'error' is the Loading native library for > wrapper-windows-x86-32. This is actually OK. It tries to load the native library using two different names. I need to change the debug output as it causes confusion. Cheers, Leif Peter Choe wrote: > It was a permission problem of the user not being able to get access to > the folder. > > Thanks for the help. Really appreciate it. > > > > > Peter Choe > Application Developer > > Micro Strategies Inc. > People | Passion | Technology > > 104 Broadway > Denville, NJ 07834 > Voice: (973) 625-7721 ext. 6484 > Fax: (973) 625-5130 > pc...@mi... > www.microstrat.com > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of Peter > Choe > Sent: Wednesday, May 16, 2007 8:37 AM > To: wra...@li... > Subject: Re: [Wrapper-user] classnotfoundexception in java wrapper > service > > Here is the log from the debug. > > STATUS | wrapper | 2007/05/16 08:29:26 | --> Wrapper Started as Service > DEBUG | wrapper | 2007/05/16 08:29:26 | Using tick timer. > DEBUG | wrapperp | 2007/05/16 08:29:26 | server listening on port > 32000. > STATUS | wrapper | 2007/05/16 08:29:26 | Launching a JVM... > DEBUG | wrapper | 2007/05/16 08:29:26 | command: > "c:\j2sdk1.4.2_08\bin\java" -Djava.library.path="C:\Evergreen > Service\lib" -classpath "C:\Evergreen > Service\lib\bcprov-jdk14-119.jar;C:\Evergreen > Service\lib\castor.jar;C:\Evergreen > Service\lib\commons-collections-3.1.jar;C:\Evergreen > Service\lib\commons-collections-3.2.jar;C:\Evergreen > Service\lib\commons-fileupload.jar;C:\Evergreen > Service\lib\commons-io.jar;C:\Evergreen > Service\lib\commons-lang.jar;C:\Evergreen > Service\lib\commons-logging.jar;C:\Evergreen > Service\lib\j2ee.jar;C:\Evergreen Service\lib\jdom.jar;C:\Evergreen > Service\lib\log4j.jar;C:\Evergreen Service\lib\msi_core.jar;C:\Evergreen > Service\lib\msi_ecm.jar;C:\Evergreen Service\lib\msi_fs.jar;C:\Evergreen > Service\lib\msi_loader.jar;C:\Evergreen > Service\lib\msi_utils.jar;C:\Evergreen > Service\lib\msi_wsmp.jar;C:\Evergreen > Service\lib\msi_wsmpweb.jar;C:\Evergreen > Service\lib\quartz.jar;C:\Evergreen Service\lib\wom.jar;C:\Evergreen > Service\lib\worksitemp-auth.jar;C:\Evergreen > Service\lib\worksitemp.jar;C:\Evergreen > Service\lib\wrapper.jar;C:\Evergreen > Service\lib\xercesImpl.jar;C:\Evergreen > Service\lib\xml-apis.jar;C:\Evergreen Service\classes" > -Dwrapper.key="51e2tFZXSEcCoNDN" -Dwrapper.port=32000 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > -Dwrapper.debug="TRUE" -Dwrapper.pid=5184 -Dwrapper.version="3.2.3" > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > org.tanukisoftware.wrapper.WrapperSimpleApp > com.microstrat.wsmp.cpg.ap.evergreen.EvergreenBatchScheduler > DEBUG | wrapper | 2007/05/16 08:29:26 | JVM started (PID=5188) > INFO | jvm 1 | 2007/05/16 08:29:27 | WrapperManager class > initialized by thread: main Using classloader: > sun.misc.Launcher$AppClassLoader@53ba3d > INFO | jvm 1 | 2007/05/16 08:29:27 | Wrapper (Version 3.2.3) > http://wrapper.tanukisoftware.org > INFO | jvm 1 | 2007/05/16 08:29:27 | Copyright 1999-2006 Tanuki > Software, Inc. All Rights Reserved. > INFO | jvm 1 | 2007/05/16 08:29:27 | > INFO | jvm 1 | 2007/05/16 08:29:27 | Wrapper Manager: JVM #1 > INFO | jvm 1 | 2007/05/16 08:29:27 | Running a 32-bit JVM. > INFO | jvm 1 | 2007/05/16 08:29:27 | Wrapper Manager: Registering > shutdown hook > INFO | jvm 1 | 2007/05/16 08:29:27 | Wrapper Manager: Using wrapper > INFO | jvm 1 | 2007/05/16 08:29:27 | Load native library. One or > more attempts may fail if platform specific libraries do not exist. > INFO | jvm 1 | 2007/05/16 08:29:27 | Loading native library failed: > wrapper-windows-x86-32.dll Cause: java.lang.UnsatisfiedLinkError: no > wrapper-windows-x86-32 in java.library.path > INFO | jvm 1 | 2007/05/16 08:29:27 | Loaded native library: > wrapper.dll > INFO | jvm 1 | 2007/05/16 08:29:27 | Calling native initialization > method. > INFO | jvm 1 | 2007/05/16 08:29:27 | Initializing WrapperManager > native library. > INFO | jvm 1 | 2007/05/16 08:29:27 | Java Executable: > c:\j2sdk1.4.2_08\bin\java.exe > INFO | jvm 1 | 2007/05/16 08:29:27 | Windows version: 5.2.3790 > INFO | jvm 1 | 2007/05/16 08:29:27 | Java Version : 1.4.2_08-b03 > Java HotSpot(TM) Client VM > INFO | jvm 1 | 2007/05/16 08:29:27 | Java VM Vendor : Sun > Microsystems Inc. > INFO | jvm 1 | 2007/05/16 08:29:27 | > INFO | jvm 1 | 2007/05/16 08:29:27 | Startup runner thread started. > INFO | jvm 1 | 2007/05/16 08:29:27 | Control event monitor thread > started. > INFO | jvm 1 | 2007/05/16 08:29:27 | WrapperSimpleApp: Unable to > locate the class > com.microstrat.wsmp.cpg.ap.evergreen.EvergreenBatchScheduler: > java.lang.ClassNotFoundException: > com.microstrat.wsmp.cpg.ap.evergreen.EvergreenBatchScheduler > INFO | jvm 1 | 2007/05/16 08:29:27 | > INFO | jvm 1 | 2007/05/16 08:29:27 | WrapperSimpleApp Usage: > INFO | jvm 1 | 2007/05/16 08:29:27 | java > org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments] > INFO | jvm 1 | 2007/05/16 08:29:27 | > INFO | jvm 1 | 2007/05/16 08:29:27 | Where: > INFO | jvm 1 | 2007/05/16 08:29:27 | app_class: The fully > qualified class name of the application to run. > INFO | jvm 1 | 2007/05/16 08:29:27 | app_arguments: The > arguments that would normally be passed to the > INFO | jvm 1 | 2007/05/16 08:29:27 | application. > INFO | jvm 1 | 2007/05/16 08:29:27 | WrapperManager.stop(1) called > by thread: main > INFO | jvm 1 | 2007/05/16 08:29:27 | Communications runner thread > started. > INFO | jvm 1 | 2007/05/16 08:29:27 | Open socket to > wrapper...Wrapper-Connection > INFO | jvm 1 | 2007/05/16 08:29:27 | Opened Socket from 31000 to > 32000 > INFO | jvm 1 | 2007/05/16 08:29:27 | Send a packet KEY : > 51e2tFZXSEcCoNDN > INFO | jvm 1 | 2007/05/16 08:29:27 | Send a packet STOP : 1 > INFO | jvm 1 | 2007/05/16 08:29:27 | > handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) > DEBUG | wrapperp | 2007/05/16 08:29:27 | accepted a socket from > 127.0.0.1 on port 31000 > DEBUG | wrapperp | 2007/05/16 08:29:27 | read a packet KEY : > 51e2tFZXSEcCoNDN > DEBUG | wrapper | 2007/05/16 08:29:27 | Got key from JVM: > 51e2tFZXSEcCoNDN > DEBUG | wrapperp | 2007/05/16 08:29:27 | send a packet LOW_LOG_LEVEL : > 1 > DEBUG | wrapperp | 2007/05/16 08:29:27 | send a packet PING_TIMEOUT : > 30 > DEBUG | wrapperp | 2007/05/16 08:29:27 | send a packet PROPERTIES : > (Property Values) > DEBUG | wrapperp | 2007/05/16 08:29:27 | read a packet STOP : 1 > DEBUG | wrapper | 2007/05/16 08:29:27 | JVM requested a shutdown. (1) > DEBUG | wrapper | 2007/05/16 08:29:27 | wrapperStopProcess(1) called. > DEBUG | wrapper | 2007/05/16 08:29:27 | Sending stop signal to JVM > DEBUG | wrapperp | 2007/05/16 08:29:27 | send a packet STOP : NULL > INFO | jvm 1 | 2007/05/16 08:29:27 | Received a packet > LOW_LOG_LEVEL : 1 > INFO | jvm 1 | 2007/05/16 08:29:27 | Wrapper Manager: LowLogLevel > from Wrapper is 1 > INFO | jvm 1 | 2007/05/16 08:29:27 | Received a packet PING_TIMEOUT > : 30 > INFO | jvm 1 | 2007/05/16 08:29:27 | PingTimeout from Wrapper is > 30000 > INFO | jvm 1 | 2007/05/16 08:29:27 | Received a packet PROPERTIES : > (Property Values) > INFO | jvm 1 | 2007/05/16 08:29:27 | Received a packet STOP : > INFO | jvm 1 | 2007/05/16 08:29:28 | Thread, main, handling the > shutdown process. > INFO | jvm 1 | 2007/05/16 08:29:28 | shutdownJVM(1) Thread:main > INFO | jvm 1 | 2007/05/16 08:29:28 | Send a packet STOPPED : 1 > DEBUG | wrapperp | 2007/05/16 08:29:28 | read a packet STOPPED : 1 > DEBUG | wrapper | 2007/05/16 08:29:28 | JVM signalled that it was > stopped. > INFO | jvm 1 | 2007/05/16 08:29:28 | Closing socket. > DEBUG | wrapperp | 2007/05/16 08:29:28 | socket read no code (closed?). > DEBUG | wrapperp | 2007/05/16 08:29:28 | server listening on port > 32001. > INFO | jvm 1 | 2007/05/16 08:29:28 | Server daemon shut down > INFO | jvm 1 | 2007/05/16 08:29:28 | calling System.exit(1) > DEBUG | wrapper | 2007/05/16 08:29:28 | JVM process exited with a code > of 1, however the wrapper exit code was already 1. > DEBUG | wrapper | 2007/05/16 08:29:28 | JVM exited normally. > STATUS | wrapper | 2007/05/16 08:29:29 | <-- Wrapper Stopped > > The only think I 'error' is the Loading native library for > wrapper-windows-x86-32. > > > > > Peter Choe > Application Developer > > Micro Strategies Inc. > People | Passion | Technology > > 104 Broadway > Denville, NJ 07834 > Voice: (973) 625-7721 ext. 6484 > Fax: (973) 625-5130 > pc...@mi... > www.microstrat.com > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of Leif > Mortenson > Sent: Tuesday, May 15, 2007 6:27 PM > To: wra...@li... > Subject: Re: [Wrapper-user] classnotfoundexception in java wrapper > service > > 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.EvergreenBa > tchScheduler > >> #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 >> >> > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |