I feel your pain. I had lots of CCEs with WebLogic 9.2 but mostly when I
was using the JAX-WS RI, before I switched to XFire. There are two kinds
of typical problems:
1. WLS brings has older versions of widespread frameworks in its
classpath, e.g. JSR-181 jar or namespace jar, and WebApps deployed to
WLS see these old versions first (because they ask the parent WLS class
loader which sees those outdated classes). A workaround is here to add a
weblogic.xml to WEB-INF with the prefer-web-inf-classes option set. In
my case this solved one problem and produced another:
2. Once the classes in the WebApp are preferred situations arise where
the same class is loaded twice by different class loaders and is thus
incompatible. Extremely frustrating. I was having this problem with
XMLInputFactory, not unlike your case although it was not about
Woodstox. In this case you may get around it by defining XML registries
in the WLS domain (you'll find it in the console). At least with JAX-WS
RI this was only a temporary fix, after this another problem occurred
and I switched to XFire. Hope your mileage will vary here.
Creating an EAR as suggested seems odd but is not so complicated.
Basically you need it only to be able to provide that option in
weblogic-application.xml.
Today everything works ok with XFire 1.2.6 and WLS 9.2 but I still have
to prepend the JSR-181 jar to the WLS classpath in the startup script or
else WLS would see its outdated JSR-181 jar and throw an exception about
some missing annotation attribute. And this is with XFire embedded, not
with the servlet.
Good luck...
Werner
On 07.09.2007 17:30, studiousguy wrote:
Hi
When we deployed the service app WAR in weblogic 9.1 no issues.When we are
deploying in 9.2 getting classcast exception.Trace is listed below:
[exec] [wldeploy] [BasicOperation.execute():424] : Initiating deploy
operation for app, MemberEligibilityService, on targets:
[exec] [wldeploy] [BasicOperation.execute():426] :
devcluster_9201
[exec] [wldeploy] Task 0 initiated: [Deployer:149026]deploy
application MemberEligibilityService on devcluster_9201.
[exec] [wldeploy] dumping Exception stack
[exec] [wldeploy] Task 0 failed: [Deployer:149026]deploy application
MemberEligibilityService on devcluster_9201.
[exec] [wldeploy] Target state: deploy failed on Cluster
devcluster_9201
[exec] [wldeploy] java.lang.ClassCastException:
com.ctc.wstx.stax.WstxInputFactory
[exec] [wldeploy] at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
[exec] [wldeploy] at
weblogic.servlet.internal.WebAppHelper.addListenerElements(WebAppHelper.
java:244)
[exec] [wldeploy] at
weblogic.servlet.internal.WebAppHelper$IOHelperImpl.parseXML(WebAppHelpe
r.java:224)
[exec] [wldeploy] at
weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:324)
[exec] [wldeploy] at
weblogic.servlet.internal.WebAppHelper.registerTagLibListeners(WebAppHel
per.java:174)
[exec] [wldeploy] at
weblogic.servlet.internal.EventsManager.registerEventListeners(EventsMan
ager.java:253)
[exec] [wldeploy] at
weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebA
ppServletContext.java:1573)
[exec] [wldeploy] at
weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletCont
ext.java:1037)
[exec] [wldeploy] at
weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:4
33)
I have gone through couple of forums.They are asking to build the app as a
EAR and modify the application.xml?????Is this the only solution or are
there any alternate fixes????
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email