thanks charles, but they are no spaces in the path. i still don't know what it is. i tried the same queries in a little test app and they worked fine with 0.9.6. it's just the servlet
thanks andreas -----Urspr�ngliche Nachricht----- Von: Charles Anthony [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 01. Oktober 2002 16:22 An: 'OJB Users List' Betreff: RE: FATAL: no protocol: repository.dtd This one hit me early on today. I found that one of my (colleagues) directory names had a space in it. Something like D:\Bob\Harry\My Test Directory\resources\repository.xml The parser found the repository.xml file OK, but barfed on the DTD (which was in the same directory) with the error you report. When we renamed the path D:\Bob\Harry\MyTestDirectory\resources\repository.xml the error went away See if you have any spaces in any pathnames in your app; that might have something to do with it. Cheers, Charles. >-----Original Message----- >From: abo [mailto:[EMAIL PROTECTED]] >Sent: 01 October 2002 15:19 >To: [EMAIL PROTECTED] >Subject: FATAL: no protocol: repository.dtd > > >hello everybody, > >i have a servlet, which runs fine with 0.9.4. >when i try to access the servlet with 0.9.5 or 0.9.6 i get the >following: > >(this should just be a simple configuration problem, but i spend the >whole day to figure that out and can't find it..) > > >[org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: >Already cre ated persistence broker instances: 1 >[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. >java:796) > at >org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManag >er.java:756) > at >org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScanner >Impl.java:267) > at >org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch( >XMLDocumentScannerImpl.java:826) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM >LDocumentFragmentScannerImpl.java:333) > at >org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav >a:524) > at >org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav >a:580) > at >org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) > at >org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j >ava:1108) > at >org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Un >known Source) > at >org.apache.ojb.broker.metadata.RepositoryPersistor.readFromFile(Unkno >wn Source) > at >org.apache.ojb.broker.metadata.DescriptorRepository.getInstance(Unkno >wn Source) > at >org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(Unknown S >ource) > at >sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >Method) > > at >sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct >orAccessorImpl.java:39) > at >sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC >onstructorAccessorImpl.java:27) > at >java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at >org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNe >wBrokerInstance(Unknown Source) > at >org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(Unkn >own Source) > at >org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unkn >own Source) > at >org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPe >rsistenceBroker(Unknown Source) > at >org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroke >r(Unknown Source) > at jnet.server.comp.QueryManager.open(QueryManager.java:32) > at >jnet.server.servlets.jcontact.ContactDataServer.transferLanguageList( >ContactDataServer.java:215) > at >jnet.server.servlets.jcontact.ContactDataServer.doGet(ContactDataServ >er.java:94) > at >jnet.server.servlets.jcontact.ContactDataServer.service(ContactDataSe >rver.java:238) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >icationFilterChain.java:247) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >ilterChain.java:193) > at >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >alve.java:243) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:566) > at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav >a:472) > at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > at >org.apache.catalina.core.StandardContextValve.invoke(StandardContextV >alve.java:190) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:566) > at >org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve >.java:246) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:564) > at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav >a:472) > at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > at >org.apache.catalina.core.StandardContext.invoke(StandardContext.java: >2347) > at >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >ava:180) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:566) > at >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche >rValve.java:170) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:564) > at >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >ava:170) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:564) > at >org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: >468) > at >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline >.java:564) > > >thanks for any help >andreas > This email and any attachments are strictly confidential and are intended solely for the addressee. If you are not the intended recipient you must not disclose, forward, copy or take any action in reliance on this message or its attachments. If you have received this email in error please notify the sender as soon as possible and delete it from your computer systems. Any views or opinions presented are solely those of the author and do not necessarily reflect those of HPD Software Limited or its affiliates. At present the integrity of email across the internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any claims arising as a re- sult of the use of this medium to transmit information by or to HPD Software Limited or its affiliates. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
