Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Apache Tomcat
This is the forum to discuss the Wrox book Professional Apache Tomcat by Chanoch Wiggers, Ben Galbraith, Vivek Chopra, Sing Li, Debashish Bhattacharjee, Amit Bakore, Romin Irani, Sandip Bhattacharya, Chad Fowler; ISBN: 9780764543722
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 19th, 2004, 08:20 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jakawan Send a message via MSN to jakawan Send a message via Yahoo to jakawan
Default Building JK2

I'm trying to build mod_jk2 on Redhat Linux.
The only thing I've modified is the path in build.properties.

When I run ANT, It looks like it's missing some jar file or something.
Can anybody help? I'm not familar with the exception below.

[root@u15157708 jk]# ant
Buildfile: build.xml

BUILD FAILED
java.lang.AbstractMethodError: javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
        at org.apache.tools.ant.util.JAXPUtils.getNamespaceXM LReader(JAXPUtils.java:163)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:184)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:131)
        at org.apache.tools.ant.ProjectHelper.configureProjec t(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:658)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher. java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher .java:55)

Total time: 0 seconds
java.lang.AbstractMethodError: javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
        at org.apache.tools.ant.util.JAXPUtils.getNamespaceXM LReader(JAXPUtils.java:163)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:184)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:131)
        at org.apache.tools.ant.ProjectHelper.configureProjec t(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:658)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher. java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher .java:55)
javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;


This is what I have changed in my build.properties :

tomcat5.home=@TOMCAT5_HOME@
tomcat40.home=/var/tomcat4
tomcat41.home=/var/tomcat4

I already have Tomcat4.1 installed.

thanks,
Jak

  #2 (permalink)  
Old December 18th, 2004, 02:32 PM
Registered User
 
Join Date: Dec 2004
Location: , , Canada.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by jakawan
 I'm trying to build mod_jk2 on Redhat Linux.
The only thing I've modified is the path in build.properties.

When I run ANT, It looks like it's missing some jar file or something.
Can anybody help? I'm not familar with the exception below.

[root@u15157708 jk]# ant
Buildfile: build.xml

BUILD FAILED
java.lang.AbstractMethodError: javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
        at org.apache.tools.ant.util.JAXPUtils.getNamespaceXM LReader(JAXPUtils.java:163)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:184)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:131)
        at org.apache.tools.ant.ProjectHelper.configureProjec t(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:658)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher. java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher .java:55)

Total time: 0 seconds
java.lang.AbstractMethodError: javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
        at org.apache.tools.ant.util.JAXPUtils.getNamespaceXM LReader(JAXPUtils.java:163)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:184)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(P rojectHelper2.java:131)
        at org.apache.tools.ant.ProjectHelper.configureProjec t(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:658)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher. java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher .java:55)
javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;


This is what I have changed in my build.properties :

tomcat5.home=@TOMCAT5_HOME@
tomcat40.home=/var/tomcat4
tomcat41.home=/var/tomcat4

I already have Tomcat4.1 installed.

thanks,
Jak

Dear Jak,

I read p242 of the Tomcat 5 book and am wondering if the authors got mixed up; Ant is for building Java code, not code for say C for the Apache side. I think we should be using the 'configure' tool for building mod_jk2 for the Apache side, just like what the literature said for mod_jk.

Patrick



Similar Threads
Thread Thread Starter Forum Replies Last Post
Query building anjurenjith SQL Language 0 August 2nd, 2007 05:07 AM
Sticky Sessions while using jk2 on apache-jboss ajithsiyer BOOK: Professional Apache Tomcat 0 September 2nd, 2004 06:15 AM
help in building regex ronaldo11 C# 0 July 6th, 2003 09:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.