Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCaptcha security Image generation

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic