I have to implement a logic based on the JVM StartTime. How may I get the actual start time of the JVM? Even the JVM restarts internally also can I able to use this ManagementFactory.getRuntimeMXBean().getStartTime() method?
Below is the sample of logs of the service which I run in my environment.
I have started the windows service # 01/01/2022 10:00:00 by which the code is created using Java. By the time the wrapper service prints the logs like below,
STATUS | wrapper | 2022/01/01 10:00:00 | Launching a JVM...
INFO | jvm 1 | 2022/01/01 10:00:00 | WrapperManager: Initializing...
INFO | jvm 1 | 2022/01/01 10:00:00 | Wrapper startup method..
After some period of time wrapper service prints, the logs like JVM is restarting and the new JVM to be launch,
STATUS | wrapper | 2022/01/01 10:58:01 | JVM requested a restart.
INFO | jvm 1 | 2022/01/01 10:58:02 | Going to shutdown the all threads...0
STATUS | wrapper | 2022/01/01 10:58:09 | Launching a JVM...
INFO | jvm 2 | 2022/01/01 10:58:09 | WrapperManager: Initializing...
INFO | jvm 2 | 2022/01/01 10:58:09 | Wrapper startup method..
What the doubt is even if the JVM is launching again internally without restarting the service manually will this ManagementFactory.getRuntimeMXBean().getStartTime() method returns the start time as 01/01/2022 10:00:00???
Someone help me in this context to find the actual start time of the service.
I have a wrapper.conf file that contains the following (note I've omitted irrelevant entries such as .1, .2, .3, etc.):
set.default.JAVA_HOME=E:\DATA\Dev\jdk1.7.0_65
# Java Application
set.default.KARAF_BASE=E:\hsip-base-5.3.1.1b
wrapper.working.dir=%KARAF_BASE%
wrapper.java.command=java
wrapper.java.mainclass=org.apache.karaf.shell.wrapper.Main
wrapper.java.classpath.1=%KARAF_BASE%/lib/karaf-wrapper.jar
wrapper.java.classpath.2=%KARAF_HOME%/lib/karaf.jar
wrapper.java.classpath.3=%KARAF_HOME%/lib/karaf-jaas-boot.jar
wrapper.java.classpath.4=%KARAF_BASE%/lib/karaf-wrapper-main.jar
wrapper.java.library.path.1=%KARAF_BASE%/lib/
# JVM Parameters
wrapper.java.additional.4=org.apache.karaf.main.Main
On starting apache karaf I'm getting the following error:
STATUS | wrapper | 2017/01/30 14:42:52 | --> Wrapper Started as Service
WARN | wrapper | 2017/01/30 14:42:52 | The value of property 'wrapper.java.additional.4', 'org.apache.karaf.main.Main' is not a valid argument to the jvm. Skipping.
The jar file it is looking for and the class within are fine (%KARAF_BASE%/lib/karaf-wrapper-main.jar)
Is fine. A colleague had a similar problem and it was JVM related but cannot remember what.
Does anyone know where I can even start with this because it should work. I have java 8 on my machine, but I have removed all references to it and my JAVA_HOME is pointing at this version 7, don't know if that makes a difference.
Note, the actual stack traces are something like
INFO | jvm 1 | 2017/01/30 15:11:48 | ERROR: Bundle org.ops4j.pax.url.wrap [1] Error starting mvn:org.ops4j.pax.url/pax-url-wrap/1.2.8 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.url.wrap [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.net.ssl))
INFO | jvm 1 | 2017/01/30 15:11:48 | org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.url.wrap [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.net.ssl)
INFO | jvm 1 | 2017/01/30 15:11:48 | at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
INFO | jvm 1 | 2017/01/30 15:11:48 | at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
INFO | jvm 1 | 2017/01/30 15:11:48 | at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
INFO | jvm 1 | 2017/01/30 15:11:48 | at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
INFO | jvm 1 | 2017/01/30 15:11:48 | at java.lang.Thread.run(Unknown Source)
I'm currently using the java service wrapper to start my ActiveMQ (5.10) service running on Ubuntu 14.04.1 LTS. Every now and then when my Jenkins instance runs the last step in my deploy script
cd /app/apache-activemq-5.10.0/bin/linux-x86-64; ./activemq restart
the wrapper will try to start up, then immediately shutdown with the following log entries.
STATUS | wrapper | 2014/10/09 08:15:09 | --> Wrapper Started as Daemon
STATUS | wrapper | 2014/10/09 08:15:09 | Launching a JVM...
STATUS | wrapper | 2014/10/09 08:15:09 | TERM trapped. Shutting down.
WARN | wrapper | 2014/10/09 08:15:09 | JVM exited unexpectedly while stopping the application.
STATUS | wrapper | 2014/10/09 08:15:09 | <-- Wrapper Stopped
I haven't got a clue why this is happening. Ideas anyone?
I am using Tanuki Software to make a window service for java. Here is my config file.
#encoding=UTF-8
# Configuration files must begin with a line specifying the encoding
# of the the file.
#********************************************************************
# Wrapper License Properties (Ignored by Community Edition)
#********************************************************************
# Professional and Standard Editions of the Wrapper require a valid
# License Key to start. Licenses can be purchased or a trial license
# requested on the following pages:
# http://wrapper.tanukisoftware.com/purchase
# http://wrapper.tanukisoftware.com/trial
# Include file problems can be debugged by removing the first '#'
# from the following line:
##include.debug
# The Wrapper will look for either of the following optional files for a
# valid License Key. License Key properties can optionally be included
# directly in this configuration file.
#include ../conf/wrapper-license.conf
#include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf
# The following property will output information about which License Key(s)
# are being found, and can aid in resolving any licensing problems.
#wrapper.license.debug=TRUE
#********************************************************************
# Wrapper Localization
#********************************************************************
# Specify the locale which the Wrapper should use. By default the system
# locale is used.
#wrapper.lang=en_US # en_US or ja_JP
# Specify the location of the Wrapper's language resources. If these are
# missing, the Wrapper will default to the en_US locale.
wrapper.lang.folder=../lang
#********************************************************************
# Wrapper Java Properties
#********************************************************************
# Java Application
# Locate the java binary on the system PATH:
wrapper.java.command=java
# Specify a specific java binary:
#set.JAVA_HOME=/java/path
#wrapper.java.command=%JAVA_HOME%/bin/java
# Tell the Wrapper to log the full generated Java command line.
#wrapper.java.command.loglevel=INFO
# 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=sendmaill.SendMail
wrapper.java.classpath.2=../lib/wrapper.jar
wrapper.java.classpath.3=sendmaill.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=../lib
# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
wrapper.java.additional.auto_bits=TRUE
# Java Additional Parameters
wrapper.java.additional.1=
# 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=
#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Enables Debug output from the Wrapper.
# wrapper.debug=TRUE
# 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=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 General Properties
#********************************************************************
# Allow for the use of non-contiguous numbered properties
wrapper.ignore_sequence_gaps=TRUE
# Do not start if the pid file already exists.
wrapper.pidfile.strict=TRUE
# Title to use when running as a console
wrapper.console.title=Test Wrapper Sample Application
#********************************************************************
# Wrapper JVM Checks
#********************************************************************
# Detect DeadLocked Threads in the JVM. (Requires Standard Edition)
wrapper.check.deadlock=TRUE
wrapper.check.deadlock.interval=10
wrapper.check.deadlock.action=RESTART
wrapper.check.deadlock.output=FULL
# Out Of Memory detection.
# (Ignore output from dumping the configuration to the console. This is only needed by the TestWrapper sample application.)
wrapper.filter.trigger.999=wrapper.filter.trigger.*java.lang.OutOfMemoryError
wrapper.filter.allow_wildcards.999=TRUE
wrapper.filter.action.999=NONE
# Ignore -verbose:class output to avoid false positives.
wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError
wrapper.filter.action.1000=NONE
# (Simple match)
wrapper.filter.trigger.1001=java.lang.OutOfMemoryError
# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.)
#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError
#wrapper.filter.allow_wildcards.1001=TRUE
wrapper.filter.action.1001=RESTART
wrapper.filter.message.1001=The JVM has run out of memory.
#********************************************************************
# Wrapper Email Notifications. (Requires Professional Edition)
#********************************************************************
# Common Event Email settings.
#wrapper.event.default.email.debug=TRUE
#wrapper.event.default.email.smtp.host=<SMTP_Host>
#wrapper.event.default.email.smtp.port=25
#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification
#wrapper.event.default.email.sender=<Sender email>
#wrapper.event.default.email.recipient=<Recipient email>
# Configure the log attached to event emails.
#wrapper.event.default.email.attach_log=TRUE
#wrapper.event.default.email.maillog.lines=50
#wrapper.event.default.email.maillog.format=LPTM
#wrapper.event.default.email.maillog.loglevel=INFO
# Enable specific event emails.
#wrapper.event.wrapper_start.email=TRUE
#wrapper.event.jvm_prelaunch.email=TRUE
#wrapper.event.jvm_start.email=TRUE
#wrapper.event.jvm_started.email=TRUE
#wrapper.event.jvm_deadlock.email=TRUE
#wrapper.event.jvm_stop.email=TRUE
#wrapper.event.jvm_stopped.email=TRUE
#wrapper.event.jvm_restart.email=TRUE
#wrapper.event.jvm_failed_invocation.email=TRUE
#wrapper.event.jvm_max_failed_invocations.email=TRUE
#wrapper.event.jvm_kill.email=TRUE
#wrapper.event.jvm_killed.email=TRUE
#wrapper.event.jvm_unexpected_exit.email=TRUE
#wrapper.event.wrapper_stop.email=TRUE
# Specify custom mail content
wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n
#********************************************************************
# 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.name=SendMail
# Display name of the service
wrapper.displayname=SendMail
# Description of the service
wrapper.description=Send Mail
# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
SendMail is the name of my class while sendmaill is my jar file.
When i will run StartTestWrapper-NT.bat file its give an error. I can see my service in the window services but when i click it to start it through an error.
Here is the log file tanuki software.
NOTICE | wrapper | 2013/12/31 18:13:03 | --------------------------------------------------------------------
NOTICE | wrapper | 2013/12/31 18:13:03 |
STATUS | wrapper | 2013/12/31 18:13:03 |
STATUS | wrapper | 2013/12/31 18:13:03 | Launching a JVM...
INFO | jvm 1 | 2013/12/31 18:13:04 | WrapperManager: Initializing...
INFO | jvm 1 | 2013/12/31 18:13:04 |
INFO | jvm 1 | 2013/12/31 18:13:04 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2013/12/31 18:13:04 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 1 | 2013/12/31 18:13:04 |
INFO | jvm 1 | 2013/12/31 18:13:04 | Where:
INFO | jvm 1 | 2013/12/31 18:13:04 | app_class: The fully qualified class name of the application to run.
INFO | jvm 1 | 2013/12/31 18:13:04 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 1 | 2013/12/31 18:13:04 | application.
ERROR | wrapper | 2013/12/31 18:13:06 | JVM exited while loading the application.
INFO | wrapperm | 2013/12/31 18:13:08 | Waiting to start...
STATUS | wrapper | 2013/12/31 18:13:10 | Launching a JVM...
INFO | jvm 2 | 2013/12/31 18:13:10 | WrapperManager: Initializing...
INFO | jvm 2 | 2013/12/31 18:13:10 |
INFO | jvm 2 | 2013/12/31 18:13:10 | WrapperSimpleApp Usage:
INFO | jvm 2 | 2013/12/31 18:13:10 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 2 | 2013/12/31 18:13:10 |
INFO | jvm 2 | 2013/12/31 18:13:10 | Where:
INFO | jvm 2 | 2013/12/31 18:13:10 | app_class: The fully qualified class name of the application to run.
INFO | jvm 2 | 2013/12/31 18:13:10 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 2 | 2013/12/31 18:13:10 | application.
INFO | wrapperm | 2013/12/31 18:13:13 | Waiting to start...
ERROR | wrapper | 2013/12/31 18:13:12 | JVM exited while loading the application.
STATUS | wrapper | 2013/12/31 18:13:17 | Launching a JVM...
INFO | wrapperm | 2013/12/31 18:13:18 | Waiting to start...
INFO | jvm 3 | 2013/12/31 18:13:17 | WrapperManager: Initializing...
INFO | jvm 3 | 2013/12/31 18:13:17 |
INFO | jvm 3 | 2013/12/31 18:13:17 | WrapperSimpleApp Usage:
INFO | jvm 3 | 2013/12/31 18:13:17 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 3 | 2013/12/31 18:13:17 |
INFO | jvm 3 | 2013/12/31 18:13:17 | Where:
INFO | jvm 3 | 2013/12/31 18:13:17 | app_class: The fully qualified class name of the application to run.
INFO | jvm 3 | 2013/12/31 18:13:17 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 3 | 2013/12/31 18:13:17 | application.
ERROR | wrapper | 2013/12/31 18:13:19 | JVM exited while loading the application.
INFO | wrapperm | 2013/12/31 18:13:23 | Waiting to start...
STATUS | wrapper | 2013/12/31 18:13:23 | Launching a JVM...
INFO | jvm 4 | 2013/12/31 18:13:24 | WrapperManager: Initializing...
INFO | jvm 4 | 2013/12/31 18:13:24 |
INFO | jvm 4 | 2013/12/31 18:13:24 | WrapperSimpleApp Usage:
INFO | jvm 4 | 2013/12/31 18:13:24 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 4 | 2013/12/31 18:13:24 |
INFO | jvm 4 | 2013/12/31 18:13:24 | Where:
INFO | jvm 4 | 2013/12/31 18:13:24 | app_class: The fully qualified class name of the application to run.
INFO | jvm 4 | 2013/12/31 18:13:24 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 4 | 2013/12/31 18:13:24 | application.
ERROR | wrapper | 2013/12/31 18:13:26 | JVM exited while loading the application.
INFO | wrapperm | 2013/12/31 18:13:28 | Waiting to start...
STATUS | wrapper | 2013/12/31 18:13:30 | Launching a JVM...
INFO | jvm 5 | 2013/12/31 18:13:30 | WrapperManager: Initializing...
INFO | jvm 5 | 2013/12/31 18:13:30 |
INFO | jvm 5 | 2013/12/31 18:13:30 | WrapperSimpleApp Usage:
INFO | jvm 5 | 2013/12/31 18:13:30 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 5 | 2013/12/31 18:13:30 |
INFO | jvm 5 | 2013/12/31 18:13:30 | Where:
INFO | jvm 5 | 2013/12/31 18:13:30 | app_class: The fully qualified class name of the application to run.
INFO | jvm 5 | 2013/12/31 18:13:30 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 5 | 2013/12/31 18:13:30 | application.
ERROR | wrapper | 2013/12/31 18:13:32 | JVM exited while loading the application.
FATAL | wrapper | 2013/12/31 18:13:33 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2013/12/31 18:13:33 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2013/12/31 18:13:33 | <-- Wrapper Stopped
INFO | wrapperm | 2013/12/31 18:13:33 | Waiting to start...
ERROR | wrapperm | 2013/12/31 18:13:34 | The SendMail service was launched, but failed to start.
ERROR | wrapperm | 2013/12/31 18:13:34 | Please check the log file more information: F:\Java Work\wrapper-windows-x86-64-3.5.22-st\wrapper-windows-x86-64-3.5.22-st\logs\wrapper.log
Any Help is very appreciable.
Malik,
The problem is that the WrapperSimpleApp class expects a class name as an argument. You are not currently passing any arguments. Please try adding the following:
wrapper.app.parameter.1=SendMail
This assumes that the full class name of your main class is "SendMail" as you said.
Cheers,
Leif
I'm trying to use Java Service Wrapper 3.3.5 32 bit community release with JBoss AS7 on a Windows 7 64 bit machine. I have a hunch the reason I'm having problems is due our 32 bit version, but we have been able to use the 32 bit version of jsw with other applications (ActiveMQ) successfully, so I thought I'd try the 32 bit version first. If it's advisable to upgrade to the pro version we will do so.
I'm pasting my wrapper.log and wrapper.conf below. Right now the service is not able to start normally. I tried troubleshooting the UnsatisfiedLinkError: no wrapper-windows-x86-32 in java.library.path error by making sure jsw was finding my java.library.path by hard coding paths for JAVA_HOME and JBOSS_HOME in my conf.
wrapper.log...
STATUS | wrapper | 2011/09/08 08:17:40 | --> Wrapper Started as Console
STATUS | wrapper | 2011/09/08 08:17:40 | Java Service Wrapper Community Edition 32-bit 3.5.9
STATUS | wrapper | 2011/09/08 08:17:40 | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2011/09/08 08:17:40 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2011/09/08 08:17:40 |
DEBUG | wrapper | 2011/09/08 08:17:40 | The file "D:\jboss-as-7.0.0.Final\bin\wrapper.exe" is signed and the signature was verified.
DEBUG | wrapper | 2011/09/08 08:17:40 | Signer Certificate:
DEBUG | wrapper | 2011/09/08 08:17:40 | Serial Number:
DEBUG | wrapper | 2011/09/08 08:17:40 | 00 97 06 fe b5 6e 56 cc cb 66 3a bb 55 a7 a0 e4 76
DEBUG | wrapper | 2011/09/08 08:17:40 | Issuer Name: UTN-USERFirst-Object
DEBUG | wrapper | 2011/09/08 08:17:40 | Subject Name: Tanuki Software Ltd.
DEBUG | wrapper | 2011/09/08 08:17:40 | TimeStamp Certificate:
DEBUG | wrapper | 2011/09/08 08:17:40 | Serial Number:
DEBUG | wrapper | 2011/09/08 08:17:40 | 47 8a 8e fb 59 e1 d8 3f 0c e1 42 d2 a2 87 07 be
DEBUG | wrapper | 2011/09/08 08:17:40 | Issuer Name: UTN-USERFirst-Object
DEBUG | wrapper | 2011/09/08 08:17:40 | Subject Name: COMODO Time Stamping Signer
DEBUG | wrapper | 2011/09/08 08:17:40 | Date of TimeStamp : 2011/05/09 01:37
DEBUG | wrapper | 2011/09/08 08:17:40 | Release time: 2011/05/09 00:00:00
DEBUG | wrapper | 2011/09/08 08:17:40 | Build time: 2011/05/09 18:36:00
DEBUG | wrapper | 2011/09/08 08:17:40 | Timezone: Pacific Standard Time (Pacific Daylight Time) Offset: 28800, hasDaylight: 1
DEBUG | wrapper | 2011/09/08 08:17:40 | Using tick timer.
DEBUG | wrapper | 2011/09/08 08:17:40 | Current User: Administrator Domain: IP-0A60A398
DEBUG | wrapper | 2011/09/08 08:17:40 | Operating System ID: Microsoft Windows Server 2003 R2, Datacenter Edition Service Pack 2 (build 3790)
INFO | wrapper | 2011/09/08 08:17:40 |
INFO | wrapper | 2011/09/08 08:17:40 | Environment variables (Source | Name=Value) BEGIN:
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _PARAMETERS=
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _REALPATH=D:\jboss-as-7.0.0.Final\bin\
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _WRAPPER_BASE=wrapper
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _WRAPPER_CONF="../conf/wrapper.conf"
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _WRAPPER_CONF_DEFAULT=../conf/wrapper.conf
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _WRAPPER_EXE=D:\jboss-as-7.0.0.Final\bin\wrapper.exe
INFO | wrapper | 2011/09/08 08:17:40 | P---- | _WRAPPER_L_EXE=D:\jboss-as-7.0.0.Final\bin\wrapper-windows-x86-32.exe
INFO | wrapper | 2011/09/08 08:17:40 | P---- | ALLUSERSPROFILE=C:\Documents and Settings\All Users
INFO | wrapper | 2011/09/08 08:17:40 | P---- | APPDATA=C:\Documents and Settings\Administrator\Application Data
INFO | wrapper | 2011/09/08 08:17:40 | P---- | CLIENTNAME=JAMIEWORK
INFO | wrapper | 2011/09/08 08:17:40 | P---- | ClusterLog=C:\WINDOWS\Cluster\cluster.log
INFO | wrapper | 2011/09/08 08:17:40 | P---- | CommonProgramFiles=C:\Program Files\Common Files
INFO | wrapper | 2011/09/08 08:17:40 | P---- | COMPUTERNAME=IP-0A60A398
INFO | wrapper | 2011/09/08 08:17:40 | P---- | ComSpec=C:\WINDOWS\system32\cmd.exe
INFO | wrapper | 2011/09/08 08:17:40 | P---- | FP_NO_HOST_CHECK=NO
INFO | wrapper | 2011/09/08 08:17:40 | P---- | HOMEDRIVE=C:
INFO | wrapper | 2011/09/08 08:17:40 | P---- | HOMEPATH=\Documents and Settings\Administrator
INFO | wrapper | 2011/09/08 08:17:40 | P---C | JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
INFO | wrapper | 2011/09/08 08:17:40 | P---C | JBOSS_HOME=D:\jboss-as-7.0.0.Final
INFO | wrapper | 2011/09/08 08:17:40 | P---- | LOGONSERVER=\\IP-0A60A398
INFO | wrapper | 2011/09/08 08:17:40 | P---- | NUMBER_OF_PROCESSORS=1
INFO | wrapper | 2011/09/08 08:17:40 | P---- | OS=Windows_NT
INFO | wrapper | 2011/09/08 08:17:40 | P---- | Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MySQL\MySQL Server 5.1\bin
INFO | wrapper | 2011/09/08 08:17:40 | P---- | PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
INFO | wrapper | 2011/09/08 08:17:40 | P---- | PROCESSOR_ARCHITECTURE=x86
INFO | wrapper | 2011/09/08 08:17:40 | P---- | PROCESSOR_IDENTIFIER=x86 Family 6 Model 26 Stepping 5, GenuineIntel
INFO | wrapper | 2011/09/08 08:17:40 | P---- | PROCESSOR_LEVEL=6
INFO | wrapper | 2011/09/08 08:17:40 | P---- | PROCESSOR_REVISION=1a05
INFO | wrapper | 2011/09/08 08:17:40 | P---- | ProgramFiles=C:\Program Files
INFO | wrapper | 2011/09/08 08:17:40 | P---- | PROMPT=$P$G
INFO | wrapper | 2011/09/08 08:17:40 | P---- | SESSIONNAME=RDP-Tcp#3
INFO | wrapper | 2011/09/08 08:17:40 | P---- | SystemDrive=C:
INFO | wrapper | 2011/09/08 08:17:40 | P---- | SystemRoot=C:\WINDOWS
INFO | wrapper | 2011/09/08 08:17:40 | P---- | TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1
INFO | wrapper | 2011/09/08 08:17:40 | P---- | TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1
INFO | wrapper | 2011/09/08 08:17:40 | P---- | USERDOMAIN=IP-0A60A398
INFO | wrapper | 2011/09/08 08:17:40 | P---- | USERNAME=Administrator
INFO | wrapper | 2011/09/08 08:17:40 | P---- | USERPROFILE=C:\Documents and Settings\Administrator
INFO | wrapper | 2011/09/08 08:17:40 | P---- | windir=C:\WINDOWS
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_ARCH=x86
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_BIN_DIR=D:\jboss-as-7.0.0.Final\bin
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_BITS=32
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_CONF_DIR=D:\jboss-as-7.0.0.Final\conf
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_FILE_SEPARATOR=\
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_HOST_NAME=ip-0A60A398
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_HOSTNAME=ip-0A60A398
INFO | wrapper | 2011/09/08 08:17:40 | P--W- | WRAPPER_INIT_DIR=D:\jboss-as-7.0.0.Final\bin
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_LANG=en
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_OS=windows
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_PATH_SEPARATOR=;
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_PID=4432
INFO | wrapper | 2011/09/08 08:17:40 | ---W- | WRAPPER_WORKING_DIR=D:\jboss-as-7.0.0.Final\bin
INFO | wrapper | 2011/09/08 08:17:40 | Environment variables END:
INFO | wrapper | 2011/09/08 08:17:40 |
DEBUG | wrapper | 2011/09/08 08:17:40 | Use tick timer mutex=FALSE
DEBUG | wrapper | 2011/09/08 08:17:40 | active log file changed: ..\standalone\log\wrapper.log
DEBUG | wrapperp | 2011/09/08 08:17:40 | server listening on port 32001.
DEBUG | wrapper | 2011/09/08 08:17:40 | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30
STATUS | wrapper | 2011/09/08 08:17:40 | Launching a JVM...
INFO | wrapper | 2011/09/08 08:17:40 | Command: "C:\Program Files\Java\jdk1.6.0_16\bin\java" -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.tanukisoftware.wrapper.WrapperManager.mbean=false -Dlogging.configuration=file:D:\jboss-as-7.0.0.Final/standalone/configuration/logging.properties -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl -Djava.library.path="../lib" -classpath "D:\jboss-as-7.0.0.Final\lib\wrapper.jar;C:\Program Files\Java\jdk1.6.0_16/lib/tools.jar;D:\jboss-as-7.0.0.Final/bin/run.jar;D:\jboss-as-7.0.0.Final/jboss-modules.jar" -Dwrapper.key="2DBcrdYsF4TkOie9" -Dwrapper.port=32001 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=4432 -Dwrapper.version="3.5.9" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperJarApp D:\jboss-as-7.0.0.Final\bin\run.jar -mp D:\jboss-as-7.0.0.Final\modules -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=D:\jboss-as-7.0.0.Final
DEBUG | wrapper | 2011/09/08 08:17:40 | JVM started (PID=5064)
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader#11b86e7
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager: Initializing...
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: JVM #1
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Running a 32-bit JVM.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager package information:
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Implementation Title: org.tanukisoftware.wrapper
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Implementation Vendor: Tanuki Software, Ltd.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Implementation Version: 3.5.9
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Is Sealed?: False
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager protection domain:
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Location: file:/D:/jboss-as-7.0.0.Final/lib/wrapper.jar
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Size: 118,538
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: MD5: 0bb27af3979eaf3a593af1a3d63e9367
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Registering shutdown hook
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Using wrapper
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Load native library. One or more attempts may fail if platform specific libraries do not exist. This is NORMAL and is only a problem if they all fail.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Unable to load native library: wrapper-windows-x86-32.dll Cause: no wrapper-windows-x86-32 in java.library.path
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Loaded native library:
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Loaded native localization method.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Calling native initialization method.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJNI Debug: Initializing WrapperManager native library.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJNI Debug: Java Executable: C:\Program Files\Java\jdk1.6.0_16\bin\java.exe
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJNI Debug: Native Library: D:\jboss-as-7.0.0.Final\lib\wrapper.dll
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJNI Debug: Windows version: 5.2.3790
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Java Version : 1.6.0_16-b01 Java HotSpot(TM) Client VM
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Java VM Vendor : Sun Microsystems Inc.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: OS Name : Windows 2003
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: OS Arch : x86
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug:
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: Jar Main-Class: org.jboss.Main
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: Jar Classpath: ../client/getopt.jar
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: Classpath[0]=file:D:/jboss-as-7.0.0.Final/bin/run.jar
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: Classpath[1]=file:D:/jboss-as-7.0.0.Final/bin/../client/getopt.jar
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: WrapperManager.start(org.tanukisoftware.wrapper.WrapperJarApp#14693c7, args["-mp", "D:\jboss-as-7.0.0.Final\modules", "-logmodule", "org.jboss.logmanager", "-jaxpmodule", "javax.xml.jaxp-provider", "org.jboss.as.standalone", "-Djboss.home.dir=D:\jboss-as-7.0.0.Final"]) called by thread: main
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Control event monitor thread started.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Startup runner thread started.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Communications runner thread started.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Open socket to wrapper...Wrapper-Connection
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Unable to open socket to Wrapper from port 31,000, already in use.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Unable to open socket to Wrapper from port 31,001, already in use.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Opened Socket from 31,002 to 32,001
DEBUG | wrapper | 2011/09/08 08:17:41 | Pause reading child process output to share cycles.
DEBUG | wrapperp | 2011/09/08 08:17:41 | accepted a socket from 127.0.0.1 on port 31002
DEBUG | wrapperp | 2011/09/08 08:17:41 | closing backend server.
DEBUG | wrapperp | 2011/09/08 08:17:41 | read a packet KEY : 2DBcrdYsF4TkOie9
DEBUG | wrapper | 2011/09/08 08:17:41 | Got key from JVM: 2DBcrdYsF4TkOie9
DEBUG | wrapperp | 2011/09/08 08:17:41 | send a packet LOW_LOG_LEVEL : 1
DEBUG | wrapperp | 2011/09/08 08:17:41 | send a packet LOGFILE : ..\standalone\log\wrapper.log
DEBUG | wrapperp | 2011/09/08 08:17:41 | send a packet PROPERTIES : (Property Values)
DEBUG | wrapper | 2011/09/08 08:17:41 | Start Application.
DEBUG | wrapperp | 2011/09/08 08:17:41 | send a packet START : start
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Send a packet KEY : 2DBcrdYsF4TkOie9
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: handleBackend()
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: LowLogLevel from Wrapper is 1
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Received a packet LOGFILE : ..\standalone\log\wrapper.log
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Received a packet PROPERTIES : (Property Values)
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Received a packet START : start
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Java temporary directory: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: calling WrapperListener.start()
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: WrapperListener.start runner thread started.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: start(args) Will wait up to 2 seconds for the main method to complete.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: invoking main method
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: main method completed
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperJarApp Debug: start(args) end. Main Completed=true, exitCode=null
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: returned from WrapperListener.start()
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Send a packet STARTED :
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: WrapperListener.start runner thread stopped.
INFO | jvm 1 | 2011/09/08 08:17:41 | jboss: unused non-option argument: D:\jboss-as-7.0.0.Final\modules
INFO | jvm 1 | 2011/09/08 08:17:41 | jboss: unused non-option argument: org.jboss.logmanager
INFO | jvm 1 | 2011/09/08 08:17:41 | jboss: option '-j, --jaxp' no longer supported
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: ShutdownHook started
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Send a packet STOP : 0
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Startup runner thread stopped.
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Stopped checking for control events.
DEBUG | wrapperp | 2011/09/08 08:17:41 | read a packet STARTED :
DEBUG | wrapper | 2011/09/08 08:17:41 | JVM signaled that it was started.
DEBUG | wrapperp | 2011/09/08 08:17:41 | read a packet STOP : 0
DEBUG | wrapper | 2011/09/08 08:17:41 | JVM requested a shutdown. (0)
DEBUG | wrapper | 2011/09/08 08:17:41 | wrapperStopProcess(0, FALSE) called.
DEBUG | wrapper | 2011/09/08 08:17:41 | Sending stop signal to JVM
DEBUG | wrapperp | 2011/09/08 08:17:41 | send a packet STOP : NULL
INFO | jvm 1 | 2011/09/08 08:17:41 | WrapperManager Debug: Received a packet STOP :
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: Thread, Wrapper-Shutdown-Hook, handling the shutdown process.
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: calling listener.stop()
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperJarApp Debug: stop(0)
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: returned from listener.stop() -> 0
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: shutdownJVM(0) Thread: Wrapper-Shutdown-Hook
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: wait for 0 shutdown locks to be released.
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: Send a packet STOPPED : 0
DEBUG | wrapperp | 2011/09/08 08:17:42 | read a packet STOPPED : 0
DEBUG | wrapper | 2011/09/08 08:17:42 | JVM signaled that it was stopped.
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: Closing backend connection.
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: Closed backend socket: java.net.SocketException: socket closed
INFO | jvm 1 | 2011/09/08 08:17:42 | WrapperManager Debug: Returned from backend handler.
DEBUG | wrapperp | 2011/09/08 08:17:42 | socket read no code (closed?).
DEBUG | wrapperp | 2011/09/08 08:17:42 | closing backend socket.
INFO | jvm 1 | 2011/09/08 08:17:43 | WrapperManager Debug: Server daemon shut down
INFO | jvm 1 | 2011/09/08 08:17:43 | WrapperManager Debug: ShutdownHook complete
DEBUG | wrapper | 2011/09/08 08:17:43 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
DEBUG | wrapper | 2011/09/08 08:17:43 | JVM exited normally.
STATUS | wrapper | 2011/09/08 08:17:43 | <-- Wrapper Stopped
wrapper.conf...
#encoding=UTF-8
# Configuration files must begin with a line specifying the encoding
# of the the file.
#********************************************************************
# Wrapper License Properties (Ignored by Community Edition)
#********************************************************************
# Professional and Standard Editions of the Wrapper require a valid
# License Key to start. Licenses can be purchased or a trial license
# requested on the following pages:
# http://wrapper.tanukisoftware.com/purchase
# http://wrapper.tanukisoftware.com/trial
# Include file problems can be debugged by removing the first '#'
# from the following line:
##include.debug
# The Wrapper will look for either of the following optional files for a
# valid License Key. License Key properties can optionally be included
# directly in this configuration file.
#include ../conf/wrapper-license.conf
#include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf
# The following property will output information about which License Key(s)
# are being found, and can aid in resolving any licensing problems.
#wrapper.license.debug=TRUE
#********************************************************************
# Wrapper Localization
#********************************************************************
# Specify the locale which the Wrapper should use. By default the system
# locale is used.
#wrapper.lang=en_US # en_US or ja_JP
# Specify the location of the Wrapper's language resources. If these are
# missing, the Wrapper will default to the en_US locale.
wrapper.lang.folder=../lang
#********************************************************************
# Wrapper Java Properties
#********************************************************************
# Java Application
# Locate the java binary on the system PATH:
#wrapper.java.command=java
# Specify a specific java binary:
set.JBOSS_HOME=D:\jboss-as-7.0.0.Final
set.JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
wrapper.java.command=%JAVA_HOME%/bin/java
# Tell the Wrapper to log the full generated Java command line.
wrapper.java.command.loglevel=INFO
# 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.WrapperJarApp
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=%JBOSS_HOME%\lib\wrapper.jar
wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
wrapper.java.classpath.3=%JBOSS_HOME%/bin/run.jar
wrapper.java.classpath.4=%JBOSS_HOME%/*.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=../lib
# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
wrapper.java.additional.auto_bits=TRUE
# Java Additional Parameters
wrapper.java.additional.1=-XX:MaxPermSize=512m
wrapper.java.additional.2=-Dorg.jboss.resolver.warning=true
wrapper.java.additional.3=-Dsun.rmi.dgc.client.gcInterval=3600000
wrapper.java.additional.4=-Dsun.rmi.dgc.server.gcInterval=3600000
wrapper.java.additional.5=-Djboss.modules.system.pkgs=org.jboss.byteman
wrapper.java.additional.6=-Dorg.tanukisoftware.wrapper.WrapperManager.mbean=false
wrapper.java.additional.7=- Dlogging.configuration=file:%JBOSS_HOME%/standalone/configuration/logging.properties
wrapper.java.additional.8=- Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=128
# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=512
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=%JBOSS_HOME%\bin\run.jar
wrapper.app.parameter.2=-mp
wrapper.app.parameter.3=%JBOSS_HOME%\modules
wrapper.app.parameter.4=-logmodule
wrapper.app.parameter.5=org.jboss.logmanager
wrapper.app.parameter.6=-jaxpmodule
wrapper.app.parameter.7=javax.xml.jaxp-provider
wrapper.app.parameter.8=org.jboss.as.standalone
wrapper.app.parameter.9=-Djboss.home.dir=%JBOSS_HOME%
Anyone know what's going on? Any advice appreciated.
JBoss AS7 has changed in several ways how it is launching.
You are using Integration method 1, however it seems that you are passing in a jar file as the first parameter to org.tanukisoftware.wrapper.WrapperSimpleApp. WrapperSimpleApp expects the name of your main class as parameter. So you should go for integration method 4 and pass the jar file to org.tanukisoftware.wrapper.WrapperJarApp.
We have had some guys recently with the same questions and helped them resolving the problem:
https://issues.jboss.org/browse/AS7-1547
Hope this information helps you out.
To me, based on what I see in the following line, it appears that your arguments to the JVM might be off a little? This error is unusual looking:
WrapperSimpleApp: Unable to locate the class -mp:
java.lang.ClassNotFoundException: -mp
In order for this to work, doesn't the main class in JBoss AS7 need to extend the tanukisoftware service interface class? I realize that extending that class isn't required but I do know that if JBoss didn't extend it, then you wont have some of the functionality that you might be trying to use from the wrapper.
Therefor, if you get TOTALLY stuck, you could create your own secondary wrapper class that extends the tanuki wrapper and it calls the JBoss main class from itself. Sorta like a simple wrapper around the tanuki wrapper.