>>>>> "David" == David M Karr <[EMAIL PROTECTED]> writes:

    David> I'm trying to build and deploy the "CD" entity bean demo.  I've
    David> specifically typed in all the files manually, to "train my fingers",
    David> and allow me to run into my own mistakes.

    David> When I deploy the jar, I see the following:

    David> ----------------- [Auto deploy] Auto deploy of
    David> file:/C:/jboss-2.1/deploy/ejbtest.jar [J2EE Deployer Default]
    David> exception while searching deployment:
    David> C:\jboss-2.1\tmp\deploy\Default\ejbtest.jar\deployment.cfg (The
    David> system cannot find the file specified) [J2EE Deployer Default]

    David> org.jboss.ejb.DeploymentException: Bean com.web_tomorrow.cd.CDBean
    David> not found within this application.  [Container factory] at
    David> org.jboss.ejb.Container.setupEnvironment(Container.java:438)
    David> [Container factory] at
    David> org.jboss.ejb.Container.init(Container.java:298) -----------------

    David> There's two things that happen here.  The first is the failure to
    David> find the "deployment.cfg" file.  I haven't noticed a mention of that
    David> anywhere, so I don't know what it is (serialized object, perhaps?),
    David> or if it is important.

I'm going to guess this is a harmless error, and only happens until you first
successfully deploy an ejb jar.  Once I finally successfully deployed the jar,
that file was created, and I didn't get that error again when I redeployed.

    David> The second problem is that the "CDBean is not found ...".  What
    David> exactly does this error message mean?  The CDBean.class file is in
    David> the jar, and I do refer to the CDBean in the ejb-jar.xml and
    David> jboss.xml files.  How exactly do I troubleshoot that error message?

I figured this one out.  I had an "ejb-link" element, and I'd set the value as
the full class name instead of the bean name.

-- 
===================================================================
David M. Karr          ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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

Reply via email to