RE: java.net.MalformedURLException: no protocol: repository.dtd
Just a thought. Doesn't the newest version of Xerces only support a URL in the doctype. Basically this means that you can't use relative paths when referencing dtds (or included repository files). I found this when I upgraded to Tomcat 4.1. I just went and grabbed my old version of Xerces to get it to work. DOS filenames are not legal URIs as required by the XML 1.0 specification. Therefore, it was an error for the parser to accept DOS filenames. This bug is now fixed. DOS filenames can be converted to legal URLs, however. For example, the DOS filename "c:\xerces\data\personal.xml" would become "file:///c:/xerces/data/personal.xml", which is a legal URL. Hope this helps, Graham -Original Message- From: Jim Shingler [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:18 AM To: 'OJB Users List' Subject: RE: java.net.MalformedURLException: no protocol: repository.dtd Not sure this will help, ... In the past, I have received this exception when I was using a old version of Xerces with a package that was expecting a new version. Thoughts? Jim Shingler -Original Message- From: anuradha devi [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 10:04 AM To: OJB Users List Subject: RE: java.net.MalformedURLException: no protocol: repository.dtd Hi Tom, It still gives me the same problem. Any other solution for this.. Pls let me know Thanks --- Thomas Dudziak <[EMAIL PROTECTED]> wrote: > In the CVS source, the doctype declaration is > somewhat different (and > this works though I don't know whether the used XML > parser is Xerces or > Crimson): > > "-//Apache Software Foundation//DTD OJB Repository//EN" >"repository.dtd" > [ > > > > > > > ]> > > The important part here seems to be that the doctype > is specified as > public with a public identifier as opposed to system > like in your > repository.xml. > > Tom > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
RE: java.net.MalformedURLException: no protocol: repository.dtd
Not sure this will help, ... In the past, I have received this exception when I was using a old version of Xerces with a package that was expecting a new version. Thoughts? Jim Shingler -Original Message- From: anuradha devi [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 10:04 AM To: OJB Users List Subject: RE: java.net.MalformedURLException: no protocol: repository.dtd Hi Tom, It still gives me the same problem. Any other solution for this.. Pls let me know Thanks --- Thomas Dudziak <[EMAIL PROTECTED]> wrote: > In the CVS source, the doctype declaration is > somewhat different (and > this works though I don't know whether the used XML > parser is Xerces or > Crimson): > > "-//Apache Software Foundation//DTD OJB Repository//EN" >"repository.dtd" > [ > > > > > > > ]> > > The important part here seems to be that the doctype > is specified as > public with a public identifier as opposed to system > like in your > repository.xml. > > Tom > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
RE: java.net.MalformedURLException: no protocol: repository.dtd
Hi, Is the repository in a path with a space in ? This has caused problems in the past with XML parsers. Cheers, Charles. >-Original Message- >From: anuradha devi [mailto:[EMAIL PROTECTED] >Sent: 23 June 2003 15:04 >To: OJB Users List >Subject: RE: java.net.MalformedURLException: no protocol: >repository.dtd > > >Hi Tom, >It still gives me the same problem. >Any other solution for this.. >Pls let me know >Thanks > >--- Thomas Dudziak <[EMAIL PROTECTED]> wrote: >> In the CVS source, the doctype declaration is >> somewhat different (and >> this works though I don't know whether the used XML >> parser is Xerces or >> Crimson): >> >> >"-//Apache Software Foundation//DTD OJB >> Repository//EN" >>"repository.dtd" >> [ >> >> >> >> >> >> >> ]> >> >> The important part here seems to be that the doctype >> is specified as >> public with a public identifier as opposed to system >> like in your >> repository.xml. >> >> Tom >> >> >> >> >- >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> For additional commands, e-mail: >> [EMAIL PROTECTED] >> > > >__ >Do you Yahoo!? >SBC Yahoo! DSL - Now only $29.95 per month! >http://sbc.yahoo.com > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.MalformedURLException: no protocol: repository.dtd
Hi Tom, It still gives me the same problem. Any other solution for this.. Pls let me know Thanks --- Thomas Dudziak <[EMAIL PROTECTED]> wrote: > In the CVS source, the doctype declaration is > somewhat different (and > this works though I don't know whether the used XML > parser is Xerces or > Crimson): > > "-//Apache Software Foundation//DTD OJB > Repository//EN" >"repository.dtd" > [ > > > > > > > ]> > > The important part here seems to be that the doctype > is specified as > public with a public identifier as opposed to system > like in your > repository.xml. > > Tom > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.MalformedURLException: no protocol: repository.dtd
Hi Tom, It still gives me the same problem. Any other solution for this.. Pls let me know Thanks --- Thomas Dudziak <[EMAIL PROTECTED]> wrote: > In the CVS source, the doctype declaration is > somewhat different (and > this works though I don't know whether the used XML > parser is Xerces or > Crimson): > > "-//Apache Software Foundation//DTD OJB > Repository//EN" >"repository.dtd" > [ > > > > > > > ]> > > The important part here seems to be that the doctype > is specified as > public with a public identifier as opposed to system > like in your > repository.xml. > > Tom > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.MalformedURLException: no protocol: repository.dtd
In the CVS source, the doctype declaration is somewhat different (and this works though I don't know whether the used XML parser is Xerces or Crimson): ]> The important part here seems to be that the doctype is specified as public with a public identifier as opposed to system like in your repository.xml. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.MalformedURLException: no protocol: repository.dtd
Hi Tom, Thanks. I have done that and now it gives me this error,, java.lang.ExceptionInInitializerError: java.net.UnknownHostException: repository.dtd at java.net.InetAddress.getAllByName0(InetAddress.java:585) at java.net.InetAddress.getAllByName0(InetAddress.java:554) at java.net.InetAddress.getByName(InetAddress.java:463) at java.net.Socket.(Socket.java:112) at sun.net.NetworkClient.doConnect(NetworkClient.java:56) at sun.net.NetworkClient.openServer(NetworkClient.java:43) at sun.net.ftp.FtpClient.openServer(FtpClient.java:271) at sun.net.ftp.FtpClient.(FtpClient.java:385) at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:88) at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:107) at java.net.URL.openStream(URL.java:816) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Unknown Source) at org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(Unknown Source) at org.apache.ojb.broker.metadata.MetadataManager.init(Unknown Source) at org.apache.ojb.broker.metadata.MetadataManager.(Unknown Source) at org.apache.ojb.broker.metadata.MetadataManager.(Unknown Source) at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefaultKey(Unknown Source) at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.(Unknown Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java(Compiled Code)) at org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Unknown Source) at org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.(Unknown Source) at org.apache.ojb.broker.PersistenceBrokerFactory.getConfigurator(Unknown Source) at com.tgt.hr.exm.persistence.OJBPersistenceContext.(OJBPersistenceContext.java:95) at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java(Compiled Code)) at com.tgt.hr.exm.persistence.PersistenceContextFactory.getPersistanceContext(PersistenceContextFactory.java:102) at com.tgt.hr.exm.business.process.EHRProcess.getIsAuthorized(EHRProcess.java:68) at com.tgt.hr.exm.ui.action.EHRAuthAction.emPerform(EHRAuthAction.java:118) at com.tgt.hr.exm.ui.action.AbstractEMAction.perform(AbstractEMAction.java:124) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor
RE: java.net.MalformedURLException: no protocol: repository.dtd
I've seen a similar problem before. What XML parser do you use ? If you're using Xerces, try using
RE: java.net.MalformedURLException: no protocol: repository.dtd
Hi Olli, Thanks for your quick response, Here is my repository.xml. ]> &database; &internal; &user; Pls do the needful. Anu --- [EMAIL PROTECTED] wrote: > Hello, > > > -Original Message- > > From: anuradha devi > [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 23, 2003 11:18 AM > > To: [EMAIL PROTECTED] > > Subject: java.net.MalformedURLException: no > protocol: repository.dtd > > > > > > Hi, > > We are trying to migrate our application with > OJB1.0 > > which is currently working OJB0.9.5. > > There by I have added the new OJB1.0 binaries and > I > > have made necessary changes like using new > > repository.dtd, repository.xml etc., and I have > also > > changed the code to resolve all the compilation > > problems. > > But it gives me the following exception, can > someone > > help us on this. > > can you please post the beginning of > your repository.xml? > > > java.lang.ExceptionInInitializerError: > > java.net.MalformedURLException: no protocol: > > repository.dtd > > at java.net.URL.(URL.java(Compiled Code)) > > Olli > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.MalformedURLException: no protocol: repository.dtd
Hello, > -Original Message- > From: anuradha devi [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2003 11:18 AM > To: [EMAIL PROTECTED] > Subject: java.net.MalformedURLException: no protocol: repository.dtd > > > Hi, > We are trying to migrate our application with OJB1.0 > which is currently working OJB0.9.5. > There by I have added the new OJB1.0 binaries and I > have made necessary changes like using new > repository.dtd, repository.xml etc., and I have also > changed the code to resolve all the compilation > problems. > But it gives me the following exception, can someone > help us on this. can you please post the beginning of your repository.xml? > java.lang.ExceptionInInitializerError: > java.net.MalformedURLException: no protocol: > repository.dtd > at java.net.URL.(URL.java(Compiled Code)) Olli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]