Kaptcha on redhat linux

22 views
Skip to first unread message

Raghu

unread,
Jan 8, 2009, 5:44:53 PM1/8/09
to kaptcha
Hi, I am using kaptcha in my web application...I works fine for me in
my local development environment which is windows but my web hosting
has red hat linux 3.4.6..
I checked java -version and I found out they had gcj (GCC) GNU
compiler java 1.4.2..I asked them to replace with sun jdk1.5...and now
it java -version shows me sun jdk1.5, however I am still not able to
see kaptcha on my linux web hosting server..

I have not tried below..does it require for jdk1.5 as well? What else
do I require?

>>>Make sure to start your JDK with -Djava.awt.headless=true

Thanks
Raghu

jon stevens

unread,
Jan 8, 2009, 6:12:05 PM1/8/09
to kap...@googlegroups.com
Maybe the path to the image is different? Are you taking the context
path into consideration?

Raghu

unread,
Jan 8, 2009, 8:54:11 PM1/8/09
to kaptcha
Hi Jon, I deployed your sample app kaptcha.war on my redhat linux web
hosting server but that also doesn't show captcha image....Have a look
on below link?

http://www.write4smile.com/kaptcha/KaptchaExample.jsp

I even started tomcat 5.5 with headless mode but nothing is working
for me...
Any suggestions???

JAVA_HOME=/usr/java/jdk1.5.0_09 ; export JAVA_HOME
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"







On Jan 8, 6:12 pm, "jon stevens" <latch...@gmail.com> wrote:
> Maybe the path to the image is different? Are you taking the context
> path into consideration?
>

jon stevens

unread,
Jan 8, 2009, 9:17:36 PM1/8/09
to kap...@googlegroups.com
Anything in the logs?

My blog: http://lookfirst.com/

Raghu

unread,
Jan 8, 2009, 9:34:50 PM1/8/09
to kaptcha
I don't see any error in log for kaptcha except below.....

File does not exist: /home/virtual/site470/fst/var/www/html/kaptcha/
Kaptcha.jpg, referer: http://www.write4smile.com/kaptcha/KaptchaExample.jsp


On Jan 8, 9:17 pm, "jon stevens" <latch...@gmail.com> wrote:
> Anything in the logs?
>
> My blog:http://lookfirst.com/
>

jon stevens

unread,
Jan 8, 2009, 10:02:08 PM1/8/09
to kap...@googlegroups.com
Well, that is very strange. That jsp page references a file called
Kaptcha.jpg. It seems that apache is handling a request for
http://www.write4smile.com/kaptcha/Kaptcha.jpg instead of the servlet
container. My guess is that apache is not configured correctly to pass
requests for *.jpg to the servlet container.

Raghu

unread,
Jan 8, 2009, 10:25:16 PM1/8/09
to kaptcha
You are right Jon, probably that might be issue...I had faced same
issue when my .action request were not reaching to struts2 action
classes...
Thanks for hint...

On Jan 8, 10:02 pm, "jon stevens" <latch...@gmail.com> wrote:
> Well, that is very strange. That jsp page references a file called
> Kaptcha.jpg. It seems that apache is handling a request forhttp://www.write4smile.com/kaptcha/Kaptcha.jpginstead of the servlet
> container. My guess is that apache is not configured correctly to pass
> requests for *.jpg to the servlet container.
>

Raghu

unread,
Jan 15, 2009, 8:18:29 PM1/15/09
to kaptcha
It worked for me. Thanks Jon...
I have a query. Usually I have seen captcha are provided on signup
form or comment form where user is not yet logged in?
Is it possible someone can run bot program even after logging into
site? If yes, then how should it be prevented?


On Jan 8, 10:25 pm, Raghu <techhel...@gmail.com> wrote:
> You are right Jon, probably that might be issue...I had faced same
> issue when my .action request were not reaching to struts2 action
> classes...
> Thanks for hint...
>
> On Jan 8, 10:02 pm, "jon stevens" <latch...@gmail.com> wrote:
>
> > Well, that is very strange. That jsp page references a file called
> > Kaptcha.jpg. It seems that apache is handling a request forhttp://www.write4smile.com/kaptcha/Kaptcha.jpginsteadof the servlet
Reply all
Reply to author
Forward
0 new messages