This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Deployment Errors

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know whether anyone has come across the following error trace. Could someone please suggest a solution for the same. We have been stuck up with this issue for quite sometime now. What is even more frustrating is that the code seems to be working perfectly allright on our local development workspace (Web Sphere Application Developer 4.0.1). However when the code is deployed on the Web Sphere Application Server (4.0) we get this error. Is this some error with the code or is something to do with the servers it is being deployed on.Any Suggestions?

Thanks in Advance. Any Help would be really appreciated.

Regards,
Sunoo

[7/27/05 18:49:32:761 SGT] 4f1541 WebGroup X Servlet Error: : java.lang.ExceptionInInitializerError: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:147)
at org.apache.soap.util.xml.XMLParserUtils.refreshDocumentBuilderFactory(Unknown Source)
at org.apache.soap.util.xml.XMLParserUtils.<clinit>(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ford.pms.externalinterface.outbound.utils.SOAPOutboundTransportHandler.processOutbound(SOAPOutboundTransportHandler.java:67)
at com.ford.pms.externalinterface.outbound.handler.RequestResponseHandler.sendRequest(RequestResponseHandler.java:67)
at com.ford.pms.externalinterface.outbound.handler.PartsAvailabilityHandler.process(PartsAvailabilityHandler.java:42)
at com.ford.pms.externalinterface.outbound.handler.RequestResponseHandler.processRequest(RequestResponseHandler.java:36)
at com.ford.pms.externalinterface.outbound.utils.RequestResponseManager.process(RequestResponseManager.java:118)
at com.ford.pms.parts.struts.PartsOrderAction.perform(PartsOrderAction.java:1436)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at com.cts.yardelligent.utils.YardelligentServlet.process(YardelligentServlet.java:208)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:154)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:391)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:284)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think some Jar files are missing,when you are deploying in the Websphere App Server 4.0 . If you can verify your classpath on your local machine to that of the other Env where you are deploying ,then you may come up with solution.

Thanks,
Praveena
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't look like they are missing per se to me, rather, it looks like JAXP has been set to use a library other than Xerces - maybe Crimson, or an IBM parser.

In an ideal world you wouldn't need to use Xerces - you'd just use the JAXP APIs. But that would mean code modification...I don't know whether that's practical for you.

Assuming it's not, you'll need to set up JAXP to use Xerces rather than whatever it's using now. To do this, you need to set two global properties:



You can do this by passing -D properties to the java command used to start Websphere (though who knows, maybe that'll break Websphere...). Another way you can set them is by putting them in a file called 'jaxp.properties' in JAVA_HOME/lib.


-Tim
 
Sunoo Varghese
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim & Praveena,

Thanks a lot guys. Would try implementing your suggestions and get back.

Regards,
Sunoo
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic