Javax.naming.NameNotFoundException: SessionEJBBean not found

Please help I am getting error: javax.naming.NameNotFoundException: SessionEJBBean not found.
I am using JDeveloper 10g as editor.
The embedded server is running, SessionEJBBean is also there. I have restarted the computer, changed 'SessionEJB' from 'SessionEJBBean'. Yet No success. This is what I get.:
javax.naming.NameNotFoundException: SessionEJBBean not found
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at friends.SessionEJBClient.main(SessionEJBClient.java:11)
Process exited with exit code 0.
SessionEJBClient.java
package friends;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class SessionEJBClient {
public static void main(String [] args) {
try {
final Context context = getInitialContext();
SessionEJB sessionEJB = (SessionEJB)context.lookup("SessionEJBBean");
} catch (Exception ex) {
ex.printStackTrace();
private static Context getInitialContext() throws NamingException {
// Get InitialContext for Embedded OC4J
// The embedded server must be running for lookups to succeed.
return new InitialContext();
}Thank you.

Thanks Karma-9 for your reply. My issue has got resolved as I followed this link:
http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_ejb_30/ejb_30.htm
However I have now new problem in hand, when I am trying to insert data in database
using JSP. I am having problem with request.getParameter(). It is not
recognised by JSP. A red underline is being shown below
request.getParameter(). One more thing, in JSP page, if I take cursor over
'request' in request.getParameter, it shows, 'Name request not found'. When
I take cursor over 'getParameter' in request.getParameter, it shows, 'Method
getParameter (java.lang.String) not found in<unknown>'.
This is my code:
MyPage.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="java.sql.*, javax.naming.Context,
javax.naming.InitialContext, javax.naming.NamingException,
friendspackage.*, java.text.*, java.util.*"%>
<%!
public void jspInit () {
String name, city;
name = request.getParameter("name");
city = request.getParameter("city");
try {
final Context context = getInitialContext();
SessionFriends sessionFriends =
(SessionFriends)context.lookup("SessionFriends");
sessionFriends.addFriends("name","city");
//System.out.println( "Success" );
} catch (Exception ex) {
ex.printStackTrace();
private static Context getInitialContext() throws NamingException {
// Get InitialContext for Embedded OC4J
// The embedded server must be running for lookups to succeed.
return new InitialContext();
%>MyPage.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"></meta>
<title>My Friends</title>
</head>
<body>
<form name="MyFriends" action="MyFriends.jsp" method="post">
Name:
<input type="text" name="name">
City:
<input type="text" name="city">
<input type="submit" value="Submit">
</form>
</body>
</html>Please let me know if I have to make any changes in web.xml which is:
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee">
<description>Empty web.xml file for Web Application</description>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
</web-app>Thank you again.
Anurag

Similar Messages

  • Javax.naming.NameNotFoundException: UserBeanRef not found

    Can someone help me out ?
    I am still new using Sun Application Server provided with J2EE 1.4 SDK and accessing Oracle.
    I am getting "javax.naming.NameNotFoundException: UserBeanRef not found"
    This is taken from the ejb-jar.xml of my enterpise bean jar file
    <ejb-local-ref>
    <ejb-ref-name>UserBeanRef</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>LocalUserHome</local-home>
    <local>LocalUser</local>
    <ejb-link>UserBean</ejb-link>
    </ejb-local-ref>
    ... and this is the code I am using to invoke (trying actually) the bean
    InitialContext ic = new InitialContext();
    Object o = ic.lookup("UserBeanRef");
    LocalUserHome home = (LocalUserHome) o;
    user = home.findByPrimaryKey(username);
    I can't understand what's wrong with this ?? any suggestions please

    use the following code for the lookup:
    Object o = ic.lookup("java:comp/env/UserBeanRef");

  • Javax.naming.NameNotFoundException: Bean not found

    HI,
    we are getting javax.naming.NameNotFoundException: Bean not found exception often, it is not so frequent but it is consistent
    javax.naming.NameNotFoundException: Bean not found
         at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:256)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:196)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.xxxxx.yyyyy.framework.jndi.EJBLocator.lookup(Unknown Source)
         at com.xxxxx.yyyyy.managed.MBean.releaseAllLocks(Unknown Source)
         at com.xxxxx.yyyyy.managed.MenuBean.clearAllEnqueue(Unknown Source)
         at com.xxxxx.yyyyy.managed.MenuBean.resources(Unknown Source)
         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 com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:95)
         at javax.faces.component.UICommand.broadcast(UICommand.java:383)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
         at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at com.xxxxx.yyyyy.filter.DWRLoginFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at com.xxxxx.wtf.yyyyy.yyyyy.doFilter(WssoLiteLogonFilter.java:260)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    any help is highly appreciated

    Hi.
    Do you use remote invocation in same application or EJB module? Look [http://forums.sun.com/thread.jspa?threadID=5405443] - some notes about bean referencing

  • Struts javax.naming.NameNotFoundException: name not found

    Hi.
    I'm developing a my first struts web application an I'm getting: javax.naming.NameNotFoundException: control_seguros not found
    This is my META -INF/context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/control_seguros">
    <Resource auth="Container" driverClassName="org.postgresql.Driver" name="jdbc/control_seguros" password="seguros" type="javax.sql.DataSource" url="jdbc:postgresql://localhost/control_seguros" username="seguros"/>
    </Context>
    web.xml
    <resource-ref>
    <description>Conexión Base de Datos</description>
    <res-ref-name>jdbc/control_seguros</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    action code
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    // Look up our data source
    DataSource ds = (DataSource) envCtx.lookup("jdbc/control_seguros");
    // Allocate and use a connection from the pool
    Connection conn = ds.getConnection();
    conn.close();
    How can i solve this? I'm using Glassfish v3 prelude. One more thing: i'm not sure if it's relevant, but i create meta-inf folder and content.xml manually. I'd like to know how the application determinates that the database connection settings are in this xml.

    1. To use local interfaces in Glassfish your client & bean must be in same EAR or EJB module.
    2. @Sateless(name=) it's only the name of bean and in fact the bean interface is stored under different name then processPayment, it can be something like
    packege.className.
    3. I assume that you can't use EJB annotation is servlet.
    4. If indeed you need to use lookup, you need perform following steps (only in Glassfish context).
    a) if you are in same EAR as servlet use in web.xml resource ref like in following eg.
        <ejb-local-ref>
            <ejb-ref-name>Custom name, this name you will use in WAR</ejb-ref-name> <!---->
            <ejb-ref-type>Session</ejb-ref-type>
            <local-home/> <!-- Beans are homeles ->
            <local>eu.softper.aleksandra.ewidencje.book.BookLocal</local> <!-- Your's bean local interface -->
            <ejb-link>Your bean name - here</ejb-link>
        </ejb-local-ref>b)if outside EAR you need to use server specific deployment, if server allows to pass local ref outside application. Glassfish does not.

  • Javax.naming.NameNotFoundException: CartBean not found

    I follow step by step the example from the tutorial chapter 25 " Session Bean Examples" and I get "javax.naming.NameNotFoundException: CartBean not found ....." after I run "appclient -client CartAppClient.jar" from my window terminal.
    I built the application and the client correctly What do I get this error?
    Thanks

    I am also having the same problem, using SJS AppServer 8.1. I followed all the instruction from the tutorial but got the following after running the client:
    ========================================================
    Caught an unexpected exception!
    javax.naming.NameNotFoundException: CartBean not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:185)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:157)
    at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:101)
    at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
    ========================================================
    Does anyone know why the CartBean could not be found after setting the JNDI name and the EJB ref for the Client?
    Thanks and regards.

  • Javax.naming.NameNotFoundException: jdbc not bound

    Hi !
    I've a application deployed with JBoss 4.0.2 Solaris 2.8, I've create a Oracle DS, when I try to read data from a database throw DS works fine, but when I try to insert, delete or update records from database the jboss show the next error.
    2005-09-07 09:17:55,662 ERROR [org.jboss.ejb.plugins.LogInterceptor] Transaction
    RolledbackLocalException in method: public abstract int com.soluzionasf.arqw10.g
    c.cmp.OracleSequenceSessionLocal.getNextSequenceNumber(java.lang.String) throws
    javax.ejb.FinderException, causedBy:
    javax.naming.NameNotFoundException: jdbc not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:249)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.soluzionasf.arqw10.gc.cmp.OracleSequenceSessionBean.getConnection
    (OracleSequenceSessionBean.java:76)
    at com.soluzionasf.arqw10.gc.cmp.OracleSequenceSessionBean.getNextSequen
    ceNumber(OracleSequenceSessionBean.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
    tatelessSessionContainer.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:185)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
    elessSessionInstanceInterceptor.java:130)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(Service
    EndpointInterceptor.java:51)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:105)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    66)
    This is my DS definition
    <?xml version="1.0" encoding="UTF-8"?>
    <local-tx-datasource>
    <jndi-name>jdbc/OracleDS</jndi-name>
    <connection-url>jdbc:oracle:thin:@10.98.10.42:1532:orcl28</connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>evo_adminis</user-name>
    evo_adminis1
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
    <type-mapping>Oracle9i</type-mapping>
    </local-tx-datasource>
    Who knows the solutions for my problem
    Thanks for advance

    Could be that your EJB is connected to a wrong datasource called only "jdbc"?
    Strangely you say that while reading data all works fine (so the datasource definition is ok) but only when writing data there is a NamingException.
    The stacktrace seems to report an error while getting datasource reference inside com.soluzionasf.arqw10.gc.cmp.OracleSequenceSessionLocal.getNextSequenceNumber method, the problems seems to be a bad name resource name ("jdbc" instead of java:jdbc/OracleDS or java:comp/env/jdbc/OracleDS if you use resource reference in your web.xml file). If you created this class as a CMP perhaps you misstype the right datasource name, otherwise if you code this method by yourseft you misstype the naming reference.

  • Javax.naming.NameNotFoundException: comp not bound

    When i try to deploy the following error message.. pls help
    Hii all..I am facing some problems with eclipse.If any one know waht the problem is pls help me..
    i cant bulid the work space completely as i get out of memory error continuously. i use 1GB Ram, and my vmargs is "eclipse.exe -vmargs -Duser.language=en -Xms128M -Xmx1024M -XX:PermSize=64M -XX:MaxPermSize=1024M"
    just after the error the building process continues and "successfully built" message is shown ( though i dont know whether it is successful or not and in problem listing it only warnings are shown).
    When i start jboss server i get the error javax.naming.NameNotFoundException: comp not bound
    i have included full server log,
    waiting for your help.
    org.jboss.deployment.DeploymentInfo@bed157bf { url=file:/D:/jboss-4.0.2/server/default/deploy/IA.ear/UTILEJB.jar/ }
    deployer: null
    status: Starting
    state: START_SUBDEPLOYMENTS
    watch: file:/D:/jboss-4.0.2/server/default/deploy/IA.ear/UTILEJB.jar/
    altDD: null
    lastDeployed: 1233122716687
    lastModified: 1233122621468
    mbeans:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@5d7b9e6e { url=file:/D:/jboss-4.0.2/server/default/deploy/jboss-ws4ee.sar/jboss-ws4ee.war }
    deployer: org.jboss.web.tomcat.tc5.Tomcat5@174aa60
    status: Deployment FAILED reason: {color:#ff0000}*Error during deploy; - nested throwable: (javax.naming.NameNotFoundException: comp not bound)*{color}
    state: FAILED
    watch: file:/D:/jboss-4.0.2/server/default/deploy/jboss-ws4ee.sar/jboss-ws4ee.war
    altDD: null
    lastDeployed: 1233122713125
    lastModified: 1233122713078
    mbeans:
    Edited by: DEVISARASWATHI on Jan 28, 2009 12:49 AM
    Edited by: DEVISARASWATHI on Jan 28, 2009 1:20 AM

    When i try to deploy the following error message.. pls help
    Hii all..I am facing some problems with eclipse.If any one know waht the problem is pls help me..
    i cant bulid the work space completely as i get out of memory error continuously. i use 1GB Ram, and my vmargs is "eclipse.exe -vmargs -Duser.language=en -Xms128M -Xmx1024M -XX:PermSize=64M -XX:MaxPermSize=1024M"
    just after the error the building process continues and "successfully built" message is shown ( though i dont know whether it is successful or not and in problem listing it only warnings are shown).
    When i start jboss server i get the error javax.naming.NameNotFoundException: comp not bound
    i have included full server log,
    waiting for your help.
    org.jboss.deployment.DeploymentInfo@bed157bf { url=file:/D:/jboss-4.0.2/server/default/deploy/IA.ear/UTILEJB.jar/ }
    deployer: null
    status: Starting
    state: START_SUBDEPLOYMENTS
    watch: file:/D:/jboss-4.0.2/server/default/deploy/IA.ear/UTILEJB.jar/
    altDD: null
    lastDeployed: 1233122716687
    lastModified: 1233122621468
    mbeans:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@5d7b9e6e { url=file:/D:/jboss-4.0.2/server/default/deploy/jboss-ws4ee.sar/jboss-ws4ee.war }
    deployer: org.jboss.web.tomcat.tc5.Tomcat5@174aa60
    status: Deployment FAILED reason: {color:#ff0000}*Error during deploy; - nested throwable: (javax.naming.NameNotFoundException: comp not bound)*{color}
    state: FAILED
    watch: file:/D:/jboss-4.0.2/server/default/deploy/jboss-ws4ee.sar/jboss-ws4ee.war
    altDD: null
    lastDeployed: 1233122713125
    lastModified: 1233122713078
    mbeans:
    Edited by: DEVISARASWATHI on Jan 28, 2009 12:49 AM
    Edited by: DEVISARASWATHI on Jan 28, 2009 1:20 AM

  • Javax.naming.NameNotFoundException: service not bound

    hi
    i am trying to access web services using JNDI lookup.
    this is my client code snippet
    ctx=new InitialContext();
                   //customerSessionRemote remote=(customerSessionRemote)ctx.lookup("customer/remote");
                   Service service=(Service)ctx.lookup("java:comp/env/service/CustomerRegisteration");
                   try {
                        EndpointInterface port = (EndpointInterface)service.getPort(EndpointInterface.class);
                        String user=port.validateUser(getUserName(), getPassword());
                        System.out.println(user);
                   } catch (ServiceException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but i am getting following error,
    javax.naming.NameNotFoundException: service not bound
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
    17:55:56,468 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
    17:55:56,484 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
    17:55:56,484 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    17:55:56,484 ERROR [STDERR]      at javax.naming.InitialContext.lookup(InitialContext.java:351)
    17:55:56,484 ERROR [STDERR]      at client.UserBean.loginUser(UserBean.java:125)
    17:55:56,484 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    17:55:56,484 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    17:55:56,484 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    17:55:56,484 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:585)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    17:55:56,484 ERROR [STDERR]      at javax.faces.component.UICommand.broadcast(UICommand.java:312)
    17:55:56,484 ERROR [STDERR]      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    17:55:56,484 ERROR [STDERR]      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    17:55:56,484 ERROR [STDERR]      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    17:55:56,484 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    17:55:56,484 ERROR [STDERR]      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    17:55:56,484 ERROR [STDERR]      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    17:55:56,484 ERROR [STDERR]      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    17:55:56,484 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:595)
    please help me in resolving this

    hi
    As i am exposing ejb3 components as web servcices there is no deployment descriptor files.its based on annotation.Even i am developing enterprise applicatoin.I am using Jboss app server.
    only 2 xml files are there,
    persistence.xml and web.xml
    should i need to post any other file?
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>AccountListServlet</servlet-name>
    <servlet-class>client.AccountListServlet</servlet-class>
    </servlet>
    <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>accountDetailServlet</servlet-name>
    <servlet-class>client.accountDetailServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>AccountListServlet</servlet-name>
    <url-pattern>/AccountListServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>accountDetailServlet</servlet-name>
    <url-pattern>/accountDetailServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
         <persistence-unit name="customer" transaction-type="JTA">
              <jta-data-source>java:/MSSqlDS</jta-data-source>
              <properties>
         <property name="hibernate.hbm2ddl.auto" value="update" />
         <property name="hibernate.show_sql" value="true" />
         <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect" />
         </properties>
         </persistence-unit>
    </persistence>
    could u tell me where i went wrong?

  • Javax.naming.NameNotFoundException: ConnectionFactory not bound

    Hi,
    Is there any one who has any idea about this error. Im getting this while migrating application from JBOSS 4 - JBOSS 5. What could be the approach to resolve it.
    javax.naming.NameNotFoundException: ConnectionFactory not bound
    Regards,
    Gurpreet

    Better posting this in a JBoss forum. It seems like a configuration with how you are using JNDI. Look to see what they changed from JBoss4 to JBoss5. You might need to modify or create some xml files.

  • Javax.naming.NameNotFoundException: MySession not bound

    I was new to JBoss.
    I was Using JBoss 4.0. with eclipse 3.0 and lomboz3.0
    While executing my client program it is showing me the following error.
    javax.naming.NameNotFoundException: MySession not bound
         at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
         at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
         at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
         at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
         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:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
         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:133)
         at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at test.Client2.getHome(Client2.java:25)
         at test.Client2.testBean(Client2.java:47)
         at test.Client2.main(Client2.java:67)
    It is Very urgent please help me.
    regards
    shenais

    maybe you havent deployed it ?
    :-)

  • Exception - javax.naming.NameNotFoundException: HelloHome not bound

    Hi Friends
    I deployed the ejb jar file successfully in JBOSS app server in "jboss-4.0.3RC1\server\default\deploy\". But when I run the client file (compiled successfully) displays the following exception :-
    Exception in thread "main" javax.naming.NameNotFoundException: HelloHome not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
    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 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:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    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:610)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at HelloClientNew.main(HelloClientNew.java:17)
    My HelloClient.java file code is :-
    import examples.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Properties;
    public class HelloClientNew
         public static void main(String args[]) throws Exception
              Properties env = new Properties();
              env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
              env.setProperty("java.naming.provider.url","jnp://localhost:1099");
              env.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
              Context ctx=new InitialContext(env);
              Object obj=ctx.lookup("HelloHome");
              HelloHome home=(HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
              Hello hello=home.create();
              System.out.println(hello.hello());
              hello.remove();
    The package "examples" contains - Hello,HelloHome,HelloLocal,HelloLocalHome and HelloBean source and class files.
    I tried a lot but still am stuck to this problem. If anybody can tell me the solution then I will be very thankful to him.
    Thanks
    Bhoopender

    Please provide me solution for this .I am also facing the same problem.
    javax.naming.NameNotFoundException: HelloBean 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.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at com.logica.Client.main(Client.java:18)
    public class Client {
    public static void main(String a[]){
         try{
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
              env.put(Context.PROVIDER_URL,"localhost");
              env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
              Context ctx=new InitialContext(env);
              System.out.println("dfhdf"+ctx);
              Object O=ctx.lookup("HelloBean");
              //System.out.println("dafjhda"+O);
              CartHome cart=(CartHome)O;
              CartRemote Rem=cart.Create();
              CartRemote Rem1=cart.Create("99");
              Rem.addBook("java1");
              Rem.addBook("java2");
              Rem1.addBook("C1");
              Rem1.addBook("C2");
              System.out.println("Details"+Rem.ShowAllBooks());
              System.out.println("Details1"+Rem.placeOrder());
              System.out.println("Details2"+Rem1.ShowAllBooks());
              System.out.println("Details djfj"+Rem1.placeOrder());
         catch (Exception e) {
    e.printStackTrace()     ;
    Thanks,
    Krishnakumar

  • Javax.naming.NameNotFoundException: TicketRegistryCache 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 org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
         at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
         at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:86)
         at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
         at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
         at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:225)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:114)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:801)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:592)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:392)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:225)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:114)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:801)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:592)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:392)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:254)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
         at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
         at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
         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:597)
         at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
         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:597)
         at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
         at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
         at org.jboss.web.WebModule.startModule(WebModule.java:83)
         at org.jboss.web.WebModule.startService(WebModule.java:61)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy44.start(Unknown Source)
         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
         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:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
         at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
         at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy45.start(Unknown Source)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
         at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy9.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
         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:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy5.deploy(Unknown Source)
         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
         at org.jboss.Main.boot(Main.java:200)
         at org.jboss.Main$1.run(Main.java:508)
         at java.lang.Thread.run(Thread.java:619)
    while deployment i got the exception like this can any body solve this problem while deployment i am unable to bind the ticket registry cache jndi to jboss server
    can any body suggest me the solution,where to bind and in which location we have to bind in jboss
    Thanks in advance
    regards,
    rajshekhar

    1. are you sure "HelloBean" is the actual JNDI name of the bean? Jboss has a JMX interface with a "jndiView" application built in which you can use to see the entire JNDI namespace, so you can check what the names of your EJBs are.
    2. you cannot do a local lookup from a client application. Look into remote EJB lookups.

  • Javax.naming.NameNotFoundException: name not bound

    Hi,
    Here is the Servlet code
    Context context = null;
              try {
                   context = new InitialContext();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              ProcessPaymentLocal local = null;
              try {
                   local = (ProcessPaymentLocal)context.lookup("processPayment");
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              PrintWriter writer = response.getWriter();
              writer .println("<html>");
              writer.println("<body>");
              writer.println("Done!!!!"+" "+local.byCash(100));
              writer.println("</body>");
              writer.println("</html>");
              writer.close();
    lookUp is giving the exception
    Here is the EJB:
    @Stateless(name="processPayment")
    public class ProcessPayment implements ProcessPaymentLocal {
         @PersistenceContext(unitName="JPA")
         EntityManager manager;
         @Override
         public boolean byCash(double amount) {
              // TODO Auto-generated method stub
              return processPayment(amount,"cash");
         @Override
         public boolean byCheck(double amount) {
              // TODO Auto-generated method stub
              return processPayment(amount,"check");
         @Override
         public boolean byCredit(double amount) {
              // TODO Auto-generated method stub
              return processPayment(amount,"credit");
         public boolean processPayment(double amount, String paymentMode){
              PaymentEntity entity = new PaymentEntity();
              entity.setAmount(amount);
              entity.setPaymentMode(paymentMode);
              manager.persist(entity);
              return true;
    Any help? Anything wrong with the initial context... I'm using a local interface

    1. To use local interfaces in Glassfish your client & bean must be in same EAR or EJB module.
    2. @Sateless(name=) it's only the name of bean and in fact the bean interface is stored under different name then processPayment, it can be something like
    packege.className.
    3. I assume that you can't use EJB annotation is servlet.
    4. If indeed you need to use lookup, you need perform following steps (only in Glassfish context).
    a) if you are in same EAR as servlet use in web.xml resource ref like in following eg.
        <ejb-local-ref>
            <ejb-ref-name>Custom name, this name you will use in WAR</ejb-ref-name> <!---->
            <ejb-ref-type>Session</ejb-ref-type>
            <local-home/> <!-- Beans are homeles ->
            <local>eu.softper.aleksandra.ewidencje.book.BookLocal</local> <!-- Your's bean local interface -->
            <ejb-link>Your bean name - here</ejb-link>
        </ejb-local-ref>b)if outside EAR you need to use server specific deployment, if server allows to pass local ref outside application. Glassfish does not.

  • [b]EJB unable to find my Home interface-javax.naming.NameNotFoundException[

    I am pretty new to J2ee so help me out with these basics
    I had deployed my application at college which worked exactly but when I deployed it at my home, it got deployed well but its returning a error message when create is called. Also i had used mssql for jdbc connection but haven't set the j2ee_classpath, pls help me how to find jdbc drivers .jar file. Does j2ee_classpath has anything to do with my error.All other paths are intact.
    Help me soon, i have to hurry up my proj...
    Advanced Thanks To Your Good Heart.
    - Suresh Kumar.R
    coding snippet -->****Down
         public AccountBean()
              try
                   Context ic=new InitialContext();
                   java.lang.Object objref=ic.lookup("java:comp/env/ejb/Account");
                   accountHome=(AcHome)PortableRemoteObject.narrow(objref,AcHome.class);
              catch(Exception re)
                   System.err.println("Couldn't locate Account Home");
                   re.printStackTrace();
              reset();
    ********Error :********
    Couldn't locate Account Home
    javax.naming.NameNotFoundException: Account not found
    <<no stack trace available>>ack trace available>>

    yes Everything you say is right in my prog. but it still does n't works.
    i haven't set my j2ee_classpath & does it have anything to do with my error.
    if so, where to find the drivers(MS-SQL) .jar file.
    Thank You for Your reply
    -Suresh Kumar.R

  • OC4J Configuration - javax.naming.NameNotFoundException

    Here is a description of the problem we are having:
    The Problem
         We have a remote client that wishes to invoke services
    that we are
    going to provide. These services will be accessible via a JNDI
    lookup from
    the client's JVM. The client, is operating in a JRE, version
    1.2.2, but is
    an in-house Java Server Engine (developed before the Servlet API
    specification) and not a command line client application. It is
    desirable to
    do a simple JNDI lookup from the RMIInitialContext and gain
    access to the
    services (Home Interface). Attached is a demonstration of a
    client
    application doing a lookup against the deployment shown below
    (orion-ejb-jar.xml ). Notice the name of the service in the
    lookup on the
    client application are exactly the same as the location
    declaration of the
    session deployment element of the orion-ejb-jar.xml. The service
    (EJB, not
    attached) was deployed without any errors. The exception we are
    getting is:
    Exception in thread "main" javax.naming.NameNotFoundException:
    DAServicesDemo not found
    at com.evermind.server.rmi.RMIContext.lookup
    (RMIContext.java:121)
    at javax.naming.InitialContext.lookup
    (InitialContext.java:350)
    at test.RemoteServiceClient.main
    (RemoteServiceClient.java:26)
         The RMI server has been configured with the default
    settings, and is
    listening on port 8474
    The Source
    package test;
    import ORG.oclc.da.beans.*;
    import javax.naming.*;
    import java.util.*;
    import java.rmi.*;
    import javax.ejb.*;
    public class RemoteServiceClient
         public static void main(String[] args)
         throws NamingException, CreateException,
    RemoteException,
    Exception{
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.evermind.server.rmi.RMIInitialContextFactory");
    h.put
    (Context.PROVIDER_URL, "ormi://risc14.dev.oclc.org:8474");
    InitialContext context = new InitialContext(h);
    DAServicesDemoHome remoteServiceHome =
    (DAServicesDemoHome) (new
    InitialContext(h)).lookup("DAServicesDemo");
    DAServicesDemo remoteService =
    (DAServicesDemo)remoteServiceHome.create();
    System.out.println("Here it is: " +
    remoteService.getContentGroup());
    C_DemoServices remoteService = new C_DemoServices();
    String result = remoteService.getContentGroup();
    System.out.println("This is the result form the remote
    service: " +
    result);
    EJB-jar.xml
    <ejb-jar>
    <description>
    Proof of concept application for the integration of DA to
    CORC
    </description>
    <display-name>Digital Archive Remote Services</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>DAServicesDemo</ejb-name>
    <home>ORG.oclc.da.beans.DAServicesDemoHome</home>
    <remote>ORG.oclc.da.beans.DAServicesDemo</remote>
    <ejb-class>ORG.oclc.da.beans.DAServicesDemoBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>DAServicesDemo</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Orion-ejb.jar
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-
    time="ea2215b915">
         <enterprise-beans>
              <session-deployment name="DAServicesDemo"
    location="DAServicesDemo"
    wrapper="DAServicesDemoHome_StatelessSessionHomeWrapper1"
    timeout="1800"
    persistence-filename="DAServicesDemo" />
         </enterprise-beans>
         <assembly-descriptor>
              <default-method-access>
                   <security-role-mapping
    name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
              </default-method-access>
         </assembly-descriptor>
    </orion-ejb-jar>
    Any help would be greatly appreciated, thanks in advanced...

    Hi Jonathan,
    If I understand you correctly, you are trying to access an EJB in
    OC4J from a separate, external JVM. If that is correct, then, in
    order to achieve that, the (EJB) home interface "stub" class must
    be located in the client's JVM. Unfortunately, I haven't figured
    out how to do that, and therefore, as far as I can see, the only
    two client options available are:
    1. Web-based client -- servlet or JSP
    2. Application client -- standalone java application.
    However, for both options, the client must also be deployed to
    OC4J. I don't know how to obtain "stub" classes generated by OC4J
    so that I can give external clients access to them.
    According to the J2EE spec, application clients need to be run
    within containers, too -- albeit thin containers. I presume that
    means you need 2 instances of OC4J running -- one for the server
    and one for the client. Seems a bit "heavy" to me, so for now I'm
    going with the web-based (servlet) client and having external
    java classes communicate with the servlet.
    Hope this has been of assistance to you,
    Avi.

Maybe you are looking for

  • Illustrator file not continusely rasterizing

    I have a bitmap (2075 x 1556)  I Image Traced into a vecor image in Illustrator CC and then brought that into After Effects CC, I put it in a layer and turn on the little sun icon on the layer to continusely rasterize, but when I zoom in on the layer

  • Image Not Loading

    I am trying to load an RSS feed into my flash application, which gives the URL of an image I want to load. This script works fine locally, but when I upload to my server (goDaddy deluxe hosting) the images won't load. Here is the URL: http://www.laur

  • Please help me on following Queries on Web-IC)

    Hi CRM Experts, Please help me on following queries... 1)How to enter data in ERP-Sales order in IC-Web Client? 2)How to assign Sales areas in ERP-Sales order in IC-Web Client? 3)How to Activate Incompletion Log and Header details in ERP-Sales oder i

  • How To Edit Description???

    I have searched for this, and cannot find the answer, so I am hoping a post will help! When you have a TV Show or a Movie, there is a description that shows in the main library window, but I cannot find it anywhere to edit when I go to the info of th

  • Seagate 200 Gb HD replacement in iMac = 2 min. delay after wake up

    I replaced my factory Seagate 80Gb SATA (ST380013AS) with a 200 Gb SATA (ST3200827AS) hard drive. Ever since, my G5/1.8 GHz iMac freezes for two minutes after waking up. I've scoured Seagate's web site to see if I need to alter any settings, such as