Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 54916 invoked from network); 27 Sep 2007 12:30:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 12:30:12 -0000 Received: (qmail 55659 invoked by uid 500); 27 Sep 2007 12:29:54 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 55639 invoked by uid 500); 27 Sep 2007 12:29:54 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 55628 invoked by uid 99); 27 Sep 2007 12:29:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 05:29:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cencio1980@gmail.com designates 72.14.204.232 as permitted sender) Received: from [72.14.204.232] (HELO qb-out-0506.google.com) (72.14.204.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 12:29:53 +0000 Received: by qb-out-0506.google.com with SMTP id e34so131805qbe for ; Thu, 27 Sep 2007 05:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:reply-to:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=3yndlpNP4DvW76ZHfehtjJK6JRNIG7u3xFHlM+ZI/Vg=; b=e20fRfmBUVn1OL9co84iS8s2VrPsvpkS9D36cUET32kgT/TWSdbpn/dZsELZScajTO4gOpn4A/L+Gl7L4zY7yMz2DpUnEBFVg0eKwOiK7MIxdGf7jhuc8ldETyEI4t8FJr4WL1cRtQqSZlkDiZJU9eAxcaw/t5ZhyGKZap0897E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:reply-to:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=cAbw7h6aYy+bacuswWPmqvkYG2sI/CkTQDPvYllFS/bi4o6azTtATPcKlBQPqT9z63iSOLj9DnE+JB3Ci6XKjUGfjleHdC5Pf0Pu7ipZcX0/qRK7+CHkUAPjzCqzBK+MYLqINPyK/DjF0eTpkMpXqpLDILFu9xUntBnUt7+vw1Q= Received: by 10.64.179.12 with SMTP id b12mr3905054qbf.1190896171747; Thu, 27 Sep 2007 05:29:31 -0700 (PDT) Received: from ?10.114.87.117? ( [212.171.49.34]) by mx.google.com with ESMTPS id 5sm2233292nfv.2007.09.27.05.29.28 (version=SSLv3 cipher=RC4-MD5); Thu, 27 Sep 2007 05:29:30 -0700 (PDT) Subject: Re: [AXIS2] ClassPath problems in JBoss From: Lorenzo Reply-To: cencio1980@gmail.com To: axis-user@ws.apache.org In-Reply-To: References: <1190820237.26808.24.camel@localhost> <46FA8A7A.6080807@wso2.com> <1190826419.26808.37.camel@localhost> Content-Type: text/plain Date: Thu, 27 Sep 2007 14:30:34 +0200 Message-Id: <1190896234.5786.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thx Robert, I tryed adding a jboss-app.xml into ear's WEB-INF com.example:loader=openspcoop.ear java2ParentDelegation=false and i get the loader-repository ObjectName appear in the JMX-Console with all the libs listed. I put in ear's lib only the Axis2 jars for testing, but in deploy i get this exception java.lang.ExceptionInInitializerError at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:96) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:79) ... ... Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.axis2.util.XMLUtils.initSAXFactory(XMLUtils.java:121) at org.apache.axis2.util.XMLUtils.(XMLUtils.java:85) As always if i copy jar into web.war/WEB-INF/lib all work fine.. Any suggestion? Where i mistake? On mer, 2007-09-26 at 13:13 -0400, robert lazarski wrote: > Have you deferred your classloading preference to axis2 jars in a > boss-app.xml as shown here? > > http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration > > HTH, > Robert > > > Hi Sumeda, > > > > i use Axis2 1.3 and Jboss 4.0.5.GA > > > > If i move only axis2-saaj nothing happens (it still use jboss impl) > > If i move also axis2-kernel module fail deploy module and services: > > > > 18:54:54,035 ERROR [ModuleDeployer] The OpenSPCoopModule.mar module, > > which is not valid, caused org.openspcoop.pdd.services.OpenSPCoopModule > > org.apache.axis2.deployment.DeploymentException: > > org.openspcoop.pdd.services.OpenSPCoopModule > > at > > org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:493) > > at org...... > > > > if i add libs containing module and services implementation it works > > fine, but i won't move my libs. > > > > thx, > > Lorenzo > > > > > > On mer, 2007-09-26 at 22:06 +0530, sumedha rubasinghe wrote: > > > Hi, > > > The problem here is both Jboss & Axis have their own SAAJ Implementation. > > > What is the version of Jboss & Axis2 your using? > > > Do you intend to run other applications on this server as well? > > > > > > You do not need to move several jars.The classes you need are located > > > inside axis2-saaj-.jar. > > > > > > /sumedha > > > > > > Lorenzo wrote: > > > > Hi all, > > > > > > > > i have this problem: > > > > > > > > i deployed mi axis2 app on jboss into a .ear > > > > > > > > myapp.ear > > > > |- lib > > > > |- mdb.jar > > > > |- META-INF > > > > |- manifest.mf > > > > |- ejb-jar.xml > > > > |- jboss.xml > > > > |- web.war <-- axis2 > > > > |- META-INF > > > > |- manifest.mf > > > > |- WEB-INF > > > > |- modules > > > > |- mymodule.mar > > > > |- services > > > > |- myservice.aar > > > > |- conf > > > > |- axis2.xml > > > > |- web.xml > > > > > > > > > > > > I tryed to get a org.apache.axis2.saaj.SOAPMessageImpl from a > > > > MessageContext but i get a java.lang.ClassCastException because it use > > > > MessageFactoryImpl of jboss instead of Axis2.saaj one so i get a > > > > org.jboss.ws.soap.SOAPMessageImpl instead > > > > org.apache.axis2.saaj.SOAPMessageImpl. > > > > > > > > I can avoid this moving some axis2 lib from myapp.ear/lib to > > > > myapp.ear/web.war/WEB-INF/lib (seems that there jars have higher > > > > priority then others..) but seems that now Axis2 don't get libs > > > > specified into manifest and i need to use the same libs used by mdb.jar > > > > > > > > > > > > I hope i was clear :) > > > > > > > > Any suggestion is appreciate, > > > > thx Lorenzo > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org