LinkageError org.xml.sax.Parser

View: New views
3 Messages — Rating Filter:   Alert me  

LinkageError org.xml.sax.Parser

by rundmsef :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I am deploying my web app to BEA Weblogic Server 10.  My app uses DWR 2.0.1 configured with Spring Framework 2.5.5.  When I deploy my web app, I get the following error:

  java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
     at org.springframework.core.OverridingClassLoader.loadClassForOVerriding(OverridingClassLoader.java:97)
     at org.springframework.core.OverridingClassLoader.loadClass(OverridingClassLoader.java:60)
     ...

  I narrowed the error down by removing all jars from my web app WEB-INF/lib and adding them back one by one, resolving noClassDefFound errors.  Once I added dwr-2.0.1.jar, I received the LinkageError.

Any ideas?  

Thanks,
~Seth

Re: LinkageError org.xml.sax.Parser

by Joe Walker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I don't see how DWR can be at fault here - we do some XML parsing (for dwr.xml) but nothing bizarre. We may trigger the problem though.
It's mostly likely that you have 2 sets of SAX parsers. Unless you are on a very old JDK, the SAX classes should be provided by the VM.

BTW - Upgrade to 2.0.5 there are a few XSS issues with 2.0.1.

Joe.

On Tue, Jul 15, 2008 at 4:21 PM, rundmsef <rundmsef@...> wrote:


I am deploying my web app to BEA Weblogic Server 10.  My app uses DWR 2.0.1
configured with Spring Framework 2.5.5.  When I deploy my web app, I get the
following error:

 java.lang.LinkageError: Class org/xml/sax/Parser violates loader
constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at
org.springframework.core.OverridingClassLoader.loadClassForOVerriding(OverridingClassLoader.java:97)
    at
org.springframework.core.OverridingClassLoader.loadClass(OverridingClassLoader.java:60)
    ...

 I narrowed the error down by removing all jars from my web app WEB-INF/lib
and adding them back one by one, resolving noClassDefFound errors.  Once I
added dwr-2.0.1.jar, I received the LinkageError.

Any ideas?

Thanks,
~Seth

--
View this message in context: http://www.nabble.com/LinkageError-org.xml.sax.Parser-tp18467938p18467938.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: LinkageError org.xml.sax.Parser

by rundmsef :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joe,

  Thanks for the speedy reply.  I am using java version 1.5.0_11.  I don't think this is a DWR issue, per se.  I was just wondering if anyone had seen/dealt with this issue before.  I have a feeling that there are 2 sets of SAX parsers on my classpath, but determining where has really been a head scratcher!

My next step is to investegate how spring's DWR integration may plays a role in this error.  Certainly the parsing of the Spring Application Contexts involves XML parsers!

I'll post back if I find anything useful.

Thanks,
~Seth


Joe Walker-3 wrote:
I don't see how DWR can be at fault here - we do some XML parsing (for
dwr.xml) but nothing bizarre. We may trigger the problem though.It's mostly
likely that you have 2 sets of SAX parsers. Unless you are on a very old
JDK, the SAX classes should be provided by the VM.

BTW - Upgrade to 2.0.5 there are a few XSS issues with 2.0.1.

Joe.

On Tue, Jul 15, 2008 at 4:21 PM, rundmsef <rundmsef@gmail.com> wrote:

>
>
> I am deploying my web app to BEA Weblogic Server 10.  My app uses DWR 2.0.1
> configured with Spring Framework 2.5.5.  When I deploy my web app, I get
> the
> following error:
>
>  java.lang.LinkageError: Class org/xml/sax/Parser violates loader
> constraints
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
>     at
>
> org.springframework.core.OverridingClassLoader.loadClassForOVerriding(OverridingClassLoader.java:97)
>     at
>
> org.springframework.core.OverridingClassLoader.loadClass(OverridingClassLoader.java:60)
>     ...
>
>  I narrowed the error down by removing all jars from my web app WEB-INF/lib
> and adding them back one by one, resolving noClassDefFound errors.  Once I
> added dwr-2.0.1.jar, I received the LinkageError.
>
> Any ideas?
>
> Thanks,
> ~Seth
>
> --
> View this message in context:
> http://www.nabble.com/LinkageError-org.xml.sax.Parser-tp18467938p18467938.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>