- 
        15. Re: jboss 6 Final + Java Service Wrappernickarls Jan 4, 2011 6:44 AM (in response to fabrizio.benedetti)Tried including the common dir in the wrapper lib conf? 
- 
        16. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 4, 2011 6:47 AM (in response to nickarls)I tried wrapper.java.library.path.1=%JBOSS_HOME%/bin/native/lib wrapper.java.library.path.2=%JBOSS_HOME%/common/lib 
- 
        17. Re: jboss 6 Final + Java Service Wrappernickarls Jan 4, 2011 6:50 AM (in response to fabrizio.benedetti)Strange. For example INFO | jvm 1 | 2011/01/04 11:57:31 | Caused by: java.lang.NoClassDefFoundError: org/jboss/switchboard/mc/spi/MCBasedResourceProvider is in common\lib\jboss-switchboard-mc-spi.jar amuse us and hardcode the library paths directly to the common lib etc 
- 
        18. Re: jboss 6 Final + Java Service Wrapperwolfc Jan 4, 2011 6:52 AM (in response to fabrizio.benedetti)These errors are typical when you try to load JBoss AS with a custom class loader. The standalone EJB 3 Embedded also sets up a custom class loader with the following entries on the class path: Don't forget to set java.endorsed.dirs properly or you'll see an error on @Resource. 
- 
        19. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 4, 2011 6:59 AM (in response to wolfc)As you can see from the log, java.endorsed.dirs is set to $JBOSS_HOME/lib/endorsed. 
- 
        20. Re: jboss 6 Final + Java Service Wrappernickarls Jan 4, 2011 8:10 AM (in response to fabrizio.benedetti)Did you try hardcoding the libs dirs without the JBOSS_HOME? 
- 
        21. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 4, 2011 8:17 AM (in response to nickarls)I tried putting wrapper.java.library.path.1=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/bin/native/lib 
 wrapper.java.library.path.2=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib
 wrapper.java.library.path.3=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/common/libthe log is the same: STATUS | wrapper | 2011/01/04 14:13:38 | --> Wrapper Started as Console 
 STATUS | wrapper | 2011/01/04 14:13:38 | Java Service Wrapper Community Edition 32-bit 3.5.6
 STATUS | wrapper | 2011/01/04 14:13:38 | Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved.
 STATUS | wrapper | 2011/01/04 14:13:38 | http://wrapper.tanukisoftware.com
 STATUS | wrapper | 2011/01/04 14:13:38 |
 STATUS | wrapper | 2011/01/04 14:13:39 | Launching a JVM...
 INFO | jvm 1 | 2011/01/04 14:13:39 | WrapperManager: Initializing...
 INFO | jvm 1 | 2011/01/04 14:13:39 | 4-gen-2011 14.13.39 org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase logServerInfo
 INFO | jvm 1 | 2011/01/04 14:13:39 | INFO: Server Configuration:
 INFO | jvm 1 | 2011/01/04 14:13:39 |
 INFO | jvm 1 | 2011/01/04 14:13:39 | JBOSS_HOME URL: file:/media/truecrypt1/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml
 INFO | jvm 1 | 2011/01/04 14:13:39 | Common Base: $JBOSS_HOME/common/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Common Library: $JBOSS_HOME/common/lib/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Name: default
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Base: $JBOSS_HOME/server/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Library: $JBOSS_HOME/server/default/lib/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Config: $JBOSS_HOME/server/default/conf/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Home: $JBOSS_HOME/server/default/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Data: $JBOSS_HOME/server/default/data/
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Log: $JBOSS_HOME/server/default/log
 INFO | jvm 1 | 2011/01/04 14:13:39 | Server Temp: $JBOSS_HOME/server/default/tmp/
 INFO | jvm 1 | 2011/01/04 14:13:39 |
 INFO | jvm 1 | 2011/01/04 14:13:39 | 4-gen-2011 14.13.39 org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask run
 INFO | jvm 1 | 2011/01/04 14:13:39 | INFO: Starting: JBossAS [6.0.0.Final "Neo"]
 INFO | jvm 1 | 2011/01/04 14:13:41 | 4-gen-2011 14.13.41 org.jboss.system.server.ServerInfo preRegister
 INFO | jvm 1 | 2011/01/04 14:13:41 | INFO: Java version: 1.6.0_23,Sun Microsystems Inc.
 INFO | jvm 1 | 2011/01/04 14:13:41 | 4-gen-2011 14.13.41 org.jboss.system.server.ServerInfo preRegister
 INFO | jvm 1 | 2011/01/04 14:13:41 | INFO: Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
 INFO | jvm 1 | 2011/01/04 14:13:41 | 4-gen-2011 14.13.41 org.jboss.system.server.ServerInfo preRegister
 INFO | jvm 1 | 2011/01/04 14:13:41 | INFO: Java VM: Java HotSpot(TM) Server VM 19.0-b09,Sun Microsystems Inc.
 INFO | jvm 1 | 2011/01/04 14:13:41 | 4-gen-2011 14.13.41 org.jboss.system.server.ServerInfo preRegister
 INFO | jvm 1 | 2011/01/04 14:13:41 | INFO: OS-System: Linux 2.6.32-27-generic-pae,i386
 INFO | jvm 1 | 2011/01/04 14:13:41 | 4-gen-2011 14.13.41 org.jboss.system.server.ServerInfo preRegister
 INFO | jvm 1 | 2011/01/04 14:13:41 | INFO: VM arguments: -Xms512m -Xmx1024m -XX:MaxPermSize=256m -Dprogram.name=run.sh -Djava.endorsed.dirs=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib/endorsed:/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib:/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/common/lib -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djava.library.path=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/bin/native/lib:/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib:/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/common/lib -Dwrapper.key=crnYQmRQhBochSqZ -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=16477 -Dwrapper.version=3.5.6 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
 INFO | jvm 1 | 2011/01/04 14:13:41 | 4-gen-2011 14.13.41 org.jboss.system.server.jmx.JMXKernel start
 INFO | jvm 1 | 2011/01/04 14:13:41 | INFO: Legacy JMX core initialized
 INFO | jvm 1 | 2011/01/04 14:13:42 | 4-gen-2011 14.13.42 org.jboss.dependency.plugins.AbstractController incrementState
 INFO | jvm 1 | 2011/01/04 14:13:42 | ERROR: Error installing to Configured: name=ServiceBindingManager state=Configured
 INFO | jvm 1 | 2011/01/04 14:13:42 | java.lang.Exception: Error calling callback JMXRegistrationAdvice for target context ServiceBindingManager
 INFO | jvm 1 | 2011/01/04 14:13:42 | at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:91)
 INFO | jvm 1 | 2011/01/04 14:13:42 | at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:2018)
 INFO | jvm 1 | 2011/01/04 14:13:42 | at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1983)... The VM arguments seem to be correct 
- 
        22. Re: jboss 6 Final + Java Service Wrapperjaikiran Jan 4, 2011 8:26 AM (in response to fabrizio.benedetti)Do this: 1) Install a clean JBoss AS 6.0 Final 2) Do not use the service wrapper for now 3) Start the server using ./run.sh from the bin folder Let us know how that goes. If that fails too, then attach the server.log 
- 
        23. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 4, 2011 8:29 AM (in response to jaikiran)Done. That goes fine. 
- 
        24. Re: jboss 6 Final + Java Service Wrapperjaikiran Jan 4, 2011 8:34 AM (in response to fabrizio.benedetti)Okay. So ultimately it's some config issue with the service wrapper. I haven't used that one, so don't exact know what you are doing wrong (unless I read their documentation). But this: -Djava.endorsed.dirs=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib/endorsed:/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib:/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/common/lib is definitely wrong. The endorsed dir should point only to the JBOSS_HOME/lib/endorsed. Rest of those lib folders aren't meant to be in the endorsed.dirs value. 
- 
        25. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 4, 2011 8:38 AM (in response to jaikiran)Yes, I added these dirs only for test. Now I've returned to original: -Djava.endorsed.dirs=/home/fabrizio/projects/spc/pdd4j/2.0/appserver/jboss-6.0.0/jboss-6.0.0.Final/lib/endorsed 
- 
        26. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 5, 2011 10:49 AM (in response to fabrizio.benedetti)Resolved with YAJSW (http://yajsw.sourceforge.net/). Jboss 6 doesn't want to start with Tanuki Java Service Wrapper. Maybe a classloader issue. Instead YAJSW seems to go fine and has also a complete LGPL license. Good. Thanks to all. Regards 
- 
        27. Re: jboss 6 Final + Java Service Wrappermortenson Jan 6, 2011 10:43 AM (in response to fabrizio.benedetti)Fabrizio, We spent some time looking into this and figured out what is going on. The Java Service Wrapper's main Java class initializes an MBean to make it possible to control the Wrapper in that way. That has been in there for many years and actually worked with JBoss in the past. Something in the 6.* versions seems to have changed and this is now causing a conflict. Good news is that there is a very easy fix for this. By defining the following system property the registration of this MBean can be disabled and in our tests, JBoss 6 now seems to work perfectly with the Java Service Wrapper: wrapper.java.additional.n=org.tanukisoftware.wrapper.WrapperManager.mbean=false Be sure to set the "n" in the property name to an open number in your wrapper.conf file. We will update our JBoss installation examples within the next day or two to reflect this. http://wrapper.tanukisoftware.com/doc/english/integrate.html#method1 We are also looking into the details of what is actually going wrong to see if we can either change the way we work to avoid the problem or more likely recommend something to the JBoss team on how to avoid this error. Please feel free to contact us directly if you have any questions: support@tanukisoftware.com Cheers, Leif 
- 
        28. Re: jboss 6 Final + Java Service Wrappermortenson Jan 7, 2011 2:21 AM (in response to mortenson)Fabrizio, As a followup up. We figured out what is happening with JBoss and how to make JBoss work so it also makes use of the Wrapper's MBean. This was reported in the following issue: https://issues.jboss.org/browse/JBAS-7669 There is a way to setup the wrapper.conf so everything works perfectly however. Please see the following page for more information. http://wrapper.tanukisoftware.com/doc/english/jmx.html#JBOSS6 Cheers, Leif 
- 
        29. Re: jboss 6 Final + Java Service Wrapperfabrizio.benedetti Jan 10, 2011 4:16 AM (in response to mortenson)Thank you Leif! With following lines added to wrapper.conf: wrapper.java.classpath.N=%JBOSS_HOME%/lib/jboss-logmanager.jar wrapper.java.additional.N=-Djboss.platform.mbeanserver wrapper.java.additional.N=-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl wrapper.java.additional.N=-Djava.util.logging.manager=org.jboss.logmanager.LogManager wrapper.java.additional.N=-Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl the Wrapper is able to run JBoss 6. Cheers 
 
     
     
     
    