[jboss-user] [EJB 3.0] - EJB3 trailblazer stateless session did not bind on global JN
leonz11
do-not-reply at jboss.com
Wed May 2 17:29:29 EDT 2007
I build EJB3trailblazer and deploy on jboss 4.05 GA.
in the server log file, it seems deployed successfully
| 2007-05-02 16:01:32,518 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.0.5.GA/server/all/deploy/EJB3Trail.ear
|
But when I checked the global JNDI tree, i did not find the ear; only have web war.
when I called the caculate.jsp, it throws the error:
| 2007-05-02 16:07:12,876 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
|
the way I call the ejb is:
| try {
| InitialContext ctx = new InitialContext();
| cal = (Calculator) ctx.lookup(
| "EJB3Trail/Calculator");
| } catch (Exception e) {
| e.printStackTrace ();
| }
|
can sb tell where the problems are?
thanx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042643#4042643
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042643
More information about the jboss-user
mailing list