Found this one.
An older version of the types-jar was in the way of tomcat,
but not in the classpath of the main method.
I'm sorry for the noise to this professional list.
Rolf
Radu Preotiuc-Pietro wrote:
Hm, is this intermittent, or does it happen consistently? I assume you
don't have any modifications to XmlBeans, I am trying to see if this
could be a synchronization problem...
Thanks,
Radu
-----Original Message-----
From: Rolf Schumacher [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 11:47 AM
To: [email protected]
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_______________________________________________________________________
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
---------------------------------------------------------------------
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]