Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Cannot create an EJB3 session bean with Eclipse 3.4.0
Cannot create an EJB3 session bean with Eclipse 3.4.0 [message #219869] Mon, 01 September 2008 13:00 Go to next message
dan man is currently offline dan man
Messages: 7
Registered: July 2009
Junior Member
I just installed Eclipse 3.4.0 with Jboss 4.0.5 and I was trying to create
my first session bean. I created the EJB project but when I tried to add a
session bean the Create EJB 3.0 Session Bean wizard will not show my EJB
project in the top drop down list of the window. I am stuck.
I tried, as someone suggested to create just a POJI and a POJO with the
appropriate annotations. The two files appear under my ejbModule but no
session bean. The build complains that An EJB module must contain one or
more enterprise beans. ejb-jar.xml MyEjbProject/build/classes/META-INF
line 5 XML Problem

No error in the code. It appears that Eclipse doesn't really think I have
a bean.
Can anybody help please? I am new to Eclipse and EJB.

Thanks.

Dan
Re: Cannot create an EJB3 session bean with Eclipse 3.4.0 [message #219891 is a reply to message #219869] Tue, 02 September 2008 04:35 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan Raev
Messages: 185
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hello Dan,

The root of the problem is that you use old version of JBoss. Version 4.0.5
supports J2EE up to spec level 1.4. It does not support Java EE 5. EJB 3 is
part of the Java EE 5 specification. Therefore, you have most probably
created an EJB 2.1 project targetted on JBoss 4.0.5. When you try to use the
EJB 3.0 Session Bean wizard, it will allow you to select only EJB 3.0
projects. You do not have such one and therefore you don't see it in the
drop-down.

Try using newer version of JBoss - 4.2 or later that supports Java EE 5.

Greetings,
Kaloyan

"dan man" <acasaman-a@yahoo.com> wrote in message
news:5cc266d18cb913398017224aa188ca03$1@www.eclipse.org...
>I just installed Eclipse 3.4.0 with Jboss 4.0.5 and I was trying to create
>my first session bean. I created the EJB project but when I tried to add a
>session bean the Create EJB 3.0 Session Bean wizard will not show my EJB
>project in the top drop down list of the window. I am stuck.
> I tried, as someone suggested to create just a POJI and a POJO with the
> appropriate annotations. The two files appear under my ejbModule but no
> session bean. The build complains that An EJB module must contain one or
> more enterprise beans. ejb-jar.xml MyEjbProject/build/classes/META-INF
> line 5 XML Problem
>
> No error in the code. It appears that Eclipse doesn't really think I have
> a bean.
> Can anybody help please? I am new to Eclipse and EJB.
>
> Thanks.
>
> Dan
>
Re: Cannot create an EJB3 session bean with Eclipse 3.4.0 [message #219930 is a reply to message #219891] Tue, 02 September 2008 12:01 Go to previous message
dan man is currently offline dan man
Messages: 7
Registered: July 2009
Junior Member
Hello Kaloyan,

You've been most helpful. That was the solution.
Thanks a lot.

Dan
Previous Topic:Re: Cannot create a session bean with Eclipse 3.4.0
Next Topic:Hot Code Replace
Goto Forum:
  


Current Time: Thu Aug 21 18:06:25 EDT 2014

Powered by FUDForum. Page generated in 0.01518 seconds