2 Replies Latest reply on Sep 30, 2004 5:12 PM by mf915

    HELP -- java service wrapper and JBoss 4.0

    mf915

      I am having problem running Jboss 4.0 using tanukisoftware's service wrapper. It runs fine using run.bat... when I run it as service, i got the following errors:
      -------------------------------------------------
      [XMLLoginConfigImpl] End loadConfig, failed to load config: file:/G:/jboss/server/stockanalytics/conf/login-config.xml
      org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 1, column 1.
      INFO | jvm 1 | 2004/09/26 14:43:40 | Was expecting one of:
      INFO | jvm 1 | 2004/09/26 14:43:40 |
      INFO | jvm 1 | 2004/09/26 14:43:40 | ...
      INFO | jvm 1 | 2004/09/26 14:43:40 |
      INFO | jvm 1 | 2004/09/26 14:43:40 | at org.jboss.security.auth.login.SunConfigParser.generateParseException(SunConfigParser.java:389)
      INFO | jvm 1 | 2004/09/26 14:43:40 | at org.jboss.security.auth.login.SunConfigParser.jj_consume_token(SunConfigParser.java:327)
      ...
      ...
      INFO | jvm 1 | 2004/09/26 14:43:48 | 14:43:48,562 INFO [EjbModule] Deploying ClusteredHTTPSession
      INFO | jvm 1 | 2004/09/26 14:43:48 | 14:43:48,682 WARN [EjbModule] The Container Invoker this-rmi-invoker (in jboss.xml or standardjboss.xml) could not be created because of java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.proxy.ejb.ProxyFactory, msg=org/jboss/ejb/EJBProxyFactory We will ignore this error, but you may miss a transport for this bean.
      INFO | jvm 1 | 2004/09/26 14:43:48 | 14:43:48,692 ERROR [EjbModule] Initialization failed jboss.j2ee:module=ClusteredHttpSessionEB.jar,service=EjbModule
      INFO | jvm 1 | 2004/09/26 14:43:48 | org.jboss.deployment.DeploymentException: Missing or invalid Container Invokers (in jboss.xml or standardjboss.xml).
      INFO | jvm 1 | 2004/09/26 14:43:48 | at org.jboss.ejb.EjbModule.createProxyFactories(EjbModule.java:1118)
      INFO | jvm 1 | 2004/09/26 14:43:48 | at org.jboss.ejb.EjbModule.createEntityContainer(EjbModule.java:638)
      INFO | jvm 1 | 2004/09/26 14:43:48 | at org.jboss.ejb.EjbModule.createContainer(EjbModule.java:549)
      INFO | jvm 1 | 2004/09/26 14:43:48 | at org.jboss.ejb.EjbModule.createService(EjbModule.java:330)
      INFO | jvm 1 | 2004/09/26 14:43:48 | at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
      INFO | jvm 1 | 2004/09/26 14:43:48 | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219)


      ------------------------------------------------

      Does anyone else have this problem ?? I am really running out of ideas. I think I have included all necessary files in classpath.

      Here is part of my wrapper.conf
      #********************************************************************
      # Wrapper Properties
      #********************************************************************
      set.JBOSS_HOME=G:\jboss\

      # Java Application
      wrapper.java.command=G:/java/jrockit142_05/bin/java

      # 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.WrapperStartStopApp

      # Java Classpath (include wrapper.jar) Add class path elements as
      # needed starting from 1
      wrapper.java.classpath.1=./
      wrapper.java.classpath.2=../lib/wrapper.jar
      wrapper.java.classpath.3=G:/java/jrockit142_05/lib/tools.jar
      wrapper.java.classpath.4=%JBOSS_HOME%/lib/*
      wrapper.java.classpath.5=G:/java/packages/jdom.jar
      wrapper.java.classpath.6=G:/jboss/bin/run.jar
      wrapper.java.classpath.7=G:/jboss/bin/shutdown.jar


      # Java Library Path (location of Wrapper.DLL or libwrapper.so)
      wrapper.java.library.path.1=../lib/
      wrapper.java.library.path.2=%JBOSS_HOME%/server/stockanalytics/lib/

      # Java Additional Parameters
      wrapper.java.additional.1=-Xms64m
      wrapper.java.additional.2=-Xmx256m
      wrapper.java.additional.3=-Dprogram.name=run.bat
      wrapper.java.additional.4=-Djava.endorsed.dirs="G:/jboss/lib/endorsed"
      #wrapper.java.additional.3=-Xmanagement
      #wrapper.java.additional.4=-Xgcreport


        • 1. Re: HELP -- java service wrapper and JBoss 4.0
          lchong2

          Works for me using the following:

          Assuming jboss 4.0 unzipped in C:\jboss-4.0.0

          1. set JBOSS_HOME=C:\jboss-4.0.0\bin in Windows environment variables

          2. create directories C:\jboss-4.0.0\logs and C:\jboss-4.0.0\conf

          3. copy wrapper.dll, wrapper.exe, wrapper.jar from Wrapper bin directory to C:\jboss-4.0.0\bin

          4. create a new file - wrapper.conf in C:\jboss-4.0.0\conf

          5. copy and paste the following into wrapper.conf

          #*****************************************
          # Java Classpath (include wrapper.jar) Add class path elements as needed starting from 1
          wrapper.java.classpath.1=wrapper.jar

          # Java Library Path (location of Wrapper.DLL or libwrapper.so)
          wrapper.java.library.path=./
          wrapper.java.command=%JAVA_HOME%/bin/java

          wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

          wrapper.java.classpath.1=%JBOSS_HOME%/bin/wrapper.jar
          wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
          wrapper.java.classpath.3=%JBOSS_HOME%/bin/run.jar

          wrapper.java.library.path.1=%JBOSS_HOME%/server/default/lib

          # Java Additional Parameters
          wrapper.java.additional.1=-Djava.endorsed.dirs=%JBOSS_HOME%\lib\endorsed
          wrapper.java.additional.2=-Xms128m -Xmx512m

          wrapper.app.parameter.1=org.jboss.Main

          # Initial Java Heap Size (in MB)
          wrapper.java.initmemory=16

          # Maximum Java Heap Size (in MB)
          wrapper.java.maxmemory=64

          # Application parameters. Add parameters as needed starting from 1
          #wrapper.app.parameter.1=--remote-manager

          # Number of seconds to allow for the JVM to be launched and contact the wrapper before the
          # wrapper should assume that the JVM is hung and terminate the JVM process. 0 means never
          # time out. Defaults to 30 seconds.
          wrapper.startup.timeout=30

          # Number of seconds to allow between the wrapper pinging the JVM and the response. 0 means
          # never time out. Defaults to 30 seconds.
          wrapper.ping.timeout=30

          # Number of seconds to allow for the JVM to shutdown before the wrapper should assume that
          # the JVM is hung and terminate the JVM process. 0 means never time out. Defaults to 30
          # seconds.
          wrapper.shutdown.timeout=30

          # The Wrapper detects when an application calls System.exit() and treats this as a request
          # to stop the server by default.
          #wrapper.disable_shutdown_hook=TRUE

          # Tell the Wrapper to request a JVM thread dump if the JVM fails to exit when requested.
          #wrapper.request_thread_dump_on_failed_jvm_exit=TRUE


          #********************************************************************
          # Wrapper Logging parameters
          #********************************************************************
          # 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=INFO

          # Log file to use for wrapper output logging.
          wrapper.logfile=%JBOSS_HOME%/logs/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=INFO

          # 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
          # abreviate with the 'k' (kb) or 'm' (mb) suffix. For example: 10m = 10 megabytes.
          wrapper.logfile.maxsize=5m

          # 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=0

          # Log Level for sys/event log output. (See docs for log levels)
          wrapper.syslog.loglevel=NONE

          #********************************************************************
          # Wrapper NT Service parameters
          #********************************************************************
          # WARNING - Do not modify any of these parameters 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.

          wrapper.ntservice.name=JBoss
          wrapper.ntservice.displayname=JBoss Server
          # Description of the service
          wrapper.ntservice.description=JBoss Server 4.0

          # Service dependencies. Add dependencies as needed starting from 1
          wrapper.ntservice.dependency.1=

          # Mode in which the service is installed. AUTO_START or DEMAND_START
          wrapper.ntservice.starttype=AUTO_START

          # Priority at which the service is run. NORMAL, LOW, HIGH, or REALTIME
          wrapper.ntservice.process_priority=NORMAL

          #*****************************************

          6. run the following at cmd:

          C:\jboss-4.0.0\bin>wrapper -i ..\conf\wrapper.conf
          wrapper | JBoss Server installed.

          • 2. Re: HELP -- java service wrapper and JBoss 4.0
            mf915

            Thanks....
            still having problem when I use org.tanukisoftware.wrapper.WrapperStartStopApp

            but it runs okay after I switch to
            org.tanukisoftware.wrapper.WrapperSimpleApp

            I guess I'll just stick with WrapperSimpleApp.

            Thanks!!