ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Vinson <vinson.li...@charter.net>
Subject Re: Error when i try to use ibatis with one datasource. plese help me
Date Tue, 06 Sep 2005 12:30:32 GMT
Are you trying to run this outside of the container?

Jason


On 9/6/05 7:03 AM, "dionisio@tinieblas.com" <dionisio@tinieblas.com> wrote:

> Hello
> i am trying to work using ibatis.
> I am working into one websphere (WSAD).
> In this websphere i have create one datasouce to one sql server database.
> I am try to use ibatis with this conf file (SqlMapConfig.xml)
> <?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>
>  <!--
>  <properties resource="net/domain/ibatis/mapeos/SqlDatabase.properties" />
>  -->
>  <settings cacheModelsEnabled="true" enhancementEnabled="true"
> lazyLoadingEnabled="true" maxRequests="128" maxSessions="10"
> maxTransactions="5" useStatementNamespaces="false" />
>  <typeAlias alias="order" type="testdomain.Order" />
>   <transactionManager type="JDBC">
>    <dataSource type="JNDI">
>     <property name="DataSource" value="java:comp/env/jdbc/dsDIT" />
>    </dataSource>
>   </transactionManager>
>  <sqlMap resource="net/domain/ibatis/mapeos/DITT01CATEGORIAS.xml"/>
> </sqlMapConfig>
> 
> the error is bellow.
> Can anybody helps me?
> thanks
> 
> 
> ERROR:
> 
> 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
> at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigPars
> er.java:81)
> at
> com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBui
> lder.java:62)
> at
> net.izfe.dit.ibatis.mapeos.AccionesDatabase.<clinit>(AccionesDatabase.java:22)
> 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
> at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
> at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigPars
> er.java:78)
> ... 2 more
> 



Mime
View raw message