Subject: Re: www/jakarta-tomcat5 broken
To: Chris Wareham <chriswareham@chriswareham.demon.co.uk>
From: David Brownlee <abs@NetBSD.org>
List: tech-pkg
Date: 04/06/2005 19:34:46
I've updated tomcat5 to install in the same fashion as tomcat4
(${PREFIX}/tomcat5), and installed on a fresh 2.0_STABLE machine
with no mk.conf. can you test again?
On Mon, 4 Apr 2005, Chris Wareham wrote:
> David Brownlee wrote:
>> On Sun, 3 Apr 2005, Chris Wareham wrote:
>>
>>> www/jakarta-tomcat5 (the former www/jakarta-tomcat) will no longer work
>>> if you follow the messages displayed after it's installed. It looks like
>>> the package has been altered to place configuration files in
>>> $LOCALBASE/etc. The Tomcat startup and shutdown scripts are still
>>> configured to look in the old place for configuration files,
>>> $LOCALBASE/tomcat/conf.
>>
>>
>> What messages do you get? I get:
>>
>> Installing files needed by jakarta-tomcat-5.0.30:
>>
>> /usr/pkg/tomcat/conf/Catalina/localhost/admin.xml
>>
>> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/Catalina/localhost/admin.xml]
>>
>> /usr/pkg/tomcat/conf/Catalina/localhost/balancer.xml
>>
>> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/Catalina/localhost/balancer.xml]
>>
>> /usr/pkg/tomcat/conf/Catalina/localhost/manager.xml already exists.
>>
>> /usr/pkg/tomcat/conf/catalina.policy already exists.
>>
>> /usr/pkg/tomcat/conf/catalina.properties already exists.
>>
>> /usr/pkg/tomcat/conf/jk2.properties already exists.
>>
>> /usr/pkg/tomcat/conf/server.xml already exists.
>>
>> /usr/pkg/tomcat/conf/tomcat-users.xml already exists.
>>
>> /usr/pkg/tomcat/conf/web.xml already exists.
>>
>>
>
> I get:
>
> ===========================================================================
> Installing files needed by jakarta-tomcat-5.0.30:
>
> /usr/pkg/etc/Catalina/localhost/admin.xml
>
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/Catalina/localhost/admin.xml]
> cp: /usr/pkg/etc/Catalina/localhost/admin.xml: No such file or directory
> chmod: /usr/pkg/etc/Catalina/localhost/admin.xml: No such file or directory
>
> /usr/pkg/etc/Catalina/localhost/balancer.xml
>
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/Catalina/localhost/balancer.xml]
> cp: /usr/pkg/etc/Catalina/localhost/balancer.xml: No such file or directory
> chmod: /usr/pkg/etc/Catalina/localhost/balancer.xml: No such file or
> directory
>
> /usr/pkg/etc/Catalina/localhost/manager.xml
>
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/Catalina/localhost/manager.xml]
> cp: /usr/pkg/etc/Catalina/localhost/manager.xml: No such file or directory
> chmod: /usr/pkg/etc/Catalina/localhost/manager.xml: No such file or directory
>
> /usr/pkg/etc/catalina.policy
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/catalina.policy]
>
> /usr/pkg/etc/catalina.properties
>
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/catalina.properties]
>
> /usr/pkg/etc/jk2.properties
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/jk2.properties]
>
> /usr/pkg/etc/server.xml
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/server.xml]
>
> /usr/pkg/etc/tomcat-users.xml
>
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/tomcat-users.xml]
>
> /usr/pkg/etc/web.xml
> [/usr/pkg/tomcat/share/examples/jakarta-tomcat/web.xml]
>
> ===========================================================================
>
> I manually installed admin.xml, balancer.xml and manager.xml into
> /usr/pkg/etc/Catalina/localhost. I then tried starting tomcat from the
> rc.d script. I got the following in my catalina.out:
>
> Can't load server.xml
> Can't load server.xml
> Apr 4, 2005 10:06:05 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 0 ms
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> Caused by: java.lang.NullPointerException
> at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
> ... 6 more
>
> This is on NetBSD 2.0 using lang/sun-jdk14. My pkgsrc is upto date as of
> 9:00am GMT.
>
> Chris
>
--
David/absolute -- www.NetBSD.org: No hype required --