Thx Robert, that works!
Thank you and Sumeda for your patience. Lorenzo On gio, 2007-09-27 at 08:59 -0400, robert lazarski wrote: > Its been about a year since I last did this and it was with Axis2 1.1 > and jboss 4.0.4 . However, the way I did it was to put jboss-app.xml > in the META-INF dir of the ear - myexample.ear in this example: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <!DOCTYPE jboss-app PUBLIC '-//JBoss//DTD J2EE Application 1.3V2//EN' > 'http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd'> > <jboss-app> > <loader-repository> > jboss.loader:loader=myexample.ear > > <loader-repository-config>java2ParentDelegation=true</loader-repository-config> > </loader-repository> > </jboss-app> > > If that doesn't work, you need to know where the jar is being loaded > from and fix jboss-app.xml until it loads the jar from the correct > place - WEB-INF/lib if I understand correctly. This page will show you > where the jars were loaded from - change if needed for your setup: > > http://localhost:8080/axis2/axis2-web/HappyAxis.jsp > > Alternatively, in your code do something like: > > Object o = new SomeSAAJClass(); > URL location = > o.getClass().getProtectionDomain().getCodeSource().getLocation(); > System.out.println(o.getClass().getName() + > ".getProtectionDomain().getCodeSource().getLocation():" + > location.toString()); > > HTH, > Robert > > On 9/27/07, Lorenzo <[EMAIL PROTECTED]> wrote: > > Thx Robert, > > > > I tryed adding a jboss-app.xml into ear's WEB-INF > > > > <jboss-app> > > <loader-repository> > > com.example:loader=openspcoop.ear > > <loader-repository-config> > > java2ParentDelegation=false > > </loader-repository-config> > > </loader-repository> > > </jboss-app> > > > > > > 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.<clinit>(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-<version>.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: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
