You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ph...@esiea.fr on 2003/03/05 17:35:06 UTC

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