Re: Re: Re: Deploying AXIS2 (1.5) on JOnAS 5.1.5
Guillaume Sauthier <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Organization | Objectweb Consortium |
| Message-ID | <[email protected]> |
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 onhttp://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" >>> <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 >
Guillaume_Sauthier.vcf
(text/x-vcard, 398 B)
begin:vcard fn:Guillaume Sauthier n:Sauthier;Guillaume org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a> adr:;;;;;;France email;internet:[email protected] title:<a href="http://jonas.ow2.org">JOnAS Application Server</a> url:http://jonas.ow2.org version:2.1 end:vcard