|
From: Tasso A. <ta...@pa...> - 2008-08-11 20:23:22
|
Hi where you able to see what the issue may be?
Thanks
-----Original Message-----
From: Tasso Angelidis
Sent: Thursday, August 07, 2008 2:21 PM
To: 'wra...@li...'
Subject: RE: [Wrapper-user] Wrapper cannot find main java class.
This used to work. In fact I can take the same folder and try on another server and it works fine. Unfortunately I just can't move the application.
Server.StartUp is in the mpi.jar file.
> RunService
wrapper | --> Wrapper Started as Console
wrapper | Using system timer.
wrapperp | server listening on port 32000.
wrapper | Launching a JVM...
wrapper | command: "C:\WINDOWS\system32\java.exe" -Djava.security.policy=file:config\rmi.policy -Xmx64m -Djava.library.path="jars" -classpath "jars/wrapper.jar
;mpi.jar;jars\crimson.jar;jars\classes12.zip;jars\classes12.jar;jars\jconn2.jar;jars\ifxjdbc.jar;jars\mysql.jar;jars\msutil.jar;jars\msbase.jar;jars\mssqlserver
.jar;jars\pki.jar;jars\hsm.jar;jars\jprov.jar;jars\kmjava.jar;jars\nfjava.jar;jars\kmcsp.jar;jars\db2java.zip;jars\db2jcc.jar" -Dwrapper.key="xxxxxxxxxx"
-Dwrapper.port=32000 -Dwrapper.debug="TRUE" -Dwrapper.use_system_time="TRUE" -Dwrapper.version="3.1.2" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout=
"10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp Server.StartUp xxxxxx -version
wrapper | JVM started (PID=500)
jvm 1 | WrapperSimpleApp: Unable to locate the class Server.StartUp: java.lang.ClassNotFoundException: Server.StartUp
jvm 1 |
jvm 1 | WrapperSimpleApp Usage:
jvm 1 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_parameters]
jvm 1 |
jvm 1 | Where:
jvm 1 | app_class: The fully qualified class name of the application to run.
jvm 1 | app_parameters: The parameters that would normally be passed to the
jvm 1 | application.
jvm 1 | WrapperManager class initialized by thread: main Using classloader:sun.misc.Launcher$ExtClassLoader@a9c85c
jvm 1 | Wrapper Manager: JVM #1
jvm 1 | Wrapper Manager: Registering shutdown hook
jvm 1 | Wrapper Manager: Using wrapper
jvm 1 | Loaded native library: wrapper.dll
jvm 1 | Calling native initialization method.
jvm 1 | Initializing WrapperManager native library.
jvm 1 | Java Executable: C:\WINDOWS\system32\java.exe
jvm 1 | Windows version: 5.2.3790
jvm 1 | Java Version : 1.5.0_09-b01 Java HotSpot(TM) Client VM
jvm 1 | Java VM Vendor : Sun Microsystems Inc.
jvm 1 |
jvm 1 | WrapperManager.stop(1) called by thread: main
jvm 1 | Open socket to wrapper...
jvm 1 | Opened Socket
jvm 1 | Send a packet KEY : xxxxxxxxxx
jvm 1 | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=2796])
wrapperp | accepted a socket from 127.0.0.1 on port 2796
wrapperp | read a packet KEY : xxxxxxxxxx
wrapper | Got key from JVM: xxxxxxxxxx
wrapperp | send a packet LOW_LOG_LEVEL : 1
wrapperp | send a packet PING_TIMEOUT : 30
wrapper | Start Application.
wrapperp | send a packet START : start
jvm 1 | Received a packet LOW_LOG_LEVEL : 1
jvm 1 | Wrapper Manager: LowLogLevel from Wrapper is 1
jvm 1 | Received a packet PING_TIMEOUT : 30
jvm 1 | Wrapper Manager: PingTimeout from Wrapper is 30000
jvm 1 | Received a packet START : start
jvm 1 | calling listener.start()
jvm 1 | returned from listener.start()
jvm 1 | Send a packet STARTED :
jvm 1 | All non-daemon threads have stopped. Exiting.
jvm 1 | WrapperManager.stop(0) called by thread: Wrapper-Connection
jvm 1 | Thread, Wrapper-Connection, handling the shutdown process.
jvm 1 | calling listener.stop()
jvm 1 | returned from listener.stop()
jvm 1 | Send a packet STOPPED : 0
wrapperp | read a packet STARTED :
wrapper | JVM signalled that it was started.
wrapperp | read a packet STOPPED : 0
wrapper | JVM signalled that it was stopped.
jvm 1 | Closing socket.
wrapperp | socket read no code (closed?).
jvm 1 | calling System.exit(0)
jvm 1 | Send a packet STOP : 1
wrapper | JVM process exited with a code of 0, leaving the wrapper exit code set to 0.
wrapper | JVM exited normally.
wrapper | <-- Wrapper Stopped
wrapper.conf
------------
The paths are as follows...
/App root/wrapper.exe
/App root/config/wrapper.conf
/App root/jars/wrapper.jar
/App root/jars/wrapper.dll
/App root/logs/
RunService.bat pat is set to...
set _WRAPPER_CONF="%_REALPATH%\config\wrapper.conf"
#********************************************************************
# TestWrapper Properties
#
# NOTE - Please use src/conf/wrapper.conf.in as a template for your
# own application rather than the values used for the
# TestWrapper sample.
#********************************************************************
# Java Application
wrapper.java.command=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=jars/wrapper.jar
wrapper.java.classpath.2=mpi.jar
wrapper.java.classpath.3=jars\crimson.jar
wrapper.java.classpath.4=jars\classes12.zip
wrapper.java.classpath.5=jars\classes12.jar
wrapper.java.classpath.6=jars\jconn2.jar
wrapper.java.classpath.7=jars\ifxjdbc.jar
wrapper.java.classpath.8=jars\mysql.jar
wrapper.java.classpath.9=jars\msutil.jar
wrapper.java.classpath.10=jars\msbase.jar
wrapper.java.classpath.11=jars\mssqlserver.jar
wrapper.java.classpath.12=jars\pki.jar
wrapper.java.classpath.13=jars\hsm.jar
wrapper.java.classpath.14=jars\jprov.jar
wrapper.java.classpath.15=jars\kmjava.jar
wrapper.java.classpath.16=jars\nfjava.jar
wrapper.java.classpath.17=jars\kmcsp.jar
wrapper.java.classpath.18=jars\db2java.zip
wrapper.java.classpath.19=jars\db2jcc.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=jars
# Java Additional Parameters
wrapper.java.additional.1=-Djava.security.policy=file:config\rmi.policy
# 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=Server.Startup
wrapper.app.parameter.2=xxxxxx
wrapper.app.parameter.3=-version
#wrapper.app.parameter.4=-debug
#********************************************************************
# 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=DEBUG
# 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=STATUS
# 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=Active Merchant
#********************************************************************
# 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=Active Merchant
# Display name of the service
wrapper.ntservice.displayname=Active Merchant
# Description of the service
wrapper.ntservice.description=G-Payments Active Merchant MPI.
# 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
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...]On Behalf Of Leif
Mortenson
Sent: Wednesday, August 06, 2008 8:00 PM
To: wra...@li...
Subject: Re: [Wrapper-user] Wrapper cannot find main java class.
Tasso,
Could you post your wrapper.conf along with the wrapper.debug=true
output in your wrapper.log for the failed invocation?
Are you using a CLASSPATH environment variable or is the entire
classpath in your wrapper.conf file? That could be a cause.
I should be able to say more once I have seen the above files.
Cheers,
Leif
On Wed, Aug 6, 2008 at 1:26 PM, Tasso Angelidis <ta...@pa...> wrote:
> Hi I installed a java application as a windows NT service on windows 2003 and for the longest time the service was running ok. We then had to stop the application to upgrade and ever since the wrapper can't find the main java class of the application. We even baked up the entire folder and tried starting up the old instance and nothing. Wrapper: "Unable to locate class xxxxxxxxx"
>
> I simulated on another 2003 machine and it all works fine.
>
> Wrapper version we are using 3.1.12
>
> Any ideas?
>
> Anastasios (Tasso) Angelidis
> Developer / Jr. Architect
> PaymentTrust Canada Ltd
> The Royal Bank of Scotland
> 9800 Cavendish blvd. Suite 510
> Montreal, Quebec Canada
> H4M 2V9
>
> Tel: + 1514 336 4949 ext 369
> Fax: + 1514 336 0239
> eMail: ta...@pa...
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|