You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Kristian Rink <kr...@pm-planc.de> on 2006/02/22 19:19:28 UTC
geronimo, eclipse and javax.ejb?
Hi all,
not sure whether this is a stupid question, but reading across the
Geronimo docs hasn't yet helped me find what I'm looking for. Situation:
I'm trying to get started building a simple EJB application using
Eclipse 3.1, the recent Webtools plugin and Geronimo 1.0. Integrating
Geronimo into Eclipse works well, but whenever I try importing anything
from javax.ejb I'm just told that the package does not exist. Playing
around with the Eclipse project settings I added the openejb jars found
in GERONIMO_HOME/repository/openejb, but that didn't help much.
Am I missing something important? Do I have to download openejb or any
other libraries besides Geronimo to get things working with Eclipse?
TIA and best regards,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
can you paste me the .classpath from your ejbproject?
- sachin
On Feb 22, 2006, at 4:34 PM, Kristian Rink wrote:
> Sachin Patel schrieb:
>> Do a ctrl-shft-T, and search for one of the spec jars, SessionBean or
>> something, does it appear?
>
> No, none of them seem to be known to my IDE... :o
>
> Cheers,
> Kris
>
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
There will be one shortly.
- sachin
On Feb 27, 2006, at 10:56 AM, Lin Sun wrote:
> Hi Sachin,
>
> It is great to have WTP 1.0.1 and the Geronimo eclipse plugin 1.0
> released!
>
> One quick question, I visited the WTP 1.0.1 download page
> (http://download.eclipse.org/webtools/downloads/drops/
> R-1.0.1-200602171228/
> ) but I don't see the all-in-one package you mentioned below.
> Seems to me
> that users still have to install its prereqs (emf, GEF, EMF Model
> Runtime)
> one by one. Please advise.
>
> Thanks,
>
> Lin
>
> -----Original Message-----
> From: Sachin Patel [mailto:sppatel2@gmail.com]
> Sent: Thursday, February 23, 2006 11:08 AM
> To: user@geronimo.apache.org
> Subject: Re: geronimo, eclipse and javax.ejb?
>
> Use the following WTP 1.0.1 driver... http://download.eclipse.org/
> webtools/downloads/drops/M-M200602141429-200602141429/
>
> 1.0.1 should be out tommorow which will contain an all-in-one
> package, so you won't have to download the prereqs.
>
> - sachin
>
>
>
> On Feb 23, 2006, at 10:16 AM, Kristian Rink wrote:
>
>>
>> Hi Sachin;
>>
>> and again thanks for your hint. I also thought about the -clean
>> option,
>> but it also didn't do much to improve my situation. I'm currently
>> downloading eclipse 3.1.2 and will just start over installing the
>> recent
>> wtp and geronimo in order to see what happens then. Strange. :o
>>
>> Anyhow, thanks for your hints. :)
>> Cheers,
>> Kris
>>
>>
>> Sachin Patel schrieb:
>>> Try launching eclipse with the -clean parameter. Plugins are
>>> cached so
>>> in order for new plugins to be picked up you will need to use this
>>> param.
>>> - sachin
>>
>>
>> --
>> Kristian Rink -- Programmierung/Systembetreuung
>> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
>> 0176 24472771 * krink@pm-planc.de
>
RE: geronimo, eclipse and javax.ejb?
Posted by Lin Sun <li...@gmail.com>.
Hi Sachin,
It is great to have WTP 1.0.1 and the Geronimo eclipse plugin 1.0 released!
One quick question, I visited the WTP 1.0.1 download page
(http://download.eclipse.org/webtools/downloads/drops/R-1.0.1-200602171228/
) but I don't see the all-in-one package you mentioned below. Seems to me
that users still have to install its prereqs (emf, GEF, EMF Model Runtime)
one by one. Please advise.
Thanks,
Lin
-----Original Message-----
From: Sachin Patel [mailto:sppatel2@gmail.com]
Sent: Thursday, February 23, 2006 11:08 AM
To: user@geronimo.apache.org
Subject: Re: geronimo, eclipse and javax.ejb?
Use the following WTP 1.0.1 driver... http://download.eclipse.org/
webtools/downloads/drops/M-M200602141429-200602141429/
1.0.1 should be out tommorow which will contain an all-in-one
package, so you won't have to download the prereqs.
- sachin
On Feb 23, 2006, at 10:16 AM, Kristian Rink wrote:
>
> Hi Sachin;
>
> and again thanks for your hint. I also thought about the -clean
> option,
> but it also didn't do much to improve my situation. I'm currently
> downloading eclipse 3.1.2 and will just start over installing the
> recent
> wtp and geronimo in order to see what happens then. Strange. :o
>
> Anyhow, thanks for your hints. :)
> Cheers,
> Kris
>
>
> Sachin Patel schrieb:
>> Try launching eclipse with the -clean parameter. Plugins are
>> cached so
>> in order for new plugins to be picked up you will need to use this
>> param.
>> - sachin
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Open your ejb-jar.xml, touch it, hit save.
- sachin
On Feb 23, 2006, at 1:16 PM, Kristian Rink wrote:
>
> Hi Sachin;
>
> Sachin Patel schrieb:
>> Great! As far as the ejb-jar.xml validation error, as soon as you
>> create
>> an ejb, via xdoclet or whatever the error should go away. But I
>> agree
>
> I've created a bunch of EJBs by now, the error is still there, but
> it's
> still the only one.
>
>> with you, after project creation, it looks kinda annoying to have an
>> error right away. Would you mind opening a bugzilla against wtp
>> component j2ee or ejb for them to suppress the error?
>
> Done that. Let's see... :)
> Cheers & thanks,
> Kris
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
Sachin Patel schrieb:
> Great! As far as the ejb-jar.xml validation error, as soon as you create
> an ejb, via xdoclet or whatever the error should go away. But I agree
I've created a bunch of EJBs by now, the error is still there, but it's
still the only one.
> with you, after project creation, it looks kinda annoying to have an
> error right away. Would you mind opening a bugzilla against wtp
> component j2ee or ejb for them to suppress the error?
Done that. Let's see... :)
Cheers & thanks,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Great! As far as the ejb-jar.xml validation error, as soon as you
create an ejb, via xdoclet or whatever the error should go away. But
I agree with you, after project creation, it looks kinda annoying to
have an error right away. Would you mind opening a bugzilla against
wtp component j2ee or ejb for them to suppress the error?
- sachin
On Feb 23, 2006, at 12:45 PM, Kristian Rink wrote:
>
> Hi Sachin;
>
> to cut things short: It works. :) I installed Eclipse 3.1.2 from
> scratch, included the plugins required (including the WTP stuff and
> Geronimo) and now I can both add the Geronimo runtime and look up the
> javax.ejb classes. Pretty cool. :) Now I can dive into playing around
> with the server, let's see what works. :) Only that ejb-jar.xml
> error is
> still here, let's see what will happen next. :)
>
> Thanks for your help and patience!
> Cheers,
> Kris
>
>
> Sachin Patel schrieb:
>> Use the following WTP 1.0.1 driver...
>> http://download.eclipse.org/webtools/downloads/drops/M-
>> M200602141429-200602141429/
>>
>>
>> 1.0.1 should be out tommorow which will contain an all-in-one
>> package,
>> so you won't have to download the prereqs.
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
to cut things short: It works. :) I installed Eclipse 3.1.2 from
scratch, included the plugins required (including the WTP stuff and
Geronimo) and now I can both add the Geronimo runtime and look up the
javax.ejb classes. Pretty cool. :) Now I can dive into playing around
with the server, let's see what works. :) Only that ejb-jar.xml error is
still here, let's see what will happen next. :)
Thanks for your help and patience!
Cheers,
Kris
Sachin Patel schrieb:
> Use the following WTP 1.0.1 driver...
> http://download.eclipse.org/webtools/downloads/drops/M-M200602141429-200602141429/
>
>
> 1.0.1 should be out tommorow which will contain an all-in-one package,
> so you won't have to download the prereqs.
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Use the following WTP 1.0.1 driver... http://download.eclipse.org/
webtools/downloads/drops/M-M200602141429-200602141429/
1.0.1 should be out tommorow which will contain an all-in-one
package, so you won't have to download the prereqs.
- sachin
On Feb 23, 2006, at 10:16 AM, Kristian Rink wrote:
>
> Hi Sachin;
>
> and again thanks for your hint. I also thought about the -clean
> option,
> but it also didn't do much to improve my situation. I'm currently
> downloading eclipse 3.1.2 and will just start over installing the
> recent
> wtp and geronimo in order to see what happens then. Strange. :o
>
> Anyhow, thanks for your hints. :)
> Cheers,
> Kris
>
>
> Sachin Patel schrieb:
>> Try launching eclipse with the -clean parameter. Plugins are
>> cached so
>> in order for new plugins to be picked up you will need to use this
>> param.
>> - sachin
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
and again thanks for your hint. I also thought about the -clean option,
but it also didn't do much to improve my situation. I'm currently
downloading eclipse 3.1.2 and will just start over installing the recent
wtp and geronimo in order to see what happens then. Strange. :o
Anyhow, thanks for your hints. :)
Cheers,
Kris
Sachin Patel schrieb:
> Try launching eclipse with the -clean parameter. Plugins are cached so
> in order for new plugins to be picked up you will need to use this param.
> - sachin
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Try launching eclipse with the -clean parameter. Plugins are cached
so in order for new plugins to be picked up you will need to use this
param.
- sachin
On Feb 23, 2006, at 9:56 AM, Kristian Rink wrote:
>
> Hi Sachin;
>
> and, at first, thanks again for the hint and for your patience. :)
>
> Sachin Patel schrieb:
>> either (1) via update manager by pointing to geronimo.apache.org/
>> devtools
>>
>> or (2) grab the latest zip from
>> http://cvs.apache.org/dist/geronimo/eclipse/unstable/20060220-1112/
>> geronimo-eclipse-plugin-1.0.0.zip
>
> Well... Both doesn't work, unfortunately. For (1), Eclipse simply
> tells
> me that there are no installable features around on the server. Option
> (2) works, of course, I copied all the stuff from the .zip to my
> Eclipse
> folder and the files are there, but yet they aren't found; even after
> upgrading to wtp 1.0.1 RC I don't have a chance of adding a Geronimo
> runtime because it just doesn't show up anywhere. Running WTP 1.0.1 RC
> indeed allows me to install Geronimo using the "Don't see your server"
> list, fetches some files and restarts the workbench afterwards, but
> even
> after that, no Geronimo around. Any other options I can try? Would
> cleaning up my whole Eclipse installation help?
>
> Thanks for your hints.
> Cheers,
> Kris
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
>
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
and, at first, thanks again for the hint and for your patience. :)
Sachin Patel schrieb:
> either (1) via update manager by pointing to geronimo.apache.org/devtools
>
> or (2) grab the latest zip from
> http://cvs.apache.org/dist/geronimo/eclipse/unstable/20060220-1112/geronimo-eclipse-plugin-1.0.0.zip
Well... Both doesn't work, unfortunately. For (1), Eclipse simply tells
me that there are no installable features around on the server. Option
(2) works, of course, I copied all the stuff from the .zip to my Eclipse
folder and the files are there, but yet they aren't found; even after
upgrading to wtp 1.0.1 RC I don't have a chance of adding a Geronimo
runtime because it just doesn't show up anywhere. Running WTP 1.0.1 RC
indeed allows me to install Geronimo using the "Don't see your server"
list, fetches some files and restarts the workbench afterwards, but even
after that, no Geronimo around. Any other options I can try? Would
cleaning up my whole Eclipse installation help?
Thanks for your hints.
Cheers,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Right, you should be able to install via the "Don't see your servers
listed", in 1.0.1 builds. This doesn't work in 1.0. So
alternatively what you can do is
either (1) via update manager by pointing to geronimo.apache.org/
devtools
or (2) grab the latest zip from http://cvs.apache.org/dist/geronimo/
eclipse/unstable/20060220-1112/geronimo-eclipse-plugin-1.0.0.zip
- sachin
On Feb 22, 2006, at 6:09 PM, Kristian Rink wrote:
>
> Hi Sachin;
>
> and at first thanks for the WTP version hint; I thought my last update
> should have switched wtp from .7 to 1.0 but obviously it didn't. :/
> Anyhow, now that I installed 1.0, things are just slightly better:
> Installed WTP 1.0 using Eclipse update, installed the Geronimo Eclipse
> plugin, but I'm not anymore able to add a Geronimo Runtime because
> it's
> not in the list of available runtimes anymore. I just saw it following
> the "Don't see your servers listed?" link but installing it this way
> obviously didn't work... :o
>
> Sachin Patel schrieb:
>> Oh just remembered that the geronimo support in WTP .7 didn't support
>> deployment of EJBs.
>
>
> Anyhow, thanks for the hints... Cheers,
> Kris
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
and at first thanks for the WTP version hint; I thought my last update
should have switched wtp from .7 to 1.0 but obviously it didn't. :/
Anyhow, now that I installed 1.0, things are just slightly better:
Installed WTP 1.0 using Eclipse update, installed the Geronimo Eclipse
plugin, but I'm not anymore able to add a Geronimo Runtime because it's
not in the list of available runtimes anymore. I just saw it following
the "Don't see your servers listed?" link but installing it this way
obviously didn't work... :o
Sachin Patel schrieb:
> Oh just remembered that the geronimo support in WTP .7 didn't support
> deployment of EJBs.
Anyhow, thanks for the hints... Cheers,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Oh just remembered that the geronimo support in WTP .7 didn't support
deployment of EJBs.
- sachin
On Feb 22, 2006, at 5:09 PM, Sachin Patel wrote:
> Ah... I see the classpath is using the old .deployables from WTP .
> 7. So I assume thats the version you have? You'll want to move to
> at least WTP 1.0 or higher (as quite a number of issues have been
> addressed in 1.01 which is due for release this friday).
>
> The geronimo plugin was originally in WTP .7, so I assume you are
> using that version. The released version can be found at
> geronimo.apache.org/devtools.
>
> - sachin
>
>
>
> On Feb 22, 2006, at 4:59 PM, Kristian Rink wrote:
>
>>
>> Hi Sachin;
>>
>> Sachin Patel schrieb:
>>> Also are you generating your ejb client interfaces in the ejb
>>> project or
>>> a client jar project? If the latter, is the server classpath
>>> container
>>> available on that project as well?
>>
>> I'm trying to create the EJB within an EJB project, yes, not yet
>> thinking about client logic. Attached you find the .classpath of the
>> project. By the way, after creating an empty EJB project using the
>> appropriate creation wizard, the project itself starts up with a
>> problem
>> like this:
>>
>> 2 cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not
>> complete. One of '{"http://java.sun.com/xml/ns/j2ee":display-name,
>> "http://java.sun.com/xml/ns/j2ee":icon,
>> "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
>> ejb-jar.xml pcConnector/ejbModule/META-INF line 5 22. Februar 2006
>> 22:56:30 55
>>
>> Though I suspect this hasn't anything to do with the class finding
>> issue, it still sort of confuses me...
>>
>> Anyhow, thanks loads for your help. :)
>> Best regards,
>> Kris
>>
>>
>> --
>> Kristian Rink -- Programmierung/Systembetreuung
>> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
>> 0176 24472771 * krink@pm-planc.de
>> <?xml version="1.0" encoding="UTF-8"?>
>> <classpath>
>> <classpathentry kind="con"
>> path="org.eclipse.jdt.launching.JRE_CONTAINER/
>> org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/
>> jdk1.4.2_10"/>
>> <classpathentry kind="con"
>> path="org.eclipse.jst.server.core.container/
>> org.eclipse.jst.server.geronimo.runtimeTarget/Apache Geronimo v1.0
>> (Generic)"/>
>> <classpathentry output=".deployables/pcConnector" kind="src"
>> path="ejbModule"/>
>> <classpathentry kind="output" path="bin"/>
>> </classpath>
>
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Ah... I see the classpath is using the old .deployables from WTP .
7. So I assume thats the version you have? You'll want to move to at
least WTP 1.0 or higher (as quite a number of issues have been
addressed in 1.01 which is due for release this friday).
The geronimo plugin was originally in WTP .7, so I assume you are
using that version. The released version can be found at
geronimo.apache.org/devtools.
- sachin
On Feb 22, 2006, at 4:59 PM, Kristian Rink wrote:
>
> Hi Sachin;
>
> Sachin Patel schrieb:
>> Also are you generating your ejb client interfaces in the ejb
>> project or
>> a client jar project? If the latter, is the server classpath
>> container
>> available on that project as well?
>
> I'm trying to create the EJB within an EJB project, yes, not yet
> thinking about client logic. Attached you find the .classpath of the
> project. By the way, after creating an empty EJB project using the
> appropriate creation wizard, the project itself starts up with a
> problem
> like this:
>
> 2 cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not
> complete. One of '{"http://java.sun.com/xml/ns/j2ee":display-name,
> "http://java.sun.com/xml/ns/j2ee":icon,
> "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
> ejb-jar.xml pcConnector/ejbModule/META-INF line 5 22. Februar 2006
> 22:56:30 55
>
> Though I suspect this hasn't anything to do with the class finding
> issue, it still sort of confuses me...
>
> Anyhow, thanks loads for your help. :)
> Best regards,
> Kris
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
> <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER/
> org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/
> jdk1.4.2_10"/>
> <classpathentry kind="con"
> path="org.eclipse.jst.server.core.container/
> org.eclipse.jst.server.geronimo.runtimeTarget/Apache Geronimo v1.0
> (Generic)"/>
> <classpathentry output=".deployables/pcConnector" kind="src"
> path="ejbModule"/>
> <classpathentry kind="output" path="bin"/>
> </classpath>
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
Sachin Patel schrieb:
> Also are you generating your ejb client interfaces in the ejb project or
> a client jar project? If the latter, is the server classpath container
> available on that project as well?
I'm trying to create the EJB within an EJB project, yes, not yet
thinking about client logic. Attached you find the .classpath of the
project. By the way, after creating an empty EJB project using the
appropriate creation wizard, the project itself starts up with a problem
like this:
2 cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not
complete. One of '{"http://java.sun.com/xml/ns/j2ee":display-name,
"http://java.sun.com/xml/ns/j2ee":icon,
"http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
ejb-jar.xml pcConnector/ejbModule/META-INF line 5 22. Februar 2006
22:56:30 55
Though I suspect this hasn't anything to do with the class finding
issue, it still sort of confuses me...
Anyhow, thanks loads for your help. :)
Best regards,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Also are you generating your ejb client interfaces in the ejb project
or a client jar project? If the latter, is the server classpath
container available on that project as well?
- sachin
On Feb 22, 2006, at 4:34 PM, Kristian Rink wrote:
> Sachin Patel schrieb:
>> Do a ctrl-shft-T, and search for one of the spec jars, SessionBean or
>> something, does it appear?
>
> No, none of them seem to be known to my IDE... :o
>
> Cheers,
> Kris
>
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Sachin Patel schrieb:
> Do a ctrl-shft-T, and search for one of the spec jars, SessionBean or
> something, does it appear?
No, none of them seem to be known to my IDE... :o
Cheers,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Do a ctrl-shft-T, and search for one of the spec jars, SessionBean or
something, does it appear?
- sachin
On Feb 22, 2006, at 4:20 PM, Kristian Rink wrote:
>
> Hi Sachin;
>
>> Can you verify that the target runtime got added to your project?
>> From
>> the J2EE Navigator View, expand EJB Projects, expand your project,
>> and
>> you should see a classpath container called Apache Geronimo 1.0,
>> expand
>> that and you should see a list of jars.
>
> Yes, that list is there, and it contains exactly what's to be found in
> $GERONIMO_HOME/lib. I even dropped and recreated the runtime
> configuration, same effect...
>
> Thanks and bye,
> Kris
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hi Sachin;
> Can you verify that the target runtime got added to your project? From
> the J2EE Navigator View, expand EJB Projects, expand your project, and
> you should see a classpath container called Apache Geronimo 1.0, expand
> that and you should see a list of jars.
Yes, that list is there, and it contains exactly what's to be found in
$GERONIMO_HOME/lib. I even dropped and recreated the runtime
configuration, same effect...
Thanks and bye,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
Hi,
Can you verify that the target runtime got added to your project?
From the J2EE Navigator View, expand EJB Projects, expand your
project, and you should see a classpath container called Apache
Geronimo 1.0, expand that and you should see a list of jars.
If not, then you may not have created the runtime correctly. From
preferences you can validate the location of your runtime. Does
location point to your geronimo installation?
- sachin
On Feb 22, 2006, at 4:12 PM, Kristian Rink wrote:
>
> Hello Sachin, David, world;
>
> and at first thanks a lot for your hints.
>
>
> Sachin Patel schrieb:
>> You need to use the Geronimo eclipse plugin that is available.
>> When you
>> create an EJB application you need to define a Geronimo runtime
>> and then
>> target your application to that runtime. By doing so this adds
>> the spec
>> jars so javax.ejb.* will resolve.
>
> Okay, I installed the geronimo eclipse plugin, completely dropped
> my old
> test project, recreated it, added the Geronimo server runtime and
> still
> - nada. No javax.ejb.* packages known. Nothing. The packages aren't
> there, and when I try to create a new EJB using "file"->"new", I get
> something like that:
>
>
> Buildfile:
> /home/kr/workspace/.metadata/.plugins/
> org.eclipse.jst.j2ee.ejb.annotations.xdoclet/tempAnt.xml
> init:
> ejbdoclet:
> [ejbdoclet] XDoclet classpath missing J2EE classes
> [ejbdoclet] at
> xdoclet.modules.ejb.EjbDocletTask.validateOptions
> (EjbDocletTask.java:86)
> [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:89)
> [ejbdoclet] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
> [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
> [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:
> 369)
>
>
> Anything else that can be wrong here?
>
> TIA and best regards,
> Kris
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Kristian Rink <kr...@pm-planc.de>.
Hello Sachin, David, world;
and at first thanks a lot for your hints.
Sachin Patel schrieb:
> You need to use the Geronimo eclipse plugin that is available. When you
> create an EJB application you need to define a Geronimo runtime and then
> target your application to that runtime. By doing so this adds the spec
> jars so javax.ejb.* will resolve.
Okay, I installed the geronimo eclipse plugin, completely dropped my old
test project, recreated it, added the Geronimo server runtime and still
- nada. No javax.ejb.* packages known. Nothing. The packages aren't
there, and when I try to create a new EJB using "file"->"new", I get
something like that:
Buildfile:
/home/kr/workspace/.metadata/.plugins/org.eclipse.jst.j2ee.ejb.annotations.xdoclet/tempAnt.xml
init:
ejbdoclet:
[ejbdoclet] XDoclet classpath missing J2EE classes
[ejbdoclet] at
xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:86)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:89)
[ejbdoclet] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)
Anything else that can be wrong here?
TIA and best regards,
Kris
--
Kristian Rink -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by Sachin Patel <sp...@gmail.com>.
You need to use the Geronimo eclipse plugin that is available. When
you create an EJB application you need to define a Geronimo runtime
and then target your application to that runtime. By doing so this
adds the spec jars so javax.ejb.* will resolve.
- sachin
On Feb 22, 2006, at 1:19 PM, Kristian Rink wrote:
>
> Hi all,
>
> not sure whether this is a stupid question, but reading across the
> Geronimo docs hasn't yet helped me find what I'm looking for.
> Situation:
> I'm trying to get started building a simple EJB application using
> Eclipse 3.1, the recent Webtools plugin and Geronimo 1.0. Integrating
> Geronimo into Eclipse works well, but whenever I try importing
> anything
> from javax.ejb I'm just told that the package does not exist. Playing
> around with the Eclipse project settings I added the openejb jars
> found
> in GERONIMO_HOME/repository/openejb, but that didn't help much.
>
> Am I missing something important? Do I have to download openejb or any
> other libraries besides Geronimo to get things working with Eclipse?
>
> TIA and best regards,
> Kris
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
Re: geronimo, eclipse and javax.ejb?
Posted by David Carew <dc...@gmail.com>.
In Eclipse you have to go to Window->Preferences->Server and then select
Installed Runtimes. Add an instance of the Geronimo Runtime and then when
you create your projects (EJB, Web etc) select the newly added runtime as
the Target Runtime. This will automatically add the required J2EE classes to
the project's build path.
On 2/22/06, Kristian Rink <kr...@pm-planc.de> wrote:
>
>
> Hi all,
>
> not sure whether this is a stupid question, but reading across the
> Geronimo docs hasn't yet helped me find what I'm looking for. Situation:
> I'm trying to get started building a simple EJB application using
> Eclipse 3.1, the recent Webtools plugin and Geronimo 1.0. Integrating
> Geronimo into Eclipse works well, but whenever I try importing anything
> from javax.ejb I'm just told that the package does not exist. Playing
> around with the Eclipse project settings I added the openejb jars found
> in GERONIMO_HOME/repository/openejb, but that didn't help much.
>
> Am I missing something important? Do I have to download openejb or any
> other libraries besides Geronimo to get things working with Eclipse?
>
> TIA and best regards,
> Kris
>
>
> --
> Kristian Rink -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de
>