You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Thad Humphries <th...@mindwrap.com> on 2001/08/06 21:39:56 UTC
Xerces and WebLogic
We have an application that we have developed with Apache and Tomcat
(current versions 1.3.20 and 3.2.2 respectively). Among other things, the
application allows for querying a database and returning the result set in
XML, filterable with XSLT. We are using Xerces 1.4.2 and Xalan 1.2.3.
All works fine with Apache-Tomcat on Linux and Solaris; with IIS-Tomcat on
NT; and IIS-JRun 3.1 on NT. Based on a customer's request, I've been
trying it out with WebLogic 6.0 (SP2) on Solaris. In this environment,
Xerces fails.
The error I am seeing comes from inside Xerces when my servlet is
attempting to build the query result XML:
...
<Aug 6, 2001 3:32:42 PM EDT> <Error> <HTTP>
<[WebAppServletContext(4818707,emma3)] Servlet failed with Exception
java.lang.ExceptionInInitializerError: java.lang.RuntimeException: SER003
The resource [HTMLEntities.res] could not load: java.lang.RuntimeException:
SER003 The resource [HTMLEntities.res] could not be found.
HTMLEntities.res
HTMLEntities.res java.lang.RuntimeException: SER003 The resource
[HTMLEntities.res] could not be found.
HTMLEntities.res
at org.apache.xml.serialize.HTMLdtd.initialize(HTMLdtd.java:418)
at org.apache.xml.serialize.HTMLdtd.<clinit>(HTMLdtd.java:560)
at
org.apache.xml.serialize.HTMLSerializer.startElement(HTMLSerializer.java:529)
...
I looking at the source code to HTMLdtd.java, it seems that
HTMLEntities.res is being requested correctly. HTMLEntities.res is in the
JAR file and certainly it works in enough environments that one would
expect it to work in WebLogic (*especially* given it's Rolls Royce reputation).
Does anyone have any experience with WebLogic and Xerces? Any ideas how I
might resolve this problem or whom to turn to?
Thanks!
-----------------------------------------------------------------------
Thad Humphries "...no religious test shall ever be required
Web Development Manager as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States." -Article VI
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
RE: Xerces and WebLogic
Posted by Thad Humphries <th...@mindwrap.com>.
Thanks for the tip, Gulli! I put xerces.jar in
$BEA_HOME/jdk130/jre/lib/ext, restarted the server, and the application
runs fine now. I dunno how that will fly with my customer but I'll pass it
on. If they have a problem with the approach, we'll get hold of their BEA
tech support POC for resolution.
At 20:14 8/6/2001 +0000, you wrote:
>Hi Thad,
>
>I have no experience with Weblogic in particular,
>but it's a known phenomenon that servlet engines
>sometimes botch up their custom classloaders,
>especially with respect to loading non-class stuff
>(i.e. resources, such as HTMLEntities.res) ... uh,
>regardless of their reputation! :) You could try
>moving the xerces.jar from your servlet lib
>directory to the servlet engine's lib directory,
>or vice versa if it's there already, so that it's
>being loaded by another classloader instance. In
>a pinch you could also try loading it as a Java
>extension, i.e. from your JVM's lib/ext directory.
>
>Cheers,
>
> - Gulli
>
>-----Original Message-----
>From: Thad Humphries [mailto:thad@mindwrap.com]
>Sent: 6. agust 2001 19:40
>To: xerces-j-dev@xml.apache.org
>Subject: Xerces and WebLogic
>
>
>We have an application that we have developed with Apache and Tomcat
>(current versions 1.3.20 and 3.2.2 respectively). Among other things, the
>application allows for querying a database and returning the result set in
>XML, filterable with XSLT. We are using Xerces 1.4.2 and Xalan 1.2.3.
>
>All works fine with Apache-Tomcat on Linux and Solaris; with IIS-Tomcat on
>NT; and IIS-JRun 3.1 on NT. Based on a customer's request, I've been
>trying it out with WebLogic 6.0 (SP2) on Solaris. In this environment,
>Xerces fails.
>
>The error I am seeing comes from inside Xerces when my servlet is
>attempting to build the query result XML:
>
>...
><Aug 6, 2001 3:32:42 PM EDT> <Error> <HTTP>
><[WebAppServletContext(4818707,emma3)] Servlet failed with Exception
>java.lang.ExceptionInInitializerError: java.lang.RuntimeException: SER003
>The resource [HTMLEntities.res] could not load: java.lang.RuntimeException:
>SER003 The resource [HTMLEntities.res] could not be found.
>HTMLEntities.res
>HTMLEntities.res java.lang.RuntimeException: SER003 The resource
>[HTMLEntities.res] could not be found.
>HTMLEntities.res
> at org.apache.xml.serialize.HTMLdtd.initialize(HTMLdtd.java:418)
> at org.apache.xml.serialize.HTMLdtd.<clinit>(HTMLdtd.java:560)
> at
>org.apache.xml.serialize.HTMLSerializer.startElement(HTMLSerializer.java:529
>)
>...
>
>I looking at the source code to HTMLdtd.java, it seems that
>HTMLEntities.res is being requested correctly. HTMLEntities.res is in the
>JAR file and certainly it works in enough environments that one would
>expect it to work in WebLogic (*especially* given it's Rolls Royce
>reputation).
>
>Does anyone have any experience with WebLogic and Xerces? Any ideas how I
>might resolve this problem or whom to turn to?
>
>Thanks!
-----------------------------------------------------------------------
Thad Humphries "...no religious test shall ever be required
Web Development Manager as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States." -Article VI
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
RE: Xerces and WebLogic
Posted by Gunnlaugur Thor Briem <gt...@dimon.is>.
Hi Thad,
I have no experience with Weblogic in particular,
but it's a known phenomenon that servlet engines
sometimes botch up their custom classloaders,
especially with respect to loading non-class stuff
(i.e. resources, such as HTMLEntities.res) ... uh,
regardless of their reputation! :) You could try
moving the xerces.jar from your servlet lib
directory to the servlet engine's lib directory,
or vice versa if it's there already, so that it's
being loaded by another classloader instance. In
a pinch you could also try loading it as a Java
extension, i.e. from your JVM's lib/ext directory.
Cheers,
- Gulli
-----Original Message-----
From: Thad Humphries [mailto:thad@mindwrap.com]
Sent: 6. agust 2001 19:40
To: xerces-j-dev@xml.apache.org
Subject: Xerces and WebLogic
We have an application that we have developed with Apache and Tomcat
(current versions 1.3.20 and 3.2.2 respectively). Among other things, the
application allows for querying a database and returning the result set in
XML, filterable with XSLT. We are using Xerces 1.4.2 and Xalan 1.2.3.
All works fine with Apache-Tomcat on Linux and Solaris; with IIS-Tomcat on
NT; and IIS-JRun 3.1 on NT. Based on a customer's request, I've been
trying it out with WebLogic 6.0 (SP2) on Solaris. In this environment,
Xerces fails.
The error I am seeing comes from inside Xerces when my servlet is
attempting to build the query result XML:
...
<Aug 6, 2001 3:32:42 PM EDT> <Error> <HTTP>
<[WebAppServletContext(4818707,emma3)] Servlet failed with Exception
java.lang.ExceptionInInitializerError: java.lang.RuntimeException: SER003
The resource [HTMLEntities.res] could not load: java.lang.RuntimeException:
SER003 The resource [HTMLEntities.res] could not be found.
HTMLEntities.res
HTMLEntities.res java.lang.RuntimeException: SER003 The resource
[HTMLEntities.res] could not be found.
HTMLEntities.res
at org.apache.xml.serialize.HTMLdtd.initialize(HTMLdtd.java:418)
at org.apache.xml.serialize.HTMLdtd.<clinit>(HTMLdtd.java:560)
at
org.apache.xml.serialize.HTMLSerializer.startElement(HTMLSerializer.java:529
)
...
I looking at the source code to HTMLdtd.java, it seems that
HTMLEntities.res is being requested correctly. HTMLEntities.res is in the
JAR file and certainly it works in enough environments that one would
expect it to work in WebLogic (*especially* given it's Rolls Royce
reputation).
Does anyone have any experience with WebLogic and Xerces? Any ideas how I
might resolve this problem or whom to turn to?
Thanks!
-----------------------------------------------------------------------
Thad Humphries "...no religious test shall ever be required
Web Development Manager as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States." -Article VI
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org