Re: Mailing from geronimo

2006-10-03 Thread Peter Petersson
Hi again! Im just wondering if anyone is having a try on this ? It would be really appreciated as im cind off stuck here. It would really be nice to get geronimo-mail runing but if it's not gona happen maybe I will have beter luck with suns JavaMail so Is there a way to replace the mail

Re: Creating SQL security realm fails in 1.1.1

2006-10-03 Thread Peter Petersson
I had the same problem but find a pointer somware telling me to save the plan and use the command line deploy tool and It worked fine. Cheers Peter Lasantha Ranaweera skrev: Hi Markus, Yeah I have seen this problem in several times with Derby database in Windows environment. I couldn't

Re: Mailing from geronimo

2006-10-03 Thread Peter Petersson
My attempt to mail from within a quart job is now working ;) During correspondance with Rick McGuire that cindly dedicated som of his time to help me out, he sugested moving the transport retriving to the setMailSession method and wrap it up within a classloader call and it did the trick ;)

Geronimo and Base 64

2006-10-03 Thread sreepriya ramakrishnan
Hi all, Can anyone tell me of any available class in Geronimo package jars that can help me to decode Base 64 encoded strings? I tried using the MimeUtility.decode method in geronimo-javamail_1.3.1_spec-1.0.jar file, but it did not work. Appreciate your help. Thanks, Priya

Re: Geronimo and Base 64

2006-10-03 Thread Rick McGuire
sreepriya ramakrishnan wrote: Hi all, Can anyone tell me of any available class in Geronimo package jars that can help me to decode Base 64 encoded strings? I tried using the MimeUtility.decode method in geronimo-javamail_1.3.1_spec-1.0.jar file, but it did not work. Not surprising.

Re: Geronimo and Base 64

2006-10-03 Thread sreepriya ramakrishnan
Thanks for your help Rick. That solved it. --- Rick McGuire [EMAIL PROTECTED] wrote: sreepriya ramakrishnan wrote: Hi all, Can anyone tell me of any available class in Geronimo package jars that can help me to decode Base 64 encoded strings? I tried using the MimeUtility.decode

Geronimo and CustomLoginModules

2006-10-03 Thread sreepriya ramakrishnan
Hi all, I have written my own custom login module and I created and deployed the realm in Geronimo V1.0 console. Now, when I run my application it says it cannot find the Login module class. The documentation asks me to create a jar and put it in the repository ( I am assuming this means :

Re: Geronimo and CustomLoginModules

2006-10-03 Thread Vamsavardhana Reddy
You will add the dependency to geronimo-web.xml VamsiOn 10/3/06, sreepriya ramakrishnan [EMAIL PROTECTED] wrote: Hi all,I have written my own custom login module and Icreated and deployed the realm in Geronimo V1.0console.Now, when I run my application it says it cannot findthe Login module

Re: Geronimo and CustomLoginModules- not able to find jar

2006-10-03 Thread sreepriya ramakrishnan
Hi I added the dependency in the geronimo-web.xml like the following and I put the jar in a folder called login/jars which I created under Geronimo1.0/repository. I get the following exception: org.apache.geronimo.kernel.repository.MissingDependencyException: uri login/jars/Test.jar not found in

Geronimo-web.xml - Please help

2006-10-03 Thread sreepriya ramakrishnan
Hi all, Sorry to infiltrate your inboxes with these messages. Please see below a copy of my geronimo-web.xml. I have included my login modules in a jar file test-1.0.jar and put it in the repository. If the application deploys I am assuming , it has found the jar dependency. But,I find that

Re: File attatchement in geronimo mail

2006-10-03 Thread Rick McGuire
Peter Petersson wrote: Im using Geronimo 1.1.1 and has just started to look into geronimo-mail. Is it posible to send a multipart mail with a file atatchement in the current imp. of geronimo-mail ? In the case of yes any (code) examples out there explaining how to get it done ? I've got some

Geronimo and Cookies

2006-10-03 Thread sreepriya ramakrishnan
HI all, I am trying to add my cookie to the response. eg Cookie cookie = new Cookie(mycookie,test); now when I look for the cookie again , the name seems to be changed to JSESSIONID. Can some one point me as to what is happening here? -Priya __

Re: Geronimo and Cookies

2006-10-03 Thread Paul McMahan
The JSESSIONID cookie is used by the server to carry your session id and I would expect your cookie to be in the same batch. When you get the array of cookies from the request you should iterate until you find the correct one: Cookie[] cookies = request.getCookie(); for (int i=0; icookies.length;

Re: File attatchement in geronimo mail

2006-10-03 Thread Rick McGuire
Peter Petersson wrote: Im using Geronimo 1.1.1 and has just started to look into geronimo-mail. Is it posible to send a multipart mail with a file atatchement in the current imp. of geronimo-mail ? In the case of yes any (code) examples out there explaining how to get it done ? Here's a simple

Re: Geronimo and Cookies

2006-10-03 Thread sreepriya ramakrishnan
Hi Paul, But when I do request.getCookies() and check the length there is only one. Is there some setting within Geronimo where I should enable cookies? -Priya --- Paul McMahan [EMAIL PROTECTED] wrote: The JSESSIONID cookie is used by the server to carry your session id and I would expect

Re: Geronimo and Cookies

2006-10-03 Thread Paul McMahan
There's no setting that I'm aware of to explicitly enable cookies. Can you paste the code snipplet where you set the cookie and the snipplet where you look for it in a subsequent request? Paul On 10/3/06, sreepriya ramakrishnan [EMAIL PROTECTED] wrote: Hi Paul, But when I do

Re: Geronimo and Cookies-code snippet

2006-10-03 Thread sreepriya ramakrishnan
Cookie cookie = new Cookie(mycookie,test); cookie.setMaxAge(60); response.addCookie(cookie); then: Cookie cookie[]=request.getCookies() ;System.out.println(Here testign this...+cookie.length); for (int i=0;icookie.length;i++) {

Re: File attatchement in geronimo mail

2006-10-03 Thread Peter Petersson
Rick McGuire wrote: Peter Petersson wrote: Im using Geronimo 1.1.1 and has just started to look into geronimo-mail. Is it posible to send a multipart mail with a file atatchement in the current imp. of geronimo-mail ? In the case of yes any (code) examples out there explaining how to get it

Re: Geronimo and Cookies-code snippet

2006-10-03 Thread Paul McMahan
When I pasted that code into a JSP (renaming the cookie array to cookies to avoid a compile error) and ran it in the Tomcat version of Geronimo 1.1 it worked as expected. The first request produced: Here testign this...1 Here testign JSESSIONID and the subsequent requests produced: Here testign

Re: Geronimo and Cookies-code snippet

2006-10-03 Thread sreepriya ramakrishnan
Geronimo V 1.0 . Is there something else I need to do? --- Paul McMahan [EMAIL PROTECTED] wrote: When I pasted that code into a JSP (renaming the cookie array to cookies to avoid a compile error) and ran it in the Tomcat version of Geronimo 1.1 it worked as expected. The first request

Re: Unable to deploy Web service in Geronimo 1.1.1

2006-10-03 Thread JNRhodes
I figured it out - I needed to add a dependency to geronimo-axis in my geronimo-web.xml deployment plan: dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-axis/dep:artifactId dep:version1.1.1/dep:version

Re: Geronimo and Cookies-code snippet

2006-10-03 Thread Paul McMahan
On 10/3/06, sreepriya ramakrishnan [EMAIL PROTECTED] wrote: Geronimo V 1.0 . Is there something else I need to do? I tested in the tomcat version of geronimo-1.0 and it also works there. Just to make sure that we're on the same page here, you're aware that setting the cookie in the response

Re: Geronimo and Cookies-code snippet

2006-10-03 Thread sreepriya ramakrishnan
Hi Paul, This is waht I am trying to achieve. I have a servlet Filter and in the filter I try to read the Authorization header in the request headers . If I dont find it I send a response with www-authenticate so that it pops up a window to enter the username/password .Now at the same time I