Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP Book - LeaguePlanet example
WTP Book - LeaguePlanet example [message #199335] Mon, 03 September 2007 13:03 Go to next message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Hi,

I'm working (slowly) through the Web Tools Platform Book:

http://www.leagueplanet.com/toc.html

The book uses a fairly comprehensive example web site called LeaguePlanet.

I'm running into problems. I'm not sure if they are due to finger
trouble on my part or that the WTP has moved on and the example is now
dated.

Has anyone has managed to build the example using Europa and WTP 2.0?

So far I've just created the project skeletons using the standard
wizards as outlined in the book. If anyone can help me with the
following specifics:

What version of Struts should I use?

Do I need JBoss or just Tomcat?

Do I need to download and install J2EE?

My LeaguePlanetWebProject module has not been automatically added to the
modules list of the associated EAR project. Can I do this manually?

The EJB project has thrown the following error that is not mentioned in
the book:

An EJB module must contain one or more enterprise beans.


Thanks, Steve.
Re: WTP Book - LeaguePlanet example [message #199343 is a reply to message #199335] Mon, 03 September 2007 17:19 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
Messages: 74
Registered: July 2009
Member
Hi.
Few answers for a few questions:
>Do I need JBoss or just Tomcat?
Tomcat is not an application server, so no EJB support is provided.
Between these two - JBoss is your choice.

>Do I need to download and install J2EE?
You cannot download and install J2EE independently. Mostly J2EE spec
providers reside within application server of some sort (OC4J, OAS,
Websphere, Geronimo, JBoss, Weblogic... you name it).
So generally, when you install all environment needed for you application
(server, DB, etc.) you will have all of J2EE you need at your fingertips.

>My LeaguePlanetWebProject module has not been automatically added to the
modules >list of the associated EAR project. Can I do this manually?
Certainly. Right-click your EAR -> properties -> J2EE module dependencies.
Re: WTP Book - LeaguePlanet example [message #199464 is a reply to message #199335] Thu, 06 September 2007 06:30 Go to previous messageGo to next message
Naci Dai is currently offline Naci DaiFriend
Messages: 55
Registered: July 2009
Member
Steve Jones wrote:
> Hi,
>
> I'm working (slowly) through the Web Tools Platform Book:
>
> http://www.leagueplanet.com/toc.html
>
> The book uses a fairly comprehensive example web site called LeaguePlanet.
>
> I'm running into problems. I'm not sure if they are due to finger
> trouble on my part or that the WTP has moved on and the example is now
> dated.
>
> Has anyone has managed to build the example using Europa and WTP 2.0?

The book is based on WTP 2.0, but there are some readers who are using
WTP2.0 and we are trying to help them with the differences. You can
visit http://www.eclipsewtp.org/errata.html and through email from
feedback@eclipsewtp.org


> So far I've just created the project skeletons using the standard
> wizards as outlined in the book. If anyone can help me with the
> following specifics:
>
> What version of Struts should I use?
>

None of the examples in the book require Struts. The examples are
provided for readers who may want to try Struts development with WTP.
If you want to do such a thing, you can download the latest struts
distribution from struts.apache.org (1.x or 2.x), and copy the struts
jars into WebContent/WEB-INF/lib or alternatively keep the in a common
place for all projects and include them in your Web project using J2EE
module depedencies.

> Do I need JBoss or just Tomcat?
>

Tomcat is good to do Web projects, but to try EJB examples you will
need a server with an EJB container (i.e. JBoss)

> Do I need to download and install J2EE?
>

No - Servers (Tomcat/Jboss etc) provide this support

> My LeaguePlanetWebProject module has not been automatically added to the
> modules list of the associated EAR project. Can I do this manually?
>

Open the properties window for the EAR project, go to J2EE Module
dependencies, check the LeaguePlanetWebProject to include it in your EAR .

> The EJB project has thrown the following error that is not mentioned in
> the book:
>
> An EJB module must contain one or more enterprise beans.
>

This is a validation message telling you that an EJB project without
EJBs exist in your workspace. When you create a new EJB in this
project, it will dissappear.

>
> Thanks, Steve.
Re: WTP Book - LeaguePlanet example [message #199512 is a reply to message #199464] Fri, 07 September 2007 18:09 Go to previous message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
"The book is based on WTP 2.0, but there are some readers who are using
WTP2.0..."

This should read:

The book is based on WTP 1.5, but there are some readers who are using
WTP2.0...

Lawrence
Previous Topic:Need Facet plug-in to override default Web Module settings
Next Topic:Help \Servers\Tomcat v6.0 Server at localhost-config is missing
Goto Forum:
  


Current Time: Wed Apr 24 20:25:13 GMT 2024

Powered by FUDForum. Page generated in 0.03327 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top