Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configuring xerces with tomcat / support for jdom and sax

Status
Not open for further replies.

cfprg

Programmer
Apr 14, 2004
38
US
This is the problem i get when i run my jsp page on tomcat...


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:6: package com.macromedia.breeze.mymeetings does not exist
import com.macromedia.breeze.mymeetings.*;
^


Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:7: package org.jdom does not exist
import org.jdom.*;
^


Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:8: package org.jdom.xpath does not exist
import org.jdom.xpath.*;
^


Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:9: package org.jdom.output does not exist
import org.jdom.output.*;
^


An error occurred at line: 23 in the jsp file: /my_first_breeze_app/mymeetings.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:78: cannot resolve symbol
symbol : class XMLApiBean
location: class org.apache.jsp.my_005ffirst_005fbreeze_005fapp.mymeetings_jsp
XMLApiBean breeze= new XMLApiBean(breezeBase, accessKey, login, password, jsession);
^


An error occurred at line: 23 in the jsp file: /my_first_breeze_app/mymeetings.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:78: cannot resolve symbol
symbol : class XMLApiBean
location: class org.apache.jsp.my_005ffirst_005fbreeze_005fapp.mymeetings_jsp
XMLApiBean breeze= new XMLApiBean(breezeBase, accessKey, login, password, jsession);
^


An error occurred at line: 53 in the jsp file: /my_first_breeze_app/mymeetings.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:103: cannot resolve symbol
symbol : class Element
location: class org.apache.jsp.my_005ffirst_005fbreeze_005fapp.mymeetings_jsp
Element e = (Element) i.next();
^


An error occurred at line: 53 in the jsp file: /my_first_breeze_app/mymeetings.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:103: cannot resolve symbol
symbol : class Element
location: class org.apache.jsp.my_005ffirst_005fbreeze_005fapp.mymeetings_jsp
Element e = (Element) i.next();
^


An error occurred at line: 53 in the jsp file: /my_first_breeze_app/mymeetings.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\my_005ffirst_005fbreeze_005fapp\mymeetings_jsp.java:104: cannot resolve symbol
symbol : class Meeting
location: class org.apache.jsp.my_005ffirst_005fbreeze_005fapp.mymeetings_jsp
Meeting nextMeeting = breeze.getNextMeeting(e);
^
9 errors



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.27


---




my normal jsp page works fine. but i think the problem is with sax and dom api's support.

as you know i am using tomcat. do we have to configure my xerces parser to work with tomcat. in other words..i need to know the configuration procedure for xerces parser(class path settings etc.). I am using windows 2000.

Thanks in advance

 
You need to add any external/3rd party APIs (usually in .jar files) such as xerces.jar or whatver.jar that "com.macromedia.breeze.mymeetings" package is packaged in, to TOMCAT_HOME/common/lib so that the tomcat ClassLoader can load the required classes.

--------------------------------------------------
Free Database Connection Pooling Software
 
Thanks sedj for your quick response. I put all the necessary jar files xerses and xalan.(i think)..but i will try if i am missing anything..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top