RE: [JBoss-user] URGENT help needed: File http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd not found.

2003-01-12 Thread Junjie Ding


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Junjie Ding
 Sent: Sunday, January 12, 2003 7:42 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] URGENT help needed: File
 http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd; not found.


 Hi,

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

 My 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 until last week. Could anybody point out what went wrong? or is there
 any change
 in www.jboss.org?

 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.startReadingFromExt
 ernalEntit
 y(DefaultEntityHandler.java:788)
 2003-01-12 18:53:17,410 ERROR [STDERR]at
 org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExt
 ernalSubse
 t(DefaultEntityHandler.java:566)
 2003-01-12 18:53:17,411 ERROR [STDERR]at
 org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDSc
 anner.java
 :1131)
 2003-01-12 18:53:17,412 ERROR [STDERR]at
 org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XML
 DocumentSc
 anner.java:2177)
 2003-01-12 18:53:17,412 ERROR [STDERR]at
 org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumen
 tScanner.j
 ava:2133)
 2003-01-12 18:53:17,413 ERROR [STDERR]at
 org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.di
 spatch(XML
 DocumentScanner.java:882)
 2003-01-12 18:53:17,414 ERROR [STDERR]at
 org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocume
 ntScanner.
 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
 !--
datasourcejava:/OracleDS1/datasource
 --
datasourcejava:/OracleDS2/datasource

type-mappingOracle8/type-mapping
debugfalse/debug


and here is my pieve of code to get datasource:

DOMParser parser = new DOMParser();
parser.parse(../server/catalina/conf/standardjaws.xml);
Document document = parser.getDocument();
Node node = (Node)document.getDocumentElement();
Element element = (Element)UtilParser.getNodeWithNodeName(node,
dataSource);

 Thx,

 Epic Ding



 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] URGENT help needed: File http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd not found.

2003-01-12 Thread Sebastian Hauer

Hi,

Your problem is that the DTD could not be found on the Jboss server.
Either use a non validating parser so that the parser will not try to
load the DTD from the possibly broken jboss site or implement an
org.xml.sax.EntityResolver where you map the public identifier
-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN to resource you load with your
classloader. The jboss guys do that. Take a look at their implementation
of org.jboss.metadata.XmlFileLoader for an example.

Sebastian


 -Original Message-
 From: Junjie Ding [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, January 12, 2003 10:54 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] URGENT help needed: File 
 http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd; not found.
.
.
 and here is my pieve of code to get datasource:
 
 DOMParser parser = new DOMParser();
 parser.parse(../server/catalina/conf/standardjaws.xml);
 Document document = parser.getDocument();
 Node node = (Node)document.getDocumentElement();
 Element element = (Element)UtilParser.getNodeWithNodeName(node,
 dataSource);


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user