great! now it works again:)))))))))))) thanks tim, phillipe and charles!!
i had no spaces in my path to the repository (createPersistenceBroker) but, as tim mentioned, my path to tomcat did. there must be some changes from 0.9.4 to 0.9.5/0.9.6, because it worked fine with spaces before. maybe it has something todo with the xml libraries as phillipe suspected?? andreas -----Urspr�ngliche Nachricht----- Von: Gibbs, Tim [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 01. Oktober 2002 22:03 An: 'OJB Users List' Betreff: RE: no protocol: repository.dtd in my previous mail change: Files/Tomcat4.1/webapps/beer4all/WEB-INF/classes/OJB.properties to this: Files/Tomcat4.1/webapps/beer4all/WEB-INF/classes/repository.dtd -----Original Message----- From: Gibbs, Tim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 4:01 PM To: 'OJB Users List' Subject: RE: no protocol: repository.dtd although the instance that I ran into this had nothing to do with OJB I believe it is the root cause of your problem. When referencing the DTD, internally the reference gets turned into a URL. The problem occurs because of the spaces in the path. What happens is that they take the directory path for the DTD from the classpath constructed by Tomcat at runtime and turn it into the URL representation. The problem is that URL's DON'T LIKE SPACES and internally that string is treated as 2 URLs because it views the space as a delimiter between multiple URL's. What happens is that it reads: file:/D:/Program and continues to what it thinks is a second URL: Files/Tomcat4.1/webapps/beer4all/WEB-INF/classes/OJB.properties which of course isn't a URL because IT HAS NO PROTOCOL (hence the exception) My guess is that if you moved Tomcat to: d:/Programs/Tomcat4.1 it will work. Hope this helps. Tim -----Original Message----- From: Virender Dogra [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 12:10 AM To: [EMAIL PROTECTED] Subject: no protocol: repository.dtd I am trying to make the struts-obj contribution in the 0.9.6 release work with the default setup, but keep running into the below "no protocol" error. The only change I have made is as mentioned in the readme.first file. Help !!! Platform: Tomcat 4.1.10, Windows 2000 My repository.xml file looks like this: <jdbc-connection-descriptor platform="Hsqldb" jdbc-level="2.0" driver="org.hsqldb.jdbcDriver" protocol="jdbc" subprotocol="hsqldb" dbalias="d:/temp/struts-ojb/db/beer4all" username="sa" password=""/> Error message in tomcat console: [BOOT] INFO: OJB.properties: file:/D:/Program Files/Tomcat 4.1/webapps/beer4all/WEB-I NF/classes/OJB.properties [DEFAULT] FATAL: 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.jav a: 796) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager. ja va:756) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImp l. java:267) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XML Do cumentScannerImpl.java:826) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cu mentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 24 ) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 80 ) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> <font face="Times New Roman" size="3"> <p>--------------------------------------------------------------------- ---- -----</p> <p> This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.</p> <p> Ce courriel est confidentiel et prot�g�. L'exp�diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) d�sign�(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser imm�diatement, par retour de courriel ou par un autre moyen.</p> <p>====================================================</p> </font> <font face="Times New Roman" size="3"> <p>--------------------------------------------------------------------- ---------</p> <p> This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.</p> <p> Ce courriel est confidentiel et prot�g�. L'exp�diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) d�sign�(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser imm�diatement, par retour de courriel ou par un autre moyen.</p> <p>====================================================</p> </font> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
