|
From: Leif M. <le...@ta...> - 2004-10-17 00:20:38
|
Frank,
When you run as a console application, the Wrapper and its JVM are
run as the user you
are logged in as at the time. When run as a service however, they are
both run as the
SYSTEM user by default.
My guess is that you have your JVM installed in a directory which
the SYSTEM user does
not have access to. The SYSTEM user is able to launch the Wrapper
process without any
problems, but it is having problems launching the JVM. This came up
once before, so I will
add a more descriptive message to the logs for the next release.
The are two ways to resolve this.
1) Add the SYSTEM user to the list of applications that have access to
the JVM install
directory. This would work, but it may loosed up security more than you
want.
2) Run the Wrapper as a user whic has the required access. You can
configure the
Wrapper to run as a specifc user using the wrapper.ntservice.account and
..password
properties. Whenever you change these values, you must uninstall and
then reinstall
the app as a service or the service configuration will not be updated.
http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html
Let me know if you have problems getting it working.
Cheers,
Leif
Frank Fischer wrote:
> Hi all
>
>
> *Windows 2000 Professional, german, Wrapper 3.1.2, Java JRE 1.4.2_05*
>
> I just setup the wrapper and did the requiered modification to my code
> (using methode III of integration). I installed the server.
> When starting the service from the service manager i get the error
> "1067 Service terminated unexpectly". In the wrapper.log i cna find
> the following info:
>
> --------------------------------
> STATUS | wrapper | 2004/10/16 21:35:31 | --> Wrapper Started as Service
> DEBUG | wrapper | 2004/10/16 21:35:31 | Using system timer.
> DEBUG | wrapperp | 2004/10/16 21:35:31 | server listening on port 32000.
> STATUS | wrapper | 2004/10/16 21:35:32 | Launching a JVM...
> DEBUG | wrapper | 2004/10/16 21:35:32 | command:
> "D:\j2re1.4.2_05\bin"
> -Djava.library.path="D:\JavaNTServiceWrapper\bin" -classpath
> "D:\j2re1.4.2_05\lib;D:\j2re1.4.2_05\lib\ext;D:\javaroot"
> -Dwrapper.key="QlZNkUI30O7APbuZ" -Dwrapper.port=32000
> -Dwrapper.debug="TRUE" -Dwrapper.use_system_time="TRUE"
> -Dwrapper.version="3.1.2" -Dwrapper.native_library="wrapper"
> -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1
> com\AareNet\RoutingEngine.REServerServiceWrapper
> FATAL | wrapper | 2004/10/16 21:35:32 | Unable to execute Java
> command. Zugriff verweigert (0x5)
> FATAL | wrapper | 2004/10/16 21:35:32 | "D:\j2re1.4.2_05\bin"
> -Djava.library.path="D:\JavaNTServiceWrapper\bin" -classpath
> "D:\j2re1.4.2_05\lib;D:\j2re1.4.2_05\lib\ext;D:\javaroot"
> -Dwrapper.key="QlZNkUI30O7APbuZ" -Dwrapper.port=32000
> -Dwrapper.debug="TRUE" -Dwrapper.use_system_time="TRUE"
> -Dwrapper.version="3.1.2" -Dwrapper.native_library="wrapper"
> -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1
> com\AareNet\RoutingEngine.REServerServiceWrapper
> FATAL | wrapper | 2004/10/16 21:35:32 | Critical error: wait for JVM
> process failed
> --------------------------------
>
> In the line "FATAL | wrapper | 2004/10/16 21:35:32 | Unable to
> execute Java command. Zugriff verweigert (0x5)", the "Zugriff
> verweigert" means "Access denied".
>
> Does anyone has an idea what this could mean and what might be the
> reason for this error?
>
> below my conf-file:
>
>
> #********************************************************************
> # TestWrapper Properties
> #
> # NOTE - Please use src/conf/wrapper.conf.in as a template for your
> # own application rather than the values used for the
> # TestWrapper sample.
> #********************************************************************
> # Java Application
> wrapper.java.command=D:\j2re1.4.2_05\bin
> # 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=com\AareNet\RoutingEngine.REServerServiceWrapper
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=D:\j2re1.4.2_05\lib
> wrapper.java.classpath.2=D:\j2re1.4.2_05\lib\ext
> wrapper.java.classpath.3=D:\javaroot
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=D:\JavaNTServiceWrapper\bin
> # Java Additional Parameters
> #wrapper.java.additional.1=
> # 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=D:\javaroot\properties\REServer.properties
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> wrapper.debug=TRUE
> # 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=DEBUG
> # Log file to use for wrapper output logging.
> wrapper.logfile=D:\JavaNTServiceWrapper\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=DEBUG
> # 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=DEBUG
> #********************************************************************
> # Wrapper Windows Properties
> #********************************************************************
> # Title to use when running as a console
> wrapper.console.title=aareNet aareSwitch Routing Engine 1.0
> #********************************************************************
> # 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=RoutingEngine
> # Display name of the service
> wrapper.ntservice.displayname=aareNet aareSwitch Routing Engine 1.0
> # Description of the service
> wrapper.ntservice.description=Routing Engine Part of aareNet
> aareSwitch VoIP System
> # 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
>
>
>
> Thanks a lot for your help!
> Greetings, Frank
>
>
|