jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Testing EJB - Newbie: please help
Date Sat, 29 Mar 2003 21:01:34 GMT
Hi Beate,

> -----Original Message-----
> From: Beate Jehn [mailto:jehnb@yahoo.de]
> Sent: 28 March 2003 23:04
> To: Cactus Users List
> Subject: Re: Testing EJB - Newbie: please help
> Hello Stefan,
> thanks for your answer. I've checked out the module, but it didn't
> help. I think I better state my problem more precicely.
> My problem is lying in the installation and configuration of cactus. I
> have done the getting started 20 minutes
> tutorial and did all the settings there and it worked with the tomcat
> server.
> Now I would like to use our J2ee RI Server 1.3.1. I do not understand
> instructions in order to test EJBs that are stated in the EJB-How-To.
> 1. EJB-Jar Step 3 of the Tutorial
> After I have created a Deployment Descriptor via the deploytool, is it
> necessary to do Step 3? Where do I have to prepare EJB Runtime? Is
there a
> file?

Step 3 has nothing to do with Cactus. It has to do with the RI. Before
you can start using Cactus you need to be familiar with the component
model you are testing but more importantly with the container you are

Let me try to help you (although I have never touched the RI)... The
J2EE spec does not spec everything. For example it leaves the mapping of
the EJB to their JNDI names to the container provider. Thus all
containers provide a special file (called weblogic.xml for WebLogic,
jboss.xml for JBoss and another name which I don't know for the RI - But
frankly, just do a search for "j2ee-ri-specific-information" and it
should yield the information). That said, most container also provide
default mappings and thus this container-specific file is very often

> 2. Cactus-Web-Application - Step 2
> Where do I have to change the web.xml? In every .WAR file? Or within
> conf directory of the Server (j2sdkee1.3.1/conf/web.xml)

You need to understand what you are doing (read the "how it works" web
page if you haven't done so already). In step 2, you are doing 2 things:
- adding definitions for the Cactus Servlet redirector which will be
called by the JUnit test runner.
- adding references to the EJBs that are called by your Test Case
(following the J2EE spec)

Thus, you only need to modify the web.xml for the WARs which are used
for the tests. That said, I believe j2sdkee1.3.1/conf/web.xml is a
global web.xml which is "inherited" by each .WAR, right? If so, putting
the Cactus redirectors in there is a good idea.

> 3. Cactus-Web-Application - Step 4
> Is this necessary? Where do I put this code to?

Same as step 3 above. Read the J2EE RI deployment doc, it should provide
you with the information. 

> 4. How do execute the test? Via the browser like in the 20-minutes
> tutorial?

You choose! I would suggest you read
http://jakarta.apache.org/cactus/integration/howto_runner.html which
explains what are the options for Cactus 1.4.1.

> Here is the error message that I get when executing it in the browser:
> The requested resource (/ServletTestRunner) is not available

We would need more stack trace to help you.


> Thanks
> Beate
> ----- Original Message -----
> From: "Stefan Groschupf" <sg@media-style.com>
> To: "Cactus Users List" <cactus-user@jakarta.apache.org>
> Sent: Friday, March 28, 2003 12:32 PM
> Subject: AW: Testing EJB - Newbie: please help
> > Hi Beate,
> >
> > if you wish you can take a look at a example.
> > In the cvs of my open source project is a simple module, ready
> with
> > one test and an ant script.
> > It runs with jboss.
> > https://sourceforge.net/cvs/?group_id=44709
> >
> > Check out the weta-util module and if you wish to run it update the
> > jboss.home folder.
> >
> > cheers
> > Stefan
> >
> >
> >
> >
> >
> >
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message