Thanks Werner, but unfortunately we're not using an EAR - the EJB JAR that
contains the MDB is deployed separately from the WAR. I tried expanding
xerces.jar into the EJB JAR, but even then the file was not found. The only
way to get this to work was to add xerces.jar to the WebLogic classpath.

The good news is that the client was already doing this in production under
the WebLogic 6.1 servers, so adding it to their new WebLogic 8.1 servers was
almost a non-issue.

I'm just bummed that a simple NoClassDefFoundError took me an entire day to
resolve and the solution was adding a JAR to the classpath. My previous
experience trying to do this with another project that used the Xalan
library caused me to think that Xerces was in the same boat.

Man I really hate the names of those libraries. :-)


On 6/17/05 1:31 PM, "Werner Guttmann" <[EMAIL PROTECTED]> wrote:

> Paul,
> 
> you might want to consider adding the Xerces JAR to your EAR file rather
> than the app server CLASSPATH. This way you don't introduce Xerces to
> all your web applications/EARs deployed on this very Weblogic instance.
> 
> Regards
> Werner
> 
> Paul Bienick wrote:
>> Thanks very much for the reply - I managed to figure this out. For some
>> reason, I thought that portions of xerces.jar were incorporated into JDK 1.4
>> as with the xalan.jar library, hence the reason for my trying the
>> -Xbooclasspath/p: first. But I guess I'm wrong, because all I had to do was
>> add xerces.jar to the classpath that WebLogic uses when it starts up.
>> 
>> 
>> 
>> On 6/17/05 5:00 AM, "Gregory Block" <[EMAIL PROTECTED]> wrote:
>> 
>> 
>>> It's going to be one of three things:
>>> 
>>>  - Classpath-based conflicts over what the appropriate visibility to
>>> use when loading classes will be; this is especially common if your
>>> castor jar is in (on Tomcat) ${TOMCAT_HOME}/common/lib, but you're
>>> trying to ship Xerces in the EAR/WAR.  Specifying the classloader to
>>> use might help with this.
>>> 
>>>  - Missing or corrupt jars.  We can rule this one out in your case.
>>> 
>>> 
>>> Try specifying a classloader to use to find the jar; if you're
>>> getting the object, say, from JNDI, the classloader may be different
>>> than the one which has full visibility of classes in your EAR.
>>> Handing it the EAR classloader should get around this.
>>> 
>>> 
>>> On 16 Jun 2005, at 23:25, Paul Bienick wrote:
>>> 
>>> 
>>> 
>>>> I'm having a problem unmarshaling XML in a message driven bean that
>>>> uses
>>>> Castor (any version including 0.9.7). We're running on WebLogic 8.1
>>>> SP2.
>>>> This bean has been deployed in production for the last several
>>>> years under
>>>> WebLogic 6.1 with no problem, but now that we're migrating to 8.1, I'm
>>>> getting the following error:
>>>> 
>>>> java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
>>>>        at
>>>> org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:272)
>>>>        at org.exolab.castor.xml.Unmarshaller.<init>
>>>> (Unmarshaller.java:225)
>>>>        at org.exolab.castor.xml.Unmarshaller.<init>
>>>> (Unmarshaller.java:212)
>>>>        at
>>>> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:736)
>>>> 
>>>> Obviously Castor needs this class and can't find it, but I can't
>>>> figure out
>>>> how to get this to work. I've tried expanding the latest Xerces JAR
>>>> in my
>>>> EJB JAR, and I've tried adding it to the bootclasspath via the
>>>> -Xbootclasspath/p: option. I've even tried changing the
>>>> org.exolab.castor.serializer to
>>>> weblogic.apache.xml.serialize.XMLSerializer,
>>>> but I still get the same message.
>>>> 
>>>> I'm hopeful somebody out there will know the magic word I need to
>>>> fix this.
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> 
>>> -------------------------------------------------
>>> If you wish to unsubscribe from this list, please
>>> send an empty message to the following address:
>>> 
>>> [EMAIL PROTECTED]
>>> -------------------------------------------------
>>> 
>> 
>> 
>> Paul Bienick
>> Palisades Technology Partners
>> iNet: [EMAIL PROTECTED]
>> Phone: 941-926-7515 (home office)
>> 
>> 
>> -------------------------------------------------
>> If you wish to unsubscribe from this list, please
>> send an empty message to the following address:
>> 
>> [EMAIL PROTECTED]
>> -------------------------------------------------
>> 
>> 
> 
> 
> -------------------------------------------------
> If you wish to unsubscribe from this list, please
> send an empty message to the following address:
> 
> [EMAIL PROTECTED]
> -------------------------------------------------
> 

Paul Bienick
Palisades Technology Partners
iNet: [EMAIL PROTECTED]
Phone: 941-926-7515 (home office)


-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to