Here is the error:

java.lang.ClassCastException: javax.naming.NameNotFoundException
        at
MyBeanHome_EntityHomeWrapper10.create(MyBeanHome_EntityHomeWrapper10.java:53
7)
        at tourney.web.TestServlet.createTourney(TestServlet.java:39)

Here is the code that causes the error(--> designates line 39):
        MyBeanHome mb is successfully created in the init method.

        Date now = new Date();
        MyBean m = null;

        try
        {
-->       m = mb.create("mbName", "mbUserName", "mbString", "mbType",
                "mbGName", "mbReportType", 2, 10, 0, "mbLater",
                now, now, now, now);
        }
        catch(Exception e)
        {
          Exception exception = e;
          PrintStream errorStream = System.err;
          exception.printStackTrace(errorStream);
        }

::::::::::::::
the create method's prototype:
create( String, String, String, String,
          String, String, int, int, float, String,
          Date, Date, Date, Date)

I have tried casting the create and many other things.  I don't understand
where the NameNotFoundException is coming from, the Home interface was
already found.  Any help would be appreciated.

--Carl


Reply via email to