|
From: John A. <joh...@op...> - 2011-02-08 17:17:24
|
With the quotes, It looks like the javaagent argument is coming through OK to the wrapper.jar file. The arg causes the ClassNotFound error on the log4j Logger class.
That error may be causing the classpath to be wrong when the wrapper tries to start JBoss.
Is there a way to log4j.jar to invocation of the wrapper to see I fixing that error solves the entire problem?
--> Wrapper Started as Console
Java Service Wrapper Standard Edition 3.3.1
Copyright (C) 1999-2008 Tanuki Software, Inc. All Rights Reserved.
http://wrapper.tanukisoftware.org
Licensed to OpTier Ltd. for OpTier BTM Server
Using tick timer.
server listening on port 32000.
Ping settings: wrapper.ping.interval=20, wrapper.ping.interval.logged=1, wrapper.ping.timeout=1200
Launching a JVM...
command: "..\..\jdk\bin\java" -server -da -XX:PermSize=256m -Djava.awt.headless=true -Djava.endorsed.dirs=../lib/endorsed -Dprogram.name=run.bat -Doptier.module.name=server -DOPTIER.HOME=../../../../ -DPRODUCT.HOME=../../../ -DOPTIER.SERVER.HOME=../../../server/ -Djboss.http.port=8081 -Djboss.service.binding.set=ports-default -DserverType=single-server -DserverName=single-server -DRemoteJndiUrl=localhost:1099 "-javaagent:C:\OpTier_Server_4-0-0-3008\corefirst\tierext\lib\cf-plugins-instrument-agent.jar=optier.launch.properties=C:\OpTier_Server_4-0-0-3008\corefirst\tierext\jboss\conf\jbLaunch.properties#optier.instrumented.jboss=true#jb.version=5" -Xms1024m -Xmx1024m -Djava.library.path="." -classpath "../../../lib/wrapper.jar;../../../lib/cfserver-cf_main.jar;../../../server/conf;run.jar;../lib/log4j-boot.jar;../../jdk/lib/tools.jar;../../lib/log4j.jar" -Dwrapper.key="fG3v7C79oTC86L-FiRoZ3dqiJ5C6j-74" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=1500 -Dwrapper.version="3.3.1-st" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="600" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.optier.corefirst.server.util.Main -b 0.0.0.0 -c default
JVM started (PID=6288)
setting system property :optier.launch.properties=C:\OpTier_Server_4-0-0-3008\corefirst\tierext\jboss\conf\jbLaunch.properties
setting system property :optier.instrumented.jboss=true
setting system property :jb.version=5
java.lang.Exception:
[FATAL] JV-Ins-00131 Corefirst TierExtension failed to initialize. Tier starting without Corefirst. org/apache/log4j/Logger Corefirst Logger system not available. Available stack trace follows...
at com.optier.corefirst.plugin.j2ee.extension.core.PluginFatalError.dumpFatalError(PluginFatalError.java:31)
at com.optier.corefirst.plugin.j2ee.extension.core.PluginFatalError.markFatalUnRecovarableError(PluginFatalError.java:57)
at com.optier.corefirst.plugin.instrument.DynamicLauncher.initAgentMode(DynamicLauncher.java:922)
at com.optier.corefirst.plugin.instrument.DynamicLauncher.initAgentMode(DynamicLauncher.java:915)
at com.optier.corefirst.plugin.instrument.agent.JavaAgent.premain(JavaAgent.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at com.optier.corefirst.util.LoggerImplFactory.getServerLogger(LoggerImplFactory.java:32)
at com.optier.corefirst.util.LoggerImplFactory.getInstance(LoggerImplFactory.java:20)
at com.optier.corefirst.jni.Jni.<clinit>(Jni.java:27)
at com.optier.corefirst.plugin.instrument.DynamicLauncher.<clinit>(DynamicLauncher.java:124)
... 7 more
WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@14fe5c
WrapperManager: Initializing...
WrapperManager Debug: JVM #1
WrapperManager Debug: Running a 32-bit JVM.
WrapperManager Debug: Registering shutdown hook
WrapperManager Debug: Using wrapper
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.
WrapperManager Debug: Unable to load native library: wrapper-windows-x86-32.dll Cause: no wrapper-windows-x86-32 in java.library.path
WrapperManager Debug: Loaded native library: wrapper.dll
WrapperManager Debug: Calling native initialization method.
WrapperJNI Debug: Initializing WrapperManager native library.
WrapperJNI Debug: Java Executable: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\jdk\bin\java.exe
WrapperJNI Debug: Windows version: 6.1.7600
WrapperManager Debug: Java Version : 1.6.0_16-b01 Java HotSpot(TM) Server VM
WrapperManager Debug: Java VM Vendor : Sun Microsystems Inc.
WrapperManager Debug: OS Name : Windows 7
WrapperManager Debug: OS Arch : x86
WrapperManager Debug:
WrapperManager Debug: Control event monitor thread started.
WrapperManager Debug: Startup runner thread started.
WrapperManager Debug: WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@8b819f, args["-b", "0.0.0.0", "-c", "default"]) called by thread: main
WrapperManager Debug: Communications runner thread started.
WrapperManager Debug: Open socket to wrapper...Wrapper-Connection
WrapperManager Debug: Failed attempt to bind using local port 31000
WrapperManager Debug: Opened Socket from 31001 to 32000
WrapperManager Debug: Send a packet KEY : fG3v7C79oTC86L-FiRoZ3dqiJ5C6j-74
WrapperManager Debug: handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001])
accepted a socket from 127.0.0.1 on port 31001
read a packet KEY : fG3v7C79oTC86L-FiRoZ3dqiJ5C6j-74
Got key from JVM: fG3v7C79oTC86L-FiRoZ3dqiJ5C6j-74
send a packet LOW_LOG_LEVEL : 1
send a packet PING_TIMEOUT : 1200
send a packet PROPERTIES : (Property Values)
Start Application.
send a packet START : start
WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1
WrapperManager Debug: LowLogLevel from Wrapper is 1
WrapperManager Debug: Received a packet PING_TIMEOUT : 1200
WrapperManager Debug: PingTimeout from Wrapper is 1200000
WrapperManager Debug: Received a packet PROPERTIES : (Property Values)
WrapperManager Debug: Received a packet START : start
WrapperManager Debug: calling WrapperListener.start()
WrapperManager Debug: Waiting for WrapperListener.start runner thread to complete.
WrapperManager Debug: WrapperListener.start runner thread started.
WrapperSimpleApp Debug: start(args) Will wait up to 2 seconds for the main method to complete.
WrapperSimpleApp Debug: invoking main method
Database connection-url: jdbc:oracle:thin:@192.168.56.128:1521:btmdb, username: optier_server_40_user.
DB validated successfully.
Start Clean CoreFirst Cache (Both Tables & File)
Completed Cleaning CoreFirst Cache
Starting the server...
WrapperSimpleApp Debug: main method completed
WrapperSimpleApp Debug: start(args) end. Main Completed=true, exitCode=null
WrapperManager Debug: WrapperListener.start runner thread stopped.
WrapperManager Debug: returned from WrapperListener.start()
WrapperManager Debug: Send a packet STARTED :
WrapperManager Debug: Startup runner thread stopped.
read a packet STARTED :
JVM signalled that it was started.
09:59:14,420 INFO [ServerImpl] Starting JBoss (Microcontainer)...
09:59:14,420 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
09:59:14,421 INFO [ServerImpl] Bootstrap URL: null
09:59:14,421 INFO [ServerImpl] Home Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver
09:59:14,421 INFO [ServerImpl] Home URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/
09:59:14,421 INFO [ServerImpl] Library URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/lib/
09:59:14,422 INFO [ServerImpl] Patch URL: null
09:59:14,422 INFO [ServerImpl] Common Base URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/common/
09:59:14,422 INFO [ServerImpl] Common Library URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/common/lib/
09:59:14,422 INFO [ServerImpl] Server Name: default
09:59:14,422 INFO [ServerImpl] Server Base Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server
09:59:14,422 INFO [ServerImpl] Server Base URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/server/
09:59:14,422 INFO [ServerImpl] Server Config URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/server/default/conf/
09:59:14,422 INFO [ServerImpl] Server Home Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default
09:59:14,422 INFO [ServerImpl] Server Home URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/server/default/
09:59:14,422 INFO [ServerImpl] Server Data Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default\data
09:59:14,423 INFO [ServerImpl] Server Library URL: file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/server/default/lib/
09:59:14,423 INFO [ServerImpl] Server Log Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default\log
09:59:14,423 INFO [ServerImpl] Server Native Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default\tmp\native
09:59:14,423 INFO [ServerImpl] Server Temp Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default\tmp
09:59:14,423 INFO [ServerImpl] Server Temp Deploy Dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default\tmp\deploy
09:59:15,140 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/OpTier_Server_4-0-0-3008/corefirst/thirdparty/openserver/server/default/conf/bootstrap.xml
09:59:15,726 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
Pause reading child output to share cycles.
send a packet PING : ping
09:59:15,729 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
09:59:16,015 INFO [CopyMechanism] VFS temp dir: C:\OpTier_Server_4-0-0-3008\corefirst\thirdparty\openserver\server\default\tmp
09:59:16,016 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
09:59:17,669 INFO [ServerInfo] Java version: 1.6.0_16,Sun Microsystems Inc.
09:59:17,669 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
09:59:17,669 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.2-b01,Sun Microsystems Inc.
09:59:17,669 INFO [ServerInfo] OS-System: Windows 7 6.1,x86
09:59:17,670 INFO [ServerInfo] VM arguments: -da -XX:PermSize=256m -Djava.awt.headless=true -Djava.endorsed.dirs=../lib/endorsed -Dprogram.name=run.bat -Doptier.module.name=server -DOPTIER.HOME=../../../../ -DPRODUCT.HOME=../../../ -DOPTIER.SERVER.HOME=../../../server/ -Djboss.http.port=8081 -Djboss.service.binding.set=ports-default -DserverType=single-server -DserverName=single-server -DRemoteJndiUrl=localhost:1099 -javaagent:C:\OpTier_Server_4-0-0-3008\corefirst\tierext\lib\cf-plugins-instrument-agent.jar=optier.launch.properties=C:\OpTier_Server_4-0-0-3008\corefirst\tierext\jboss\conf\jbLaunch.properties#optier.instrumented.jboss=true#jb.version=5 -Xms1024m -Xmx1024m -Djava.library.path=. -Dwrapper.key=fG3v7C79oTC86L-FiRoZ3dqiJ5C6j-74 -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug=TRUE -Dwrapper.pid=1500 -Dwrapper.version=3.3.1-st -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=600 -Dwrapper.jvmid=1
09:59:17,706 INFO [JMXKernel] Legacy JMX core initialized
09:59:20,303 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@ec9441[domain=default, server=default, name=default]
09:59:22,402 ERROR [AbstractKernelController] Error installing to Create: name=jboss.system:service=Logging,type=Log4jService state=Configured mode=Manual requiredState=Create
java.lang.NoClassDefFoundError: org/apache/log4j/spi/LoggerFactory
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:892)
at java.lang.ClassLoader.loadClass(ClassLoader.java:302)
at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:319)
at org.apache.log4j.xml.DOMConfigurator.parseCategoryFactory(DOMConfigurator.java:433)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:907)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:821)
at org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.java:697)
at org.jboss.logging.Log4jService$URLWatchTimerTask.run(Log4jService.java:636)
at org.jboss.logging.Log4jService.setup(Log4jService.java:492)
at org.jboss.logging.Log4jService.createService(Log4jService.java:528)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:344)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
at $Proxy38.create(Unknown Source)
at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42)
at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.create(ServiceController.java:422)
at org.jboss.system.ServiceController.create(ServiceController.java:387)
at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:158)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:96)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
WrapperManager Debug: Received a packet PING : ping
WrapperManager Debug: Send a packet PING : ping
|