AFAIK its known problem with xerces.
> -----Original Message----- > From: O'Reilly John [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 2:35 PM > To: 'OJB Users List' > Subject: RE: XML Parser problem (was : using OJB with Struts > and Eclipse > ) > > > Hi philippe, > > We have had the same problem ("repository.xml: no protocol: > repository.dtd"). It seems to happen if there are spaces in > the path that > repository.xml is in. For example, we used to have c:\Tomcat > 4.1\webapps\<appname>\WEB-INF\classes\repository.xml". By > removing the > space between "Tomcat" and "4.1", the problem disappeared. > Does anyone know > if there is a better solution that this? > > Regards, > John > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 06 March 2003 12:49 > To: OJB Users List > Subject: XML Parser problem (was : using OJB with Struts and Eclipse ) > > > > 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(XMLEntityM > anager.java:79 > 6) > > at > org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEnti > tyManager.java > :756) > > at > org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTD > ScannerImpl.ja > va:267) > > at > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.di > spatch(XMLDocu > mentScannerImpl.java:826) > > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > ment(XMLDocume > ntFragmentScannerImpl.java:333) > > at > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat > ion.java:524) > at > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat > ion.java:580) > at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) > at > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP > arser.java:110 > 8) > > at > org.apache.ojb.broker.metadata.RepositoryPersistor.buildReposi > tory(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] > ************************************************************** > ********** > This e-mail and any files transmitted with it are > confidential and may be > privileged and are intended solely for the individual named/ > for the use of > the individual or entity to whom they are addressed.If you are not the > intended addressee, you should not disseminate, distribute or > copy this > e-mail.Please notify the sender immediately if you have > received this e-mail > by mistake and delete this e-mail from your system.If you are not the > intended recipient, you are notified that reviewing, > disclosing, copying, > distributing or taking any action in reliance on the contents > of this e-mail > is strictly prohibited.Please note that any views or opinions > expressed in > this e-mail are solely those of the author and do not > necessarily represent > those of Traventec Limited.E-mail transmission cannot be > guaranteed to be > secure or error-free as information could be intercepted, > corrupted, lost, > destroyed, or arrive late or incomplete.Traventec Limited > therefore does not > accept liability for any errors or omissions in the contents of this > message, which arise as a result of e-mail transmission.The > recipient should > check this e-mail and any attachments for the presence of viruses.This > e-mail has been swept for computer viruses however Traventec > Limited accepts > no liability for any damage caused by any virus transmitted > by this e-mail. > > --------------------------------------------------------------------- > 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]
