I'm getting this error while registering. Is it because of X11?
<!-- BEGIN ERROR STACK TRACE
<br /> java.lang.reflect.InvocationTargetException
<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br /> at java.lang.reflect.Method.invoke(Method.java:324)
<br /> at net.jforum.Command.process(Command.java:106)
<br /> at net.jforum.JForum.service(JForum.java:298)
<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
<br /> at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
<br /> at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
<br /> at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
<br /> at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
<br /> at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
<br /> at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
<br /> at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
<br /> Caused by: com.octo.captcha.CaptchaException
<br /> at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:547)
<br /> at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:515)
<br /> at com.octo.captcha.engine.image.ListImageCaptchaEngine.getNextImageCaptcha(ListImageCaptchaEngine.java:559)
<br /> at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:347)
<br /> at net.jforum.view.forum.UserAction.insert(UserAction.java:142)
<br /> ... 14 more
<br /> Caused by: java.lang.NoClassDefFoundError
<br /> at java.lang.Class.forName0(Native Method)
<br /> at java.lang.Class.forName(Class.java:141)
<br /> at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
<br /> at com.octo.captcha.component.image.fontgenerator.RandomFontGenerator.getFont(RandomFontGenerator.java:496)
<br /> at com.octo.captcha.component.image.fontgenerator.TwistedRandomFontGenerator.getFont(TwistedRandomFontGenerator.java:495)
<br /> at com.octo.captcha.component.image.fontgenerator.TwistedAndShearedRandomFontGenerator.getFont(TwistedAndShearedRandomFontGenerator.java:494)
<br /> at com.octo.captcha.component.image.wordtoimage.ComposedWordToImage.getFont(ComposedWordToImage.java:559)
<br /> at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getAttributedString(AbstractWordToImage.java:528)
<br /> at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getImage(AbstractWordToImage.java:512)
<br /> at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:544)
<br /> ... 18 more
<br />
<br /> END ERROR STACK TRACE--> [originally posted on jforum.net by balakiran]
What else could be the reason? Do you think they are not in the classpath? Do i have to explicitly add them to my classpath? [originally posted on jforum.net by balakiran]
Thank you, It worked now after moving to JRUN_HOME/lib. Somehow, it looks like jrun classpath is overriding jforum classpath setting. Now, i'm getting error related to X11.
"Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable."
Do i need to install X11 on this redhat linux machine?
No, you don't need to have the files in the classpath. You can try to put into JRUN_HOME/lib, but I don't see how should it work.. but anyway, just give it a try.
If still it does not work, then I would suggest to disable captcha (Admin Panel -> Configurations -> Enable Captcha during registration).
Rafael [originally posted on jforum.net by Rafael Steil]
i did not change anything, but i started getting this error. Any other jar files to move to: <JRUN_HOME>/lib?
<!-- BEGIN ERROR STACK TRACE
<br /> java.lang.reflect.InvocationTargetException
<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br /> at java.lang.reflect.Method.invoke(Method.java:324)
<br /> at net.jforum.Command.process(Command.java:106)
<br /> at net.jforum.JForum.service(JForum.java:298)
<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
<br /> at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
<br /> at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
<br /> at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
<br /> at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
<br /> at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
<br /> at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
<br /> at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
<br /> Caused by: java.lang.NoClassDefFoundError: com/octo/captcha/engine/image/ListImageCaptchaEngine
<br /> at java.lang.ClassLoader.defineClass0(Native Method)
<br /> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
<br /> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
<br /> at jrunx.util.JRunURLClassLoader.defineClass(JRunURLClassLoader.java:187)
<br /> at jrunx.util.JRunURLClassLoader.findClass(JRunURLClassLoader.java:152)
<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
<br /> at jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:77)
<br /> at jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:69)
<br /> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
<br /> at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:347)
<br /> at net.jforum.view.forum.UserAction.insert(UserAction.java:142)
<br /> ... 14 more
<br />
<br /> END ERROR STACK TRACE-->
I just downloaded JForum yesterday. I'm running it on Mac OS X 10.4.3, MySQL 4.1, Tomcat 5.0.28, Java 1.4. I am seeing the same problem. Disabling Captchca worked, but there is apparently something funky going on.
Tony [originally posted on jforum.net by Tony Field]
I am using Fedora 4 ,
JDK j2sdk1.4.2_09
and i am pretty sure i have put those jar files under $TOMCAT/common/lib/ and all the related paths. However it still prompts me the same error. And i have checked the log files and those JCaptcha files have been deployed already.
So i have no clue on what is going on. I even have tried to put the ehcache-1.2beta4.jar in tomcat's lib path but that wont help neither.
Sam [originally posted on jforum.net by Anonymous]
I have found something silly about the java graphic packages in Fedora 4. The libXp.so is actually missing in the /urs/X11/lib path. So in order to fix that problem you have to download the deprecated libs from redhat's site.