On Mon, 28 May 2001, ALex Loubyansky wrote:
> Thank you!
>
> My problem begins with
>
> [JAWS] Initializing JAWS plugin for FriendBean
> [JAWS] Loading standardjaws.xml :
> file:/C:/JBoss-2.2.1_Tomcat-3.2.1/jboss/conf/tomcat/standardjaws.xml
> [JAWS] Table 'FriendBean' already exists
> [Container factory] Binding an EJBReference friend/Friend
> [Container factory] Binding friend/Friend to internal JNDI source:
> edays.ejbs.FriendBean
> [Container factory] org.jboss.ejb.DeploymentException: Bean
> edays.ejbs.FriendBean not found within this application. !!!! i can't
> understand it
I checked your XML files in light of this and as far as I can tell the
problem is your ejb-link statement in the ejb-jar.xml file. The ejb-jar
1.1 DTD has the following to say about ejb-link tags:
<quote>
The value of the ejb-link element must be the ejb-name of an enterprise
bean in the same ejb-jar file, or in another ejb-jar file in the same
J2EE application unit.
</quote>
You have specified the class name instead of the bean name in you ejb-link
tag. It should read FriendBean instead of edays.ejbs.FriendBean.
It is perhaps a good idea to prefix bean names with ejb/, such as
ejb/FooBean, to help reduce confusion when there are a whole lotta names
that all look like FooBean (classes, bean names, jndi names and whatnot).
That would also place them in the "standard" JNDI context
java:comp/env/ejb/.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Per Lewau
> Sent: Monday, May 28, 2001 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ejb deploying
>
>
>
> On Mon, 28 May 2001, ALex Loubyansky wrote:
>
> > hello
> >
> > i have a project with war components only. it works well. i wrote two
> > simple ejbs, compiled them and created ejb-jar-ic.jar file with ejbs'
> class
> > files, META-INF\ejb-jar.xml, META-INF\jboss.xml and META-INF\manifest.mf,
> > and chaged application.xml file.
> >
> > now i can't deploy my application. could someone help me, please?
>
> We might if you tell us what the problem is. What happens when you try to
> deploy? What does the log say? Are there any stack traces?
>
> [Various XML files snipped]
>
>
> -----------------------------------------------------------------------
> Per Lewau ([EMAIL PROTECTED])
>
> "Why waste time learning, when ignorance is instantaneous?"
> - Hobbes
>
>
> _______________________________________________
> 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
>
-----------------------------------------------------------------------
Per Lewau ([EMAIL PROTECTED])
"Why waste time learning, when ignorance is instantaneous?"
- Hobbes
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user