spring - OC4J 10.1.3.5 / Spring3 Issue -
i'm using oc4j 10.1.3.5.0, , have issue xml namespaces in spring xml files supplied in war/ear.
according oracle documentation, there known issue in parsing spring 3 xsd files within oc4j, embeds oracle xmlparserv2 jar , uses xml parsing (which has issues xsd tricks used in spring 3 apparently).
i've folowed oracle work-around, defining own xml parser shared libraries on oc4j instance, , (in orion-application.xml), defining shared library use. created shared library,'apache.xml', xercesimpl (v 2.9.1), xml-apis (v 1.3.04), , xml-resolver (v 1.2). tried defining ear use new library
<imported-shared-libraries> <imported-shared-library name="apache.xml"/> </imported-shared-libraries>
i receive following error
14:50:31 error (userid:) [dispatcherservlet] context initialization failed org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: line 10 in xml document servletcontext resource [/web-inf/spring/webflow-config.xml] invalid; nested exception org.xml.sax.saxparseexception: cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'webflow:flow-executor'.
the webflow-config.xml file defined normal:
<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:webflow="http://www.springframework.org/schema/webflow-config" xsi:schemalocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd"> <!-- executes web flows --> <webflow:flow-executor id="flowexecutor" flow-registry="flowregistry" /> <!-- rest of file ... --> </beans>
does have ideas?
[edit] snippet:
<imported-shared-libraries> <imported-shared-library name="apache.xml"/> </imported-shared-libraries>
should, of course read:
<imported-shared-libraries> <import-shared-library name="apache.xml"/> </imported-shared-libraries>
sorry!
i found answer this. turns out because running oc4j on java 6 jvm. if else gets problem, here's did resolve:
the oracle xml parser not handle spring 3 xsd files well, know issue. need remove oracle xsd libraries application. in orion-application.xml
file, need
<imported-shared-libraries> <remove-inherited name="oracle.xml"/> </imported-shared-libraries>
the oracle documentation tells import new shared library. however, if you're running oc4j on java 6 jvm (which are!), can't this. looks there xml parser in java 6 core now, , importing xerces libraries conflict these classes, causing weird errors.
anyway, on java 6, remove oracle libraries, don't import other ones!
Comments
Post a Comment