|
From: Leif M. <le...@ta...> - 2005-12-15 14:43:18
|
David,
The Wrapper can be run in a command prompt in console mode or as a
service?
Have you tried running in console mode? Are you seeing the same
problems there?
If so then it is most likely a problem with the configuration. Did
you copy the
example config file from the documentation? Or generate it from the
full command
line used to launch the version of JBoss that you are actually using?
If the version
of JBoss you are using is not the same as I had used in my example you
may be
missing one or more configuration elements.
Cheers,
Leif
David Barber wrote:
> Hi All
>
> I have been running JBoss from the run.bat file for a while, but
> wanted to run it as a service. I have been able to configure it to
> actually run, but when I deploy a JSP I get the following exception.
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
> at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:479)
>
>
> With the root cause of the exception as;
>
> java.lang.NullPointerException
> at org.apache.tools.ant.util.FileUtils.resolveFile(FileUtils.java:330)
> at org.apache.tools.ant.Project.resolveFile(Project.java:618)
> at org.apache.tools.ant.types.Path.resolveFile(Path.java:451)
> at org.apache.tools.ant.types.Path.translatePath(Path.java:353)
> at org.apache.tools.ant.types.Path$PathElement.setPath(Path.java:119)
> at org.apache.tools.ant.types.Path.setPath(Path.java:167)
> at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:262)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
> at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
>
> Compilation is fine when running under the run.bat file, but not when
> run as a service resulting in the above exceptions. I have JBOSS_HOME,
> JAVA_HOME and ANT_HOME all set as environment variables. I am running
> the following configuration;
>
> JBoss 3.0.4
> Ant 1.5
> JDK 1.3.1_15
> Windows 2003
>
> Any help is greatly appreciated.
>
> David
>
> P.S. the wrapper.conf file is below;
>
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application
> wrapper.java.command=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.test.Main
> 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=C:/jdk/lib/tools.jar
> wrapper.java.classpath.3=run.jar
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=C:/jboss-3.0.4_tomcat-4.1.12/lib
>
> # Java Additional Parameters
> wrapper.java.additional.1=-Xincgc
>
> # Initial Java Heap Size (in MB)
> wrapper.java.initmemory=512
>
> # Maximum Java Heap Size (in MB)
> wrapper.java.maxmemory=1536
>
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1=org.jboss.Main
>
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> # Format of output for the console. (See docs for formats)
> wrapper.console.format=M
>
> # 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=M
>
> # 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=100m
>
> # 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 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
> #wra...@ap...@
>
> # Display name of the service
> #wra...@ap...@
>
> # Description of the service
> #wra...@ap...@
>
> # 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
>
> wrapper.ntservice.name=JBoss
> wrapper.ntservice.displayname=JBoss Application Server
> wrapper.ntservice.description=JBoss Application Server
|