Hi Mark,
> -----Original Message-----
> From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> Sent: 07 August 2003 15:27
> To: 'Cactus-User (E-mail)
> Subject: EJB testing
>
> I'm getting pretty close to testing my ejb's using cactus/ant. my
problem
> is that the test case setup method is throwing an error.
>
> i'm creating a stripped down war file via the following ant task:
> <cactifywar version="2.3"
> destfile="${weblogic.deploy.dir}/test.war">
> <classes dir="${basedir.build.isac.web-inf.classes}"
> includes="**/*.class"/>
> </cactifywar>
What are these class files? Are they Cactus test classes?
> to my understanding, this creates a war which is deployed in my wl6.1
> server
> area, and includes all my class file for my project. my ejb is
already
> deployed into the app server. my setUp() code is below. using
eclipse, i
> can set a breakpoint to the ctx instanciation, and step to the next
line
> where it's trying to get the remote interface. that's where the
testing
> stops. is there something special that i need to do to my ejb for
testing
> using cactus?
>
> public void setUp() throws Exception
> {
> Context ctx = new InitialContext();
> EventSubmitHome home = (EventSubmitHome)
>
> PortableRemoteObject.narrow(ctx.lookup("EventSubmit"),
> EventSubmitHome.class);
> this.eventSubmit = home.create();
> }
>
My guess is that you haven't defined an entry in your web.xml for
calling the EJB and that you haven't provided a weblogic.xml file
mapping the JNDI name for that EJB.
I've just done a google search and it came up with:
http://e-docs.bea.com/wls/docs70/webapp/components.html#100650
http://e-docs.bea.com/wls/docs61/webapp/components.html#100650 (for WL
6.1).
Btw, you're not telling us what error you're getting! :-)
Hope it helps,
-Vincent
>
> Thanks for any suggestions/ideas!
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]