1 Reply Latest reply on Feb 11, 2016 6:59 AM by Anand Kumar

    java.lang.ClassCastException during Multiple same webapp war files are deployed in Jboss 6.1

    Anand Kumar Newbie

      Hi team,

       

      I am working Temenos India private Limited. I am using JBoss 6 eap as my deployer for my product war files. I am facing one severe issue during my deployment.

       

      I am having two war files which consists of same jars under WEB-INF/lib path.

       

      So both war files A and B are deployed in Jboss 6. Deployment is successful. When i try to launch the war files, the first war file which i launched is working fine and the next successive war file when i launched it throws me class cast exception. This is due to multiple war files consists of same jars. In Jboss 5 i had this issue but i resolved this using jboss class loading xml file with parameter "parent-first = false". but in Jboss 6 am using jboss deployment structure file and i am unable to find an equivalent parameter for Jboss6 as like parent-first tag in jboss 5.

       

       

      I found parameters for ear file like local-last value = true but for war files there is no configuration to deploy multiple web app war files. Can you please kindly suggest me how to resolve the issue.

       

       

      Log file of second war file is below,

       

      [2015-06-11 15:17:24.590], ['DEBUG_1' 'wZ2VXNshz8LZRv-lWSGbBl+W' 'Default' 'Login:TWSAuthentication:Authentication' 'Authenticate' 'Invoke Web Service T24WebServicesImplService for Operation LoginDetails' 'Error occurred in item 'Authentication.Authenticate.Invoke Web Service T24WebServicesImplService for Operation LoginDetails''], serialization error: java.lang.ClassCastException: com.acquire.intelligentforms.entities.webservice.LiteralComplexTypeSOAPSerializer incompatible with com.sun.xml.rpc.encoding.JAXRPCSerializer

      serialization error: java.lang.ClassCastException: com.acquire.intelligentforms.entities.webservice.LiteralComplexTypeSOAPSerializer incompatible with com.sun.xml.rpc.encoding.JAXRPCSerializer

          at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.serialize(LiteralRequestSerializer.java:268)

          at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:637)

          at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:83)

          at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:80)

          at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:475)

          at com.acquire.intelligentforms.entities.webservice.WebServiceSerialiser.invokeOperation(WebServiceSerialiser.java:231)

          at com.acquire.intelligentforms.rules.WebServiceRule.evaluate(WebServiceRule.java:952)

          at com.acquire.intelligentforms.rules.RulesEngine.runRule(RulesEngine.java:1957)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1747)

          at com.acquire.intelligentforms.rules.RulesEngine.runPostPhaseRules(RulesEngine.java:687)

          at com.acquire.intelligentforms.rules.RulesEngine.nextPhase(RulesEngine.java:1274)

          at com.acquire.intelligentforms.presentation.MainController.nextPhase(MainController.java:434)

          at com.acquire.intelligentforms.presentation.MainController.processResetMode(MainController.java:3876)

          at com.acquire.intelligentforms.presentation.MainController.processModeForAction(MainController.java:3414)

          at com.acquire.intelligentforms.presentation.MainController.processAction(MainController.java:1482)

          at com.acquire.intelligentforms.presentation.MainController.processAction(MainController.java:1243)

          at com.acquire.intelligentforms.presentation.workers.Worker.processAction(Worker.java:334)

          at com.acquire.intelligentforms.presentation.workers.Worker.doWork(Worker.java:369)

          at com.acquire.intelligentforms.presentation.workers.ComponentWorker.doWork(ComponentWorker.java:167)

          at com.acquire.intelligentforms.presentation.workers.Worker.doWork(Worker.java:476)

          at com.acquire.intelligentforms.presentation.workers.util.WorkerUtility.runComponent(WorkerUtility.java:279)

          at com.acquire.intelligentforms.rules.CallComponentRule.evaluate(CallComponentRule.java:84)

          at com.acquire.intelligentforms.rules.RulesEngine.runComplexRule(RulesEngine.java:1938)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1741)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1891)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1891)

          at com.acquire.intelligentforms.rules.RulesEngine.runActionRules(RulesEngine.java:1005)

          at com.acquire.intelligentforms.rules.RulesEngine.runAction(RulesEngine.java:981)

          at com.acquire.intelligentforms.rules.RulesEngine.runActionAndGetPhase(RulesEngine.java:1040)

          at com.acquire.intelligentforms.presentation.ajax.AjaxIRunRulesActionService.runRules(AjaxIRunRulesActionService.java:1594)

          at com.acquire.intelligentforms.presentation.ajax.AjaxIRunRulesActionService.processActionWorker(AjaxIRunRulesActionService.java:502)

          at com.acquire.intelligentforms.presentation.ajax.AjaxIRunRulesActionService.handleRequest(AjaxIRunRulesActionService.java:362)

          at com.acquire.intelligentforms.presentation.AjaxServletController.doWork(AjaxServletController.java:256)

          at com.acquire.intelligentforms.presentation.AjaxServletController.doPostImpl(AjaxServletController.java:62)

          at com.acquire.intelligentforms.presentation.BaseServletController.doPost(BaseServletController.java:98)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389)

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

          at java.lang.Thread.run(Thread.java:863)

       

      CAUSE:

       

      java.lang.ClassCastException: com.acquire.intelligentforms.entities.webservice.LiteralComplexTypeSOAPSerializer incompatible with com.sun.xml.rpc.encoding.JAXRPCSerializer

          at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.getParameterSerializer(LiteralRequestSerializer.java:432)

          at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.doSerializeInstance(LiteralRequestSerializer.java:344)

          at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.doSerialize(LiteralRequestSerializer.java:408)

          at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.internalSerialize(LiteralRequestSerializer.java:305)

          at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.serialize(LiteralRequestSerializer.java:262)

          at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:637)

          at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:83)

          at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:80)

          at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:475)

          at com.acquire.intelligentforms.entities.webservice.WebServiceSerialiser.invokeOperation(WebServiceSerialiser.java:231)

          at com.acquire.intelligentforms.rules.WebServiceRule.evaluate(WebServiceRule.java:952)

          at com.acquire.intelligentforms.rules.RulesEngine.runRule(RulesEngine.java:1957)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1747)

          at com.acquire.intelligentforms.rules.RulesEngine.runPostPhaseRules(RulesEngine.java:687)

          at com.acquire.intelligentforms.rules.RulesEngine.nextPhase(RulesEngine.java:1274)

          at com.acquire.intelligentforms.presentation.MainController.nextPhase(MainController.java:434)

          at com.acquire.intelligentforms.presentation.MainController.processResetMode(MainController.java:3876)

          at com.acquire.intelligentforms.presentation.MainController.processModeForAction(MainController.java:3414)

          at com.acquire.intelligentforms.presentation.MainController.processAction(MainController.java:1482)

          at com.acquire.intelligentforms.presentation.MainController.processAction(MainController.java:1243)

          at com.acquire.intelligentforms.presentation.workers.Worker.processAction(Worker.java:334)

          at com.acquire.intelligentforms.presentation.workers.Worker.doWork(Worker.java:369)

          at com.acquire.intelligentforms.presentation.workers.ComponentWorker.doWork(ComponentWorker.java:167)

          at com.acquire.intelligentforms.presentation.workers.Worker.doWork(Worker.java:476)

          at com.acquire.intelligentforms.presentation.workers.util.WorkerUtility.runComponent(WorkerUtility.java:279)

          at com.acquire.intelligentforms.rules.CallComponentRule.evaluate(CallComponentRule.java:84)

          at com.acquire.intelligentforms.rules.RulesEngine.runComplexRule(RulesEngine.java:1938)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1741)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1891)

          at com.acquire.intelligentforms.rules.RulesEngine.evaluateRule(RulesEngine.java:1891)

          at com.acquire.intelligentforms.rules.RulesEngine.runActionRules(RulesEngine.java:1005)

          at com.acquire.intelligentforms.rules.RulesEngine.runAction(RulesEngine.java:981)

          at com.acquire.intelligentforms.rules.RulesEngine.runActionAndGetPhase(RulesEngine.java:1040)

          at com.acquire.intelligentforms.presentation.ajax.AjaxIRunRulesActionService.runRules(AjaxIRunRulesActionService.java:1594)

          at com.acquire.intelligentforms.presentation.ajax.AjaxIRunRulesActionService.processActionWorker(AjaxIRunRulesActionService.java:502)

          at com.acquire.intelligentforms.presentation.ajax.AjaxIRunRulesActionService.handleRequest(AjaxIRunRulesActionService.java:362)

          at com.acquire.intelligentforms.presentation.AjaxServletController.doWork(AjaxServletController.java:256)

          at com.acquire.intelligentforms.presentation.AjaxServletController.doPostImpl(AjaxServletController.java:62)

          at com.acquire.intelligentforms.presentation.BaseServletController.doPost(BaseServletController.java:98)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389)

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

          at java.lang.Thread.run(Thread.java:863)