Hi,
I installed jForum on two machines,
Test Server : Fedora Core 3 with
Java 1.5 &
Tomcat 5.5.9
Production Server : Fedora Core 2 with Java 1.4.2 & Tomcat 4.1
The forum works fine on the test server, but on the production server i have an exception in the registration page. I get an InvocationTagretException mostly, but i have also got a exception about unable to connect to the X11 server. The two exceptions i get are
1 (very rarely) : Can't connect to X11 window server using ':0.0' as the value of DISPLAY variable.
I
2 (Mostly) : java.lang.reflect.InvocationTargetException
The exeption stack trace is as follows.
01:17:27,189 ERROR [ExceptionWriter ] java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.jforum.Command.process(Command.java:106)
at net.jforum.JForum.service(JForum.java:298)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.....
Caused by: com.octo.captcha.CaptchaException
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:547)
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:515)
at com.octo.captcha.engine.image.ListImageCaptchaEngine.getNextImageCaptcha(ListImageCaptchaEngine.java:559)
at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:347)
at net.jforum.view.forum.UserAction.insert(UserAction.java:142)
... 35 more
Caused by: java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at com.octo.captcha.component.image.fontgenerator.RandomFontGenerator.getFont(RandomFontGenerator.java:496)
at com.octo.captcha.component.image.fontgenerator.TwistedRandomFontGenerator.getFont(TwistedRandomFontGenerator.java:495)
at com.octo.captcha.component.image.fontgenerator.TwistedAndShearedRandomFontGenerator.getFont(TwistedAndShearedRandomFontGenerator.java:494)
at com.octo.captcha.component.image.wordtoimage.ComposedWordToImage.getFont(ComposedWordToImage.java:559)
at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getAttributedString(AbstractWordToImage.java:528)
at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getImage(AbstractWordToImage.java:512)
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:544)
... 39 more
Please advice what can i do to overcome this.
thanks in advance
Praveen
[originally posted on jforum.net by Anonymous]