Java Mailing List Archive

http://www.java2.5341.com/

Home » user-java.ibatis »

Getting RunTime Exception

Absaar

2010-06-14

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,
I am trying to create a POC for iBatis. I have trying to do some
configuration and getting the following error

14-Jun-2010 20:02:20 com.ibatis.common.logging.jdk14.Jdk14LoggingImpl error
SEVERE: SimpleDataSource: Error while loading properties. Cause:
java.lang.RuntimeException: SimpleDataSource: Some properties were not set

Here is the stack trace:

java.lang.RuntimeException: SimpleDataSource: Some properties were not set.
 at
com.ibatis.common.jdbc.SimpleDataSource.initialize (SimpleDataSource.java:131)
 at
com.ibatis.common.jdbc.SimpleDataSource.<init>(SimpleDataSource.java:116)
 at
com.ibatis.sqlmap.engine.datasource.SimpleDataSourceFactory.initialize (SimpleDataSourceFactory.java:31)
 at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:220)
 at
com.ibatis.common.xml.NodeletParser.processNodelet (NodeletParser.java:121)
 at com.ibatis.common.xml.NodeletParser.process (NodeletParser.java:105)
 at com.ibatis.common.xml.NodeletParser.process (NodeletParser.java:102)
 at com.ibatis.common.xml.NodeletParser.process (NodeletParser.java:102)
 at com.ibatis.common.xml.NodeletParser.parse (NodeletParser.java:72)
 at com.ibatis.common.xml.NodeletParser.parse (NodeletParser.java:51)
 at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse (SqlMapConfigParser.java:46)
 at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient (SqlMapClientBuilder.java:63)
 at com.ociweb.music.LoadDB.main(LoadDB.java:19)
Exception in thread "main" java.lang.RuntimeException: Error occurred.
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:
java.lang.RuntimeException: Error parsing XPath
'/sqlMapConfig/transactionManager/dataSource/end()'. Cause:
com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
Could not instantiate DataSourceFactory. Cause: java.lang.RuntimeException:
SimpleDataSource: Error while loading properties. Cause:
java.lang.RuntimeException: SimpleDataSource: Some properties were not set.
 at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse (SqlMapConfigParser.java:49)
 at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient (SqlMapClientBuilder.java:63)
 at com.ociweb.music.LoadDB.main(LoadDB.java:19)
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: java.lang.RuntimeException: Error parsing XPath
'/sqlMapConfig/transactionManager/dataSource/end()'. Cause:
com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
Could not instantiate DataSourceFactory. Cause: java.lang.RuntimeException:
SimpleDataSource: Error while loading properties. Cause:
java.lang.RuntimeException: SimpleDataSource: Some properties were not set.
 at com.ibatis.common.xml.NodeletParser.parse (NodeletParser.java:53)
 at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse (SqlMapConfigParser.java:46)
 ... 2 more
Caused by: java.lang.RuntimeException: Error parsing XPath
'/sqlMapConfig/transactionManager/dataSource/end()'. Cause:
com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
Could not instantiate DataSourceFactory. Cause: java.lang.RuntimeException:
SimpleDataSource: Error while loading properties. Cause:
java.lang.RuntimeException: SimpleDataSource: Some properties were not set.
 at
com.ibatis.common.xml.NodeletParser.processNodelet (NodeletParser.java:123)
 at com.ibatis.common.xml.NodeletParser.process (NodeletParser.java:105)
 at com.ibatis.common.xml.NodeletParser.process (NodeletParser.java:102)
 at com.ibatis.common.xml.NodeletParser.process (NodeletParser.java:102)
 at com.ibatis.common.xml.NodeletParser.parse (NodeletParser.java:72)
 at com.ibatis.common.xml.NodeletParser.parse (NodeletParser.java:51)
 ... 3 more
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing
DataSource. Could not instantiate DataSourceFactory. Cause:
java.lang.RuntimeException: SimpleDataSource: Error while loading
properties. Cause: java.lang.RuntimeException: SimpleDataSource: Some
properties were not set.
 at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:227)
 at
com.ibatis.common.xml.NodeletParser.processNodelet (NodeletParser.java:121)
 ... 8 more
Caused by: java.lang.RuntimeException: SimpleDataSource: Error while loading
properties. Cause: java.lang.RuntimeException: SimpleDataSource: Some
properties were not set.
 at
com.ibatis.common.jdbc.SimpleDataSource.initialize (SimpleDataSource.java:210)
 at
com.ibatis.common.jdbc.SimpleDataSource.<init>(SimpleDataSource.java:116)
 at
com.ibatis.sqlmap.engine.datasource.SimpleDataSourceFactory.initialize (SimpleDataSourceFactory.java:31)
 at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:220)
 ... 9 more
Caused by: java.lang.RuntimeException: SimpleDataSource: Some properties
were not set.
 at
com.ibatis.common.jdbc.SimpleDataSource.initialize (SimpleDataSource.java:131)

Any help/suggestion form the fellow members would be highly helpful.

Thanks
--
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@(protected)
For additional commands, e-mail: user-java-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.