Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JBoss/WildFly
Search Coderanch
Advance search
Google search
Register / Login
Help coderanch get a
new server
by contributing to the
fundraiser
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
JBoss/WildFly
javax.naming.NameNotFoundException: javax.transaction.UserTransaction not bound
Kaustubh Patil
Ranch Hand
Posts: 164
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am getting the following exception when a bean is trying to lookup UserTransaction from the initial context
This is just part of the trace
javax.naming.NameNotFoundException: javax.transaction.UserTransaction not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) at org.jnp.server.NamingServer.getObject(NamingServer.java:543) at org.jnp.server.NamingServer.lookup(NamingServer.java:296) at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) at javax.naming.InitialContext.lookup(InitialContext.java:351) at xyx.abd.asdf.WrapperUserSessionBean.sessionLockCheckforExch(WrapperUserSessionBean.java:253)
and the code that looks up is
Context context = security.getInitialContext(); userTranExch = (javax.transaction.UserTransaction) context.lookup( "javax.transaction.UserTransaction");
When I list all the JNDI entries there is this entry
java:comp namespace of the WrapperUserSessionBean bean: +- UserTransaction (class: javax.transaction.UserTransaction) +- env (class: org.jnp.interfaces.NamingContext)
Kaustubh. Mumbai, India.
Peter Johnson
author
Posts: 5856
7
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Looks like you are using the full name for name for the class -
you should
be using the JNDI name instead:
... context.lookup("UserTransaction");
JBoss In Action
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JNDI question in JBoss environment
Does jboss bind to 0.0.0.0 on a non-clustered server ?
need help on log4j.properties
Problem deploying sample HelloWorld Bean in JBoss 4.2.1 GA
Question: ejb-ref with ejb3.0 and jboss-4.2.0.GA
More...