WebSphere Application Server - Re: Caused by: javax.naming.NameNotFoundException: Name "comp/UserTransaction&quo

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > August 2005 > Re: Caused by: javax.naming.NameNotFoundException: Name "comp/UserTransaction&quo





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Caused by: javax.naming.NameNotFoundException: Name "comp/UserTransaction&quo

2005-08-27, 5:51 pm

Swapn,

Were you able to resolve this issue, I am also having the same problem, this is a trivial thing, but unfortunately I couldn't figure out. Actually I was trying to configure hibernate config xml, I tried configuring usertransaction in web.xml. No luck. Act
ually I don't want this, I would like deploy my core business ear seperately which takes care of only back end functionality. I any case I am getting the following error for this code snippet.

public void testBean(){
System.out.println("Hello Bean");
try
{
InitialContext ic = new InitialContext();
UserTransaction ut = (UserTransaction)ic.lookup("java:comp/UserTransaction");
}
catch (Exception e)
{
e.printStackTrace();
}
}

I would really appreiciate if any one can help me in resolving this issue.

[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:".
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1021)
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:932)
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1261)
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:196)
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:137)
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
[8/27/05 15:38:16:734 EDT] 35bc1bea SystemErr R at com.ejb.facade.dept.DepartmentBean.testBean(DepartmentBean.java:32)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com