Hinnerk, I think this is a problem with the XML parser rather than the web container. I have had similar problems with different versions of Tomcat.
I think it's down to the parser not being able to interpret spaces in the file path of the repository.dtd, repository_database.xml, repository_internal.xml, repository_user.xml files etc. I resolved the problem by changing to DOCTYPE tag to: <!DOCTYPE descriptor-repository PUBLIC "-//Apache Software Foundation//DTD OJB Repository//EN" "repository.dtd> and copying and pasting the contents of the entity files into the repository.xml file, i.e. the repository.xml file contains repository_database.xml, repository_internal.xml, repository_user.xml etc. I notice that OJB 1.0.rc4 has a slightly different DOCTYPE tag to rc3, it is similar to above so repository.dtd problem might have been resolved but I think you'll still have problems with the entity files. Hope this helps, Joss > Hello, > >I'm using OJB for a struts- project, and tried to migrate it to >another server; e.g. from a PC running resin as jsp- server to another >PC running the same version of resin, struts etc. I tried my best to >copy the necessary java- archives, but I'm getting the following >exception. Tried "everything" to debug it, changed the repository.xml >to track the error, but unfortunatly this didn't help; do you have a >hint for me? That would be great! > >I will attach my repository.xml and the error- log with debugging- >information in a zip- file. > >Thank you, >Hinnerk > >and here follows the error: > >java.lang.ExceptionInInitializerError > at > org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefaultKey(PersistenceBrokerFactoryDefaultImpl.java:150) > at > org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.<init>(PersistenceBrokerFactoryDefaultImpl.java:121) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at java.lang.Class.newInstance0(Class.java:306) > at java.lang.Class.newInstance(Class.java:259) > at > org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceBrokerFactoryFactory.java:95) > at > org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(PersistenceBrokerFactoryFactory.java:71) > at > org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(PersistenceBrokerFactory.java:129) > at org.rolli.user.UserManager.init(UserManager.java:51) > at javax.servlet.GenericServlet.init(GenericServlet.java:258 >(...) > at com.caucho.server.http.HttpServer.main(HttpServer.java:103) >Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not read >repository class descriptor data, using repository: repository.xml: Exception when >reading metadata information, please check your repository.xml file > at > org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:133) > at > org.apache.ojb.broker.metadata.MetadataManager.<init>(MetadataManager.java:119) > at > org.apache.ojb.broker.metadata.MetadataManager.<clinit>(MetadataManager.java:109) > ... 24 more >Caused by: org.apache.ojb.broker.metadata.MetadataException: Exception when reading >metadata information, please check your repository.xml file > at > org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(RepositoryXmlHandler.java:764) > at com.caucho.xml.XmlParser.addElement(XmlParser.java:2249) > at com.caucho.xml.XmlParser.parseElement(XmlParser.java:615) > at com.caucho.xml.XmlParser.parseNode(XmlParser.java:364) > at com.caucho.xml.XmlParser.parseInt(XmlParser.java:246) > at com.caucho.xml.AbstractParser.parse(AbstractParser.java:614) > at > org.apache.ojb.broker.metadata.RepositoryPersistor.readMetadataFromXML(RepositoryPersistor.java:343) > at > org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(RepositoryPersistor.java:300) > at > org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(RepositoryPersistor.java:215) > at > org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:129) > ... 26 more >Caused by: java.lang.NullPointerException > at > org.apache.ojb.broker.metadata.RepositoryXmlHandler.getIsoLevel(RepositoryXmlHandler.java:946) > at > org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(RepositoryXmlHandler.java:216) > ... 35 more > >--------------- > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -------------------- talk21 your FREE portable and private address on the net at http://www.talk21.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]