我已将企业应用程序(ear)部署到托管在UNIX服务器上的WebSphere Application Server(6.1),并且我能够成功运行该应用程序。
部署到托管在Windows 7计算机上的WebSphere Application Server(6.1)时,相同的企业应用程序会导致以下问题:
com.sun.msv.grammar.BinaryExp类是jar文件jax-libs.jar的一部分,这是我的应用程序使用的实用程序jar之一。
如果有人可以帮助我,我真的很感激
堆栈跟踪如下所示:
[12/3/13 15:38:55:679 PST] 00000021 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: HttpControllerServlet. Exception thrown : java.lang.InternalError: com.sun.msv.grammar.BinaryExp; local class incompatible: stream classdesc serialVersionUID = -6949881705297518665, local class serialVersionUID = 1
at com.sun.xml.bind.validator.SchemaDeserializer.deserialize(SchemaDeserializer.java:64)
at com.sun.xml.bind.validator.SchemaDeserializer.deserialize(SchemaDeserializer.java:41)
at org.kp.eci.model.xml.impl.UserPreferenceTypeImpl.<clinit>(UserPreferenceTypeImpl.java:26)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
at org.kp.eci.model.xml.impl.UserPreferenceTypeImpl$MySpecialtyAreasTypeImpl.<clinit>(UserPreferenceTypeImpl.java:696)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at org.kp.eci.model.xml.ObjectFactory.class$(ObjectFactory.java:18)
at org.kp.eci.model.xml.ObjectFactory.<clinit>(ObjectFactory.java:18)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:163)
at com.sun.xml.bind.GrammarInfoFacade.createGrammarInfoFacade(GrammarInfoFacade.java:110)
at com.sun.xml.bind.DefaultJAXBContextImpl.<init>(DefaultJAXBContextImpl.java:70)
at com.sun.xml.bind.ContextFactory.createContext(ContextFactory.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:142)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:259)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at org.kp.eci.model.UserPreference.<init>(Unknown Source)
at org.kp.eci.da.UserPreferenceDA.getUserPreference(Unknown Source)
at org.kp.eci.eventhandler.LoginHandler.handleEvent(Unknown Source)
at org.kp.eci.mvc.model.AbstractStateMachine.handleEvent(Unknown Source)
at org.kp.eci.mvc.control.HttpRequestProcessor.processRequest(Unknown Source)
at org.kp.eci.mvc.control.HttpControllerServlet.doGet(Unknown Source)
at org.kp.eci.mvc.control.HttpControllerServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1815)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)