Share

Yet Another Java Service Wrapper

Subscribe

JBoss Startup Freeze

  1. 2009-09-30 18:41:08 UTC

    I'm running into some odd behavior when trying to start JBoss using the YAJSW on a 32-bit WinXP system. I reach the point where it states "[Server] Server Home URL:", but then it halts at that point until I kill it.

    Has anyone else seen this behavior? If you haven't, could someone please post an example config file?

  2. nobody

    2009-09-30 19:26:46 UTC

    hello,

    is this happening when you run it as console or as service ?

    -- Ron

  3. 2009-09-30 19:27:58 UTC

    It's happening when I run it as a console app.

    java -jar wrapper.jar -c path/to/wrapper.conf

  4. nobody

    2009-09-30 19:31:03 UTC

    thanks for the response

    i will check this out and get back to you.

    -- Ron

  5. nobody

    2009-09-30 19:52:27 UTC

    hi,

    did you generate the conf file using genconfig ?

    if yes, there is a bug in the current version.

    you should split the property

    wrapper.java.additional.1 =

    as follows

    wrapper.java.additional.1 = -Dprogram.name=run.bat

    wrapper.java.additional.2 = -Xms128M

    wrapper.java.additional.3 = -Xmx512M

    wrapper.java.additional.4 = -XX:MaxPermSize=256M

    wrapper.java.additional.5 = -Dsun.rmi.dgc.client.gcInterval=3600000

    wrapper.java.additional.6 = -Dsun.rmi.dgc.server.gcInterval=3600000

    wrapper.java.additional.7 = -Dorg.jboss.resolver.warning=true

    wrapper.java.additional.8 = -Djava.endorsed.dirs=Z:\dev\jboss\jboss-5.1.0.GA\lib\endorsed

    -- Ron

  6. 2009-09-30 20:05:20 UTC

    Here's my wrapper.java.additional block. Does anything look out of place? I just added the endorsed dirs line and it got me one step farther to the line below.

    Controller State: ESTABLISHED -> LOGGED_ON

    wrapper.java.additional.1=-server
    wrapper.java.additional.2=-Dprogram.name=run.bat
    wrapper.java.additional.3=-Dsun.rmi.dgc.client.gcInterval=3600000 
    wrapper.java.additional.4=-Dsun.rmi.dgc.server.gcInterval=3600000
    wrapper.java.additional.5=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl
    wrapper.java.additional.6=-Dcom.sun.media.jai.disableMediaLib=true 
    wrapper.java.additional.7=-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
    wrapper.java.additional.8=-XX:MaxPermSize=128M
    wrapper.java.additional.9=-XX:+UseParallelGC
    wrapper.java.additional.10=-Dcold2streams.path=COLD
    wrapper.java.additional.11=-Djava.awt.headless=true 
    wrapper.java.additional.12=-Dcom.sun.media.jai.disableMediaLib=true 
    wrapper.java.additional.13=-Dlogging.home=logs
    wrapper.java.additional.14=-Djava.endorsed.dirs=../lib/endorsed
    
  7. nobody

    2009-09-30 20:11:53 UTC

    LOGGED_ON means that the application is up and has connected to the wrapper. the configuration seems to be ok.

    is it now running as expected ?

    -- ron

  8. 2009-09-30 20:13:27 UTC

    It's not quite running as expected. JBoss is up and running, but it isn't actually serving any of the web applications in the server folder. You can access the root app, but that's it.

  9. nobody

    2009-09-30 20:22:36 UTC

    I do not have experience with jboss, so it is diffcult for me to help further. I will look into this and get back to you when I have found something.

    -- Ron

  10. nobody

    2009-09-30 20:48:08 UTC

    one more idea:

    try commenting out wrapper.tray, or set it to false.

    per default the tray icon is using port 1099, which is also used by jboss.

    -- Ron

  11. nobody

    2009-09-30 21:03:02 UTC

    PS:

    alternatively, that is instead of commenting out wrapper.tray, you may set

    wrapper.jmx.rmi.port=1999

    i just found out that this property is missing in the documentation.

    -- Ron

  12. 2009-10-01 14:10:44 UTC

    I didn't use genconfig to build the wrapper. If those values aren't there, do they default to 1099 and 1999, respectively?

    When I try to set wrapper.tray to another value, I receive the following stack trace. Is that the right property? It seems to be expecting a boolean.

    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:623)
            at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:35)
    Caused by: org.apache.commons.configuration.ConversionException: 'wrapper.tray' doesn't map to a Boolean object
            at org.apache.commons.configuration.AbstractConfiguration.getBoolean(AbstractConfiguration.java:698)
            at org.apache.commons.configuration.AbstractConfiguration.getBoolean(AbstractConfiguration.java:667)
            at org.rzo.yajsw.wrapper.AbstractWrappedProcess.init(AbstractWrappedProcess.java:243)
            at org.rzo.yajsw.wrapper.WrappedJavaProcess.init(WrappedJavaProcess.java:53)
            at org.rzo.yajsw.WrapperExe.doConsole(WrapperExe.java:334)
            at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:155)
            at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:138)
            ... 5 more
    Caused by: org.apache.commons.configuration.ConversionException: The value 1456 can't be converted to a Boolean object
            at org.apache.commons.configuration.PropertyConverter.toBoolean(PropertyConverter.java:201)
            at org.apache.commons.configuration.AbstractConfiguration.getBoolean(AbstractConfiguration.java:694)
            ... 11 more
    
  13. 2009-10-01 20:57:22 UTC

    It works. I had a configuration error on my end that was preventing the war from deploying.

  14. nobody

    2009-10-01 22:28:34 UTC

    hello,

    wrapper.tray is required to be boolean.

    the suggestion was to :

    either

    wrapper.tray = false

    or

    wrapper.jmx.rmi.port=1999

    -- Ron

  15. nobody

    2009-10-01 22:29:20 UTC

    thanks for the information,

    i was afraid that there are issues with jboss.

    -- ron

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.