Re: Cactus tests failing - unable to lookup Data sources

2005-07-25 Thread Kazuhito SUGURI
Hi Madhan,

In article <[EMAIL PROTECTED]>,
Mon, 25 Jul 2005 11:52:07 -0700 (PDT),
Madhan Thirukonda <[EMAIL PROTECTED]> wrote: 
madhanmt2-list> Thanks for your time. I traced the problem. I actually
madhanmt2-list> had some junit tests and did not change the calls to
madhanmt2-list> the cactus way so it was running it on the client
madhanmt2-list> side. When I added ServletTestSuite().addTestSuite(),
madhanmt2-list> it ran okay (like below)

Ah. I couldn't imagine that.

Thanks for the information.

Kazuhito SUGURI

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cactus tests failing - unable to lookup Data sources

2005-07-25 Thread Madhan Thirukonda
Kazuhito,
Thanks for your time. I traced the problem. I actually
had some junit tests and did not change the calls to
the cactus way so it was running it on the client
side. When I added ServletTestSuite().addTestSuite(),
it ran okay (like below)

Thanks,
Madhan.

  public static Test suite() {
ServletTestSuite suite = new ServletTestSuite();
suite.addTestSuite(VirusScanEJBTest.class);
return suite;
  }
  
  /*
  public static void main(String[] args) {
// JUnitDoclet begin method testcase.main
   
junit.textui.TestRunner.run(VirusScanEJBTest.class);
// JUnitDoclet end method testcase.main
  }
  */

--- Kazuhito SUGURI <[EMAIL PROTECTED]>
wrote:

> Hi Madhan,
> 
> In article
>
<[EMAIL PROTECTED]>,
> Sun, 24 Jul 2005 17:04:22 -0700 (PDT),
> Madhan Thirukonda <[EMAIL PROTECTED]> wrote: 
> madhanmt2-list> I am running the appserver (OC4J) in
> a seperate JVM
> madhanmt2-list> (I couldn't get it to working using
> 
> madhanmt2-list> so I run it outside my ant script).
> Is that a problem?
> 
> I don't think that is the problem.
> I think the problem is in configuration of the
> server
> and/or ear archiving.
> 
> You might extract the cactified ear (and war(s)
> included in it)
> to know how the cactified application is configured.
> Could you find what may be wrong?
> 
> Regards,
> 
> Kazuhito SUGURI
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Madhan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cactus tests failing - unable to lookup Data sources

2005-07-24 Thread Kazuhito SUGURI
Hi Madhan,

In article <[EMAIL PROTECTED]>,
Sun, 24 Jul 2005 17:04:22 -0700 (PDT),
Madhan Thirukonda <[EMAIL PROTECTED]> wrote: 
madhanmt2-list> I am running the appserver (OC4J) in a seperate JVM
madhanmt2-list> (I couldn't get it to working using 
madhanmt2-list> so I run it outside my ant script). Is that a problem?

I don't think that is the problem.
I think the problem is in configuration of the server
and/or ear archiving.

You might extract the cactified ear (and war(s) included in it)
to know how the cactified application is configured.
Could you find what may be wrong?

Regards,

Kazuhito SUGURI

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cactus tests failing - unable to lookup Data sources

2005-07-24 Thread Madhan Thirukonda
Kazuhito,
 
testXXX is invoking that piece of code. I have the same /target name. The only 
thing that I changed from the original one is the name of the .ear file. 
Everything else is the same.
 
I am running the appserver (OC4J) in a seperate JVM (I couldn't get it to 
working using  so I run it outside my ant script). Is that a 
problem?
 
Thanks,
Madhan.

Kazuhito SUGURI <[EMAIL PROTECTED]> wrote:
Hi Madhan,

In article <[EMAIL PROTECTED]>,
Fri, 22 Jul 2005 19:55:51 -0700 (PDT),
wrote: 
madhanmt2-list> Hi, I just got cactus up and running. I have everything setup 
ok and it seems to be running some tests well. Some tests are failing because 
of database connectivity. Here is what I do.
madhanmt2-list> 
madhanmt2-list> InitialContext ctx = new InitialContext();
madhanmt2-list> DataSource ds = (DataSource) ctx.lookup(_connectionPoolname);

Where the code is located?

If the code is in beginXXX method, it should fail because
it's executed in client-side.

If the code is in testXXX or setUp method, the problem may be depending on
how the DataSource is configured.
For example, if the DataSource is available only for /target context,
the resource cannot be used from /target-cactified context.

We may need more information to help you.

Thanks,

Kazuhito SUGURI

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Madhan.

Re: Cactus tests failing - unable to lookup Data sources

2005-07-23 Thread Kazuhito SUGURI
Hi Madhan,

In article <[EMAIL PROTECTED]>,
Fri, 22 Jul 2005 19:55:51 -0700 (PDT),
<[EMAIL PROTECTED]> wrote: 
madhanmt2-list> Hi, I just got cactus up and running. I have everything setup 
ok and it seems to be running some tests well. Some tests are failing because 
of database connectivity. Here is what I do.
madhanmt2-list>  
madhanmt2-list> InitialContext ctx = new InitialContext();
madhanmt2-list> DataSource ds = (DataSource) 
ctx.lookup(_connectionPoolname);

Where the code is located?

If the code is in beginXXX method, it should fail because
it's executed in client-side.

If the code is in testXXX or setUp method, the problem may be depending on
how the DataSource is configured.
For example, if the DataSource is available only for /target context,
the resource cannot be used from /target-cactified context.

We may need more information to help you.

Thanks,

Kazuhito SUGURI

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]