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 Riskó Péter <ri...@hungary.com> on 2005/05/27 16:14:29 UTC
Re: WELCOME to server-user@james.apache.org
Hello!
I am new to JAMES. I have to install it into a red-hat based server (Red
Hat Linux 3.2.2-10). Kernel is 2.4.20-9, JVM is
"
java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
"
I downloaded "james-2.2.0.tar.gz │5134355", unpacked it into the dir
/usr/local/james/james-2.2.0.
Then I allowed execute on bin/run.sh and bin/phoenix.sh.
Then I started it by bin/run.sh.
The beginning of the output is on the bottom of this mail. I also
attached a tgz with the content of the /logs and /apps/james/logs
directories.
Also the starting was *very* slow, it almost took a minute to get the error.
I have an other red-hat machine on which I can run JAMES. I would be
grateful if some of you could help me. I just can not imagine what is
the problem with my server.
Thank you: Peter RISKO
-------------------------------------------->8--------------------------------------
[root@hni1 james-2.2.0]# cd bin/
[root@hni1 bin]# chmod a+x phoenix.sh run.sh
[root@hni1 bin]# ./run.sh
Using PHOENIX_HOME: /usr/local/james-2.2.0
Using PHOENIX_TMPDIR: /usr/local/james-2.2.0/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.1_02
Running Phoenix:
Phoenix 4.0.1
James 2.2.0
org.apache.excalibur.containerkit.lifecycle.LifecycleException:
Component named "remotemanager" failed to pass through the Configuration
stage. (Reason: java.lang.NullPointerException).
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:289)
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:159)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:138)
at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:251)
at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:178)
at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:254)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:353)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:498)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:491)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:476)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:466)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:224)
at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:158)
at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:144)
at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:94)
at org.apache.avalon.phoenix.launcher.Main.main(Main.java:46)
Caused by: java.lang.NullPointerException
at java.net.InetAddress.cacheAddress(InetAddress.java:648)
at java.net.InetAddress.cacheAddress(InetAddress.java:633)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
at
org.apache.james.core.AbstractJamesService.configure(AbstractJamesService.java:235)
at
org.apache.james.remotemanager.RemoteManager.configure(RemoteManager.java:120)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:192)
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:126)
... 22 more
Re: WELCOME to server-user@james.apache.org
Posted by Riskó Péter <ri...@hungary.com>.
Hello!
I think I found the cause of the problem: the exception came from the
underlying java.net api. There was a suspicios line in the stacktrace:
"java.net.InetAddress.getLocalHost(InetAddress.java:1125)". The first
hit for "InetAddress.java:1125" on google was a bugreport containing
precious information: in jdk 1.4.1_01 and 02 there is a bug: if hostname
is not resolvable then a nullpointer exception is thrown (and also the
thread is jammed, which explain the slowness in starting JAMES with
bogus host settings).
So the problem was not with JAMES but with the setup of the server on
which I have to run it. Correcting /etc/hosts solved the problem.
Cheers: Peter
Riskó Péter wrote:
> Hello!
>
> I am new to JAMES. I have to install it into a red-hat based server
> (Red Hat Linux 3.2.2-10). Kernel is 2.4.20-9, JVM is
> "
> java -version
> java version "1.4.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
> "
>
> I downloaded "james-2.2.0.tar.gz │5134355", unpacked it into the dir
> /usr/local/james/james-2.2.0.
> Then I allowed execute on bin/run.sh and bin/phoenix.sh.
>
> Then I started it by bin/run.sh.
>
> The beginning of the output is on the bottom of this mail. I also
> attached a tgz with the content of the /logs and /apps/james/logs
> directories.
> Also the starting was *very* slow, it almost took a minute to get the
> error.
>
> I have an other red-hat machine on which I can run JAMES. I would be
> grateful if some of you could help me. I just can not imagine what is
> the problem with my server.
>
> Thank you: Peter RISKO
>
> -------------------------------------------->8--------------------------------------
>
>
> [root@hni1 james-2.2.0]# cd bin/
> [root@hni1 bin]# chmod a+x phoenix.sh run.sh
> [root@hni1 bin]# ./run.sh
> Using PHOENIX_HOME: /usr/local/james-2.2.0
> Using PHOENIX_TMPDIR: /usr/local/james-2.2.0/temp
> Using JAVA_HOME: /usr/java/j2sdk1.4.1_02
> Running Phoenix:
>
> Phoenix 4.0.1
>
> James 2.2.0
> org.apache.excalibur.containerkit.lifecycle.LifecycleException:
> Component named "remotemanager" failed to pass through the
> Configuration stage. (Reason: java.lang.NullPointerException).
> at
> org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:289)
>
> at
> org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:159)
>
> at
> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480)
>
> at
> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428)
>
> at
> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364)
>
> at
> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:138)
>
> at
> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:251)
>
> at
> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:178)
>
> at
> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:254)
>
> at
> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:353)
>
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:498)
>
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:491)
>
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:476)
>
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:466)
>
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:224)
>
> at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:158)
> at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:144)
> at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:94)
> at org.apache.avalon.phoenix.launcher.Main.main(Main.java:46)
> Caused by: java.lang.NullPointerException
> at java.net.InetAddress.cacheAddress(InetAddress.java:648)
> at java.net.InetAddress.cacheAddress(InetAddress.java:633)
> at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
> at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
> at
> org.apache.james.core.AbstractJamesService.configure(AbstractJamesService.java:235)
>
> at
> org.apache.james.remotemanager.RemoteManager.configure(RemoteManager.java:120)
>
> at
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:192)
>
> at
> org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:126)
>
> ... 22 more
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>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: WELCOME to server-user@james.apache.org
Posted by m....@tno.it.
Hi
Do you have root permissions?
A normal user is not allowed to start a processe that uses a port less than
1024.
Try this one.
Ciao
Marcello
Citazione Riskó Péter <ri...@hungary.com>:
> Hello!
>
> I am new to JAMES. I have to install it into a red-hat based server (Red
> Hat Linux 3.2.2-10). Kernel is 2.4.20-9, JVM is
> "
> java -version
> java version "1.4.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
> "
>
> I downloaded "james-2.2.0.tar.gz â5134355", unpacked it into the dir
> /usr/local/james/james-2.2.0.
> Then I allowed execute on bin/run.sh and bin/phoenix.sh.
>
> Then I started it by bin/run.sh.
>
> The beginning of the output is on the bottom of this mail. I also
> attached a tgz with the content of the /logs and /apps/james/logs
> directories.
> Also the starting was *very* slow, it almost took a minute to get the
> error.
>
> I have an other red-hat machine on which I can run JAMES. I would be
> grateful if some of you could help me. I just can not imagine what is
> the problem with my server.
>
> Thank you: Peter RISKO
>
> -------------------------------------------->8-------------------------------
-------
>
> [root@hni1 james-2.2.0]# cd bin/
> [root@hni1 bin]# chmod a+x phoenix.sh run.sh
> [root@hni1 bin]# ./run.sh
> Using PHOENIX_HOME: /usr/local/james-2.2.0
> Using PHOENIX_TMPDIR: /usr/local/james-2.2.0/temp
> Using JAVA_HOME: /usr/java/j2sdk1.4.1_02
> Running Phoenix:
>
> Phoenix 4.0.1
>
> James 2.2.0
>[cut]
--
marcello
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org