It has to do the classloading policy setting for weblogic. Tuscany webapp
packages the XML apis in the WEB-INF/lib folder and WebLogic has its own in
the base. We have to make sure the jars in the webapp itself takes
precedence. Please see the following discussion on configuring the weblogic
webapp:
http://forums.java.net/jive/thread.jspa?messageID=216363
Thanks,
Raymond
--------------------------------------------------
From: "Nishant Joshi" <[email protected]>
Sent: Wednesday, July 15, 2009 4:12 AM
To: "tuscany-user" <[email protected]>
Subject: Tuscany 1.4 problem with BEA WebLogic 9.2 SP3
Hi All,
I am getting following error while access service from bea WebLogic9.2
SP3.
While same WAR was working fine in Tomcat.
I have rasied same issue please see
http://www.mail-archive.com/[email protected]/msg01957.html
Again i am facing issue with tuscany 1.4.
<Jul 15, 2009 4:21:51 PM IST> <Error> <HTTP> <BEA-101165> <Could not
load user defined filter in web
.xml: org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.
org.osoa.sca.ServiceRuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:220)
at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:76)
at
org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:225)
at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:52
)
at
weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:309)
Truncated. see log file for complete stacktrace
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:199)
Truncated. see log file for complete stacktrace
org.osoa.sca.ServiceRuntimeException:
java.lang.IllegalArgumentException: java.lang.reflect.Invocati
onTargetException
at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:380)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFactoryImpl.java:47)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:175
)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:1
00)
at
org.apache.tuscany.sca.host.webapp.WebSCADomain.<init>(WebSCADomain.java:41)
Truncated. see log file for complete stacktrace
java.lang.IllegalArgumentException:
java.lang.reflect.InvocationTargetException
at
org.apache.tuscany.sca.contribution.DefaultModelFactoryExtensionPoint.getFactory(DefaultM
odelFactoryExtensionPoint.java:120)
at
org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.
java:200)
at
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:158)
at
org.apache.tuscany.sca.node.impl.NodeImpl.initRuntime(NodeImpl.java:465)
at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:348)
Truncated. see log file for complete stacktrace
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tuscany.sca.extensibility.ServiceDiscovery.newFactoryClassInstance(ServiceDisc
overy.java:166)
Truncated. see log file for complete stacktrace
java.lang.ClassCastException:
weblogic.xml.jaxp.RegistryDocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
Truncated. see log file for complete stacktrace
Anybody has idea on this?
--
Thanks
Nishant Joshi