• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml parser problem with jboss5

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,

Problem is regarding Jboss 5 deployment.
My application uses Spring, Hibernate. EAR deploy over the jboss4 works perfectly but problem with Jboss5,
throws exception:-

jboss java.lang.classcastexception org.apache.xerces.jaxp.documentbuilderfactoryimpl

I can trace that this is basically due to the xml parsers.
Jboss 5 already contains the xalan and xercesImpl jars (not xml-apis) and my app also bundles the xalan and xml-apis jars (not xercesImpl).

Jboss5 complains to keep same jars at two places. But......

1. If remove from jboss5/lib/endorsed it stops working
2. and, If remove from war/ear file it throws different exception

both are strange. Any solution about the problem. Please suggest.

Note: I found that jboss4 also contains the xalan, xercesImpl and also xml-apis so no problem while deploying the war,
but jboss5 doesn't have the xml-apis so complains during the deployment.

Kind regards
luv zorabian
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Mock Exam Errata" is definitely not the right forum for this question. Moving to JBoss forum.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hard to say without the entire exception stacktrace. But see if it's related to this
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic