Re: Re: Re: Re: Deploying AXIS2 (1.5) on JOnAS 5.1.5

"Hans J. Prueller" <[email protected]>
Newsgroups gmane.comp.java.objectweb.jonas
Organization LBS logics GmbH
Message-ID <1295254228.1814.12.camel@smithers>
Guillaume,

thanks for your input.

Yes - finally our app is deployed and running on JOnAS 5.1 -- although
we had to do some workarounds to achieve this goal! 

-- we had to run off fastrmic  which makes building the .ear not very
comfortable
-- we had to re-structure some webservice-client classes to workaround
an obvious easy-beans classloader bug (the one with several nested
classes within a class)

As the app is running on JOnAS5 now, this is just the first milestone --
as it still is Java EE 1.4.  We now want to migrate all our SLSB's to
EJB3.

Will it be possible to make a step by step migration of the EJB's (so
have EJB2 and EJB3 "mixed" ?)


CMP EB's are already migrated to POJO's using hibernate (but not yet in
EJB-JPA context).


regards,
Hans


Am Montag, den 17.01.2011, 09:41 +0100 schrieb Guillaume Sauthier:

> Nice to know that you finally had your app working on JOnAS 5.1 :)
> 
> As a side note, I will add that <java2-delegation-model> is *not* a
> magic solution for avoiding classloader conflicts.
> It's only way to express that you prefer to load your libs from your
> app first (and then from system) or reverse.
> In some cases it can work, and for others not.
> 
> BTW, I think that, generally speaking, APIs should be avoided in the
> application.
> 
> --G
> 
> Le 17/01/2011 09:32, Hans J. Prueller a écrit : 
> 
> > Thank you,
> > 
> > I already removed xerces-impl-*.jar but obviously I forgot to also
> > remove "xml-apis-*.jar" from web-inf lib of the axis2 webapp --- now
> > it seems to work!
> > 
> > regards,
> > Hans
> > 
> > Am Sonntag, den 16.01.2011, 18:08 +0100 schrieb S. Ali Tokmen:
> > 
> > > Hello
> > > 
> > > What do you have in your WEB-INF/lib? You should remove all Xerces
> > > JARs...
> > > 
> > > In JOnAS 5, there is a new option for filtering the classloader. I
> > > would personally recommend the usage of that parameter instead of
> > > inverting the classloader. Read more on:
> > > http://jonas.ow2.org/JONAS_5_1_0/doc/doc-en/html/j2eeprogrammerguide.html#id1154249
> > > 
> > > Cheers
> > > 
> > > 
> > > S. Ali Tokmen
> > > http://ali.tokmen.com/
> > > 
> > > GSM (fr): +33 66 43 00 555 [Orange]
> > > GSM (tr): +90 555 266 52 73 [Avea]
> > > 
> > > My AIM, ICQ, MSN Messenger and Yahoo IM
> > > contact details are on http://contact.ali.tokmen.com
> > >     
> > > 
> > > 
> > > On 16.01.2011 09:27, Hans J. Prueller wrote: 
> > > 
> > > > Hi all,
> > > > 
> > > > we have developed WebServices based on AXIS2 (1.5.1)  that are
> > > > deployed on JOnAS 4.10 as separate .war file currently. This
> > > > works very smooth on JOnAS 4.x
> > > > but when we try to deploy the .war file to JOnAS 5.1.5, we get
> > > > the following error:
> > > > 
> > > > 2011-01-16 09:20:02,162 : WARDeployer.doDeploy : Deploying
> > > > axis2.war
> > > > 2011-01-16 09:20:05,511 : StandardContext.listenerStart :
> > > > Exception sending context initialized event to listener instance
> > > > of class com.sun.faces.config.ConfigureListener
> > > > java.lang.ClassCastException:
> > > > org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
> > > > javax.xml.parsers.SAXParserFactory
> > > > at javax.xml.parsers.SAXParserFactory.newInstance(Unknown
> > > > Source)
> > > > at com.sun.faces.config.ConfigureListener
> > > > $WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:513)
> > > > at com.sun.faces.config.ConfigureListener
> > > > $WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:485)
> > > > at com.sun.faces.config.ConfigureListener
> > > > $WebXmlProcessor.<init>(ConfigureListener.java:459)
> > > > at
> > > > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:135)
> > > > at
> > > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
> > > > at
> > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
> > > > at
> > > > org.ow2.jonas.web.tomcat6.JOnASStandardContext.start(JOnASStandardContext.java:281)
> > > > 
> > > > Seems that there is a class conflict regarding the XML parsers. 
> > > > 
> > > > The axis2.war file already contains a jonas-web.xml in WEB-INF
> > > > directoy, with the setting:
> > > > 
> > > > 
> > > > <jonas-web-app xmlns="http://www.objectweb.org/jonas/ns"
> > > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > >   xsi:schemaLocation="http://www.objectweb.org/jonas/ns
> > > >   http://www.objectweb.org/jonas/ns/jonas-web-app_4_2.xsd" >
> > > > 
> > > >    <java2-delegation-model>false</java2-delegation-model>
> > > >    
> > > > </jonas-web-app>
> > > > 
> > > > 
> > > > Which should avoid classloader conflicts -- but it seems in this
> > > > case it has no effect.
> > > > 
> > > > 
> > > > Any ideas how we could solve / workaround this problem ?
> > > > 
> > > > 
> > > > regards,
> > > > Hans 
> > 
> >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.