my dog learned polymorphism*
The moose likes Other Open Source Projects and the fly likes JCaptcha security Image generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JCaptcha security Image generation " Watch "JCaptcha security Image generation " New topic
Author

JCaptcha security Image generation

Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

hi all,

in this link :

http://forge.octo.com/jcaptcha/confluence/display/general/5+minutes+application+integration+tutorial

i followed all steps described in tutorial above & manage to get the servlet run well on my local tomcat server (localhost:8080).

the problem is when i deployed the servlet to a remote server and run it ;the image didn't got displayed .this puzzled me !

i tried many solutions like giving absolute url for img tag instead of relative urls. i also gave a jpg extension to img src tag instead of servlet path..but every time the servlet works on localhost & fail to display captcha image on remote server.

what could be the problem ?
any hints or ideas are very welcomed.

thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
Does the browser call the "/jcaptcha" URL? A tool like the LiveHTTPHeaders extension for Firefox can help you ascertain that.

If so, is the URL being called the one where the servlet is configured? In other words, does the servlet receive the request? You can put a logging statement into the servlet to make sure.


Ping & DNS - my free Android networking tools app
Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Originally posted by Ulf Dittmer:
Does the browser call the "/jcaptcha" URL? A tool like the LiveHTTPHeaders extension for Firefox can help you ascertain that.

If so, is the URL being called the one where the servlet is configured? In other words, does the servlet receive the request? You can put a logging statement into the servlet to make sure.


i run the example on tutorial on my localhost tomcat server & it works fine.
when i put my web application on a remote server the captcha image didn't displayed.the remote server admin said tomcat config parameters are kept default.so i'm puzzled why the image isn't displayed for remote server & works on my localhost server.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
so i'm puzzled why the image isn't displayed for remote server & works on my localhost server.[/QB]


Getting answers to the questions I asked will help you solve the puzzle, or, alternatively, provide us with more clues so we might help you. So far, we have very little to go by.
Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Originally posted by Ulf Dittmer:
Does the browser call the "/jcaptcha" URL? A tool like the LiveHTTPHeaders extension for Firefox can help you ascertain that.

If so, is the URL being called the one where the servlet is configured? In other words, does the servlet receive the request? You can put a logging statement into the servlet to make sure.


the answer for all questions is yes.
I copied the example in tutorial exactly as is.so you have all my code in link above.
i added log statement & yes the ervlet receives request and sends response.
did you read tutorial ? i followed steps exactly.i repeat : code works on localhost,doesn't work on remote (like www.somedomain.com/app).
could it be some settings for remote server ? what setting could cause this problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCaptcha security Image generation
 
Similar Threads
can any body help how to use jcaptcha engine
how to implement captcha in jsp?
How do I find out if X Server is running?
JCaptcha - How to avoid profanity/profane/obscene words
JCaptcha security Image generation