This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JForum and the fly likes tomcat 5.5.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JForum
Bookmark "tomcat 5.5.x" Watch "tomcat 5.5.x" New topic
Author

tomcat 5.5.x

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi all;
tomcat 5.5.9 is now stable so i thought its a good oportunity to ask if there should be any problem running jforum over tomcat 5.5.9.

specifically i am interested in jforum 2.0.2 over tomcat 5.5.9 with jdk 1.4 (not 1.5).

but i will soon be interested in other permutations such as jforum 2.0.2, tomcat 5.5.9, jdk 1.5 or jforum 2.1.x over tomcat 5.5.9 and so on...

any help would be great.
thanks in advance.
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hmm.. will Tomcat 5.5.9 work with JDK < 1.5? as far as I know, it is supposed to run with Java 5.

Anyway, I don't recomend running JForum (any version until this date) under a 5.0 VM. I have experienced some runtime problems with it when using JForum.

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

Joined: Apr 22, 2012
Posts: 17424
you can run tomcat 5.5.x with jdk1.4.
it requires the compatibility pack which is just a simple zip file with 4 files.

so i guess no one checked this?
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
ok;
so i managed to get jforum 2.0.2 to run over tomcat 5.5.9 with jdk1.4
took me 3 seconds.
i played with it for a short while and it looked ok.
should i try something specific to see if it works 100%?
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
With JDK 1.4 it should run fine

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

Joined: Apr 22, 2012
Posts: 17424
thanks;
what is the jforum road map for jdk 5.0 complience?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'll see if I can get it for 2.1.5

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

Joined: Apr 22, 2012
Posts: 17424
I'm using JForum 2.1.4 on JDK 1.5 and Tomcat 5.5.9 now.
It works fine.
[originally posted on jforum.net by andowson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Do you use postgresql, right?! I got problems when using mysql.

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

Joined: Apr 22, 2012
Posts: 17424
Yes, I use postgresql 7.4.7-2 on my CentOS Linux box.
If somebody wants to try Tomcat 5.5.9+JDK 5.0+JForum 2.1.4, he can choose to use postgresql for test.
I didn't try mysql, so I don't make promise that this configuration would work on mysql. We can wait for Rafael to make it work or help him test it.
[originally posted on jforum.net by andowson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
HHmm.. are you sure you don't have the context declared twice? For example, one time in server.xml and another in Conf/localhost/forum.xml

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

Joined: Apr 22, 2012
Posts: 17424
hi andowson ;

this is a way off topic but maybe you can clear something for me
i am porting from 5.0.30 to 5.5.9 and when starting 5.5.9, my application is deployed twice. I see all the startup resources being created twice - 2 contexts etc..). P.S the tomcat user list was not helpfull....

did you by any chance encounter this issue?
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi rafael.
actually;
i was reffering to an application different than jforum (thats why i said off topic). however, its really wierd so i will check it again with jforum.

i tried moving my context element to Conf/localhost/MyApp.xml but than the path="" is ignored and the manager application becomes the root application instead of my app.
thanks.

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

Joined: Apr 22, 2012
Posts: 17424
ok;
i have managed to duplicate the problem with jforum.
it seems that the load-on-startup in tomcat 5.5.9 has a bug.
i deployed jforum and put a load-on-startup with value 1 on the jforum servlet and the application got deployed twice.
i have know idea if this is a know issue but anyone with information on this is welcomed.

see console output to see 2 deployments:
Created MBeanServer with ID: 1786e64:103ac194089:-8000:gkatz-w2kp:1
05/05/2005 12:04:27 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
05/05/2005 12:04:27 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1531 ms
05/05/2005 12:04:28 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
05/05/2005 12:04:28 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
05/05/2005 12:04:28 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
12:04:29,675 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/languages/en_US.properties
12:04:29,691 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/languages/he_IW.properties
12:04:29,706 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/database/generic/generic_queries.sql
12:04:29,706 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/database/mysql/mysql.sql
12:04:29,722 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/SystemGlobals.properties
12:04:29,722 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/gkatz.conf
12:04:33,237 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/languages/en_US.properties
12:04:33,253 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/languages/he_IW.properties
12:04:33,269 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/database/generic/generic_queries.sql
12:04:33,269 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/database/mysql/mysql.sql
12:04:33,269 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/SystemGlobals.properties
12:04:33,269 INFO [FileMonitor ] Watching C:\jakarta-tomcat-5.5.9\webap
ps\JForum-2.0.2/WEB-INF/config/gkatz.conf
05/05/2005 12:04:34 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
05/05/2005 12:04:34 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
05/05/2005 12:04:34 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
05/05/2005 12:04:34 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
05/05/2005 12:04:34 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6938 ms
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
ok;
it was just a matter of putting deployOnStartup="false" on the host element.
wierd its nor the default setting on the server.xml though.
sorry for the off topic issue.
thanks.
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
No problem. I didn't know that too

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

Joined: Apr 22, 2012
Posts: 17424
I'll see if I can get it for 2.1.5

Rafael


rafael, do you think 2.1.5 will include jdk 5.0 support for mysql?
is there a time frame for that?
thanks in advance.
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
HHmm.. probably - IF the connector/j get its bugs fixed.

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

Joined: Apr 22, 2012
Posts: 17424
thanks;
i sure hope so.

being able to to have jconsole (jdk1.5 monitoring monitor tomcat would be a great addition to any portal management, i am looking forward to it.
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
is there anything specific that's not supposed to work you can tell me to look for?...
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
by the way rafael;
do you think the only problem here is connector-j?
i mean, can i run 2.0.2 with a "working" connector j (3.1.8 maybe) over java 5.0?

if the only problem is connector-j and there is no need for code adjustments in jforum, its prefferable for my situation to just update connector-j.....
[originally posted on jforum.net by gkatz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You could give it a try. I didn't try 3.1.8, but 3.1.7 was a shit.

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

Joined: Apr 22, 2012
Posts: 17424
The main problem was with some PreparedStatements, specially when having LIMIT ?, ? clauses, and lost of connections / broken pipes while comunicating with the mysql server.

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

Joined: Apr 22, 2012
Posts: 17424
thanks;
so what actions should i make in the forum to trigger those sql statements?
[originally posted on jforum.net by Anonymous]
 
GeeCON Prague 2014
 
subject: tomcat 5.5.x