Thomas:
The ojb dir does contain the dtd (see dir list below). Doesn't the
"FATAL: no protocol: repository.dtd" message indicate the validating
parse failed because of a problem with the protocol attribute? I traced
the exception to the reader.parse(xmlfile) statement the buildRepository
method in RepositoryPersistor. What next? Sorry to be a pain :-)
Jeff Boring
----------------------------- dir list -----------------------------
Directory of C:\Program Files\IBM\Application Developer\workspace\OJB
09/27/2002 09:30a <DIR> .
09/27/2002 09:30a <DIR> ..
09/26/2002 03:37p 3,363 .classpath
09/25/2002 01:50p 196 commons-logging.properties
09/26/2002 04:00p 1,239 Copy of repository.xml
08/23/2002 03:49p 307,532 hsqldb.jar
09/25/2002 01:50p 1,507 jdo.dtd
09/25/2002 01:50p 1,830 log4j.properties
09/25/2002 02:02p 2,319 OJB.properties
09/25/2002 02:02p 0 ojb.script
09/26/2002 02:33p <DIR> org
09/27/2002 09:30a 0 out.txt
09/25/2002 01:50p 17,502 repository.dtd
09/26/2002 04:17p 1,236 repository.xml
09/25/2002 01:50p 861 repositoryFarAway.xml
09/25/2002 01:50p 583 repositoryFarAway_user.xml
09/25/2002 01:50p 7,538 repository_internal.xml
09/25/2002 01:50p 60,777 repository_junit.xml
09/25/2002 01:50p 2,570 repository_user.xml
09/25/2002 01:50p 285 simplelog.properties
09/25/2002 01:50p 5,515 spy.properties
09/27/2002 09:25a <DIR> target
09/25/2002 01:50p 1,285 tutorial4.jdo
19 File(s) 416,138 bytes
4 Dir(s) 15,396,542,464 bytes free
----------------------------- dir list -----------------------------
-----Original Message-----
From: Thomas Mahler [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 2:18 AM
To: OJB Users List
Subject: Re: Problem running OBJ tutorial under Websphere Studio
Hi again
Boring, Jeff W, ALBAS wrote:
> Thomas:
>
> I am moving this tread to the user list - a coworker (Marshall)
posted for me. I believe the user list is the more appropriate place.
Hope you find me!
yup.
>
> I fixed the classpath issue so it finds the repository.xml file but
now I get the following error. I just imported the java files from the
target dir after running the build for tutorial 1. I then copied over
the resource files (*.xml, *.resource). Question. The
<jakarta-ojb-0.9.5>\target\test\ojb directory has 6 xml files, is that
right? The repository.xml points to the others. Right?
right.
>
> [BOOT] INFO: OJB.properties: file:/C:/Program Files/IBM/Application
Developer/workspace/OJB/OJB.properties
> [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
You must also copy the repository.dtd into the /C:/Program
Files/IBM/Application Developer/workspace/OJB/ directory!
cheers,
Thomas
> at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:6
03)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1108)
> at
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Repos
itoryPersistor.java:285)
> at
org.apache.ojb.broker.metadata.RepositoryPersistor.readFromFile(Reposito
ryPersistor.java:150)
> at
org.apache.ojb.broker.metadata.DescriptorRepository.getInstance(Descript
orRepository.java:146)
> at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(PersistenceB
rokerImpl.java:171)
> at java.lang.reflect.Constructor.newInstance(Native Method)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNewBr
okerInstance(PersistenceBrokerFactoryDefaultImpl.java:109)
> at
org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(PBKeyed
PoolableObjectFactory.java:28)
> at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown
Source)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPersi
stenceBroker(PersistenceBrokerFactoryDefaultImpl.java:144)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultPers
istenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171)
> at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
PersistenceBrokerFactory.java:88)
> at
org.apache.ojb.tutorial1.Application.<init>(Application.java:25)
> at
org.apache.ojb.tutorial1.Application.main(Application.java:56)
> org.apache.ojb.broker.PBFactoryException: Borrow broker from pool
failed
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPersi
stenceBroker(PersistenceBrokerFactoryDefaultImpl.java:148)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultPers
istenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171)
> at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
PersistenceBrokerFactory.java:88)
> at
org.apache.ojb.tutorial1.Application.<init>(Application.java:25)
> at
org.apache.ojb.tutorial1.Application.main(Application.java:56)
> Caused by:
> org.apache.ojb.broker.PBFactoryException: Creation of a new PB
instance failed
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNewBr
okerInstance(PersistenceBrokerFactoryDefaultImpl.java:114)
> at
org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(PBKeyed
PoolableObjectFactory.java:28)
> at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown
Source)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPersi
stenceBroker(PersistenceBrokerFactoryDefaultImpl.java:144)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultPers
istenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171)
> at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
PersistenceBrokerFactory.java:88)
> at
org.apache.ojb.tutorial1.Application.<init>(Application.java:25)
> at
org.apache.ojb.tutorial1.Application.main(Application.java:56)
> Caused by:
> java.lang.reflect.InvocationTargetException:
org.apache.ojb.broker.metadata.MetadataException
> at
org.apache.ojb.broker.metadata.DescriptorRepository.getInstance(Descript
orRepository.java:154)
> at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(PersistenceB
rokerImpl.java:171)
> at java.lang.reflect.Constructor.newInstance(Native Method)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNewBr
okerInstance(PersistenceBrokerFactoryDefaultImpl.java:109)
> at
org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(PBKeyed
PoolableObjectFactory.java:28)
> at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown
Source)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPersi
stenceBroker(PersistenceBrokerFactoryDefaultImpl.java:144)
> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultPers
istenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171)
> at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
PersistenceBrokerFactory.java:88)
> at
org.apache.ojb.tutorial1.Application.<init>(Application.java:25)
> at
org.apache.ojb.tutorial1.Application.main(Application.java:56)
> _ _
>
> -----Original Message-----
> From: Thomas Mahler [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 12:46 PM
> To: OJB Developers List
> Subject: Re: Problem running OBJ tutorial under Websphere Studio
> ApplicationDeveloper
>
>
> I'm doing all my OJB development under eclipse, so WSAD should not be
> that different.
>
> I assume your problems are classpath related.
>
> To make the tutorials and the regression tests work properly it is
> important to add the directory target/test/ojb to the WSAD build
path!
> So that OJB.properties and repository.xml can be found on the
classpath.
>
> cheers,
> Thomas
>
> JONES, MARSHALL, ALBAS wrote:
>
>>I am having trouble getting tutorial1 running in my IDE of choice
(WSAD). Tutorial1 runs fine at the command line with the JRE but gives
the follows when run in WSAD. I have no idea where to start looking. Any
help would be greatly appreciated.
>>
>>jdk1.3.1_04
>>Using default db (hsqldb)
>>
>>[BOOT] INFO: OJB.properties: file:/C:/Program Files/IBM/Application
Developer/workspace/Object Relational Bridge/OJB.properties
>>[BOOT] WARN: Value
"org.apache.ojb.broker.util.sequence.SequenceManagerHiLoImpl" is illegal
for key "SequenceManagerClass" (should be a class, using default value
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl)
>>[BOOT] WARN: Value
"org.apache.ojb.broker.accesslayer.ConnectionFactoryConPooledImpl" is
illegal for key "ConnectionFactoryClass" (should be a class, using
default value
org.apache.ojb.broker.accesslayer.ConnectionFactoryDefaultImpl)
>>[BOOT] WARN: Value "org.apache.ojb.odmg.locking.InMemoryLockMapImpl"
is illegal for key "LockMapClass" (should be a class, using default
value org.apache.ojb.odmg.locking.PersistentLockMapImpl)
>>[BOOT] WARN: Value
"org.apache.ojb.broker.metadata.PersistentFieldPropertyImpl" is illegal
for key "PersistentFieldClass" (should be a class, using default value
org.apache.ojb.broker.metadata.PersistentFieldDefaultImpl)
>>java.lang.NoClassDefFoundError:
org/apache/ojb/broker/accesslayer/SqlBasedRsIterator
>> at java.lang.Class.forName1(Native Method)
>> at java.lang.Class.forName(Class.java:134)
>> at
org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.load(OjbC
onfiguration.java:337)
>> at
org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.
<init>(ConfigurationAbstractImpl.java:103)
>> at
org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.<init>(Oj
bConfiguration.java:132)
>> at
org.apache.ojb.broker.util.configuration.impl.OjbConfigurator.<clinit>(O
jbConfigurator.java:90)
>> at
org.apache.ojb.broker.ta.PersistenceBrokerFactoryFactory.<clinit>(Persis
tenceBrokerFactoryFactory.java:77)
>> at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
PersistenceBrokerFactory.java:88)
>> at
org.apache.ojb.tutorial1.Application.<init>(Application.java:25)
>> at
org.apache.ojb.tutorial1.Application.main(Application.java:56)
>>
>>
>>Marshall Jones, Software Engineer
>>Custom and Web Services Development
>>AT&T Labs, Tampa, FL 33607
>>(w) [EMAIL PROTECTED] <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]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>
>
Hi again
Boring, Jeff W, ALBAS wrote:
> Thomas:
>
> I am moving this tread to the user list - a coworker (Marshall)
> posted for me. I believe the user list is the more appropriate place.
> Hope you find me!
>
> I fixed the classpath issue so it finds the repository.xml file but
> now I get the following error. I just imported the java files from
> the target dir after running the build for tutorial 1. I then copied
> over the resource files (*.xml, *.resource). Question. The
> <jakarta-ojb-0.9.5>\target\test\ojb directory has 6 xml files, is
> that right? The repository.xml points to the others. Right?
>
> [BOOT] INFO: OJB.properties: file:/C:/Program Files/IBM/Application
> Developer/workspace/OJB/OJB.properties
> [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
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:6
03)
> 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(Re-
> positoryPersistor.java:285) at
>
org.apache.ojb.broker.metadata.RepositoryPersistor.readFromFile(Repos-
> itoryPersistor.java:150) at
>
org.apache.ojb.broker.metadata.DescriptorRepository.getInstance(Descr-
> iptorRepository.java:146) at
>
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(Persisten-
> ceBrokerImpl.java:171) at
> java.lang.reflect.Constructor.newInstance(Native Method) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNe-
> wBrokerInstance(PersistenceBrokerFactoryDefaultImpl.java:109) at
>
org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(PBKe-
> yedPoolableObjectFactory.java:28) at
>
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown
> Source) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPe-
> rsistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:144) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultP-
> ersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171) at
>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBrok-
> er(PersistenceBrokerFactory.java:88) at
> org.apache.ojb.tutorial1.Application.<init>(Application.java:25) at
> org.apache.ojb.tutorial1.Application.main(Application.java:56)
> org.apache.ojb.broker.PBFactoryException: Borrow broker from pool
> failed at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPe-
> rsistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:148) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultP-
> ersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171) at
>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBrok-
> er(PersistenceBrokerFactory.java:88) at
> org.apache.ojb.tutorial1.Application.<init>(Application.java:25) at
> org.apache.ojb.tutorial1.Application.main(Application.java:56) Caused
> by: org.apache.ojb.broker.PBFactoryException: Creation of a new PB
> instance failed at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNe-
> wBrokerInstance(PersistenceBrokerFactoryDefaultImpl.java:114) at
>
org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(PBKe-
> yedPoolableObjectFactory.java:28) at
>
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown
> Source) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPe-
> rsistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:144) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultP-
> ersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171) at
>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBrok-
> er(PersistenceBrokerFactory.java:88) at
> org.apache.ojb.tutorial1.Application.<init>(Application.java:25) at
> org.apache.ojb.tutorial1.Application.main(Application.java:56) Caused
> by: java.lang.reflect.InvocationTargetException:
> org.apache.ojb.broker.metadata.MetadataException at
>
org.apache.ojb.broker.metadata.DescriptorRepository.getInstance(Descr-
> iptorRepository.java:154) at
>
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(Persisten-
> ceBrokerImpl.java:171) at
> java.lang.reflect.Constructor.newInstance(Native Method) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createNe-
> wBrokerInstance(PersistenceBrokerFactoryDefaultImpl.java:109) at
>
org.apache.ojb.broker.ta.PBKeyedPoolableObjectFactory.makeObject(PBKe-
> yedPoolableObjectFactory.java:28) at
>
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown
> Source) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.createPe-
> rsistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:144) at
>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl.defaultP-
> ersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:171) at
>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBrok-
> er(PersistenceBrokerFactory.java:88) at
> org.apache.ojb.tutorial1.Application.<init>(Application.java:25) at
> org.apache.ojb.tutorial1.Application.main(Application.java:56) _ _
>
> -----Original Message----- From: Thomas Mahler
> [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:46 PM
> To: OJB Developers List Subject: Re: Problem running OBJ tutorial
> under Websphere Studio ApplicationDeveloper
>
>
> I'm doing all my OJB development under eclipse, so WSAD should not be
> that different.
>
> I assume your problems are classpath related.
>
> To make the tutorials and the regression tests work properly it is
> important to add the directory target/test/ojb to the WSAD build
> path! So that OJB.properties and repository.xml can be found on the
> classpath.
>
> cheers, Thomas
>
> JONES, MARSHALL, ALBAS wrote:
>
>> I am having trouble getting tutorial1 running in my IDE of choice
>> (WSAD). Tutorial1 runs fine at the command line with the JRE but
>> gives the follows when run in WSAD. I have no idea where to start
>> looking. Any help would be greatly appreciated.
>>
>> jdk1.3.1_04 Using default db (hsqldb)
>>
>> [BOOT] INFO: OJB.properties: file:/C:/Program Files/IBM/Application
>> Developer/workspace/Object Relational Bridge/OJB.properties [BOOT]
>> WARN: Value
>> "org.apache.ojb.broker.util.sequence.SequenceManagerHiLoImpl" is
>> illegal for key "SequenceManagerClass" (should be a class, using
>> default value
>> org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl)
>> [BOOT] WARN: Value
>> "org.apache.ojb.broker.accesslayer.ConnectionFactoryConPooledImpl"
>> is illegal for key "ConnectionFactoryClass" (should be a class,
>> using default value
>> org.apache.ojb.broker.accesslayer.ConnectionFactoryDefaultImpl)
>> [BOOT] WARN: Value
>> "org.apache.ojb.odmg.locking.InMemoryLockMapImpl" is illegal for
>> key "LockMapClass" (should be a class, using default value
>> org.apache.ojb.odmg.locking.PersistentLockMapImpl) [BOOT] WARN:
>> Value "org.apache.ojb.broker.metadata.PersistentFieldPropertyImpl"
>> is illegal for key "PersistentFieldClass" (should be a class, using
>> default value
>> org.apache.ojb.broker.metadata.PersistentFieldDefaultImpl)
>> java.lang.NoClassDefFoundError:
>> org/apache/ojb/broker/accesslayer/SqlBasedRsIterator at
>> java.lang.Class.forName1(Native Method) at
>> java.lang.Class.forName(Class.java:134) at
>>
org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.load(-
>> OjbConfiguration.java:337) at
>>
org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractI-
>> mpl.<init>(ConfigurationAbstractImpl.java:103) at
>>
org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.<init-
>> >(OjbConfiguration.java:132) at
>>
org.apache.ojb.broker.util.configuration.impl.OjbConfigurator.<clini-
>> t>(OjbConfigurator.java:90) at
>>
org.apache.ojb.broker.ta.PersistenceBrokerFactoryFactory.<clinit>(Pe-
>> rsistenceBrokerFactoryFactory.java:77) at
>>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBro-
>> ker(PersistenceBrokerFactory.java:88) at
>> org.apache.ojb.tutorial1.Application.<init>(Application.java:25) at
>> org.apache.ojb.tutorial1.Application.main(Application.java:56)
>>
>>
>> Marshall Jones, Software Engineer Custom and Web Services
>> Development AT&T Labs, Tampa, FL 33607 (w) [EMAIL PROTECTED]
>> <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]>
>
> -- 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]>