You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Rolf Schumacher <ma...@august.de> on 2006/04/06 20:47:13 UTC
in a tomcat servlet with error
trying to produce an XML file according to schema.
Works fine when I start the generation from within a main method.
Fails when I start it from a servlet invoked by Tomcat.
Built xmlbeans from svn or cvs 2005-12-30.
Linked all jars from build/lib into WEB-INF/lib.
The generated jar containing the types is linked as well.
I got the error in the first line of my code that touches xmlbeans:
MyTypeDocument myTypeDocument =
MyTypeDocument.Factory.newInstance();
This is the error:
java.lang.NullPointerException
...schema.SchemaTypeImpl.getTypeSystem(SchemaTypeImpl.java:616)
...schema.SchemaTypeImpl.getJavaImplClass(SchemaTypeImpl.java:1708)
...schema.SchemaTypeImpl.getJavaImplConstructor(SchemaTypeImpl.java:1724)
...schema.SchemaTypeImpl.createUnattachedNode(SchemaTypeImpl.java:1852)
...schema.SchemaTypeImpl.createTypeStoreUser(SchemaTypeImpl.java:1804)
...store.Xobj.setStableType(Xobj.java:1390)
...store.Cur.setType(Cur.java:2497)
...store.Cur.setType(Cur.java:2482)
...store.Locale.newInstance(Locale.java:630)
...store.Locale.newInstance(Locale.java:606)
...schema.SchemaTypeLoaderBase.newInstance(SchemaTypeLoaderBase.java:198)
with ... = at org.apache.xmlbeans.impl.
How to narrow the cause of this error?
Any help welcome.
Rolf
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org