Xerces conflicts whith JBoss 4.0.3SP1. Is there a solution ?
alan.adasilva May 18, 2006 8:46 AMHi,
I´m running JBoss in cluster mode. I have an application packed in a .war file and in the WEB-INF/lib dir, I have the xerces.jar that my application use. So, when I ran JBoss and try to use my application, an exception with xml is thrown in the JBoss console.
But, when I removed the <JBOSS_HOME>/lib/endorsed/xercesImpl.jar and put my xerces.jar in this directory and run JBoss on DEFAULT mode, everything gone right. The problem is that, in cluster mode, this do not work. I´m using jdk 1_5_0_06.
I have been tried to isolate the classloader for my application, but nothing worked at all. I supose this is a bug on JBoss. I searched on the net and foruns and no one has an answer for this issue. Do you know how to solve this problem ?! The exception goes below. Thanks. Alan
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.perform(DispatchAction.java :236)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java :81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke (CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java :407)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.VerifyError: (class: org/apache/soap/util/xml/XercesParserLiaison, method: read signature: (Ljava/lang/String;Ljava/io/Reader;)Lorg/w3c/dom/Document;) Incompatible object argument
for function call
at org.apache.soap.rpc.Call.(Call.java)
at org.apache.soap.rpc.Call.(Call.java)
at com.attachmate.mcs.agent.impl.SOAPPackager.a(SOAPPackager.java )
at com.attachmate.mcs.agent.impl.MCSRpcImpl.a(MCSRpcImpl.java)
at com.attachmate.mcs.agent.impl.MCSRpcImpl.callServiceAgent(MCSRpcImpl.java)
at com.attachmate.mcs.agent.impl.UserAgent.b( UserAgent.java)
at com.attachmate.mcs.agent.impl.UserAgent.(UserAgent.java)
at com.attachmate.mcs.agent.api.MCSAgent.getInstance(MCSAgent.java)
at com.attachmate.mcs.agent.api.MCSAgent .(MCSAgent.java)
at com.attachmate.common.clientconfig.client.RuntimeManagerFactory.init(RuntimeManagerFactory.java)
at com.attachmate.common.clientconfig.client.RuntimeManagerFactory.getInstance (RuntimeManagerFactory.java)
at com.attachmate.common.eai.tasks.ContextFactory.(ContextFactory.java)
at com.attachmate.common.eai.tasks.NavTaskBean.getTaskContext(NavTaskBean.java)
at com.attachmate.common.eai.tasks.BaseTaskBean.executeSync(BaseTaskBean.java)
at br.com.sysworks.attachmate.business.tarefas.impl.Login.executarTarefa(Unknown Source)
at br.com.sysworks.attachmate.business.Contexto .(Unknown Source)
at br.com.sysworks.attachmate.web.helpers.ContextoWeb.instanciaContexto(Unknown Source)
at br.com.sysworks.attachmate.web.helpers.ContextoWeb.getContexto(Unknown Source)
at br.com.sysworks.action.attachmate.AttachmateAction.reemitirSenhaInternet(AttachmateAction.java:580)