1 Reply Latest reply on Jan 2, 2009 11:34 PM by jaikiran

    DS files not being loaded when using wrapper - w2k3

    creynolds

      Ok, I apologize if this is the wrong forum, if so mods please move. I am running JBoss 4.0.3 (upgrading isn't an option). I have two separate instances running as a windows service (windows server 2003 w/sp1) using the wrapper. When I start up the AS as a service it fails to use the xxxxx-ds.xml file located under \server\default\deploy, it uses some other local-tx-datastore file. What is interesting though is if i start the AS from the command line (run.bat) with no options it works correctly. There doesn't seem to be any errors in the log file, but this is my first time dealing with ds files in jboss. Any reason for this? Below is the wrapper.conf and the ds file. thanks in advanced....

      #********************************************************************
      # Wrapper Properties
      #********************************************************************
      # Java Application
      wrapper.java.command=%JAVA_HOME%/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.WrapperSimpleApp
      
      # Java Classpath (include wrapper.jar) Add class path elements as
      # needed starting from 1
      wrapper.java.classpath.1=../lib/wrapper.jar
      wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
      wrapper.java.classpath.3=../bin/run.jar
      
      # Java Library Path (location of Wrapper.DLL or libwrapper.so)
      wrapper.java.library.path.1=../lib
      wrapper.java.library.path.1=%JAVA_HOME%/lib
      
      # Java Additional Parameters
      wrapper.java.additional.1=-Dprogram.name=run.bat
      wrapper.java.additional.2=-Djboss.partition.name=Partition2
      wrapper.java.additional.3=-Xms512m
      wrapper.java.additional.4=-Xmx768m
      wrapper.java.additional.5=-Dfile.encoding=ISO-8859-1
      wrapper.java.additional.6=-XX:MaxPermSize=512M
      wrapper.java.additional.7=-XX:PermSize=256M
      #wrapper.java.additional.8=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed
      
      # Initial Java Heap Size (in MB)
      #wrapper.java.initmemory=3
      
      # Maximum Java Heap Size (in MB)
      #wrapper.java.maxmemory=64
      
      # Application parameters. Add parameters as needed starting from 1
      wrapper.app.parameter.1=org.jboss.Main
      wrapper.app.parameter.2=-bXX.XX.X.XX
      wrapper.app.parameter.3=-c default
      #********************************************************************
      # 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=INFO
      
      # Log file to use for wrapper output logging.
      wrapper.logfile=../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 abbreviate with the 'k' (kb) or
      # 'm' (mb) suffix. For example: 10m = 10 megabytes.
      wrapper.logfile.maxsize=0
      
      # 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 Windows Properties
      #********************************************************************
      # Title to use when running as a console
      wrapper.console.title=JBoss Console 2
      
      #********************************************************************
      # 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=JBoss 2
      
      # Display name of the service
      wrapper.ntservice.displayname=JBoss Service (v4.0.3 SP1) 2
      
      # Description of the service
      wrapper.ntservice.description=JBoss Application Server
      
      # 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
      
      # Allow the service to interact with the desktop.
      wrapper.ntservice.interactive=false
      
      


      <datasources>
       <local-tx-datasource>
       <jndi-name>jdbc/XXXXXXXPool</jndi-name>
       <connection-url>jdbc:oracle:thin:@XXXXoracle:1521:XXXX</connection-url>
       <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
       <user-name>USERNAME</user-name>
       <password>PASSWORD</password>
       <min-pool-size>0</min-pool-size>
       </local-tx-datasource>
      </datasources>
      
      


      FYI the 'X's are info i removed.

        • 1. Re: DS files not being loaded when using wrapper - w2k3
          jaikiran


          wrapper.java.additional.2=-Djboss.partition.name=Partition2


          Is this an intentional setting you have done? When you start without this parameter from the command line, i guess this value is DefaultPartition. If you don't need this, then remove it from the wrapper.conf (and make sure, when you remove, you renumber those properties correctly).

          wrapper.app.parameter.2=-bXX.XX.X.XX

          Is this an actual value in that conf file? Or did you modify this while posting? 1) There should be a space separating the -b and the IP address (2) The IP address must be a valid one.

          wrapper.app.parameter.3=-c default



          Though this param suggests that you are starting the "default" server profile, when you start the service, are you sure the "default" profile is being started? You can look at the log file (boot.log and server.log) to see which profile is being started.


          Ok, I apologize if this is the wrong forum


          Looks like a jboss service configuration question than JCA, so Installation & Configuration forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=61 would have been the right place :-)