Error with DataSource in WAS 6.0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error with DataSource in WAS 6.0

GilJSA
This post has NOT been accepted by the mailing list yet.
Hi, I have a problem with my configuration of the sql-map-config.xml with DataSource with WAS 6.0, I know my DataSource is working because i tested in the WAS panel console, can anyone help me please. The code is :

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig
    PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
    "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
                <settings
    cacheModelsEnabled="true"
    enhancementEnabled="true"
    maxSessions="64"
    maxTransactions="8"
    maxRequests="128"/>       
   
    <transactionManager type="JDBC">
            <property name="commitRequired" value="false"/>
                        <property name="JDBC.Connection.transactionIsolation" value="1"/>       
                        <dataSource type="JNDI">
                                <property name="DataSource" value="jdbc/prueba"/>
                        </dataSource>
                </transactionManager>
           
   
       
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/ListaCajasIbatis.xml"/>
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/SINAF03Ibatis.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/RegistroControlAfiliados.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/RegistroControlColocaciones.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/RegistroControlNominaPorMandatoIbatis.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/RegistroControlRecaudaciones.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/RemesasEgresoIbatis.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/RemesasIngresoIbatis.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/SinaRegr01Ibatis.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/Procedure1Ibatis.xml" />
        <sqlMap resource="cl/laaraucana/intercajas/ibatis/ProceHistoricoIbatis.xml" />
</sqlMapConfig>

The error is:

Se cayo aquĆ­com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Exception in thread "main" java.lang.NullPointerException
        at cl.laaraucana.intercajas.as400.AS400RecaudacionEfPFactory.listBox(AS400RecaudacionEfPFactory.java:37)
        at test.ListaCajas.main(ListaCajas.java:31)


Please HELP!!!!
Loading...