sylvain,
unfortunately this is not the cause ! the DTD file is present, in the same
directory as the repository.xml file
actually i've found a solution, but without really understanding what's
happening :
if i remove xercesImpl.jar and xml-apis from my classpath, then the
problem disappears ; and if i force a printstackTrace, I see that the
Crimson XML parser is used, and the "no protocol" error doesn't occur
could anybody help me understand this ?
thanks
philippe
<[EMAIL PROTECTED]
sscom.com> Pour : <[EMAIL PROTECTED]>
cc :
06/03/2003 13:30 Objet : RE: R�f. : Re: using OJB
with Struts and Eclipse
Veuillez r�pondre �
"OJB Users List"
Your repository.dtd file are missing.
Sylvain
-----Message d'origine-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Date: mercredi, 5. mars 2003 17:35
�: OJB Users List
Objet: R�f. : Re: using OJB with Struts and Eclipse
thanks for all the answers i got ; now my system finds the repository file.
however, i'm still having difficulties : here's what i get when executing a
call to
PersistenceBrokerFactory.createPersistenceBroker() (or as well to
defaultPersistenceBroker())
[BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class
Could not read repository class descriptor data, using repository:
repository.xml: no protocol: repository.dtd
java.net.MalformedURLException: no protocol: repository.dtd
at java.net.URL.<init>(URL.java:579)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:756)
at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:267)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:826)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1108)
at
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Unknown
Source)
seems that it's not able to interpret the DOCTYPE declaration properly
my repository.xml and repository.dtd are in the same directory, and i built
them from examples provided in the distribution
i'm using db-ojb-1.0.rc1, eclipse 2.1 and tomcat 4.1
what i am doing wrong ?
philippe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]