This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 210663 - XercesImpl.jar is expected by Cosmos UI component
Summary: XercesImpl.jar is expected by Cosmos UI component
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All Windows XP
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Jagmit CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 09:21 EST by Shivashankari CLA
Modified: 2012-01-03 13:54 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shivashankari CLA 2007-11-22 09:21:52 EST
Without the XercesImpl.jar in Tomcat's common library, hitting http://localhost:8080/COSMOSUI/index.jsp?view=cosmos on a Firefox browser, throws the following exception on the web page.

exception

javax.servlet.ServletException: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
	javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
	org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:89)
	org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:77)
	org.apache.jasper.compiler.JspConfig.init(JspConfig.java:198)
	org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:250)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:113)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Comment 1 Sheldon Lee-Loy CLA 2007-11-22 11:08:24 EST
It seems Sun's JDK 1.5 does not package xerces while IBM JDK 1.5 does.  There's some decrepency between jdks. 

The fix is to package xerces with the COSMOS UI web application.

org.apache.xerces_2.8.0.v200705301630.jar from orbit should be added to the WEB-INF/lib directory.
Comment 2 Sheldon Lee-Loy CLA 2007-11-22 11:10:10 EST
Reassigning to the build component.
Comment 3 Jagmit CLA 2007-11-22 14:03:55 EST
fixed this in COSMOS build (COSMOS-1.0.0-200711221343). Please verify
Comment 4 Jagmit CLA 2007-11-22 14:04:13 EST
please test it
Comment 5 Jagmit CLA 2007-12-11 11:51:44 EST
closing this bug