This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes error deploying struts/ibatis app to linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "error deploying struts/ibatis app to linux" Watch "error deploying struts/ibatis app to linux" New topic
Author

error deploying struts/ibatis app to linux

Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Hi,

I am getting this error when I deploy a struts/ibatis app to linux. Here is part of the error message:

com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause: 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: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:129)
at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java:59)
at com.rhd.typs.service.impl.ibatis.registry.IbatisRegistry.getDaoManager(IbatisRegistry.java:44)
at com.rhd.typs.service.impl.reference.ReferenceServiceImpl.getDaoManager(ReferenceServiceImpl.java:199)
at com.rhd.typs.service.impl.reference.ReferenceServiceImpl.loadFromDB(ReferenceServiceImpl.java:165)
at com.rhd.typs.service.impl.reference.ReferenceServiceImpl.load(ReferenceServiceImpl.java:134)
at com.rhd.typs.service.impl.reference.ReferenceServiceImpl.getMap(ReferenceServiceImpl.java:228)
at com.rhd.typs.service.impl.reference.ReferenceServiceImpl.find(ReferenceServiceImpl.java:48)
at com.rhd.typs.service.impl.reference.ReferenceCacheInitTask.initialize(ReferenceCacheInitTask.java:58)
at com.rhd.typs.util.init.Initializer.doInit(Initializer.java:87)
at com.rhd.typs.util.init.Initializer.initialize(Initializer.java:60)
at com.rhd.typs.ui.web.init.TypsContextListener.contextInitialized(TypsContextListener.java:38)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: 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: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:84)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:72)
at com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:78)
at com.ibatis.dao.engine.transaction.sqlmap.SqlMapDaoTransactionManager.configure(SqlMapDaoTransactionManager.java:52)
at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseTransactionManager(XmlDaoManagerBuilder.java:193)
at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseContext(XmlDaoManagerBuilder.java:157)
at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:102)
... 36 more
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: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:52)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:81)
... 42 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:113)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:95)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:92)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:92)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:50)
... 43 more
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory.initialize(JndiDataSourceFactory.java:60)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:318)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:111)
... 48 more
Caused by: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:768)
at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory.initialize(JndiDataSourceFactory.java:48)
... 50 more

Is this some compatibility issue?

Thanks so much.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No, it's because the Name jdbc is not bound in this Context. JNDI resources won't automagically move along with the app, they need to be configured in the new server.
 
wood burning stoves
 
subject: error deploying struts/ibatis app to linux
 
Similar Threads
Error in configuring JDBC Datasource
i am using Hibernate with Seam and getting errors
Tomcat 5.5 SEVERE: Error listenerStart
Problem in configuring JNDI for Spring
UnsupportedClassVersionError & com.ibatis.sqlmap.client.SqlMapException: Error. Could not set parame