I am trying to get Jboss Application Server 7.1.0 to work as a service using the Java service shell, I have already solved many problems, but for each of them I decide that I get a new one. I am currently using this configuration:
# Java Application
But when I start, 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
Could not find anything on the Internet :(
UPDATE: thanks to the answers below, I was able to solve this problem, but now I get 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 streams on the Internet saying that maybe the driver version is not updated, but I'm not sure if they refer to a DLL or jar?
[UPDATE]:
I added the Oracle driver path using "wrapper.java.library.path" and it solved this error, but of course now I got 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 |
In addition, at the end of the journal I see the following:
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 this goes on until I stop the package ...