|
From: Phillip G. <pg...@co...> - 2007-06-05 14:10:08
|
You need to add the H:\my Documents\Logger\bin to the classpath: wrapper.java.classpath.3=3D H:\\My Documents\\Logger\\bin =20 -----Original Message----- From: wra...@li... [mailto:wra...@li...] On Behalf Of RickyS Sent: dinsdag 5 juni 2007 15:26 To: wra...@li... Subject: [Wrapper-user] class not found exception =20 My log file with debug on.=20 =20 ERROR | wrapper | 2007/06/05 13:18:07 | CreateService failed - The specified service already exists. (0x431) STATUS | wrapper | 2007/06/05 13:18:36 | Log Extractor removed. DEBUG | wrapper | 2007/06/05 13:18:55 | Service command: "\\dev2003.local\DFSRoot\DevFS2userdataXP$\a815686\My <file:///\\dev2003.local\DFSRoot\DevFS2userdataXP$\a815686\My> Documents\Logger\bin\wrapper.exe" -s "\\dev2003.local\DFSRoot\DevFS2userdataXP$\a815686\My <file:///\\dev2003.local\DFSRoot\DevFS2userdataXP$\a815686\My> Documents\Logger\conf\wrapper.conf" STATUS | wrapper | 2007/06/05 13:18:56 | Log Extractor installed. STATUS | wrapper | 2007/06/05 13:19:51 | --> Wrapper Started as Console DEBUG | wrapper | 2007/06/05 13:19:51 | Using tick timer. DEBUG | wrapperp | 2007/06/05 13:19:51 | server listening on port 32000. STATUS | wrapper | 2007/06/05 13:19:51 | Launching a JVM... DEBUG | wrapper | 2007/06/05 13:19:51 | command: "C:\j2sdk1.4.2_06\bin\java" -Djava.library.path=3D"../lib" -classpath "../lib/wrapper.jar;../lib/mysql-connector-java-3.1.13-bin.jar" -Dwrapper.key=3D"CnX1GB1fkufqGLVT" -Dwrapper.port=3D32000 -Dwrapper.jvm.port.min=3D31000 -Dwrapper.jvm.port.max=3D31999 -Dwrapper.debug=3D"TRUE" -Dwrapper.pid=3D2636 -Dwrapper.version=3D"3.2.3" -Dwrapper.native_library=3D"wrapper" -Dwrapper.cpu.timeout=3D"10" -Dwrapper.jvmid=3D1 org.tanukisoftware.wrapper.WrapperSimpleApp tree.branch.leaf.LoggerTransferer DEBUG | wrapper | 2007/06/05 13:19:51 | JVM started (PID=3D2444) INFO | jvm 1 | 2007/06/05 13:19:52 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@e80a59 INFO | jvm 1 | 2007/06/05 13:19:52 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org <http://gsiexch2003/exchweb/bin/redir.asp?URL=3Dhttp://wrapper.tanukisoftw are.org>=20 INFO | jvm 1 | 2007/06/05 13:19:52 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2007/06/05 13:19:52 |=20 INFO | jvm 1 | 2007/06/05 13:19:52 | Wrapper Manager: JVM #1 INFO | jvm 1 | 2007/06/05 13:19:52 | Running a 32-bit JVM. INFO | jvm 1 | 2007/06/05 13:19:52 | Wrapper Manager: Registering shutdown hook INFO | jvm 1 | 2007/06/05 13:19:52 | Wrapper Manager: Using wrapper INFO | jvm 1 | 2007/06/05 13:19:52 | Load native library. One or more attempts may fail if platform specific libraries do not exist. INFO | jvm 1 | 2007/06/05 13:19:52 | 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/06/05 13:19:53 | Loaded native library: wrapper.dll INFO | jvm 1 | 2007/06/05 13:19:53 | Calling native initialization method. INFO | jvm 1 | 2007/06/05 13:19:53 | Initializing WrapperManager native library. INFO | jvm 1 | 2007/06/05 13:19:53 | Java Executable: C:\j2sdk1.4.2_06\bin\java.exe INFO | jvm 1 | 2007/06/05 13:19:53 | Windows version: 5.1.2600 INFO | jvm 1 | 2007/06/05 13:19:53 | Java Version : 1.4.2_06-b03 Java HotSpot(TM) Client VM INFO | jvm 1 | 2007/06/05 13:19:53 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2007/06/05 13:19:53 |=20 INFO | jvm 1 | 2007/06/05 13:19:53 | WrapperSimpleApp: Unable to locate the class tree.branch.leaf.LoggerTransferer: java.lang.ClassNotFoundException: tree.branch.leaf.LoggerTransferer INFO | jvm 1 | 2007/06/05 13:19:53 |=20 INFO | jvm 1 | 2007/06/05 13:19:53 | WrapperSimpleApp Usage: INFO | jvm 1 | 2007/06/05 13:19:53 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments] INFO | jvm 1 | 2007/06/05 13:19:53 |=20 INFO | jvm 1 | 2007/06/05 13:19:53 | Where: INFO | jvm 1 | 2007/06/05 13:19:53 | app_class: The fully qualified class name of the application to run. INFO | jvm 1 | 2007/06/05 13:19:53 | app_arguments: The arguments that would normally be passed to the INFO | jvm 1 | 2007/06/05 13:19:53 | application. INFO | jvm 1 | 2007/06/05 13:19:53 | WrapperManager.stop(1) called by thread: main INFO | jvm 1 | 2007/06/05 13:19:53 | Control event monitor thread started. INFO | jvm 1 | 2007/06/05 13:19:53 | Startup runner thread started. INFO | jvm 1 | 2007/06/05 13:19:53 | Communications runner thread started. INFO | jvm 1 | 2007/06/05 13:19:53 | Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2007/06/05 13:19:53 | Opened Socket from 31000 to 32000 INFO | jvm 1 | 2007/06/05 13:19:53 | handleSocket(Socket[addr=3D/127.0.0.1,port=3D32000,localport=3D31000]) INFO | jvm 1 | 2007/06/05 13:19:53 | Send a packet STOP : 1 DEBUG | wrapperp | 2007/06/05 13:19:53 | accepted a socket from 127.0.0.1 on port 31000 DEBUG | wrapperp | 2007/06/05 13:19:53 | read a packet KEY : CnX1GB1fkufqGLVT DEBUG | wrapper | 2007/06/05 13:19:53 | Got key from JVM: CnX1GB1fkufqGLVT DEBUG | wrapperp | 2007/06/05 13:19:53 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2007/06/05 13:19:53 | send a packet PING_TIMEOUT : 30 DEBUG | wrapperp | 2007/06/05 13:19:53 | send a packet PROPERTIES : (Property Values) DEBUG | wrapperp | 2007/06/05 13:19:53 | read a packet STOP : 1 DEBUG | wrapper | 2007/06/05 13:19:53 | JVM requested a shutdown. (1) DEBUG | wrapper | 2007/06/05 13:19:53 | wrapperStopProcess(1) called. DEBUG | wrapper | 2007/06/05 13:19:53 | Sending stop signal to JVM DEBUG | wrapperp | 2007/06/05 13:19:53 | send a packet STOP : NULL INFO | jvm 1 | 2007/06/05 13:19:53 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2007/06/05 13:19:53 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2007/06/05 13:19:53 | Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2007/06/05 13:19:53 | PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2007/06/05 13:19:53 | Received a packet PROPERTIES : (Property Values) INFO | jvm 1 | 2007/06/05 13:19:53 | Received a packet STOP :=20 INFO | jvm 1 | 2007/06/05 13:19:54 | Thread, main, handling the shutdown process. INFO | jvm 1 | 2007/06/05 13:19:54 | shutdownJVM(1) Thread:main INFO | jvm 1 | 2007/06/05 13:19:54 | Send a packet STOPPED : 1 DEBUG | wrapperp | 2007/06/05 13:19:54 | read a packet STOPPED : 1 DEBUG | wrapper | 2007/06/05 13:19:54 | JVM signalled that it was stopped. INFO | jvm 1 | 2007/06/05 13:19:54 | Closing socket. INFO | jvm 1 | 2007/06/05 13:19:54 | Closed socket: java.net.SocketException: socket closed DEBUG | wrapperp | 2007/06/05 13:19:54 | socket read no code (closed?). DEBUG | wrapperp | 2007/06/05 13:19:54 | server listening on port 32001. INFO | jvm 1 | 2007/06/05 13:19:54 | Server daemon shut down INFO | jvm 1 | 2007/06/05 13:19:54 | calling System.exit(1) DEBUG | wrapper | 2007/06/05 13:19:54 | JVM process exited with a code of 1, however the wrapper exit code was already 1. DEBUG | wrapper | 2007/06/05 13:19:54 | JVM exited normally. STATUS | wrapper | 2007/06/05 13:19:55 | <-- Wrapper Stopped =20 =20 My conf file =20 wrapper.java.command=3DC:\j2sdk1.4.2_06\bin\java wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp wrapper.java.classpath.1=3D../lib/wrapper.jar wrapper.java.classpath.2=3D../lib/mysql-connector-java-3.1.13-bin.jar wrapper.java.library.path.1=3D../lib wrapper.app.parameter.1=3Dtree.branch.leaf.LoggerTransferer =20 Hi I have followed all the instructions to use WrapperSimpleApp. All the help on wrapper are concerning JBoss, but I not interested in running JBoss but to run a program of my own under a windows service. =20 Any help will be great regarding why I get classnotfound exception. I have run the code via the JVM console, so there no problem of running the code. =20 =20 The directory structure where LoggerTransferer.class is located in :- "H:my Documents\Logger\bin\tree\branch\leaf. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** The original of this email was scanned for viruses by the Government Secure Intranet Anti-Virus service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2006/04/0007.) On leaving the GSi this email was certified virus free. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. *********************************************************************** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it is prohibited and may be unlawful. Please immediately contact=20 the sender if you have received this message in error. This email does not constitute any commitment from Cordys Holding BV or any of its subsidiaries except when expressly agreed in a written agreement between the intended recipient and Cordys Holding BV or its subsidiaries. *********************************************************************** |