• 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

Freemarker in JBuilder

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using commons-fileuplaod which comes with jforum or another version?

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
Hello,

I have Jforum in JBuilder, for editing the code, but when I run Jfourm I get an error. I think it is about freemarker, this is the error:



Can anyone tell me what to do.

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
I fixed the freemarker problem. But I have a new problem. It seems that the fileupload from jakarta couldn't work together with JForum.

Have anybody any suggestions about this problem.

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 the error:



I hope anyone can help.

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
I used another version because the one in JForum is not a stable one. But now I use the fileupload from JForum. And it works.

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
Well, the "stable" 1.0 version (which is from veeeeeeeeeeery long time ago) has some bugs with character encoding, so that's why I'm using a -dev branch.

I sincerely don't know why those bastards don't release a new version of commons-upload.

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
I don't know how you managed to use the 1.1 version, since the method isMultipartContent() isn't defined in that branch yet. Here is the comments in the source code:

//NOTE: This method cannot be enabled until the one in FileUploadBase is
// removed, since it is not possible to override a static method.
//public static final boolean isMultipartContent(
// HttpServletRequest request) {
// if (!"post".equals(request.getMethod().toLowerCase())) {
// return false;
// }
// return FileUploadBase.isMultipartContent(
// new ServletRequestContext(request));
//}


So it basically calls the old method (which is deprecated in the new version) for now. I saw your code, and tried to use your 1.1 jar and still i get the same error.

I was using 1.0 myself, but wanted to try 1.1 because i am experiencing a weird bug between resin and apache.


[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wrong, FileUploadBase.isMultipart() isn't deprecated, yet i stil get no class found with your 1.1 or a nightly
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I experienced some issues with character-encoding when using version 1.0. The folks at apache already have a better version.. I just don't understand why they don't release it.

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
Well, I know why: because they, as usual, changed a lot of things and an upgrade will require major changes in everyone's code. That's tipical from that jakarta projects.

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
But the jar that you distribute (at least on 2.1.2) has the same problem i have with a nightly. I saw your code and you are doing the same thing. If you download the latest source code you can see that the method is commented, so i figured if i used your build it was going to work, but it didn't. What date is your build?
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HHmm.. the 1.1 jar is not the "latest".. I fetched it some time ago from the cvs and just give a name to the file.

Anyway, I guess I'm going to include commons-fileupload in jforum's core (aka, net.jforum.jakarta.upload.*), to avoid this kind of problem. Or maybe I downgrade do 1.0.. don't know yet.

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
Hi,

I am setting up Jforum in AIX 5.1 / JBoss 4.0.1sp1 environment. I am using HSQL db setup(simple setup) When I hit the next step in the configuration screen I get this error. My stack trace on the logs looks like the one given above.... Any ideas how I can resolve this.

BTW: The same setup works well in a Windows machine.

Thanks
sekar

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


root cause

java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload: method isMultipartContent(Lorg/apache/commons/fileupload/RequestContext;)Z not found
net.jforum.ActionServletRequest.<init>(ActionServletRequest.java:281)
net.jforum.InstallServlet.service(InstallServlet.java:96)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28



[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a conflict with the commons-fileupload library. JForum uses version 1.1, and you probably may have 1.0

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
I have commons-fileupload-1.1-dev.jar in my lib directory. Will this do ? Or should I have another jar file? I am using JForum 2.1.4.

Thanks for your help.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hm, it should work, unless your -dev version is different from the cvs version JForum is using.. (unlikely, but you know the jakarta guys ;) )

Rafael
[originally posted on jforum.net by Rafael Steil]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!