Issue Details (XML | Word | Printable)

Key: FWK-113
Type: Task Task
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Critical Critical
Assignee: Antoine Véret
Reporter: rajiv tripathi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JCaptcha Framework

java.lang.ExceptionInInitializerError:

Created: 22/Oct/09 08:54 AM   Updated: 22/Oct/09 04:58 PM   Resolved: 22/Oct/09 04:58 PM
Component/s: None
Affects Version/s: 1.0_RC6
Fix Version/s: None

Environment: Weblogic 9.1,Windows Xp professional


 Description  « Hide
we are using Jcaptcha framework for generating image and sound captcha.our application is working fine on tomcat server but when we ported the application to weblogic 9.1 it is showing some exception.The image captcha part is working fine in Weblogic but whenever we try to generate the sound captcha it is showing the exception IntializerError .The call for sound captcha goes to a servlet from where it is routed to soundGenerator class which calls another class GenricCaptchaService to get instance of GenericManageableCaptchaService class,here this exception is coming.
When second time i click the button for sound captcha the error comes is NoClassDefFoundError at the location where i have called for genericCaptcha.getinstance method.
 The error logs are:

java.lang.ExceptionInInitializerError
        at com.infosys.setlabs.captcha.sound.SoundGenerator.getCaptchaSound(SoundGenerator.java:47)
        at com.infosys.setlabs.captcha.servlet.SoundCaptchaServlet.doPost(SoundCaptchaServlet.java:29)
        at com.infosys.setlabs.captcha.servlet.SoundCaptchaServlet.doGet(SoundCaptchaServlet.java:63)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        
java.lang.RuntimeException: unable to load voice :'kevin16'
        at com.octo.captcha.component.sound.wordtosound.FreeTTSWordToSound.<init>(FreeTTSWordToSound.java:70)
        at com.infosys.setlabs.captcha.sound.SoundCaptchaService.<clinit>(SoundCaptchaService.java:45)
        at com.infosys.setlabs.captcha.sound.SoundGenerator.getCaptchaSound(SoundGenerator.java:47)
        at com.infosys.setlabs.captcha.servlet.SoundCaptchaServlet.doPost(SoundCaptchaServlet.java:29)
        at com.infosys.setlabs.captcha.servlet.SoundCaptchaServlet.doGet(SoundCaptchaServlet.java:63)
        

The second time it is throwing this exception.
java.lang.NoClassDefFoundError: com/infosys/setlabs/captcha/sound/SoundCaptchaService
        at com.infosys.setlabs.captcha.sound.SoundGenerator.getCaptchaSound(SoundGenerator.java:47)
        at com.infosys.setlabs.captcha.servlet.SoundCaptchaServlet.doPost(SoundCaptchaServlet.java:29)
        at com.infosys.setlabs.captcha.servlet.SoundCaptchaServlet.doGet(SoundCaptchaServlet.java:63)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    
I tried to check on net but couldn't find the solution.This is very critical to my project.so kindly repond to it as soon as possible.

Sort Order: Ascending order - Click to sort in descending order
Antoine Véret added a comment - 22/Oct/09 04:58 PM
You have to place some freetts libs in your weblogic classpath (jre lib folder) in order to avoid the "java.lang.RuntimeException: unable to load voice :'kevin16'"

For further informations :
http://freetts.sourceforge.net/docs/index.php
http://forums.sun.com/thread.jspa?threadID=5169043

I dont know the cause of the second exception (java.lang.NoClassDefFoundError: com/infosys/setlabs/captcha/sound/SoundCaptchaService )

Regards