You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Carlos Aviles <ca...@secrypt.de> on 2006/03/23 12:58:12 UTC
Running current trunk as a NT service
Hi,
I've checked out the current trunk from svn.
I've built it without problem.
.\build.bat clean
.\build.bat dist-lite
I've installed James as a NT service using the supplyed wrapper:
.\dist\james-2.3-dev\bin\wrapper -i ..\conf\wrapper.conf
When I try to launch the service (net start "James Mail Server 2.3.0") the
wrapper throws the following exception:
--> Wrapper Started as Service
STATUS | wrapper | 2006/03/23 12:52:59 | Launching a JVM...
INFO | jvm 1 | 2006/03/23 12:52:59 | java.lang.NoClassDefFoundError:
org/tanukisoftware/wrapper/WrapperListener
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.lang.ClassLoader.defineClass1(Native Method)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.lang.ClassLoader.defineClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.security.SecureClassLoader.defineClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.net.URLClassLoader.defineClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.net.URLClassLoader.access$100(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.net.URLClassLoader$1.run(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.net.URLClassLoader.findClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.lang.ClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.lang.ClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | at
java.lang.ClassLoader.loadClassInternal(Unknown Source)
INFO | jvm 1 | 2006/03/23 12:52:59 | Exception in thread "main"
ERROR | wrapper | 2006/03/23 12:52:59 | JVM exited while loading the
application.
The Wrapper.jar in the bin directory doesn't contain the
org.tanukisoftware.wrapper.WrapperListener class.
Maybe I must update the Wrapper...
Regards,
Carlos.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Running current trunk as a NT service
Posted by Stefano Bagnara <ap...@bago.org>.
Tony Freeman @ TeamXL wrote:
> Tried to install as a service and found the same errors as originally noted
> in this topic. Downloaded and moved the wrapper.* stuff to my server.
> Tried again and got the wrapper.pidfile error. Removed same from my
> wrapper.conf file and tried again. I am now getting this error...
Try to copy the excalibur-i18n-1.0.jar from phoenix-bin\tools\lib to
your lib folder.
> INFO | jvm 1 | 2006/03/24 09:15:09 | Error in WrapperListener.start
> callback. java.lang.NoClassDefFoundError:
> org/apache/avalon/excalibur/i18n/ResourceManager
> INFO | jvm 1 | 2006/03/24 09:15:09 | java.lang.NoClassDefFoundError:
> org/apache/avalon/excalibur/i18n/ResourceManager
> INFO | jvm 1 | 2006/03/24 09:15:09 | at
> org.apache.avalon.phoenix.frontends.CLIMain.<clinit>(CLIMain.java:85)
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Running current trunk as a NT service
Posted by "Tony Freeman @ TeamXL" <tf...@teamxl.org>.
Currently running James 2.2.1.RC1 on a production server with WinXPSP2 using
MySQL 4.0.13 for all stores. As I recall, I had no problems with the
install other than the MySQL Connector. Loaded the MySQL connector and
James has been rock solid for my needs.
I started earlier this week installing James (and other servers) on a backup
machine so that I can reload WinXP on my production box. I loaded the James
2.3.0 Binaries and the MySQL Connector. Started and Shutdown James,
Reconfigured, and restarted James by Remote Manager. It works fine.
Tried to install as a service and found the same errors as originally noted
in this topic. Downloaded and moved the wrapper.* stuff to my server.
Tried again and got the wrapper.pidfile error. Removed same from my
wrapper.conf file and tried again. I am now getting this error...
STATUS | wrapper | 2006/03/24 09:15:07 | --> Wrapper Started as Service
STATUS | wrapper | 2006/03/24 09:15:07 | Launching a JVM...
INFO | jvm 1 | 2006/03/24 09:15:09 | Wrapper (Version 3.2.0)
http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2006/03/24 09:15:09 |
INFO | jvm 1 | 2006/03/24 09:15:09 | Error in WrapperListener.start
callback. java.lang.NoClassDefFoundError:
org/apache/avalon/excalibur/i18n/ResourceManager
INFO | jvm 1 | 2006/03/24 09:15:09 | java.lang.NoClassDefFoundError:
org/apache/avalon/excalibur/i18n/ResourceManager
INFO | jvm 1 | 2006/03/24 09:15:09 | at
org.apache.avalon.phoenix.frontends.CLIMain.<clinit>(CLIMain.java:85)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
java.lang.reflect.Constructor.newInstance(Unknown Source)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
java.lang.Class.newInstance0(Unknown Source)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
java.lang.Class.newInstance(Unknown Source)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
org.apache.avalon.phoenix.launcher.Main.startup(Main.java:125)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
org.apache.avalon.phoenix.launcher.DaemonLauncher.start(DaemonLauncher.java:
110)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:290
9)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:3
761)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:4158)
INFO | jvm 1 | 2006/03/24 09:15:09 | at
java.lang.Thread.run(Unknown Source)
INFO | wrapperp | 2006/03/24 09:15:09 | port 15012 already in use, using
port 32000 instead.
STATUS | wrapper | 2006/03/24 09:15:10 | <-- Wrapper Stopped
-----Original Message-----
From: Bernd Fondermann [mailto:bernd.fondermann@googlemail.com]
Sent: Friday, March 24, 2006 4:48 AM
To: James Users List
Subject: Re: Running current trunk as a NT service
> Ok. I've downloaded version 3.2.0 and replaced wrapper.exe,
> wrapper.jar, wrapper.dll.
> Then I installed the service using "wrapper -i ..\conf\wrapper.conf".
> When I start the service either using "net start James Mail Server
> 2.3.0" or "wrapper -t ..\conf\wrapper.conf" the same error appears on the
logs:
>
> FATAL | wrapper | 2006/03/24 10:19:38 | ERROR: Could not write pid
> file
> /var/run/phoenix.pid: Das System kann den angegebenen Pfad nicht finden.
> (0x3)
>
> The service, obviously, doesn't start.
look at http://wrapper.tanukisoftware.org/doc/english/troubleshooting.html
under "I get an error about not being able to write a pid file when starting
the Wrapper."
hope this helps.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Running current trunk as a NT service
Posted by Bernd Fondermann <be...@googlemail.com>.
> Ok. I've downloaded version 3.2.0 and replaced wrapper.exe, wrapper.jar,
> wrapper.dll.
> Then I installed the service using "wrapper -i ..\conf\wrapper.conf".
> When I start the service either using "net start James Mail Server 2.3.0" or
> "wrapper -t ..\conf\wrapper.conf" the same error appears on the logs:
>
> FATAL | wrapper | 2006/03/24 10:19:38 | ERROR: Could not write pid file
> /var/run/phoenix.pid: Das System kann den angegebenen Pfad nicht finden.
> (0x3)
>
> The service, obviously, doesn't start.
look at http://wrapper.tanukisoftware.org/doc/english/troubleshooting.html
under "I get an error about not being able to write a pid file when
starting the Wrapper."
hope this helps.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
AW: Running current trunk as a NT service
Posted by Carlos Aviles <ca...@secrypt.de>.
> Can you try downloading the 3.x wrapper from
> http://wrapper.tanukisoftware.org/
> and replace your bin/wrapper.* stuff with the updated ones?
Ok. I've downloaded version 3.2.0 and replaced wrapper.exe, wrapper.jar,
wrapper.dll.
Then I installed the service using "wrapper -i ..\conf\wrapper.conf".
When I start the service either using "net start James Mail Server 2.3.0" or
"wrapper -t ..\conf\wrapper.conf" the same error appears on the logs:
FATAL | wrapper | 2006/03/24 10:19:38 | ERROR: Could not write pid file
/var/run/phoenix.pid: Das System kann den angegebenen Pfad nicht finden.
(0x3)
The service, obviously, doesn't start.
Regards,
Carlos.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Running current trunk as a NT service
Posted by Stefano Bagnara <ap...@bago.org>.
Stefano Bagnara wrote:
> The problem is that DaemonLauncher look for
> org.tanukisoftware.wrapper.WrapperListener
> while we bundle a newer wrapper that has been repackaged:
> com.silveregg.wrapper.WrapperListener
Ops, it is the exact opposite ;-)
Can you try downloading the 3.x wrapper from
http://wrapper.tanukisoftware.org/
and replace your bin/wrapper.* stuff with the updated ones?
Stefano
> Carlos Aviles wrote:
>> When I try to launch the service (net start "James Mail Server 2.3.0")
>> the
>> wrapper throws the following exception:
>>
>> --> Wrapper Started as Service
>> STATUS | wrapper | 2006/03/23 12:52:59 | Launching a JVM...
>> INFO | jvm 1 | 2006/03/23 12:52:59 | java.lang.NoClassDefFoundError:
>> org/tanukisoftware/wrapper/WrapperListener
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Running current trunk as a NT service
Posted by Stefano Bagnara <ap...@bago.org>.
Hi Carlos,
this is a bug. Can you file an issue in our issue tracker?
https://issues.apache.org/jira/browse/JAMES
The problem is that DaemonLauncher look for
org.tanukisoftware.wrapper.WrapperListener
while we bundle a newer wrapper that has been repackaged:
com.silveregg.wrapper.WrapperListener
Stefano
Carlos Aviles wrote:
> Hi,
>
> I've checked out the current trunk from svn.
> I've built it without problem.
> .\build.bat clean
> .\build.bat dist-lite
> I've installed James as a NT service using the supplyed wrapper:
> .\dist\james-2.3-dev\bin\wrapper -i ..\conf\wrapper.conf
> When I try to launch the service (net start "James Mail Server 2.3.0") the
> wrapper throws the following exception:
>
> --> Wrapper Started as Service
> STATUS | wrapper | 2006/03/23 12:52:59 | Launching a JVM...
> INFO | jvm 1 | 2006/03/23 12:52:59 | java.lang.NoClassDefFoundError:
> org/tanukisoftware/wrapper/WrapperListener
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org