|
From: Peter C. <pc...@mi...> - 2007-05-17 13:02:54
|
I don't think it was any problem with the Java Service Wrapper. It was
an administrative error. It was something along the lines that the
shared folder that had the service was no longer visible because the
user that was trying to run the service had changed the password and it
seems that the folder permissions didn't pick up the password.
So, I guess if I saw an error message stating that the user didn't have
permission to the folder where the library files were, that would have
helped me a lot in narrowing the problem.
Other than that, the Java Service Wrapper is great.
Thanks for making it available.
=20
=20
Peter Choe=20
Application Developer=20
=20
Micro Strategies Inc.
People | Passion | Technology=20
=20
104 Broadway=20
Denville, NJ 07834=20
Voice: (973) 625-7721 ext. 6484=20
Fax: (973) 625-5130=20
pc...@mi...=20
www.microstrat.com=20
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: Wednesday, May 16, 2007 5:55 PM
To: wra...@li...
Subject: Re: [Wrapper-user] classnotfoundexception in java wrapper
service
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=20
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.
>
> =20
> =20
>
> Peter Choe=20
> Application Developer=20
> =20
> Micro Strategies Inc.
> People | Passion | Technology=20
> =20
> 104 Broadway=20
> Denville, NJ 07834=20
> Voice: (973) 625-7721 ext. 6484=20
> Fax: (973) 625-5130=20
> pc...@mi...=20
> www.microstrat.com=20
>
> -----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=3D"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=3D"51e2tFZXSEcCoNDN" -Dwrapper.port=3D32000
> -Dwrapper.jvm.port.min=3D31000 -Dwrapper.jvm.port.max=3D31999
> -Dwrapper.debug=3D"TRUE" -Dwrapper.pid=3D5184 =
-Dwrapper.version=3D"3.2.3"
> -Dwrapper.native_library=3D"wrapper" -Dwrapper.service=3D"TRUE"
> -Dwrapper.cpu.timeout=3D"10" -Dwrapper.jvmid=3D1
> org.tanukisoftware.wrapper.WrapperSimpleApp
> com.microstrat.wsmp.cpg.ap.evergreen.EvergreenBatchScheduler
> DEBUG | wrapper | 2007/05/16 08:29:26 | JVM started (PID=3D5188)
> 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 |=20
> 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 |=20
> 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 |=20
> 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 |=20
> 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=3D/127.0.0.1,port=3D32000,localport=3D31000])
> 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 :=20
> 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.
>
>
> =20
>
> Peter Choe=20
> Application Developer=20
> =20
> Micro Strategies Inc.
> People | Passion | Technology=20
> =20
> 104 Broadway=20
> Denville, NJ 07834=20
> Voice: (973) 625-7721 ext. 6484=20
> Fax: (973) 625-5130=20
> pc...@mi...=20
> www.microstrat.com=20
> -----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=3Dtrue 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=3Dc:\Evergreen Service\lib\*.jar
> wrapper.java.classpath.2=3Dc:\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:
> =20
>> I am trying to get Java wrapper service running as a NT service. I
am
>> =20
>
> =20
>> able to do it when I run the service as the local system account.
But
>> =20
>
> =20
>> when I try to run it as a different user on the system, I get a=20
>> ClassNotFoundException. I tried to setting the CLASSPATH system=20
>> variable but that didn't work.
>>
>> I can't tell where the classpath is set when I run the service as a=20
>> 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=3Dc:\j2sdk1.4.2_08\bin\java
>>
>> # Java Main class. This class must implement the WrapperListener=20
>> interface
>> # or guarantee that the WrapperManager class is initialized. Helper
>> # classes are provided to do this for you. See the Integration
>> =20
> section
> =20
>> # of the documentation for details.
>> wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp
>>
>> # Java Classpath (include wrapper.jar) Add class path elements as
>> # needed starting from 1
>> wrapper.java.classpath.1=3Dc:\Evergreen Service\lib\wrapper.jar
>> wrapper.java.classpath.2=3Dc:\Evergreen Service\classes
>> wrapper.java.classpath.3=3Dc:\Evergreen
>> =20
> Service\lib\commons-fileupload.jar
> =20
>> wrapper.java.classpath.4=3Dc:\Evergreen Service\lib\commons-io.jar
>> wrapper.java.classpath.5=3Dc:\Evergreen =
Service\lib\commons-logging.jar
>> wrapper.java.classpath.6=3Dc:\Evergreen Service\lib\jdom.jar
>> wrapper.java.classpath.7=3Dc:\Evergreen Service\lib\msi_core.jar
>> wrapper.java.classpath.8=3Dc:\Evergreen Service\lib\msi_ecm.jar
>> wrapper.java.classpath.9=3Dc:\Evergreen Service\lib\msi_fs.jar
>> wrapper.java.classpath.10=3Dc:\Evergreen Service\lib\msi_loader.jar
>> wrapper.java.classpath.11=3Dc:\Evergreen Service\lib\msi_utils.jar
>> wrapper.java.classpath.12=3Dc:\Evergreen Service\lib\msi_wsmp.jar
>> wrapper.java.classpath.13=3Dc:\Evergreen Service\lib\msi_wsmpweb.jar
>> wrapper.java.classpath.14=3Dc:\Evergreen Service\lib\quartz.jar
>> wrapper.java.classpath.15=3Dc:\Evergreen Service\lib\wom.jar
>> wrapper.java.classpath.16=3Dc:\Evergreen Service\lib\worksitemp.jar
>> wrapper.java.classpath.17=3Dc:\Evergreen
Service\lib\worksitemp-auth.jar
>> wrapper.java.classpath.18=3Dc:\Evergreen Service\lib\castor.jar
>> wrapper.java.classpath.19=3Dc:\Evergreen Service\lib\commons-lang.jar
>> wrapper.java.classpath.20=3Dc:\Evergreen Service\lib\xercesImpl.jar
>> wrapper.java.classpath.21=3Dc:\Evergreen Service\lib\log4j.jar
>> wrapper.java.classpath.22=3Dc:\Evergreen Service\lib\xml-apis.jar
>> wrapper.java.classpath.23=3Dc:\Evergreen
>> =20
> Service\lib\bcprov-jdk14-119.jar
> =20
>> wrapper.java.classpath.24=3Dc:\Evergreen Service\lib\j2ee.jar
>> wrapper.java.classpath.25=3Dc:\Evergreen=20
>> Service\lib\commons-collections-3.2.jar
>>
>> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
>> wrapper.java.library.path.1=3Dc:\Evergreen Service\lib
>>
>> # Initial Java Heap Size (in MB)
>> #wrapper.java.initmemory=3D3
>>
>> # Maximum Java Heap Size (in MB)
>> #wrapper.java.maxmemory=3D64
>>
>> # Application parameters. Add parameters as needed starting from 1
>>
>> =20
>
wrapper.app.parameter.1=3Dcom.microstrat.wsmp.cpg.ap.evergreen.EvergreenB=
a
> tchScheduler=20
> =20
>> #wrapper.app.parameter.2=3Dtest
>>
>> #********************************************************************
>> # Wrapper Logging Properties
>> #********************************************************************
>> # Format of output for the console. (See docs for formats)
>> wrapper.console.format=3DPM
>>
>> # Log Level for console output. (See docs for log levels)
>> wrapper.console.loglevel=3DINFO
>>
>> # Log file to use for wrapper output logging.
>> wrapper.logfile=3D..\logs\wrapper.log
>>
>> # Format of output for the log file. (See docs for formats)
>> wrapper.logfile.format=3DLPTM
>>
>> # Log Level for log file output. (See docs for log levels)
>> wrapper.logfile.loglevel=3DINFO
>>
>> # 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 =3D 10 megabytes.
>> wrapper.logfile.maxsize=3D5000k
>>
>> # 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=3D5
>>
>> # Log Level for sys\event log output. (See docs for log levels)
>> wrapper.syslog.loglevel=3DNONE
>>
>> wra...@ap...@
>>
>> # Name of the service
>> wrapper.ntservice.name=3DEvergreen Check
>>
>> # Display name of the service
>> wrapper.ntservice.displayname=3DEvergreen Check
>>
>> # Description of the service
>> wrapper.ntservice.description=3DEvergreen Check Processing
>>
>> # Service dependencies. Add dependencies as needed starting from 1
>> wrapper.ntservice.dependency.1=3D
>>
>> # Mode in which the service is installed. AUTO_START or DEMAND_START
>> wrapper.ntservice.starttype=3DAUTO_START
>>
>> # Allow the service to interact with the desktop.
>> wrapper.ntservice.interactive=3Dfalse
>>
>> =20
>
>
>
------------------------------------------------------------------------
> -
> 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
>
> =20
------------------------------------------------------------------------
-
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
|