JBoss AS7 Service Wrapper问题

时间:2011-09-07 17:11:30

标签: java jboss wrapper

我试图在Windows 7 64位计算机上使用JBoss AS7的Java Service Wrapper 3.3.5 32位社区版本。我有一个预感,我遇到问题的原因是我们的32位版本,但我们已经能够成功使用32位版本的jsw和其他应用程序(ActiveMQ),所以我想我试试首先是32位版本。如果建议升级到专业版,我们会这样做。

我在下面粘贴了我的wrapper.log和wrapper.conf。现在服务无法正常启动。我尝试通过确保jsw通过我的conf中的JAVA_HOME和JBOSS_HOME的硬编码路径找到我的java.library.path来解决UnsatisfiedLinkError:java.library.path错误中没有wrapper-windows-x86-32。

... 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%

任何人都知道发生了什么?任何建议表示赞赏。

2 个答案:

答案 0 :(得分:1)

JBoss AS7在几个方面已经发生了变化。

您正在使用Integration方法1,但是您似乎将jar文件作为org.tanukisoftware.wrapper.WrapperSimpleApp的第一个参数传递。 WrapperSimpleApp期望主类的名称作为参数。所以你应该去集成方法4并将jar文件传递给org.tanukisoftware.wrapper.WrapperJarApp。

我们最近有一些人有同样的问题并帮助他们解决问题:

https://issues.jboss.org/browse/AS7-1547

希望这些信息可以帮助你。

答案 1 :(得分:0)

对我来说,基于我在下面的行中看到的内容,看来您对JVM的参数可能会有点偏差?这个错误很不寻常:

  

WrapperSimpleApp:无法找到类-mp:   java.lang.ClassNotFoundException:-mp

为了使其工作,JBoss AS7中的主类是否需要扩展tanukisoftware服务接口类?我意识到扩展该类不是必需的,但我知道如果JBoss没有扩展它,那么你将不会有一些你可能试图从包装器中使用的功能。

因此,如果你完全陷入困境,你可以创建自己的辅助包装类来扩展tanuki包装器,并从它自己调用JBoss主类。 Sorta就像是一个围绕着tanuki包装的简单包装。