RE: cactify servletredirector problem

2008-07-13 Thread Nicole Luneburg
servlet-classorg.apache.cactus.server.ServletTestRedirector/servlet-class /servlet Is that right? And you want them switched? 2008/7/11 Nicole Luneburg [EMAIL PROTECTED]: Hi! Been banging my head against a wall on this one. I've got a cactify task like: cactifywar srcfile=${project.build.dir

RE: cactify servletredirector problem

2008-07-13 Thread Nicole Luneburg
Still haven't found a solution :( I have tried both Cactus version 1.7.2 and the latest one, version 1.8.0. Any ideas anyone? -Original Message- From: Nicole Luneburg [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2008 8:45 AM To: Cactus Users List Subject: RE: cactify servletredirector

RE: cactify servletredirector problem

2008-07-14 Thread Nicole Luneburg
Hi Petar, This is my web.xml BEFORE the cactify task is run: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app display-name @MODULE@ : @TAG@ :

RE: cactify servletredirector problem

2008-07-15 Thread Nicole Luneburg
on this directive. HTH, Petar. 2008/7/15, Nicole Luneburg [EMAIL PROTECTED]: Hi Petar, This is my web.xml BEFORE the cactify task is run: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2

Missing service name parameter [Cactus_Service] in HTTP request

2008-12-21 Thread Nicole Luneburg
Hi all! I've trawled the net and this mailing list but nothing has fixed my problem :( (worst part is I've done this before and tried to replicate everything, but still getting this error!!!) I downloaded the latest stable cactus version (1.8.0), wrote my tests and tried to run it via my

javax.servlet.ServletException: Missing service name parameter [Cactus_Service]

2008-12-22 Thread Nicole Luneburg
Note: I've sent this before but it didn't come up :( So re-sending ... Hi all! I've trawled the net and this mailing list but nothing has fixed my problem :( (worst part is I've done this before and tried to replicate everything, but still getting this error!!!) I downloaded the latest

RE: Cactifyear question

2008-12-22 Thread Nicole Luneburg
I haven't used cactifyear before but maybe this might help? http://jakarta.apache.org/cactus/integration/ant/task_cactifyear.html The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation

cactus junit authentication required?

2009-01-04 Thread Nicole Luneburg
Hi all, I'm using cactus, junit, jboss 4.2.2 I have my test code looking something like: MyTestSuite.java: final TestSuite suite = new TestSuite(); suite.addTestSuite(MyTest.class); MyTest.java: public void setUp() throws Exception { super.setUp(); //create

RE: cactus junit authentication required?

2009-01-04 Thread Nicole Luneburg
Ps. I have been searching the net all day. Thought I'd mention that I did come across http://jakarta.apache.org/cactus/writing/howto_security.html but I understand that using beginXXX() and endXXX() is for client side testing and setup() and tearDown() is for server side testing, which is what

broken link

2009-01-04 Thread Nicole Luneburg
Hi, I hope I'm posting to the right place ... The link to Cactifywar task is broken on this page: http://jakarta.apache.org/cactus/writing/howto_security.html cheers! The contents of this email are confidential and may be subject to legal or professional

RE: cactus junit authentication required?

2009-01-05 Thread Nicole Luneburg
Hi Petar, Thanks for your reply. Sorry I thought I did say what exception I was getting ... I'm running the test from my web browser like: http://localhost:8080/myapp/ServletTestRunner?suite= myapp.tests.MyTestSuiteCactus_Service=RUN_TEST Doing this keeps giving me the following error:

RE: cactus junit authentication required?

2009-01-05 Thread Nicole Luneburg
keep thinking that I shouldn't need to authenticate, but then I keep getting the error: java.lang.IllegalStateException: No valid security context for the caller identity ? -Original Message- From: Nicole Luneburg [mailto:nicole.luneb...@lisasoft.com] Sent: Tuesday, 6 January 2009 10:12

RE: cactus junit authentication required?

2009-01-06 Thread Nicole Luneburg
Ok I think I know what the problem is now ... The problem is I don't have permission to my EJB3 entity beans. Hmm .. don't know if this is something I need to configure in Cactus or elsewhere ... Digging continuing ... The contents of this email are confidential and may be subject to legal or

broken link 2

2009-01-06 Thread Nicole Luneburg
Sorry another broken link. On this page: http://jakarta.apache.org/cactus/writing/howto_ejb_j2eeri.html Link is currently: http://jakarta.apache.org/writing/howto_ejb_3.html Should be: http://jakarta.apache.org/cactus/writing/howto_ejb_3.html Cheers! nic The

How to set user principal in setUp()

2009-01-06 Thread Nicole Luneburg
Hi all again ... I have a test class that extends org.apache.cactus.ServletTestCase. I'm running my tests server-side so using the setUp() and tearDown() methods. My question is ... How do I set a user in my request so that when I do a SessionContext getCallerPrincipal(), it is set? Right now

RE: How to set user principal in setUp()

2009-01-08 Thread Nicole Luneburg
Hi Petar, Thanks once again for your reply. I thought I would spend today trying to resolve my issues before I responded ... So I've stripped all my code (commented out, rather!!!) so see what you were referring to below. (I should have seen that here:

RE: How to set user principal in setUp()

2009-01-08 Thread Nicole Luneburg
Hi Petar, Thanks for looking at this. I did have a play around with users.properties and roles.properties, but never got that working. Yes seeing ur configurations for that would be excellent. Thanks! Nicole -Original Message- From: Petar Tahchiev [mailto:paranoia...@gmail.com] Sent:

RE: How to set user principal in setUp()

2009-01-08 Thread Nicole Luneburg
Oh also, how are you running the test? -Original Message- From: Nicole Luneburg [mailto:nicole.luneb...@lisasoft.com] Sent: Friday, 9 January 2009 7:49 AM To: Cactus Users List Subject: RE: How to set user principal in setUp() Hi Petar, Thanks for looking at this. I did have a play

RE: How to set user principal in setUp()

2009-01-08 Thread Nicole Luneburg
write an email describing why didn't your tests work before and did I change so that they are (probably) working now. This way you will be sure that you understand how cactus is working :-). Cheers, Petar. 2009/1/8, Nicole Luneburg nicole.luneb...@lisasoft.commailto:nicole.luneb...@lisasoft.com

RE: How to set user principal in setUp()

2009-01-08 Thread Nicole Luneburg
Hi Petar, Thanks for the response. Been trying to complete all the steps you outlined since you emailed it. Step 1: Completed Step 2: Completed. Note: when I hit step 2 I was getting errors, so I had to replace the existing ivy xml files from the repository

RE: How to set user principal in setUp()

2009-01-12 Thread Nicole Luneburg
Hi Petar, Thanks for your reply. I repeated the steps outlined, it seems doing a mvn clean install is only successful with the latest cactus tag (1.8.0). Doing a mvn clean install from trunk throws the following error: -- start --- T E S T S

RE: How to set user principal in setUp()

2009-01-13 Thread Nicole Luneburg
I'm an idiot I forgot to put the following in my TestMyEJB3ServiceBean class: public void begin(WebRequest theRequest) { theRequest.setRedirectorName(ServletRedirectorSecure); theRequest.setAuthentication(new BasicAuthentication(testuser, testpassword)); }

RE: How to set user principal in setUp()

2009-01-14 Thread Nicole Luneburg
Back again. In my app (so not the sample one anymore) when I run the test target I get an error: OutOfMemoryError: Java heap space I googled around and it seems this was occurring previously with the cactify task, patches were made and it's now fixed in cactus 1.8. This error however occurs

RE: How to set user principal in setUp()

2009-01-22 Thread Nicole Luneburg
Hi, I finally have cactus running the way you explained, joy! Ok what did I do to get it working ... To be honest there is too much to write, but for the benefit of others who might have read this thread ... I followed Petar's instructions on getting the example working. Once I got that

Viewing Test Results

2009-01-22 Thread Nicole Luneburg
Hi all, I'm running cactus 1.8.0, jboss 4.2.3. I am able to run my test however all tests fail. For simplicity I just had one test class and one test method: package myapp.ejb.service; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import

RE: Viewing Test Results

2009-01-22 Thread Nicole Luneburg
Just quickly ... I can see my STDOUTs in output.log, but only for: 1) setup() 2) testGetUserString() In that order. I need to be able to access begin(WebRequest theRequest) because I need to do: theRequest.setRedirectorName(ServletRedirectorSecure);

RE: Viewing Test Results (Att: Petar)

2009-01-22 Thread Nicole Luneburg
Hi Petar, Sorry to bother you directly with this ... Remember I was saying I got your example working? I left it exactly as it is but I just added: junit.framework.Assert.assertTrue(expected test role in request, super.request.isUserInRole(test)); and the test fails. Does this mean the

RE: Viewing Test Results

2009-01-26 Thread Nicole Luneburg
Hi, Thanks for the welcome and the response! Ok so before I modified my assert, I took it out to see what happens. My class looking like: package myapp.ejb.service; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import

RE: Viewing Test Results

2009-01-28 Thread Nicole Luneburg
Anyone know what I'm doing wrong? .. -Original Message- Sent: Tuesday, 27 January 2009 11:47 AM Hi, Thanks for the welcome and the response! Ok so before I modified my assert, I took it out to see what happens. My class looking like: package myapp.ejb.service; import