You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexander Schatten <al...@gmx.net> on 2001/03/17 17:34:00 UTC

Installation Problems on Tomcat: Null Pointer Exception

I installed Tomcat on NT4 SP6 JDK1.3 successfully. the examples worked.

then I installed cocoon following the installation instructions, but I
do not want to install Apache, as I prefere a stand-alone installation,
hence I left out the "apache stuff".

starting tomcat after following the cocoon installation procedure I
receive the following exception:



Error generating automatic apache configuration
java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)

        at
org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:219)
        at
org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217
)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Error generating automatic Netscape configuration
java.lang.NullPointerException


Tomcat runs anyway, but this exception occurs when starting tomcat and
also when trying to access the Cocoon pages.

has anyone an idea about this?


best regards


Alex


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Installation Problems on Tomcat: Null Pointer Exception

Posted by Alexander Schatten <al...@gmx.net>.
Gritsenko wrote:

> Alex,
>
> This situation is described in install.html.
> Once you read it (did you already? :), you will find something about
> zxml.jar and zparser.jar.
> That's the solution for problem you are experiencing.

thank you for the hint, but that was not the problem. unfortunately, as I
wrote already in my reply, that I had a typo in the web.xml configuration.

unfortunately the errors are not really instructive. moreover: the "standard"
starting procedure opens tomcat in a new window, and as soon as an exception
occurs, the window is immediately closed, so that it is impossible to read the
message. moreover no log entry is made. so I (as a newbie to tomcat) had to
figure out, what the starting batch files do and write my own batch file.

this seems not to be a very good solution as default, as such misconfiguration
will occur off course more often when newbies try to get tomcat running.

moreover I had a (parallel) second error, that occured from time to time,
namely a net error, that the port could not be bind...


however, after hours of searching, tomcat and cocoon are running now, and I am
very happy with this combination. now it would be really fine, if I could also
figure out how to install cocoon on Enhydra. I tried this too, but failed up
to now :-(


thanx


Alex


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Installation Problems on Tomcat: Null Pointer Exception

Posted by Gritsenko <vg...@acm.org>.
Alex,

This situation is described in install.html.
Once you read it (did you already? :), you will find something about
zxml.jar and zparser.jar.
That's the solution for problem you are experiencing.


Viktor

----- Original Message -----
From: Alexander Schatten <al...@gmx.net>
To: <co...@xml.apache.org>
Sent: Saturday, March 17, 2001 11:34 AM
Subject: Installation Problems on Tomcat: Null Pointer Exception


> I installed Tomcat on NT4 SP6 JDK1.3 successfully. the examples worked.
>
> then I installed cocoon following the installation instructions, but I
> do not want to install Apache, as I prefere a stand-alone installation,
> hence I left out the "apache stuff".
>
> starting tomcat after following the cocoon installation procedure I
> receive the following exception:
>
>
>
> Error generating automatic apache configuration
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
>
>         at
> org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:219)
>         at
> org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217
> )
>         at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
>         at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> Error generating automatic Netscape configuration
> java.lang.NullPointerException
>
>
> Tomcat runs anyway, but this exception occurs when starting tomcat and
> also when trying to access the Cocoon pages.
>
> has anyone an idea about this?
>
>
> best regards
>
>
> Alex
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Installation Problems on Tomcat: Null Pointer Exception

Posted by Alexander Schatten <al...@gmx.net>.
I found the problem by myself. It was a typo (docbase instead of docBase...)
sorry;

but unfortunately the error message is not useful, so it is not easy to
detect such a problem.


Alex


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>