Results 1 to 3 of 3

Thread: Error when trying to start Apache James on Ubuntu 8.04 Server

  1. #1
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5
    Distro
    Ubuntu 8.04 Hardy Heron

    Exclamation Error when trying to start Apache James on Ubuntu 8.04 Server

    I am having the following error when I try and start Apache James on my Ubuntu Server:

    java.lang.NullPointerException
    at org.apache.avalon.phoenix.frontends.CLISetup.parse CommandLineOptions(
    CLISetup.java:202)
    at org.apache.avalon.phoenix.frontends.CLIMain.main(C LIMain.java:122)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.avalon.phoenix.launcher.Main.startup(Ma in.java:135)
    at org.apache.avalon.phoenix.launcher.Main.main(Main. java:84)

    It looks like something is going wrong in the phoenix library but I am not clear as to why this is happening and the underlying cause. Searching on the internet I haven't found much or any information about this problem and wondered if anyone has had similar problems when trying to run Apache James on Ubuntu. I have happily been able to install James on Windows several times and am not new to Linux. I installed Tomcat with no problems but James doesn't seem to want to work.

  2. #2
    Join Date
    Oct 2005
    Location
    Oklahoma
    Beans
    427

    Re: Error when trying to start Apache James on Ubuntu 8.04 Server

    It doesn't like something about your command-line parameters. Are you using the same options as you use on windows?

  3. #3
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Error when trying to start Apache James on Ubuntu 8.04 Server

    I have been looking into the problem further including the source code where the problem is occuring as well as some other experiments. What I have noted is that the startup process gets a lot further when I run it as me but falls over when it tries to open ports. This makes perfect sense though as only root users are able to open ports bellow 1024. The null pointer exception occurs when run as super user i.e. sudo. I am aware that the super user doesn't pick up any of the environment variables which I have set in the general etc/environment file. To get around that the init.d startup script sets those variable. I have re-checked those variables but don't seem to find any problem with them. I wonder if I set up James to run as a less privilaged user and then used IPTables to redirect traffic to ports it would be running on. That could work perhaps.

    It would help to know a bit more about customising the environment for the super user as Ubuntu is the first Linux distro I have used which locks down the root user account. I am used to installing applications as as the root user and then setting them up to run with a less privilaged user. I seem to be forever faced with the problem that the unprivilaged user has the correct environment but lacks permissions to manipulate files or open ports etc but if I use super user permissions are not a problem but the environment is not set.
    Last edited by carljokl; September 10th, 2008 at 01:05 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •