Hi,

I'm running jboss3.0.1_tomcat-4.0.4 on linux box. It worked fine since last
week. Here is the problem:

The datasource is configured in server/catalina/conf/standardjaws.xml. I
have
an utility method to use DOMParser to get datasource name from
standardjaws.xml. 
It had been wroking fine till last week. Could anybody point out what went
wrong? 
or is there any change in www.jboss.org? But without this getDataSource()
method
the application works fine.


Here is my piece of code to get datasource:

getDataSource() {
    DOMParser parser = new DOMParser();

    // place throws exception
    parser.parse("../server/catalina/conf/standardjaws.xml"); 

    Document document = parser.getDocument();
    Node node = (Node)document.getDocumentElement();
    Element element = (Element)UtilParser.getNodeWithNodeName(node,
"dataSource");
    ...
}

The exception is:

2003-01-12 18:53:17,408 ERROR [STDERR] org.xml.sax.SAXParseException: File
"http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd"; not found.
2003-01-12 18:53:17,409 ERROR [STDERR]  at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1022)
2003-01-12 18:53:17,410 ERROR [STDERR]  at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit
y(DefaultEntityHandler.java:788)
2003-01-12 18:53:17,410 ERROR [STDERR]  at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse
t(DefaultEntityHandler.java:566)
2003-01-12 18:53:17,411 ERROR [STDERR]  at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1131)
2003-01-12 18:53:17,412 ERROR [STDERR]  at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2177)
2003-01-12 18:53:17,412 ERROR [STDERR]  at
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j
ava:2133)
2003-01-12 18:53:17,413 ERROR [STDERR]  at
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
DocumentScanner.java:882)
2003-01-12 18:53:17,414 ERROR [STDERR]  at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
2003-01-12 18:53:17,414 ERROR [STDERR]  at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
2003-01-12 18:53:17,415 ERROR [STDERR]  at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:947)
2003-01-12 18:53:17,415 ERROR [STDERR]  at
com.base.util.ConfigUtil.getDataSource(Unknown Source)

Here is the related part of standardjaws.xml:


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jbosscmp-jdbc PUBLIC
    "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN"
    "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>

<!--
===================================================================== -->
<!--                                                                  -->
<!--  Standard Jaws              -->
<!--                                                                  -->
<!--
===================================================================== -->

<!-- $Id: standardjaws.xml,v 1.27.2.3 2002/06/27 19:54:12 dsundstrom Exp$
-->

<jaws>
<!--
   <datasource>java:/OracleDS1</datasource>
-->
   <datasource>java:/OracleDS2</datasource>

   <type-mapping>Oracle8</type-mapping>
   <debug>false</debug>

Thx,

Epic Ding

<<attachment: winmail.dat>>

Reply via email to