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.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849948#3849948

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849948


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to