You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Martin Redington <m....@ucl.ac.uk> on 2002/11/13 10:45:00 UTC

Bizarre startup problem on Mac OS X server, with 4.1.12

I have three machines. A tibook with Mac OS X 10.2.1, and 2 xserves  
with Mac OS X Server 10.2.1

The actual OS version is 10.2.1, build 6D52 on both machines. All three  
machines have the stock OS X 1.3.1 JVM install.

I downloaded 4.1.12 (full) to all three machines, and unpacked it with  
gnutar.

JAVA_HOME is set to /Library/Java/Home and CATALINA_HOME is set to  
/usr/local/jakarta/jakarta-tomcat-4.1.12

On the tibook, tomcat starts up with no problem whatsoever.

On  the Xserves, tomcat appears to start, but catalina.out reveals the  
following exception:

Exception during startup processing
java.lang.reflect.InvocationTargetException:  
java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
         at  
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
         at  
org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:280 
)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
         at  
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
         at  
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         at java.lang.reflect.Method.invoke(Native Method)
         at  
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

but, org.xml.sax.HandlerBase is clearly present in  
common/endorsed/xmlParserAPIs.jar

The only difference that I can see between the machines is that the  
xserves have WebObjects installed and running, and have a number of  
additional java framworks installed in /System/Library/Frameworks:

e.g.

drwxr-xr-x  4 root  wheel  136 Dec  5  2001  
/System/Library/Frameworks/JavaWOSMIL.framework
drwxr-xr-x  4 root  wheel  136 Apr 15  2002  
/System/Library/Frameworks/JavaWebObjects.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001  
/System/Library/Frameworks/JavaXML.framework

Note that JavaXML.framework also contains the org.xml.sax.HandlerBase  
class.

Any pointers or hints would be great. If anyone else is running OS X  
Server, it would be good to know if you have the same problems, or not  
...

    cheers,
          Martin


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


Re: Bizarre startup problem on Mac OS X server, with 4.1.12

Posted by Martin Redington <m....@ucl.ac.uk>.
Hi Ian,

    thanks for your response. At least now I know I'm not going crazy.

I didn't see the previous posts, but I have a vague recollection of 
having a similar problem with tomcat on my tibook ages ago, with a 
previous tomcat version.

I shut down webobjects, and then tried moving the common/endorsed jars 
aside (first xmlParserAPIs.jar alone, and then both jars).

no joy.

Then I tried putting them back, and moving aside 
/System/Library/Frameworks/JavaXML.framework

Still no joy.

I've added a listing of /System/Library/Frameworks/Java* at the end of 
this message ... maybe you can spot what you blew away.

If you do remember what you did, I'd be very grateful!

    cheers,
           Martin


[xserve1:local/jakarta/jakarta-tomcat-4.1.12] daveb% ls -ld 
/System/Library/Frameworks/Java*
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaDTWGeneration.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaDirectToWeb.framework
drwxr-xr-x  4 root  wheel  136 May  1  2002 
/System/Library/Frameworks/JavaEOAccess.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEOApplication.framework
drwxr-xr-x  6 root  wheel  204 Dec  7  2001 
/System/Library/Frameworks/JavaEOCocoa.framework
drwxr-xr-x  4 root  wheel  136 May  1  2002 
/System/Library/Frameworks/JavaEOControl.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEODistribution.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEOGeneration.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEOInterface.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEOInterfaceCocoa.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEOInterfaceSwing.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaEOProject.framework
drwxr-xr-x  5 root  wheel  170 Jul 29 09:27 
/System/Library/Frameworks/JavaEmbedding.framework
drwxr-xr-x  4 root  wheel  136 Apr 17  2002 
/System/Library/Frameworks/JavaFoundation.framework
drwxr-xr-x  4 root  wheel  136 Feb 19  2002 
/System/Library/Frameworks/JavaJDBCAdaptor.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaJNDIAdaptor.framework
drwxr-xr-x  3 root  wheel  102 Dec  7  2001 
/System/Library/Frameworks/JavaOpenEJB.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaOpenEJBActivation.framework
drwxr-xr-x  3 root  wheel  102 Dec  8  2001 
/System/Library/Frameworks/JavaOpenORB.framework
drwxr-xr-x  3 root  wheel  102 Dec  7  2001 
/System/Library/Frameworks/JavaOpenTM.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaPlot.framework
drwxr-xr-x  9 root  wheel  306 Jul 28 03:53 
/System/Library/Frameworks/JavaVM.framework
drwxr-xr-x  6 root  wheel  204 Dec  5  2001 
/System/Library/Frameworks/JavaWOExtensions.framework
drwxr-xr-x  4 root  wheel  136 May 15 20:09 
/System/Library/Frameworks/JavaWOJSPServlet.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaWOSMIL.framework
drwxr-xr-x  4 root  wheel  136 Apr 15  2002 
/System/Library/Frameworks/JavaWebObjects.framework
drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
/System/Library/Frameworks/JavaXML.framework


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


Re: Bizarre startup problem on Mac OS X server, with 4.1.12

Posted by Ian McFarland <im...@neo.com>.
My experience is consistent with the evidence you presented. I'm running X
server (10.2.1) without WebObjects, and Tomcat works great. Yes, it appears
that the XML parser included with WebObjects is your problem. I remember
similar problems from this list where more than one XML library was installed
on a machine (in that case I think it was on a Linux box) but I forget what
the resolution was. Some configuration choice made the problem go away. May
be that you end up configuring Tomcat to use the parser that came with
WebObjects. I haven't had my coffee yet today... but I figured even partial
confirmation of your suspicions might help! Maybe once I do, and my brain
starts working, I'll remember what you do to resolve this sort of thing.

Did you try just taking the XML parser out of endorsed? Then the other parser
(from WO) should take over. Of course, if you really want the parser that
came with Tomcat, then there's more work you have to do. I may remember once
I have my coffee. Let me know if this helps you out, though.

Cheers,
-Ian

On Wed, Nov 13, 2002 at 09:45:00AM +0000, Martin Redington wrote:
> 
> I have three machines. A tibook with Mac OS X 10.2.1, and 2 xserves  
> with Mac OS X Server 10.2.1
> 
> The actual OS version is 10.2.1, build 6D52 on both machines. All three  
> machines have the stock OS X 1.3.1 JVM install.
> 
> I downloaded 4.1.12 (full) to all three machines, and unpacked it with  
> gnutar.
> 
> JAVA_HOME is set to /Library/Java/Home and CATALINA_HOME is set to  
> /usr/local/jakarta/jakarta-tomcat-4.1.12
> 
> On the tibook, tomcat starts up with no problem whatsoever.
> 
> On  the Xserves, tomcat appears to start, but catalina.out reveals the  
> following exception:
> 
> Exception during startup processing
> java.lang.reflect.InvocationTargetException:  
> java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
>          at java.lang.ClassLoader.defineClass0(Native Method)
>          at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
>          at  
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
>          at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
>          at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
>          at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
>          at  
> org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:280 
> )
>          at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
>          at  
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>          at  
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>          at java.lang.reflect.Method.invoke(Native Method)
>          at  
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> but, org.xml.sax.HandlerBase is clearly present in  
> common/endorsed/xmlParserAPIs.jar
> 
> The only difference that I can see between the machines is that the  
> xserves have WebObjects installed and running, and have a number of  
> additional java framworks installed in /System/Library/Frameworks:
> 
> e.g.
> 
> drwxr-xr-x  4 root  wheel  136 Dec  5  2001  
> /System/Library/Frameworks/JavaWOSMIL.framework
> drwxr-xr-x  4 root  wheel  136 Apr 15  2002  
> /System/Library/Frameworks/JavaWebObjects.framework
> drwxr-xr-x  4 root  wheel  136 Dec  5  2001  
> /System/Library/Frameworks/JavaXML.framework
> 
> Note that JavaXML.framework also contains the org.xml.sax.HandlerBase  
> class.
> 
> Any pointers or hints would be great. If anyone else is running OS X  
> Server, it would be good to know if you have the same problems, or not  
> ...
> 
>     cheers,
>           Martin
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 

-- 
Ian McFarland                                           mailto:imf@neo.com
President                                           tel://+1.310.266.1205/
Neo Ventures, Ltd.      snail://Santa_Monica.CA.US.90404/1243.18th_Street/
2waypager:pageimf@neo.com        pgpkey:http://www.neo.com/keys/imfkey.asc

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


Re: Bizarre startup problem on Mac OS X server, with 4.1.12. SOLVED

Posted by Martin Redington <m....@ucl.ac.uk>.
Thanks a bunch Apple!

My OS X Server installs have a catalina.jar file in the 
/Library/Java/Extensions directory. This dir is listed in the 
java.ext.dirs System property, so I presume it gets searched for jars 
during startup.

After I gzip'd the catalina.jar, my tomcat 4.1.12 install started up 
with no problems.

/Library/Java/Extensions/catalina.jar is not used by Apple's stock OS X 
Server Tomcat install (in /Library/Tomcat) ... that install starts and 
stops perfectly when the jar is gzip'd or otherwise disabled.

Maybe its used by WebObjects.

In any case, someone might want to add an appropriate note to the 
release notes, and let Apple know that they're breaking stuff. If 
anyone has a more graceful workaround, it would be good to know.

On Wednesday, November 13, 2002, at 09:45 AM, Martin Redington wrote:

>
> I have three machines. A tibook with Mac OS X 10.2.1, and 2 xserves 
> with Mac OS X Server 10.2.1
>
> The actual OS version is 10.2.1, build 6D52 on both machines. All 
> three machines have the stock OS X 1.3.1 JVM install.
>
> I downloaded 4.1.12 (full) to all three machines, and unpacked it with 
> gnutar.
>
> JAVA_HOME is set to /Library/Java/Home and CATALINA_HOME is set to 
> /usr/local/jakarta/jakarta-tomcat-4.1.12
>
> On the tibook, tomcat starts up with no problem whatsoever.
>
> On  the Xserves, tomcat appears to start, but catalina.out reveals the 
> following exception:
>
> Exception during startup processing
> java.lang.reflect.InvocationTargetException: 
> java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
>         at java.lang.ClassLoader.defineClass0(Native Method)

> but, org.xml.sax.HandlerBase is clearly present in 
> common/endorsed/xmlParserAPIs.jar
>
> The only difference that I can see between the machines is that the 
> xserves have WebObjects installed and running, and have a number of 
> additional java framworks installed in /System/Library/Frameworks:
>
> e.g.
>
> drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
> /System/Library/Frameworks/JavaWOSMIL.framework
> drwxr-xr-x  4 root  wheel  136 Apr 15  2002 
> /System/Library/Frameworks/JavaWebObjects.framework
> drwxr-xr-x  4 root  wheel  136 Dec  5  2001 
> /System/Library/Frameworks/JavaXML.framework
>
> Note that JavaXML.framework also contains the org.xml.sax.HandlerBase 
> class.


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