Hi Faisal, this was the same error I had at one stage.  I think that the
jboss-web.xml file your are using is not correct. The jndi name for the
ShoppingClientController is:

    <ejb-ref-name>ejb/scc</ejb-ref-name>
    <jndi-name>TheShoppingClientController</jndi-name>

However, this should be:

    <ejb-ref-name>ejb/scc/Scc</ejb-ref-name>
    <jndi-name>TheShoppingClientController</jndi-name>

The only problem is that I still get a general exception, but there is no
error message (ie no "ejb not bound").  My current error message is:

Server Error
null
Oops! Your request cannot be completed. The server got the following error.



com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException
        at
com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelMan
ager.java:130)
        at
com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl
.(ShoppingClientControllerWebImpl.java:65)
        at
com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest
(RequestProcessor.java:74)
        at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServl
et.java:111)
        at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j
ava:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Unknown Source)


Please notify the administrator. Thank you.


The thing that is confusing me is that the <jndi-name> tag in the
ejbruntime.xml and warruntime.xml files is:

        <jndi-name>estore/scc</jndi-name>

I don't know how this fits with the jndi-name in the jboss-web.xml.

I was about to try two things to find out what was going on.  Firstly, I am
going to put some debug in EJBUtil.java to try and find out exactly what
exception the code is now generating.  Secondly, I was going to change the
ejbruntime.xml and warruntime.xml files to have the same jndi name that is
in the jboss-web.xml file.  That is:

        <jndi-name>TheShoppingClientController</jndi-name>

If I find anything interesting I will let you know

Simon Moses,
EMAIL:  [EMAIL PROTECTED]




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Faisal
Abdallah
Sent: Friday, 22 June 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Petstore deployed on JBoss 2.2.* ??


hi
Me too I am having the same pb with ejb bounding :This is what I get so far
Server Error
ejb not bound
Oops! Your request cannot be completed. The server got the following error.



com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
ejb not bound
 at
com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelMan
ager.java:130)
 at
com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl
.(ShoppingClientControllerWebImpl.java:65)
 at
com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest
(RequestProcessor.java:74)
 at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServl
et.java:111)
 at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j
ava:98)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)


Please notify the administrator. Thank you.


Running on Jboss2.2.2


----- Original Message -----
From: "Simon Moses" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 3:58 AM
Subject: RE: [JBoss-user] Petstore deployed on JBoss 2.2.* ??


> Hi there Holten,
>
> I have been trying to get jps1.1.2 to work on JBoss2.2.1.  I currently
have
> a build of the jps that will deploy without errors.  However, I am having
> some jndi problems with one of the ejbs.  If you want further information
I
> could send you the modifications I have made.
>
>
> Cheers,
> Simon.
>
>
>
> Simon Moses,
> EMAIL:  [EMAIL PROTECTED]
>
>
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of hnorris
> Sent: Friday, 22 June 2001 7:40 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [JBoss-user] Petstore deployed on JBoss 2.2.* ??
>
>
> Hello -
>
> Has anybody successfully deployed the Petstore demo on versions of JBoss
> 2.2.* ?
>
> The JBoss web site deployment directions specify use of JBoss PRE 2.1 -
even
> though I used the patch, I was not able to get the demo to build using
JBoss
> 2.2.* because of missing security classes
> (org.jboss.security.SecurityAssociation,
org.jboss.security.SimplePrincipal,
> etc).  (In response to Simon Moses's reply I did have my relevant JBoss
and
> J2EE environment variables set for the purposes of the build.xml ant
> scripts)
>
> I'm interested in getting in touch with others might have worked around
> these problems or collaborating with you on solving them.  I'm assuming my
> build problems stem from not using JBoss PRE 2.1(?) since I can't even
> locate the missing security classes in any of the current JBoss jar
files...
>
> - Holten
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to