Hi,

I'm trying to deploy a Tuscany driven web application to a WebLogic 9.2 Server, 
and I'm finding the traditional dependency issues associated with that.  The 
app works fine on Tomcat, but won't get past the deployment/startup stage on 
WebLogic.

All the problems seem to be due to which stax parser is being engaged.  There 
are various different messages depending on where I try to put the wstx jar in 
the classpath, and whether I tell WebLogic to prefer classes from the war, but 
I really can't see that any of the variations are getting me any closer.  Has 
anyone tried doing this recently?  Preferably with a 1.4 Tuscany on a 9.2 
WebLogic, but any thoughts are welcome.

It still seems to be the case that I will need to dump all my composites into 
META-INF, but that's a secondary problem at the moment.

To run through some things I have tried:

1) Normal deploy, using a regular build with no weblogic specific descriptors.
2) Setting weblogic.xml to have prefer-web-inf-classes=true.
3) Putting wstx jar in the lib folders in WL (to insert it onto the classpath 
earlier in the process.)
4) Updating to wstx 3.2.8 (which says it solves some app server issues.)
5) Configuring the stax library using system properties set at runtime.

Errors come from the range of:

*) Complete failure to deploy (I think this is when it tries to use the war's 
stax impl to do the deployment, and it can't handle it.)

*) java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
        at 
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
        at 
weblogic.servlet.internal.WebAppHelper.addListenerElements(WebAppHelper.java:244)
        at 
weblogic.servlet.internal.WebAppHelper$IOHelperImpl.parseXML(WebAppHelper.java:224)
        at 
weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:324)
        at 
weblogic.servlet.internal.WebAppHelper.registerTagLibListeners(WebAppHelper.java:174)
        Truncated. see log file for complete stacktrace

* Successfully starts the node, but then failing to find any composites (I 
think only when they are in the classes folder, where WL can't see them for 
it's own reasons.)

* Starts, but fails to parse the contribution metadata, saying that the 
Namespace for the composites is unknown.  Or various other XML comprehension 
failures, presumably caused by using WLs internal stax engine.

Is there any known way to build/deploy for WL?  Or alternatively, does anyone 
recognize of the errors and know what do to about them?  Sorry that this email 
is so long, but I'm in a bit of a rush, and didn't want to waste anyone's time 
by letting them suggest things that I have already tried.

Thanks for any insights at all,

Phil

Reply via email to