RE: How to set user principal in setUp()
Nicole Luneburg <[email protected]> Fri, 23 Jan 2009 14:24:28 +1030
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
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 working, I applied the same to my own application. I ran into one error after the next but the end result was to have similar = files that were created by the sample application's ant "test" target. That test target depended on other ant targets but anyway it creates the fo= llowing files: cactus.samples.ejb3-1.8.1-SNAPSHOT.ear cactus.samples.ejb3-1.8.1-SNAPSHOT.jar cactus.samples.ejb3-1.8.1-SNAPSHOT.war cactus.samples.ejb3-cactified.ear for my application I just modified what I needed so that my corresponding g= enerated files were similar. I had to add extra files like: - persistence.xml - jdbc lib in jboss's lib directory. - myapp-ds.xml in the jboss deploy directory. The tests are now running, but every single one is failing. I'm praying I'm not getting the initial error again, but I cannot print any= statements out in the test class to see. Anyway, that is another issue. I will create a new thread. Petar thank you so much for your help with all this, it seems more like a s= pecific problem to me because I wasn't familiar with cactus etc. But I hope it helps someone else anyways. Adios! Nicole The contents of this email are confidential and may be subject to legal or = professional privilege and copyright. No representation is made that this e= mail is free of viruses or other defects. If you have received this communi= cation in error, you may not copy or distribute any part of it or otherwise= disclose its contents to anyone. Please advise the sender of your incorrec= t receipt of this correspondence.