Question

I am facing an issue while starting my application after I moved my code from WebSphere 7 under Windows to WebSphere 7 under AIX. the error is:

Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: java.io.IOException: Could not find resource com/ebla/workflow/integration/frontEndDB/resources/config/sqlmap/companyAnnouncement.xml

This is the config file:

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMapConfig
        PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
        "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

<sqlMapConfig>
    <settings useStatementNamespaces="true"/>
     <transactionManager  type="JDBC">
        <dataSource type="JNDI">
     <property name ="DataSource" value="JNDI/eserviceDB"/>
</dataSource>
     </transactionManager> 
    <sqlMap resource="com/ebla/workflow/integration/frontEndDB/resources/config/sqlmap/companyAnnouncement.xml"/>
</sqlMapConfig>

This is the resource file:

    <?xml version="1.0" encoding="UTF-8"?>

<!-- Tomcat Settings -->
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">


<sqlMap namespace="companyAnnouncementSQLMap">
....
</sqlMap>

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top