Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.