I was trying to deploy SOA application with spring component but i got following exception in JDeveloper
04:54:33 PM] Error message from server:
There was an error deploying the composite on DefaultServer: Deployment Failed: Error occurred during deployment of component: HelloSpringComponent to service engine: implementation.spring, for composite: HelloSpring: SCA Engine deployment failure.: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 34 in XML document from URL [oramds:/deployed-composites/SOA/HelloSpring_rev1.0/Spring/HelloSpringComponent.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 34; columnNumber: 83; <Line 34, Column 83>: XML-24500: (Error) Can not build schema 'http://www.springframework.org/schema/util' located at 'http://www.springframework.org/schema/util/spring-util.xsd'.
Solution :
1. Go to $MW_HOME\user_projects\domains\<integrated domain name>\bin directory and open setDomainEnv.cmd file
Look for EXTRA_JAVA_PROPERTIES and add the property Doracle.xml.schema/Ignore_Duplicate_Components=true if it's not there.
If it's there then it should be like this Doracle.xml.schema/Ignore_Duplicate_Components=true . In my case it was like this Doracle.xml.schema\Ignore_Duplicate_Components=true. Backward slash does not work. So replace it with forward slash.
set EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -Dsoa.archives.dir=%SOA_ORACLE_HOME%\soa -Dsoa.oracle.home=%SOA_ORACLE_HOME% -Dsoa.instance.home=%DOMAIN_HOME% -Dtangosol.coherence.log=jdk -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dweblogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Djavax.net.ssl.trustStore=%WL_HOME%\server\lib\DemoTrust.jks -Doracle.xml.schema/Ignore_Duplicate_Components=true -Doracle.xdkjava.compatibility.version=11.1.1 -Doracle.soa.compatibility.version=11.1.1
2. If above solution does not work then add this property Doracle.xml.schema/Ignore_Duplicate_Components=true in startWeblogic.cmd file
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlaunch.main.class=%SERVER_CLASS% -Dlaunch.class.path="%CLASSPATH%" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -cp %WL_HOME%\server\lib\pcl2.jar -Doracle.xml.schema/Ignore_Duplicate_Components=true
Restart you server now.
It's Very Nice article
ReplyDeleteOracle SOA Online Course Bangalore
Great blog. All posts have something to learn. Your work is very good and i appreciate you and hopping for some more informative posts. Software cloud BPM
ReplyDelete