• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

apache commons file upload version

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am trying to help on fixing the problems of the jforum in postgresql database. Here is the libraries that i have
1. apache commons file upload verion 1.0 commons-fileupload-1.0.jar
2. Jboss cache
3. htmlparser
4. jcaptcha-all-1.0-RC2.0.1.jar

However, when i try to compile the jforum from source, it prompts
package org.apache.commons.fileupload.disk does not exist

am i using the wrong version of the fileupload ?

Regards,
Sam Leong
[originally posted on jforum.net by samleong]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which problems with postgresql?

The right version of commons-upload to use is the one which comes with JForum.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah ths i have found that version and able to compile it already.

I have sort of fixed that problem. It is abt message approval problem. Seems in postgresSql it cannot show the pending messages. And i have made some changes to the

/postgresql/ModerationModel.java

I have changed the line from
return super.topicsByForum(forumId, count, start + count);

into
return super.topicsByForum(forumId, count, start);

as in postgresql, select * ... limit count , offset start + count will return null if the actual number of rows in the result space is less than the start + count.

/Regards,
Sam

[originally posted on jforum.net by samleong]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JForum 2.1.4 has this bug fixed. If you are running 2.1.3 and would like to upgrade, download the patch: http://prdownloads.sourceforge.net/jforum/patch-2.1.3-to-2.1.4.zip?download

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is under WEB-INF/lib

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can I find the file upload version that comes with JForum?

I need this because I make a web apps that loads files up but it gives problems when I uses this together with JForum.

Thanx,

Henk
[originally posted on jforum.net by henkie]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is because jforum uses an experimental 1.1 version of fileupload which deprecates all the methods in the stable 1.0 version.

I don't know why rafael went out of his way to get the 1.1 version instead of the stable one. I think for the use he gives to it 1.0 would be enough (i havent studied the differences)
[originally posted on jforum.net by Anonymous]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!