Hi, I'm still having trouble with JBuilder 5.
I have made sure all the xml/setup files (inc repository.dtd) are together in the classes folder (same folder as Application class). Not sure about changing the JVM working directory, how do I do that? Is that the same as the JBuilder 5 working dir? if so it makes no difference. Thanks in advance. Dave > -----Original Message----- > From: Armin Waibel [mailto:[EMAIL PROTECTED]] > Sent: 14 December 2002 16:56 > To: OJB Users List; [EMAIL PROTECTED] > Subject: Re: Problems when using with JBuilder > > > Hi David, > > did you copied the repository.dtd to the same directory > as the repository.xml file? > Let your JVM working directory point to the dir of the > XML/setup files. > > HTH > > regards, > Armin > > ----- Original Message ----- > From: "David Yeneralski" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, December 14, 2002 5:42 PM > Subject: Problems when using with JBuilder > > > > > > I have setup and can run tutorial 1 with mysql using the command > prompt. I > > am now trying to run tutorial 1 from JBuilder 5. I have > copied all the > > neccessary source file including all the XML/setup files > (repository.xml...) > > and can build the project without any problems. When I try > to run the > > project I get: > > > > [org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: > Already > > created persistence broker instances: 0 > > [DEFAULT] FATAL: no protocol: repository.dtd > > java.net.MalformedURLException: no protocol: repository.dtd > > at java.net.URL.<init>(URL.java:473) > > at java.net.URL.<init>(URL.java:376) > > at java.net.URL.<init>(URL.java:330) > > at > > > org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityM > anager.jav > a:79 > > 6) > > at > > > org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEnti > tyManager. > java > > :756) > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTD > ScannerImp > l.ja > > va:267) > > at > > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.di > spatch(XML > Docu > > mentScannerImpl.java:826) > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > ment(XMLDo > cume > > ntFragmentScannerImpl.java:333) > > at > > > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat > ion.java:5 > 24) > > at > > > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat > ion.java:5 > 80) > > 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(Repos > itor > > yPersistor.java:278) > > at > > > org.apache.ojb.broker.metadata.RepositoryPersistor.readFromFil > e(Reposito > ryPe > > rsistor.java:143) > > at > > > org.apache.ojb.broker.metadata.DescriptorRepository.getInstanc > e(Descript > orRe > > pository.java:146) > > at > > > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(Pe > rsistenceB > roke > > rImpl.java:184) > > at java.lang.reflect.Constructor.newInstance(Native Method) > > at > > > org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.c > reateNewBr > oker > > Instance(PersistenceBrokerFactoryDefaultImpl.java:117) > > at > > > org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObje > ct(PBKeyed > Pool > > ableObjectFactory.java:28) > > at > > > org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObje > ct(Unknown > > Source) > > at > > > org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.c > reatePersi > sten > > ceBroker(PersistenceBrokerFactoryDefaultImpl.java:153) > > at > > > org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.d > efaultPers > iste > > nceBroker(PersistenceBrokerFactoryDefaultImpl.java:180) > > at > > > org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersiste > nceBroker( > Pers > > istenceBrokerFactory.java:88) > > at Application.<init>(Application.java:25) at > > Application.main(Application.java:56) > > > > Here are my mysql settings from repository.xml: > > > > <jdbc-connection-descriptor > > platform="MySQL" > > jdbc-level="2.0" > > driver="org.gjt.mm.mysql.Driver" > > protocol="jdbc" > > subprotocol="mysql" > > dbalias="//localhost:3306/ojb" > > username="dave" > > password="password" > > /> > > > > Can anyone point me in the right direction? > > > > Thanks in advance > > > > Dave > > > > > > -- > > 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]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
