I'm trying to make Jboss Application Server 7.1.0 run as a service using the Java service wrapper, I already solved many problems but for each one I solve I get a new one. Currently I'm using this configuration:
# Java Application
#wrapper.java.command=java
wrapper.java.command=%JAVA_HOME%/bin/java.exe
# 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=%OG_HOME%/bin/wrapper-3.2.3.jar
wrapper.java.classpath.2=%JBOSS_HOME%/modules/org/jboss/as/server/main/jboss-as-server-7.1.0.Final.jar
wrapper.java.classpath.3=%JBOSS_HOME%/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.2.GA.jar
wrapper.java.classpath.4=%JBOSS_HOME%/modules/org/jboss/stdio/main/jboss-stdio-1.0.1.GA.jar
wrapper.java.classpath.5=%JBOSS_HOME%/modules/org/jboss/as/controller/main/jboss-as-controller-7.1.0.Final.jar
wrapper.java.classpath.6=%JBOSS_HOME%/modules/org/jboss/logmanager/log4j/main/jboss-logmanager-log4j-1.0.0.GA.jar
wrapper.java.classpath.7=%JBOSS_HOME%/modules/org/apache/log4j/main/log4j-1.2.16.jar
wrapper.java.classpath.8=%JBOSS_HOME%/jboss-modules.jar
#wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
#wrapper.java.classpath.3=%JBOSS_HOME%/bin/run.jar
# used to avoid problems with quotes inside the PATH environment variable
wrapper.java.library.path.append_system_path=TRUE
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=%OG_HOME%bin
wrapper.java.library.path.2=%JBOSS_HOME%\lib
# these are the JAVA_OPTS
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
wrapper.java.additional.9-Djboss.server.default.config=standalone-full-ACE2.xml
#wrapper.java.additional.1=-Dprogram.name=standalone.bat
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=64
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=512
# Location of OG log folder
wrapper.app.parameter.1=org.jboss.modules.Main
wrapper.app.parameter.2=%JBOSS_HOME%\jboss-modules.jar
wrapper.app.parameter.3=-mp
wrapper.app.parameter.4=%JBOSS_HOME%\modules
wrapper.app.parameter.5=-jaxpmodule
wrapper.app.parameter.6=javax.xml.jaxp-provider
wrapper.app.parameter.7=org.jboss.as.standalone
wrapper.app.parameter.8=-Djboss.home.dir=%JBOSS_HOME%
# Data source definitions are needed for the wait for DB Service
#********************************************************************
# 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
# wrapper log location
wrapper.logfile=%OG_HOME%/log/ace2_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=DEBUG
# 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=10mb
# 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=10
# 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=ACE2 on JBOSS Service Wrapper console
#********************************************************************
# 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=JbossServiceForACE2
# Display name of the service
wrapper.ntservice.displayname=Oblicore - ACE2 on JBOSS Application Server
# Description of the service
wrapper.ntservice.description=JEE Application Server Running ACE2 Manager
# 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
But when running it I get this error:
STATUS | wrapper | 2012/03/12 14:26:31 | --> Wrapper Started as Console
DEBUG | wrapper | 2012/03/12 14:26:31 | Using tick timer.
DEBUG | wrapperp | 2012/03/12 14:26:32 | server listening on port 32000.
STATUS | wrapper | 2012/03/12 14:26:32 | Launching a JVM...
DEBUG | wrapper | 2012/03/12 14:26:32 | command: "C:\Program Files\Java\jdk1.6.0_17\bin\java.exe" -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:C:\jboss-as-7.1.0.Final/standalone/configuration/logging.properties -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl -Xms64m -Xmx512m -Djava.library.path="C:\Program Files\CA\Cloud Insight\bin;C:\jboss-as-7.1.0.Final\lib;C:\Program Files\CA\SC\CAWIN\;C:\Program Files\Java\jdk1.6.0_17\bin;C:\oracle\product\11.1.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CA\DSM\bin;C:\PROGRA~1\CA\SC\CAM\bin;C:\Program Files\CA\Cloud Insight\bin" -classpath "C:\Program Files\CA\Cloud Insight\/bin/wrapper-3.2.3.jar;C:/jboss-as-7.1.0.Final/modules/org/jboss/as/server/main/jboss-as-server-7.1.0.Final.jar;C:/jboss-as-7.1.0.Final/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.2.GA.jar;C:/jboss-as-7.1.0.Final/modules/org/jboss/stdio/main/jboss-stdio-1.0.1.GA.jar;C:/jboss-as-7.1.0.Final/modules/org/jboss/as/controller/main/jboss-as-controller-7.1.0.Final.jar;C:/jboss-as-7.1.0.Final/modules/org/jboss/logmanager/log4j/main/jboss-logmanager-log4j-1.0.0.GA.jar;C:/jboss-as-7.1.0.Final/modules/org/apache/log4j/main/log4j-1.2.16.jar;C:/jboss-as-7.1.0.Final/jboss-modules.jar" -Dwrapper.key="0wwz4AsNMPAgFGNc" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=3324 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.jboss.modules.Main C:\jboss-as-7.1.0.Final\jboss-modules.jar -mp C:\jboss-as-7.1.0.Final\modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=C:\jboss-as-7.1.0.Final
DEBUG | wrapper | 2012/03/12 14:26:32 | JVM started (PID=5612)
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader#47858e
INFO | jvm 1 | 2012/03/12 14:26:32 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2012/03/12 14:26:32 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2012/03/12 14:26:32 |
INFO | jvm 1 | 2012/03/12 14:26:32 | Wrapper Manager: JVM #1
INFO | jvm 1 | 2012/03/12 14:26:32 | Running a 32-bit JVM.
INFO | jvm 1 | 2012/03/12 14:26:32 | Wrapper Manager: Registering shutdown hook
INFO | jvm 1 | 2012/03/12 14:26:32 | Wrapper Manager: Using wrapper
INFO | jvm 1 | 2012/03/12 14:26:32 | Load native library. One or more attempts may fail if platform specific libraries do not exist.
INFO | jvm 1 | 2012/03/12 14:26:32 | Loading native library failed: wrapper-windows-x86-32.dll Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-32 in java.library.path
INFO | jvm 1 | 2012/03/12 14:26:32 | Loaded native library: wrapper.dll
INFO | jvm 1 | 2012/03/12 14:26:32 | Calling native initialization method.
INFO | jvm 1 | 2012/03/12 14:26:32 | Initializing WrapperManager native library.
INFO | jvm 1 | 2012/03/12 14:26:32 | Java Executable: C:\Program Files\Java\jdk1.6.0_17\bin\java.exe
INFO | jvm 1 | 2012/03/12 14:26:32 | Windows version: 6.0.6002
INFO | jvm 1 | 2012/03/12 14:26:32 | Java Version : 1.6.0_17-b04 Java HotSpot(TM) Client VM
INFO | jvm 1 | 2012/03/12 14:26:32 | Java VM Vendor : Sun Microsystems Inc.
INFO | jvm 1 | 2012/03/12 14:26:32 |
INFO | jvm 1 | 2012/03/12 14:26:32 | Control event monitor thread started.
INFO | jvm 1 | 2012/03/12 14:26:32 | Startup runner thread started.
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp#5e3974, args["C:\jboss-as-7.1.0.Final\jboss-modules.jar", "-mp", "C:\jboss-as-7.1.0.Final\modules", "-jaxpmodule", "javax.xml.jaxp-provider", "org.jboss.as.standalone", "-Djboss.home.dir=C:\jboss-as-7.1.0.Final"]) called by thread: main
INFO | jvm 1 | 2012/03/12 14:26:32 | Communications runner thread started.
INFO | jvm 1 | 2012/03/12 14:26:32 | Open socket to wrapper...Wrapper-Connection
INFO | jvm 1 | 2012/03/12 14:26:32 | Opened Socket from 31000 to 32000
INFO | jvm 1 | 2012/03/12 14:26:32 | Send a packet KEY : 0wwz4AsNMPAgFGNc
INFO | jvm 1 | 2012/03/12 14:26:32 | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000])
DEBUG | wrapperp | 2012/03/12 14:26:32 | accepted a socket from 127.0.0.1 on port 31000
DEBUG | wrapperp | 2012/03/12 14:26:32 | read a packet KEY : 0wwz4AsNMPAgFGNc
DEBUG | wrapper | 2012/03/12 14:26:32 | Got key from JVM: 0wwz4AsNMPAgFGNc
DEBUG | wrapperp | 2012/03/12 14:26:32 | send a packet LOW_LOG_LEVEL : 1
DEBUG | wrapperp | 2012/03/12 14:26:32 | send a packet PING_TIMEOUT : 30
DEBUG | wrapperp | 2012/03/12 14:26:32 | send a packet PROPERTIES : (Property Values)
DEBUG | wrapper | 2012/03/12 14:26:32 | Start Application.
DEBUG | wrapperp | 2012/03/12 14:26:32 | send a packet START : start
INFO | jvm 1 | 2012/03/12 14:26:32 | Received a packet LOW_LOG_LEVEL : 1
INFO | jvm 1 | 2012/03/12 14:26:32 | Wrapper Manager: LowLogLevel from Wrapper is 1
INFO | jvm 1 | 2012/03/12 14:26:32 | Received a packet PING_TIMEOUT : 30
INFO | jvm 1 | 2012/03/12 14:26:32 | PingTimeout from Wrapper is 30000
INFO | jvm 1 | 2012/03/12 14:26:32 | Received a packet PROPERTIES : (Property Values)
INFO | jvm 1 | 2012/03/12 14:26:32 | Received a packet START : start
INFO | jvm 1 | 2012/03/12 14:26:32 | calling WrapperListener.start()
INFO | jvm 1 | 2012/03/12 14:26:32 | Waiting for WrapperListener.start runner thread to complete.
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperListener.start runner thread started.
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete.
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperSimpleApp: invoking main method
INFO | jvm 1 | 2012/03/12 14:26:32 |
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalArgumentException: Slot has invalid characters or is empty
INFO | jvm 1 | 2012/03/12 14:26:32 | java.lang.IllegalArgumentException: Slot has invalid characters or is empty
INFO | jvm 1 | 2012/03/12 14:26:32 | at org.jboss.modules.ModuleIdentifier.fromString(ModuleIdentifier.java:180)
INFO | jvm 1 | 2012/03/12 14:26:32 | at org.jboss.modules.Main.main(Main.java:253)
INFO | jvm 1 | 2012/03/12 14:26:32 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2012/03/12 14:26:32 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO | jvm 1 | 2012/03/12 14:26:32 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO | jvm 1 | 2012/03/12 14:26:32 | at java.lang.reflect.Method.invoke(Method.java:597)
INFO | jvm 1 | 2012/03/12 14:26:32 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 1 | 2012/03/12 14:26:32 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperSimpleApp: start(args) end. Main Completed=true, exitCode=1
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperListener.start runner thread stopped.
INFO | jvm 1 | 2012/03/12 14:26:32 | returned from WrapperListener.start()
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperListener.start() returned an exit code of 1.
INFO | jvm 1 | 2012/03/12 14:26:32 | WrapperManager.stop(1) called by thread: Wrapper-Connection
INFO | jvm 1 | 2012/03/12 14:26:32 | Send a packet STOP : 1
DEBUG | wrapperp | 2012/03/12 14:26:32 | read a packet STOP : 1
DEBUG | wrapper | 2012/03/12 14:26:32 | JVM requested a shutdown. (1)
DEBUG | wrapper | 2012/03/12 14:26:32 | wrapperStopProcess(1) called.
DEBUG | wrapper | 2012/03/12 14:26:32 | Sending stop signal to JVM
DEBUG | wrapperp | 2012/03/12 14:26:32 | send a packet STOP : NULL
INFO | jvm 1 | 2012/03/12 14:26:33 | Thread, Wrapper-Connection, handling the shutdown process.
INFO | jvm 1 | 2012/03/12 14:26:33 | shutdownJVM(1) Thread:Wrapper-Connection
INFO | jvm 1 | 2012/03/12 14:26:33 | Send a packet STOPPED : 1
DEBUG | wrapperp | 2012/03/12 14:26:33 | read a packet STOPPED : 1
DEBUG | wrapper | 2012/03/12 14:26:33 | JVM signalled that it was stopped.
INFO | jvm 1 | 2012/03/12 14:26:33 | Closing socket.
DEBUG | wrapperp | 2012/03/12 14:26:33 | socket read no code (closed?).
DEBUG | wrapperp | 2012/03/12 14:26:33 | server listening on port 32002.
INFO | jvm 1 | 2012/03/12 14:26:34 | calling System.exit(1)
DEBUG | wrapper | 2012/03/12 14:26:34 | JVM process exited with a code of 1, however the wrapper exit code was already 1.
DEBUG | wrapper | 2012/03/12 14:26:34 | JVM exited normally.
STATUS | wrapper | 2012/03/12 14:26:34 | <-- Wrapper Stopped
Couldn't find anything on the web :(
UPDATE: Thanks to the answers below i was able to solve that problem, but now I'm getting a new error, which , I think, is related to the OCI-JDBC driver:
INFO | jvm 1 | 2012/03/13 11:07:54 | 11:07:53,933 WARN
[org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (JCA PoolFiller) IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
INFO | jvm 1 | 2012/03/13 11:07:54 | at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277)
INFO | jvm 1 | 2012/03/13 11:07:54 | at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)
INFO | jvm 1 | 2012/03/13 11:07:54 | at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:758) [ironjacamar-core-impl-1.0.7.Final.jar:1.0.7.Final]
INFO | jvm 1 | 2012/03/13 11:07:54 | at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:703) [ironjacamar-core-impl-1.0.7.Final.jar:1.0.7.Final]
INFO | jvm 1 | 2012/03/13 11:07:54 | at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97) [ironjacamar-core-impl-1.0.7.Final.jar:1.0.7.Final]
INFO | jvm 1 | 2012/03/13 11:07:54 | at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]
INFO | jvm 1 | 2012/03/13 11:07:54 | Caused by: java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.getLibraryVersionNumber()I
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.T2CConnection.getLibraryVersionNumber(Native Method)
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3552)
INFO | jvm 1 | 2012/03/13 11:07:54 | at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_17]
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3547)
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:266)
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
INFO | jvm 1 | 2012/03/13 11:07:54 | at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
INFO | jvm 1 | 2012/03/13 11:07:54 | at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)
INFO | jvm 1 | 2012/03/13 11:07:54 | ... 5 more
INFO | jvm 1 | 2012/03/13 11:07:54 |
I saw some threads on the web saying that maybe the driver version is not up to date, but I'm not sure if they are referring to the DLL or jar?
[UPDATE]:
I've added the Oracle driver path using "wrapper.java.library.path" and it solved this error, but of course I now get a new one:
INFO | jvm 1 | 2012/03/14 10:51:38 | 10:51:38,468 WARN
[org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (JCA PoolFiller) IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
INFO | jvm 1 | 2012/03/14 10:51:38 | at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277)
INFO | jvm 1 | 2012/03/14 10:51:38 | at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)
INFO | jvm 1 | 2012/03/14 10:51:38 | at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:758) [ironjacamar-core-impl-1.0.7.Final.jar:1.0.7.Final]
INFO | jvm 1 | 2012/03/14 10:51:38 | at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:703) [ironjacamar-core-impl-1.0.7.Final.jar:1.0.7.Final]
INFO | jvm 1 | 2012/03/14 10:51:38 | at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97) [ironjacamar-core-impl-1.0.7.Final.jar:1.0.7.Final]
INFO | jvm 1 | 2012/03/14 10:51:38 | at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]
INFO | jvm 1 | 2012/03/14 10:51:38 | Caused by: java.sql.SQLException: Internal Error: Fetch error message failed!
INFO | jvm 1 | 2012/03/14 10:51:38 | at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:751)
INFO | jvm 1 | 2012/03/14 10:51:38 | at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
INFO | jvm 1 | 2012/03/14 10:51:38 | at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
INFO | jvm 1 | 2012/03/14 10:51:38 | at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
INFO | jvm 1 | 2012/03/14 10:51:38 | at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
INFO | jvm 1 | 2012/03/14 10:51:38 | at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
INFO | jvm 1 | 2012/03/14 10:51:38 | at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)
INFO | jvm 1 | 2012/03/14 10:51:38 | ... 5 more
INFO | jvm 1 | 2012/03/14 10:51:38 |
Also, at the end of the log i see this:
DEBUG | wrapperp | 2012/03/14 10:51:42 | send a packet PING : ping
INFO | jvm 1 | 2012/03/14 10:51:42 | Received a packet PING : ping
INFO | jvm 1 | 2012/03/14 10:51:42 | Send a packet PING : ok
DEBUG | wrapperp | 2012/03/14 10:51:42 | read a packet PING : ok
DEBUG | wrapper | 2012/03/14 10:51:42 | Got ping response from JVM
DEBUG | wrapperp | 2012/03/14 10:51:47 | send a packet PING : ping
INFO | jvm 1 | 2012/03/14 10:51:47 | Received a packet PING : ping
INFO | jvm 1 | 2012/03/14 10:51:47 | Send a packet PING : ok
DEBUG | wrapperp | 2012/03/14 10:51:47 | read a packet PING : ok
DEBUG | wrapper | 2012/03/14 10:51:47 | Got ping response from JVM
DEBUG | wrapperp | 2012/03/14 10:51:51 | send a packet PING : ping
INFO | jvm 1 | 2012/03/14 10:51:51 | Received a packet PING : ping
INFO | jvm 1 | 2012/03/14 10:51:51 | Send a packet PING : ok
DEBUG | wrapperp | 2012/03/14 10:51:51 | read a packet PING : ok
DEBUG | wrapper | 2012/03/14 10:51:51 | Got ping response from JVM
And It keeps going on like this until i stop the batch...
I'm not sure which post to answer on since it's been asked 3 times, but I'll do it on this one :-)
First of all that class path doesn't look right. None of those log4j libraries should be in your class path. In fact in future releases those are going away and will be pointed to different libraries in jboss-modules. The server class path should be figured out by jboss-modules.
Also this bit -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl isn't needed and could cause a problem.
Where did you come up with this configuration BTW?
[ coming from here: Problems using java service wrapper with jboss 7 ]
Please take a look at wrapper.app.parameter.2:
wrapper.app.parameter.2=%JBOSS_HOME%\jboss-modules.jar
I think this messes up the parameter parsing, leading to an IllegalArgumentException.
Therefore, please remove this line and try again.
Furthermore, as James R. Perkins already pointed out, org.jboss.logging.Logger.pluginClass shouldn't be set. Your class path is also probably not necessary or even a bad idea to set log4j libraries into the classpath (with Jboss).
Lastly, the following property also needs attention:
wrapper.java.additional.9-Djboss.server.default.config=standalone-full-ACE2.xml
please note the missing equal sign.
cheers,
edit after the question was edited:
this is an exception caused because a native library wasn't found. Presumably your ocijdbc dll.
Where is the file located?
you can configure the locations, the JVM will look for native(jni) libraries using the wrapper.java.library.path property .
Currently, the following locations are specified:
wrapper.java.library.path.1=%OG_HOME%bin
wrapper.java.library.path.2=%JBOSS_HOME%\lib
path.1 looks a bit suspicious, since there is no file separator('\'), like it is on path.2 or any place OG_HOME was used in the conf file...
hopes this helps you out.
hi, the Wrapper is pinging the JVM by default every 5sec, which is a completely normal operation. This will also only show up in your log file in debug mode. Once you switch to another loglevel, it shouldn't appear in the log file. what are you meaning by service is not installed? Once your JBoss AS runs fine in console, you can install it as service using either the Install-App.bat file or running:
.\wrapper.exe -i ..\conf\wrapper.conf
hope this helps you out.
cheers,
Related
I'm running SonarQube for quality test. When starting, I tried to load the localhost:9000, but it doesn't work. I have Java 11 and I'm using Windows 10. When I executed StartSonar.bat, I got the logging shown below. I searched on the net, but couldn't find what the problem might be. I'm using SonarQube version 7.4, I also tried 7.9, but it has the same problem.
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2021.01.11 19:06:57 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-7.4\temp
jvm 1 | 2021.01.11 19:06:57 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2021.01.11 19:06:57 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-7.4\elasticsearch]: C:\Program Files\Java\jdk-11.0.9\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-7.4\elasticsearch -cp lib/* org.elasticsearch.bootstrap.Elasticsearch -Epath.conf=C:\sonarqube-7.4\temp\conf\es
jvm 1 | 2021.01.11 19:06:57 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1 | 2021.01.11 19:06:57 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2021.01.11 19:06:57 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | WARNING: An illegal reflective access operation has occurred
jvm 1 | WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/C:/sonarqube-7.4/lib/common/netty-common-4.1.13.Final.jar) to constructor java.nio.DirectByteBuffer(long,int)
jvm 1 | WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
jvm 1 | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
jvm 1 | WARNING: All illegal access operations will be denied in a future release
jvm 1 | 2021.01.11 19:06:59 WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0x3fb5a3e3, L:/127.0.0.1:8783 - R:/127.0.0.1:9001]], closing connection
jvm 1 | io.netty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
jvm 1 | at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
jvm 1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
jvm 1 | at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
jvm 1 | at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
jvm 1 | at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
jvm 1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
jvm 1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
jvm 1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)
jvm 1 | at org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
jvm 1 | ... 19 common frames omitted
jvm 1 | 2021.01.11 19:06:59 WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0x3fb5a3e3, L:/127.0.0.1:8783 ! R:/127.0.0.1:9001]], closing connection
jvm 1 | io.netty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:392)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
jvm 1 | at io.netty.handler.logging.LoggingHandler.channelInactive(LoggingHandler.java:167)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
jvm 1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1329)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
jvm 1 | at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:908)
jvm 1 | at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:744)
jvm 1 | at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
jvm 1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)
jvm 1 | at org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
jvm 1 | ... 20 common frames omitted
jvm 1 | 2021.01.11 19:07:02 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
jvm 1 | 2021.01.11 19:07:02 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1 | 2021.01.11 19:07:02 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1 | 2021.01.11 19:07:03 WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0xdff2f2af, L:/127.0.0.1:8848 - R:/127.0.0.1:9001]], closing connection
jvm 1 | io.netty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
jvm 1 | at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
jvm 1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
jvm 1 | at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
jvm 1 | at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
jvm 1 | at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
jvm 1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
jvm 1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
jvm 1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)
jvm 1 | at org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
jvm 1 | ... 19 common frames omitted
jvm 1 | 2021.01.11 19:07:03 WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0xdff2f2af, L:/127.0.0.1:8848 ! R:/127.0.0.1:9001]], closing connection
jvm 1 | io.netty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:392)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
jvm 1 | at io.netty.handler.logging.LoggingHandler.channelInactive(LoggingHandler.java:167)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
jvm 1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1329)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
jvm 1 | at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:908)
jvm 1 | at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:744)
jvm 1 | at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
jvm 1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
jvm 1 | at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)
jvm 1 | at org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
jvm 1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
jvm 1 | ... 20 common frames omitted
wrapper | <-- Wrapper Stopped
In {Sonar_Install_Directory}/conf/sonar.properties Please change the # Elasticsearch port. Default is 9001. Use 0 to get a free port.
As a security precaution, should be blocked by a firewall and not exposed to the Internet.
sonar.search.port=<>
I'd try changing the port, it may is in use:
sonar.properties: sonar.search.port=9002
I do the remote debugging with tomcat server and intellijidea, after some time, the tomcat server crashes and restarts automatically.
I recently only switched to IntelliJIDEA, before when i was using Spring Tool Suite, i didn't encounter any such scenario.
Anyone has encountered the same issue? or any suggestions on this?
The following is the extract of log from tomcat catalina.out.
INFO | jvm 1 | 2016/03/08 13:37:50 | Heap
INFO | jvm 1 | 2016/03/08 13:37:50 | def new generation total 135360K, used 89556K [0x042f0000, 0x0d5d0000, 0x0ed90000)
INFO | jvm 1 | 2016/03/08 13:37:50 | eden space 120320K, 74% used [0x042f0000, 0x09a5ad58, 0x0b870000)
INFO | jvm 1 | 2016/03/08 13:37:50 | from space 15040K, 0% used [0x0c720000, 0x0c72a3f8, 0x0d5d0000)
INFO | jvm 1 | 2016/03/08 13:37:50 | to space 15040K, 0% used [0x0b870000, 0x0b870000, 0x0c720000)
INFO | jvm 1 | 2016/03/08 13:37:50 | tenured generation total 300224K, used 89569K [0x0ed90000, 0x212c0000, 0x242f0000)
INFO | jvm 1 | 2016/03/08 13:37:50 | the space 300224K, 29% used [0x0ed90000, 0x14508780, 0x14508800, 0x212c0000)
INFO | jvm 1 | 2016/03/08 13:37:50 | compacting perm gen total 42496K, used 42446K [0x242f0000, 0x26c70000, 0x282f0000)
INFO | jvm 1 | 2016/03/08 13:37:50 | the space 42496K, 99% used [0x242f0000, 0x26c63ad8, 0x26c63c00, 0x26c70000)
INFO | jvm 1 | 2016/03/08 13:37:50 | No shared spaces configured.
INFO | jvm 1 | 2016/03/08 13:37:50 |
INFO | jvm 1 | 2016/03/08 13:37:52 | 2016-03-08 13:37:52,692 [task-scheduler-3] INFO BULKPAYMENT_LOGGER:89 - com.bcsis.g3.bulkpayment.stpcount.service.STPCountFileAdapterService:Temp cnt file deleted:true
ERROR | wrapper | 2016/03/08 13:37:53 | JVM did not exit on request, terminated
STATUS | wrapper | 2016/03/08 13:37:57 | Launching a JVM...
INFO | jvm 2 | 2016/03/08 13:37:58 | Listening for transport dt_socket at address: 8000
INFO | jvm 2 | 2016/03/08 13:37:58 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org
We are currently using JProfiler 8.0.4 in Prepare for Profiling" mode on our Cent OS machines together with Tomcat 6 and Java 7. We use JProfiler with a floating license. We extracted the JProfiler Linux Archive on the remote servers.
Tomcat is managed by Tanuki Wrapper. Here is our Config
wrapper.java.additional.101=-agentpath:${jprofiler.path}/bin/linux-x64/libjprofilerti.so=port=8849,nowait
This works well and when starting up we find this in the logs
INFO | jvm 1 | main | 2014/03/04 10:06:41.872 | JProfiler> Don't wait for frontend to connect.
INFO | jvm 1 | main | 2014/03/04 10:06:41.872 | JProfiler> Protocol version 38
INFO | jvm 1 | main | 2014/03/04 10:06:41.872 | JProfiler> Using JVMTI
INFO | jvm 1 | main | 2014/03/04 10:06:41.872 | JProfiler> JVMTI version 1.1 detected.
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> 64-bit library
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> Starting up without initial configuration.
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> Listening on port: 8849.
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> Instrumenting native methods.
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> Can retransform classes.
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> Can retransform any class.
INFO | jvm 1 | main | 2014/03/04 10:06:41.873 | JProfiler> Native library initialized
INFO | jvm 1 | main | 2014/03/04 10:06:42.074 | JProfiler> VM initialized
Finally we are connecting with our JProfiler Clients to the agents and everythings fine.
As mentioned in 1
, it's also possible to append ,config=[config file] and ,id=[id] parameters to instruct the profiling agent to take the profiling settings from a particular session in a particular config file. If you connect with the same profiling settings, no classes will have to be retransformed.
but if we add config and id like this
wrapper.java.additional.101=-agentpath:${jprofiler.path}/bin/linux-x64/libjprofilerti.so=port=8849,nowait,id=${jprofiler.id},config=${jprofiler.config.path} the VM cannot start up because JProfiler asks for an license.
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Don't wait for frontend to connect.
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Protocol version 38
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Using JVMTI
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> JVMTI version 1.1 detected.
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> 64-bit library
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Using config file /path/to/config/jprofiler-config.xml (id: 100)
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Listening on port: 8849.
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Instrumenting native methods.
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Can retransform classes.
INFO | jvm 5 | main | 2014/03/04 10:05:30.475 | JProfiler> Can retransform any class.
INFO | jvm 5 | main | 2014/03/04 10:05:30.476 | JProfiler> Native library initialized
ERROR | wrapper | main | 2014/03/04 10:05:30.614 | JVM exited while loading the application.
INFO | jvm 5 | main | 2014/03/04 10:05:30.614 | JProfiler> VM initialized
INFO | jvm 5 | main | 2014/03/04 10:05:30.614 | JProfiler> Using dynamic instrumentation
INFO | jvm 5 | main | 2014/03/04 10:05:30.615 | JProfiler> Time measurement: elapsed time
INFO | jvm 5 | main | 2014/03/04 10:05:30.615 | JProfiler> CPU profiling enabled
INFO | jvm 5 | main | 2014/03/04 10:05:30.615 | JProfiler> ERROR: Invalid license key.
Here are my questions:
Anyone knows how to tell the agent about the license?
Anyone used this settings in a production setup?
Regards,
Andreas
This restriction is really unnecessary and will be removed in JProfiler 8.1.
As of 8.0, the license key has to be in the config file if the config parameter is specified. You can copy the entire config file from %USERPROFILER.jprofiler8\config.xml or $HOME/.jprofiler8/config.xml rather than exporting it, then the license key will be available for the agent.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I'm trying to set up Apache ActiveMQ for the first time
I discovered that the name of my server has an underscore in it, and that is preventing ActiveMQ from starting. It throws this exception :
java.net.URISyntaxException: Illegal character in hostname at index 8: ws://cms_delta.mycompany.com:61614?
maximumConnections=1000&wireFormat.maxFrameSize=104857600) ...
Where can I set the hostname in configuration. This server has other alias names without underscores, or I could use the IP address. The servername cms_delta.mycompany.com is being fetched automatically.
I don't see anything obvious in activemq.xml other than brokerName, but that didn't fix the problem.
Here is the full log :
2013-11-14 14:30:02,347 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1#54520eb: startup date [Thu Nov 14 14:30:02 PST 2013]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2013-11-14 14:30:04,100 | INFO | PListStore:[/opt/apache-activemq-5.9.0/data/esb-dev.mycompany.com/tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | main
2013-11-14 14:30:04,154 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/apache-activemq-5.9.0/data/kahadb] | org.apache.activemq.broker.BrokerService | main
2013-11-14 14:30:04,475 | INFO | Persistence store purged. | org.apache.activemq.store.kahadb.MessageDatabase | main
2013-11-14 14:30:04,678 | INFO | Apache ActiveMQ 5.9.0 (esb-dev.mycompany.com, ID:cms_delta.mycompany.com-35039-1384468204550-0:1) is starting | org.apache.activemq.broker.BrokerService | main
2013-11-14 14:30:04,697 | INFO | Listening for connections at: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | main
2013-11-14 14:30:04,699 | INFO | Connector openwire started | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:04,704 | INFO | Listening for connections at: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | main
2013-11-14 14:30:04,707 | INFO | Connector amqp started | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:04,712 | INFO | Listening for connections at: stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | main
2013-11-14 14:30:04,734 | INFO | Connector stomp started | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:04,738 | INFO | Listening for connections at: mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | main
2013-11-14 14:30:04,739 | INFO | Connector mqtt started | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:04,853 | ERROR | Failed to start Apache ActiveMQ ([esb-dev.mycompany.com, ID:cms_delta.mycompany.com-35039-1384468204550-0:1], java.net.URISyntaxException: Illegal character in hostname at index 8: ws://cms_delta.mycompany.com:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600) | org.apache.activemq.broker.BrokerService | main
2013-11-14 14:30:04,854 | INFO | Apache ActiveMQ 5.9.0 (esb-dev.mycompany.com, ID:cms_delta.mycompany.com-35039-1384468204550-0:1) is shutting down | org.apache.activemq.broker.BrokerService | main
2013-11-14 14:30:06,705 | INFO | Connector openwire stopped | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:06,708 | INFO | Connector amqp stopped | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:06,737 | INFO | Connector stomp stopped | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:06,748 | INFO | Connector mqtt stopped | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:06,749 | INFO | Connector ws stopped | org.apache.activemq.broker.TransportConnector | main
2013-11-14 14:30:06,752 | INFO | PListStore:[/opt/apache-activemq-5.9.0/data/esb-dev.mycompany.com/tmp_storage] stopped | org.apache.activemq.store.kahadb.plist.PListStoreImpl | main
2013-11-14 14:30:06,752 | INFO | Stopping async queue tasks | org.apache.activemq.store.kahadb.KahaDBStore | main
2013-11-14 14:30:06,753 | INFO | Stopping async topic tasks | org.apache.activemq.store.kahadb.KahaDBStore | main
2013-11-14 14:30:06,754 | INFO | Stopped KahaDB | org.apache.activemq.store.kahadb.KahaDBStore | main
2013-11-14 14:30:07,045 | INFO | Apache ActiveMQ 5.9.0 (esb-dev.mycompany.com, ID:cms_delta.mycompany.com-35039-1384468204550-0:1) uptime 2.939 seconds | org.apache.activemq.broker.BrokerService | main
2013-11-14 14:30:07,046 | INFO | Apache ActiveMQ 5.9.0 (esb-dev.mycompany.com, ID:cms_delta.mycompany.com-35039-1384468204550-0:1) is shutdown | org.apache.activemq.broker.BrokerService | main
2013-11-14 14:30:07,047 | INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1#54520eb: startup date [Thu Nov 14 14:30:02 PST 2013]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2013-11-14 14:30:07,050 | WARN | Exception thrown from LifecycleProcessor on context close | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.apache.activemq.xbean.XBeanBrokerFactory$1#54520eb: startup date [Thu Nov 14 14:30:02 PST 2013]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:782)
at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:574)
at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1608)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1549)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
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.apache.activemq.console.Main.runTaskClass(Main.java:262)
at org.apache.activemq.console.Main.main(Main.java:115)
I have just encountered the same problem when running ActiveMQ on my PC.
To change the name which is used by ActiveMQ you should go into /conf/activemq.xml file and replace 0.0.0.0 in transportConnectors/transportConnector uri attribute with your IP address i.e. 127.0.0.1. It should look like:
<transportConnectors>
<transportConnector name="openwire" uri="tcp://127.0.0.1:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
...
</transportConnectors>
Now you should go to hosts file and add some domain mapping to your local machine.
In my case (Windows 7) this file is located under C:\Windows\System32\drivers\etc\.
The line I added was
127.0.0.1 mydomain.com
Then, when running ActiveMQ you should see lines:
INFO | Listening for connections at:
tcp://mydomain.com:61616?maximumConnections=1000
ActiveMQ will start.
For Windows 8 or 10:
Desktop → Right click on "This PC" → Properties → Rename this PC
For Windows 7:
Desktop → Right click on "This PC" → Properties → Change computer name
I am using Tanuki Java service wrapper for my application,
My application restarts frequently eventually giving "5 failed launches in a row, giving up".
here is my wrapper
ERROR | wrapper | 2012/05/18 13:22:39 | JVM did not exit on request, terminated
FATAL | wrapper | 2012/05/19 00:24:17 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/19 00:24:17 | There may be a configuration problem: please check the logs.
ERROR | wrapper | 2012/05/19 01:07:33 | JVM did not exit on request, terminated
FATAL | wrapper | 2012/05/19 01:08:11 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/19 01:08:11 | There may be a configuration problem: please check the logs.
ERROR | wrapper | 2012/05/19 05:31:55 | JVM did not exit on request, terminated
FATAL | wrapper | 2012/05/19 05:32:34 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/19 05:32:34 | There may be a configuration problem: please check the logs.
FATAL | wrapper | 2012/05/19 13:33:23 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/19 13:33:23 | There may be a configuration problem: please check the logs.
ERROR | wrapper | 2012/05/19 16:07:30 | JVM did not exit on request, terminated
ERROR | wrapper | 2012/05/19 17:02:46 | JVM did not exit on request, terminated
ERROR | wrapper | 2012/05/19 20:17:36 | JVM did not exit on request, terminated
FATAL | wrapper | 2012/05/19 20:18:13 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/19 20:18:13 | There may be a configuration problem: please check the logs.
ERROR | wrapper | 2012/05/19 21:27:08 | JVM did not exit on request, terminated
FATAL | wrapper | 2012/05/20 00:28:00 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/20 00:28:00 | There may be a configuration problem: please check the logs.
FATAL | wrapper | 2012/05/20 05:22:27 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/20 05:22:27 | There may be a configuration problem: please check the logs.
ERROR | wrapper | 2012/05/20 13:47:37 | JVM did not exit on request, terminated
ERROR | wrapper | 2012/05/20 16:27:34 | JVM did not exit on request, terminated
FATAL | wrapper | 2012/05/20 18:22:28 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/05/20 18:22:28 | There may be a configuration problem: please check the logs.
ERROR | wrapper | 2012/05/20 19:22:21 | JVM did not exit on request, terminated
ERROR | wrapper | 2012/05/20 21:28:06 | JVM did not exit on request, terminated
STATUS | wrapper | 2012/05/20 21:28:08 | --> Wrapper Started as Daemon
STATUS | wrapper | 2012/05/20 21:28:08 | Java Service Wrapper Professional Edition 64-bit 3.5.7
STATUS | wrapper | 2012/05/20 21:28:08 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2012/05/20 21:28:08 |
STATUS | wrapper | 2012/05/20 21:28:08 | Launching a JVM...
INFO | jvm 1 | 2012/05/20 21:28:09 | WrapperManager: Initializing...
Any idea why this might be happening ?
Is this your full wrapper.log file? From the times and order of messages, it looks like you may be only showing us specific lines.
Usually the failed invocations indicate a configuration problem. I would need to see the wrapper.conf file as well as the full wrapper.log output with wrapper.debug=true enabled to tell you the problem.
As you are a professional edition user, please contact us at support#tanukisoftware.com and we would be happy to help you get this resolved.
http://wrapper.tanukisoftware.com/doc/english/support.jsp
Cheers,
Leif