ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hofri Yehuda" <Yehuda.Ho...@comverse.com>
Subject RE: pls help: WebSphere + IBATIS
Date Mon, 10 Sep 2007 13:59:10 GMT
sweet jesus, dude, go read some pdf !

________________________________

From: Denis Bessmertniy
[mailto:denis.bessmertniy@consumerhealthtech.com] 
Sent: Monday, September 10, 2007 4:57 PM
To: user-java@ibatis.apache.org
Subject: RE: pls help: WebSphere + IBATIS


We don't use web.xml. Because it is only EJB project only with
appliaction.xml. 
That is why I cannot user resource-ref. 
 
> try giving the JNDI name directly for the value attribute
What do you mean here? I cannot understand.

________________________________

From: Hemant.Kamatgi [mailto:Hemant.Kamatgi@target.com] 
Sent: Monday, September 10, 2007 4:45 PM
To: user-java@ibatis.apache.org
Subject: RE: pls help: WebSphere + IBATIS



If the resource-ref isn't mentioned in the deployment descriptor, then
try giving the JNDI name directly for the value attribute. 

We are using it that way and it works.

 

Regards

Hemant

 

 

________________________________

From: Denis Bessmertniy
[mailto:denis.bessmertniy@consumerhealthtech.com] 
Sent: Monday, September 10, 2007 8:33 AM
To: user-java@ibatis.apache.org
Subject: pls help: WebSphere + IBATIS

 

Hi, 

 

 

I'm using WebSphere Application Server v6.0 with EJB 2 container. 

 

I wrote Stateless Session Bean and trying to make an update in database
DB2 through IBATIS. 

In SqlMapConfig.xml I have this transaction statement

 

<transactionManager type="EXTERNAL">

       <dataSource type="JNDI">

                  <property name="DataSource"
value="java:comp/env/jdbc/dbDS" />

       </dataSource>

</transactionManager>

 

And after ejb's method execution I have this exception (see below)

But in JNDI I have the name java:/comp/env/jdbc/dbDS

 

java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is: 
         java.rmi.RemoteException: ; nested exception is: 
         java.lang.ExceptionInInitializerError
         at
com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.
java:162)
         at
com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:
684)
         at javax.rmi.CORBA.Util.wrapException(Util.java:296)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: java.rmi.RemoteException: ; nested exception is: 
         java.lang.ExceptionInInitializerError
         at java.lang.Class.initialize(Class.java:356)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: java.lang.ExceptionInInitializerError
         at java.lang.Class.initialize(Class.java:356)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
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 comp/env/jta not found in
context "java:".
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:84)
         at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapCli
entBuilder.java:62)
         at com.mydomain.data.SimpleExample.(SimpleExample.java:32)
         at java.lang.Class.initializeImpl(Native Method)
         at java.lang.Class.initialize(Class.java:350)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
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 comp/env/jta not found in
context "java:".
         at
com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:52)
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:81)
         at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapCli
entBuilder.java:62)
         at com.mydomain.data.SimpleExample.(SimpleExample.java:32)
         at java.lang.Class.initializeImpl(Native Method)
         at java.lang.Class.initialize(Class.java:350)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
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 comp/env/jta not found in
context "java:".
         at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:11
3)
         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)
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:81)
         at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapCli
entBuilder.java:62)
         at com.mydomain.data.SimpleExample.(SimpleExample.java:32)
         at java.lang.Class.initializeImpl(Native Method)
         at java.lang.Class.initialize(Class.java:350)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error
configuring JndiDataSourceDaoTransactionPool. Cause:
javax.naming.NameNotFoundException: Name comp/env/jta not found in
context "java:".
         at
com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory.initialize(Jnd
iDataSourceFactory.java:60)
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMap
ConfigParser.java:318)
         at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:11
1)
         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)
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:81)
         at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapCli
entBuilder.java:62)
         at com.mydomain.data.SimpleExample.(SimpleExample.java:32)
         at java.lang.Class.initializeImpl(Native Method)
         at java.lang.Class.initialize(Class.java:350)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: javax.naming.NameNotFoundException: Name comp/env/jta not
found in context "java:".
         at
com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1
716)
         at
com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1062)
         at
com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:985)
         at
com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1263
)
         at
com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java
:198)
         at
com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java
:139)
         at javax.naming.InitialContext.lookup(InitialContext.java:361)
         at
com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory.initialize(Jnd
iDataSourceFactory.java:48)
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMap
ConfigParser.java:318)
         at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:11
1)
         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)
         at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:81)
         at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapCli
entBuilder.java:62)
         at com.mydomain.data.SimpleExample.(SimpleExample.java:32)
         at java.lang.Class.initializeImpl(Native Method)
         at java.lang.Class.initialize(Class.java:350)
         at
com.mydomain.sessionbean.IBatisFacadeBean.insertAccounts(IBatisFacadeBea
n.java:62)
         at
com.mydomain.sessionbean.EJSRemoteStatelessIBatisFacade_24809d5b.insertA
ccounts(EJSRemoteStatelessIBatisFacade_24809d5b.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
         at
java.security.AccessController.doPrivileged(AccessController.java:189)
         at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
         at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
         at $Proxy1.insertAccounts(Unknown Source)
         at
com.mydomain.sessionbean._IBatisFacade_Stub.insertAccounts(_IBatisFacade
_Stub.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:65)
         at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
         at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja
va:1212)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap
per.java:629)
         at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheS
ervletWrapper.java:80)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:165
7)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7
7)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio
n(HttpInboundLink.java:421)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio
n(HttpInboundLink.java:367)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpIC
LReadCallback.java:94)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueMa
nager.java:548)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.
java:601)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.
java:934)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager
.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

 


Mime
View raw message