struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oren Gross <>
Subject RE: LinkageError on MockStrutsTestCase
Date Wed, 03 Jul 2002 15:57:12 GMT
I am using xerces-1_4_4\xerces.jar (first thing in my CLASSPATH) and steel
getting this error

Oren Gross Java(TM) Developer
Mercury Interactive APM TAC R&D 

-----Original Message-----
From: Deryl Seale []
Sent: Wednesday, July 03, 2002 5:03 PM
To: Oren Gross
Subject: Re: LinkageError on MockStrutsTestCase

This is almost always due to incompatible XML libraries
being loaded in the CLASSPATH -- check it out to see
which packages you are loading.  I use xerces, and I
make sure it's in the front of the CLASSPATH.


On Wed, 3 Jul 2002 17:01:15 +0200, Oren Gross wrote:
>I ran the simpliest  sample on an action, and got the next error.
>java.lang.LinkageError: Class  org/xml/sax/HandlerBase violates
>loader constraints
>at  java.lang.ClassLoader.defineClass0(Native Method)
>at  java.lang.ClassLoader.defineClass(

>at Method)
>at  java.lang.ClassLoader.loadClass(
>at  sun.misc.Launcher$AppClassLoader.loadClass(
>at  java.lang.ClassLoader.loadClass(
>at  java.lang.ClassLoader.loadClassInternal(

>at  javax.xml.parsers.SAXParser.parse(
>at  javax.xml.parsers.SAXParser.parse(
>at  org.apache.struts.digester.Digester.parse(

>at  javax.servlet.GenericServlet.init(



>The test  is:
>import  junit.framework.TestCase;
>import  servletunit.struts.MockStrutsTestCase;
>public class  TestDbListAction extends MockStrutsTestCase {
>public TestDbListAction(String Name_)     {
>} //public TestDbListAction(String  Name_)
>public void setUp()    {
>} //protected void  setUp()
>public void tearDown()    {
>} //protected void  tearDown()
>public void testSuccessfulViewList() {
>public static void main(String[] args)
>String[] testCaseName =  {TestDbListAction.class.getName()};
>} //public  static void main(String[] args)
>} //public class  TestDbListAction extends TestCase
>Any  udeas?
>TIA  Oren
>Oren Gross Java(TM)  Developer
>Mercury Interactive APM TAC R&D

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message