> Caused by: org.apache.ojb.broker.metadata.MetadataException: Can not read
> repository class descriptor data, using repository:
> repository_user.xml
seems that properties file was found, but OJB has a problem with your repository file.
Why try OJB to read repository_user.xml - did you set this in OJB.properties? OJB should try to read repository.xml file. This file has an xml-reference to repository_user.xml. Or put all together in one xml-file.
regards, Armin
Sven Alisch wrote:
Hi ML,
after i copied all files (including OJB.properties and repository.xml) in ../ressources to the path where my class-files are situated, the i get new error messages like these:
Hello OJB!
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.getDefaultKey(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersistenceBroker(Unknown Source)
at org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown Source)
at JEgmont.main(Unknown Source)
Caused by: org.apache.ojb.broker.metadata.MetadataException: Can not read repository class descriptor data, using repository: repository_user.xml
at org.apache.ojb.broker.metadata.MetadataManager.init(Unknown Source)
at org.apache.ojb.broker.metadata.MetadataManager.<init>(Unknown Source)
at org.apache.ojb.broker.metadata.MetadataManager.<clinit>(Unknown Source)
... 4 more
Caused by: org.apache.ojb.broker.metadata.MetadataException: Exception when reading metadata information, please check your repository.xml file
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:658)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.apache.ojb.broker.metadata.RepositoryPersistor.readMetadataFromXML(Unknown Source)
at org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Unknown Source)
at org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(Unknown Source)
... 7 more
Same program like in my last post. What is ment with these exceptions???
Thanks, Sven
--------------------------------------------------------------------- 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]
