wood burning stoves 2.0*
The moose likes JForum and the fly likes The First Steps.. you start here Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "The First Steps.. you start here" Watch "The First Steps.. you start here" New topic
Author

The First Steps.. you start here

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The stack error is incomplete... The most relevant lines are missing.
Find the first 2 or 3 lines and paste them here or in another topic.

Check log files define by log4j.xml or other (depend on your web provider) to have the complete error trace.
[originally posted on jforum.net by Blackwings]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
lonely_star wrote: I had ever rename "new_rename.htm" to "index.htm". The file index.htm still wants to redirect me to forums/list.page.


If you hadn't installed jforum yet, you can access the installation wizard using the following url:



But, as mentioned, the stack trace is incomplete. What OS / Servlet Container / Java version are you using?

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I got the same errors as the above posters after finishing a fresh installation of JForum 2.0.2 on Tomcat 5.0.28 running on WinXP with MySQL.

http://localhost:8084/JForum/forums/list.page

And here is its HTML source:

[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You can try the manual installation ( [url]http://www.jforum.net/install_no_wizard.htm ). This Installer exceptions are hard to trace. I'm working on in to improve the error messages, but, until there, you can configure jforum by hand. Is not hard.

Suggestions are always welcome!

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
While I'm setting automatically installation, I have got an error

Error
An error has occurred while updating the Administrator's Password. Please refer to the complete error message in the field below for more technical information.


Error raised:
General error message from server: "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='"

please give me advise...
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:While I'm setting automatically installation, I have got an error

Error
An error has occurred while updating the Administrator's Password. Please refer to the complete error message in the field below for more technical information.


Error raised:
General error message from server: "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='"

please give me advise...


See this topic: http://www.coderanch.com/t/574688

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:I got the same errors as the above posters after finishing a fresh installation of JForum 2.0.2 on Tomcat 5.0.28 running on WinXP with MySQL.


On http://www.jforum.net/forums/list.page, if you click on the icon to the latest post of "Downloading / Installing" box (http://www.jforum.net/posts/list/45//5.page#2205), you'll see the same error.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:
Anonymous wrote:I got the same errors as the above posters after finishing a fresh installation of JForum 2.0.2 on Tomcat 5.0.28 running on WinXP with MySQL.


On http://www.jforum.net/forums/list.page, if you click on the icon to the latest post of "Downloading / Installing" box (http://www.jforum.net/posts/list/45//5.page#2205), you'll see the same error.


Is not the *same* error, although an exception will the trhown. This bug is already fixed in the development version.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi Rafael,

You configured a standard character-encoding and database. Could you to share some information about them? :?:


Thanks a lot of...
[originally posted on jforum.net by lonely_star]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
kot wrote:
So, to get rid of this InvalidReferenceException problem I must check out latest sources?


hhmm.. no. This "invalidRefrenceException" is from freemarker, but it does not points to the root of the problem, which may be tons of possibilities.

kot wrote:
Is there any relatively stable development version (maybe I could check out sources with specific revision)? If no, when do you plan to ship next version with this fix?


I don't know for sure. It looks like the system didn't started well.. things like wrong database configuration, forgotten database dumps and so on are candidates for starting a bug.

Did you tried removing the jforum's installation and making a new one? If you are usnig jetty, try getting tomcat and see if it works. The important point is to isolate the problem.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Rafael Steil wrote:
kot wrote:
So, to get rid of this InvalidReferenceException problem I must check out latest sources?


hhmm.. no. This "invalidRefrenceException" is from freemarker, but it does not points to the root of the problem, which may be tons of possibilities.

I don't know for sure. It looks like the system didn't started well.. things like wrong database configuration, forgotten database dumps and so on are candidates for starting a bug.

Did you tried removing the jforum's installation and making a new one? If you are usnig jetty, try getting tomcat and see if it works. The important point is to isolate the problem.

Rafael


No, I'm using apache2 with Resin module. I did run all necessary sqls. It looks like JForum.setupTemplateContext() method doesn't do it's job correctly.
[originally posted on jforum.net by kot]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
kot wrote:No, I'm using apache2 with Resin module. I did run all necessary sqls. It looks like JForum.setupTemplateContext() method doesn't do it's job correctly.


Well, can you try accessing via Tomcat directly? And maybe using resin directly too. This will help me a lot, since many times is hard to get time to try jforum with all possible configurations / containers.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Rafael Steil wrote:
kot wrote:No, I'm using apache2 with Resin module. I did run all necessary sqls. It looks like JForum.setupTemplateContext() method doesn't do it's job correctly.


Well, can you try accessing via Tomcat directly? And maybe using resin directly too. This will help me a lot, since many times is hard to get time to try jforum with all possible configurations / containers.

Rafael


I don't use Tomcat. I use Apache HTTP server which is not a servlet container. I can try running directly on resin, but not right now - I need to change resin configuration.
[originally posted on jforum.net by kot]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
kot wrote:
I don't use Tomcat. I use Apache HTTP server which is not a servlet container. I can try running directly on resin, but not right now - I need to change resin configuration.


I know that you don't use Tomcat, as I also know that apache httpd cannot run servlets .

I just asked to you to try with tomcat too see if it works, because, if does, I can assume that the error only occurs with resin ( or resin + apache ), which helps a lot to debug the problem.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:I got the same errors as the above posters after finishing a fresh installation of JForum 2.0.2 on Tomcat 5.0.28 running on WinXP with MySQL.

http://localhost:8084/JForum/forums/list.page

And here is its HTML source:



I have exactly the same problem with JForum 2.0.2 on WinXP/MySQL/Resin3.0.8.

from my jforum.log:

2004-12-15 15:54:35,103 ERROR [runtime] -
Expression encoding is undefined on line 4, column 63 in default/forum_base.htm.
The problematic instruction:
----------
==> ${encoding} [on line 4, column 61 in default/forum_base.htm]
in include "default/forum_base.htm" [on line 4, column 1 in exception.html]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression encoding is undefined on line 4, column 63 in default/forum_base.htm.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:171)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:171)
at freemarker.core.Environment.include(Environment.java:1256)
at freemarker.core.Include.accept(Include.java:156)
at freemarker.core.Environment.visit(Environment.java:171)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:171)
at freemarker.core.Environment.process(Environment.java:156)
at freemarker.template.Template.process(Template.java:219)
at net.jforum.ForumException.<init>(ForumException.java:85)
at net.jforum.JForum.service(JForum.java:285)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
at java.lang.Thread.run(Thread.java:534)
2004-12-15 15:54:35,114 ERROR [ForumException] - java.io.IOException: The request '/jforum/forums/list.page' is not valid. A correspondent URL Pattern was not found
at net.jforum.ActionServletRequest.<init>(ActionServletRequest.java:258)
at net.jforum.JForum.service(JForum.java:214)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
at java.lang.Thread.run(Thread.java:534)

[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Rafael Steil wrote:
Anonymous wrote:
Anonymous wrote:I got the same errors as the above posters after finishing a fresh installation of JForum 2.0.2 on Tomcat 5.0.28 running on WinXP with MySQL.


On http://www.jforum.net/forums/list.page, if you click on the icon to the latest post of "Downloading / Installing" box (http://www.jforum.net/posts/list/45//5.page#2205), you'll see the same error.


Is not the *same* error, although an exception will the trhown. This bug is already fixed in the development version.

Rafael


What is "development" version? Is it possible to download and try it?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:
What is "development" version? Is it possible to download and try it?


It is the... development version . You can see how to access it here: http://www.jforum.net/development.htm

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Rafael Steil wrote:
Anonymous wrote:
What is "development" version? Is it possible to download and try it?


It is the... development version . You can see how to access it here: http://www.jforum.net/development.htm

Rafael


So, to get rid of this InvalidReferenceException problem I must check out latest sources? Is there any relatively stable development version (maybe I could check out sources with specific revision)? If no, when do you plan to ship next version with this fix?
[originally posted on jforum.net by kot]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
JForum = phpBB
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi,
i want to make change in the look of the jorum could u please suggest how to manipulate the .page files.
i have no idea about the .page format.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You just need to change the CSS or HTML files. Take a look in the directory templates/default

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I have a question.
I just downloaded Tomcat and JForum (and J2EE , cause I only had J2SE) and I now have JForum running on my computer. Only, I don't want it on my computer... I want it on my website!

How do I go about this? Do I have to install Tomcat on that server ? And if so... how ? Do I just FTP the whole Tomcat directory to my webspace or what ? I don't have a clue now.

Thanks,
Q
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You don't have to get J2EE . Just Tomcat and J2SE are fine.

Your website is in some hosting company or do you have your own machine? If it is in a hosting company, I suggest you to contact their support and ask about java web applications running there. Otherwise - if you have your machine -, just make sure JDK and tomcat are installed, and have fun

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, as I said, on my machine everything is working out fine.
I know I don't need J2EE, that's why it was between brackets

I want to use my webspace from the university however (i am a student). Let's for a moment assume I'm allowed to have active content, how do you then in general do it ? I know how to get JForum in Tomcat, but how do I get Tomcat on my webspace ?

Q
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You should install Tomcat there, of course. I guess you should talk to someone there who have administrative access rights to the machine, so he can install / configure Tomcat.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
So it's not just a matter of copying the files, then ? 'cause uploading I can do, of course.
Can you then never just upload a servlet to the webspace ?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You can upload the webapplication yes, but I'm refering to the tomcat installation.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ok, I'll mail the support then,

Q
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi, i am getting the same error in my localhost and in my website, it is:



I requested for my webserver the installation of tomcat and is fine, but i get this error now. I suspect that is something wrong on my tomcat/apache configs and in the webserver too.
[originally posted on jforum.net by Murata]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, they've configured the context "jforum" for you?

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
See this message:

http://www.jforum.net/posts/list/0/967.page#4242

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
why register function can not run when I install jforum?



java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.jforum.Command.process(Command.java:106)
at net.jforum.JForum.service(JForum.java:298)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.octo.captcha.CaptchaException: word is too big, try to use less letters, smaller font or bigger background
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)
... 20 more
Caused by: com.octo.captcha.CaptchaException: word is too big, try to use less letters, smaller font or bigger background
at com.octo.captcha.component.image.textpaster.RandomTextPaster.getRandomDeviation(RandomTextPaster.java:531)
at com.octo.captcha.component.image.textpaster.RandomTextPaster.pasteText(RandomTextPaster.java:513)
at com.octo.captcha.component.image.wordtoimage.ComposedWordToImage.pasteText(ComposedWordToImage.java:587)
at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getImage(AbstractWordToImage.java:517)
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:544)
... 24 more
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Where can I get war file to install on my server?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Consider the unpacked zip file as an unpacked war file . I don't provide a .war for download, but if you need it, just create it yourself.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Has anyone ever created and deployed a jforum WAR, particularly into Oracle Application Server?

Any ideas, particularly ones based on experience, would be greatly appreciated.

Thanks,
jeffrey
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:Does it use the same schemas as phpBB2? e.g., could I copy my phpBB2 database and point JForum at it?

Very cool project.

[originally posted on jforum.net by gbhu]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi�?�
I use Tomcat (version: 4.1) and MySQL (version 5.0). It runs very well when I create subjects in English, but when I use Chinese, it can not show the words. Can you help me? Thanks
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hehe,very nice,like it!
[originally posted on jforum.net by ttt]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I just want to know more about the WEB-INFO/web.xml
could some one point me to an easy reference?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Sure:

http://e-docs.bea.com/wls/docs81/webapp/web_xml.html

Rafael
[originally posted on jforum.net by Rafael Steil]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The First Steps.. you start here
 
Similar Threads
java.lang.reflect.InvocationTargetException
Running 1.5 from CVS?
Upgrading to RC5
Developer docs
JForum 2.1 released