Hi,

Sorry for the late reply.  I've implemented your suggestion, but then I had to 
deal with some JMS config issues.  This deployment has been very challenging to 
say the least.  

It appears I need to copy all of the jars in my ear's lib directory to my 
domain/lib/ext directory, not just the CXF ones.  But, I am getting this error:

"javax.xml.bind.JAXBException: ClassCastException: attempting to cast 
bundle://3.0:1/javax/xml/bind/JAXBContext.class to 
jar:file:/opt/glassfishv3/glassfish/modules/endorsed/jaxb-api-osgi.jar!/javax/xml/bind/JAXBContext.class. 
 Please make sure that you are specifying the proper ClassLoader."

I removed these jars from the domain/lib/ext directory:
    jaxb-api-2.2.3.jar
    jaxb-impl-2.2.4-1.jar

hoping that would solve the issue, but no luck.  I have to admit I'm a novice 
when it comes to class loading issues.

Can anyone help me with this issue?

----- Original Message -----
From: Bernhard Thalmayr <[email protected]>
Date: Monday, November 28, 2011 10:38 am
Subject: Re: Deploy CXF ejb-jar/ear in Glassfish
To: [email protected]

> There's no chance to get similar behaviour for an enteprise 
> archive as the
> classloader will always detelaget
> 
> Have to tried to place the CXF-jars into <domain-dir>lib/ext?
> 
> -Bernhard
> 
> On Mon, Nov 28, 2011 at 5:48 PM, sdoca sdoca <[email protected]> wrote:
> 
> > Hi,
> >
> > I need to deploy an ear which contains an ejb-jar into 
> Glassfish 3.1 that
> > uses CXF.  I know that if I was deploying a war file I 
> would need to
> > include a glassfish-web.xml file which includes the following:
> >
> >     <!-- Need this to tell Glassfish 
> not to load the JAX-WS RI classes so
> > it will
> >         use the CXF 
> ones instead -->
> >     <sun-web-app>
> >         <class-
> loader delegate="false" />
> >     </sun-web-app>
> >
> > I am guessing I need to do something similar for an ear, but 
> am not sure
> > what file to add the class-loader info.  I was hoping 
> someone on this list
> > has done this and can provide guidance.
> >
> > Thanks!
> >
> >
> 
> 
> -- 
> IT-Consulting Bernhard Thalmayr
> - Painstaking Minds -
> 83620 Vagen (Munich area)
> Germany
>

Reply via email to