As a temporary work around I have manually built a schema that I am manually marshalling and unmarshalling with jaxb. Since I am not using the persistence section in my geronimo-web.xml file it works. However, I may need your implementation later. I will look through the code and see if I can find it.
Thank you again for your help. Vaughn djencks wrote: > > I'm afraid I don't have time to find the exact code but we have some > customizations to xmlbeans error handling so that we can handle > substitution groups on the fly. This lets us treat the > persistence.xml namespace as a substitution for the gbean element even > though it isn't really. I'm pretty sure the code is somewhere near or > in our xmlUtils class > > hope this is a useful hint... > david jencks > > On Aug 13, 2009, at 2:54 PM, vaughn_m wrote: > >> >> I am trying to programmatically edit a geronimo-web.xml file and any >> time I >> try to access the web-app portion I get the following exception: >> >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.me.app.deployer(DeployHandler.java:90) >> at org.me.app.deployer.DeployHandler.main(DeployHandler.java: >> 207) >> Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: Cannot >> resolve >> type for handle >> _XY_E=persistence|d=persiste...@http://java.sun.com/xml/ns/persistence(schemaorg_apache_xmlbeans.system.sA1B3CA54CF93388C8DDA7A8A0FDDABB6.webapptype0f69type) >> - code 13 >> at >> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl >> $XsbReader.readHandle(SchemaTypeSystemImpl.java:2021) >> at >> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl >> $XsbReader.readTypeRef(SchemaTypeSystemImpl.java:2095) >> >> ------ geronimo-web.xml file ---------------- >> <web-app xmlns="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> >> <environment> >> <moduleId> >> <groupId>org.me</groupId> >> <artifactId>app</artifactId> >> <version>5.5.5</version> >> <type>war</type> >> </moduleId> >> <dependencies> >> <dependency> >> <groupId>com.me.core-app</groupId> >> <artifactId>app-libs</artifactId> >> </dependency> >> </dependencies> >> </environment> >> </web-app> >> >> ------ Code -------- >> The code that generated this exception is below: >> XmlObject plan = XmlObject.Factory.parse(new File(webappDoc)); >> GerWebAppDocument doc = (GerWebAppDocument) >> plan.changeType(GerWebAppDocument.type); >> GerWebAppType gerWebApp = doc.getWebApp(); // <-- exception is >> generated >> here >> -------- >> >> I have tried to use the SchemaConversionUtils.fixGeronimoSchema but >> did not >> seem to help. >> >> Any help would be appreciated. >> >> Vaughn M. >> >> >> -- >> View this message in context: >> http://www.nabble.com/Issues-Paring-geronimo-web.xml-tp24959570s134p24959570.html >> Sent from the Apache Geronimo - Dev mailing list archive at >> Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/Issues-Paring-geronimo-web.xml-tp24959570s134p24963793.html Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
