wood burning stoves 2.0*
The moose likes JForum and the fly likes HTTP Status 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "HTTP Status 404" Watch "HTTP Status 404" New topic
Author

HTTP Status 404

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

I have downloaded the software and unzipped it and stored it in my webserver ROOT. I followed the manual installation instructions, as the automatic ones didn't seem to work for me.

However after completing the installation I receive this http status 404 error. It's trying to display the forums/list.page page.

I've browsed about all messages on this forum, but I couldn't find the solution to my problem. Please help me!

Webserver I am running is Tomcat 4.x.

Running on a WinXP Professional system SP1

I think I miss some sort of web translation for all *.page pages, but I am not sure. Do I need to configure something at the Tomcat site? Maybe a context? If so, please describe how.

Thanks a lot for your help and happy new year!

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

Joined: Apr 22, 2012
Posts: 17424
Well, the web.xml file which comes with jforum already has the mapping for *.page. Are you using that file?

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

Joined: Apr 22, 2012
Posts: 17424
Thanks for your reaction.

The web.xml file is under the following path relative to my webserver:

JForum\WEB-INF

So I guess I use it.

But I think I need to define a context in the Tomcat web.xml file that tells the webserver how to process the jforum files, or am I wrong?


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

Joined: Apr 22, 2012
Posts: 17424
You don't need, because the web.xml file already contains the mapping. Open it and you'll see some entries like



which tells Tomcat to redirect all .page urls to jforum's servlet ( which is declared in the begginning ).

I'm not sure why you're getting 404. Are you accessing tomcat directly? ( because if Apache is before it, you will need to configure workers2.properties ).

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

Joined: Apr 22, 2012
Posts: 17424
I am running into a weird situation. I integrated jForum with my app to have a different header/menu. It works fine on Tomcat 5.5.16 (that I saw a lot of talks here said it's problematic). When I run it on 6.0.14, it works with FireFox, but not IE. It failed on submitting a topic and got a 404 error. It seems that there is no module (expecting "post") set in the HttpServletRequest, so JForum.service just returns a 404 error in line 79.

If I just installed just jforum, it works on posting on 6.0.14 with IE with all data filled in the request.

Any suggestion?

thanks!
[originally posted on jforum.net by jshiau]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
There is any stack trace? if so, please paste it here.

Also, have you tried another Tomcat version, just to make sure it's not something related to 6.0.14?

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

Joined: Apr 22, 2012
Posts: 17424
There is no stack trace and there is nothing standing out in the log files; nothing other than starting up message in catalina log and context initialized message in localhost log.

I was able to run it under 5.0.28 as well as 5.5.16.

I think there might be a conflict in libraries and specifically xalan jar. But I have not been able to ping down which one.

When I submit from http://localhost:8080/myapp/posts/reply/0/12.page, I got 404; The requested resource () is not available. on http://localhost:8080/myapp/jforum.page. The 12.page source about "submit" looks okay: I don't think validatePostForm will wipe out anything, will it?

<form action="/imsweb2/jforum.page" method="post" enctype="multipart/form-data" name="post" id="post" onsubmit="return validatePostForm(this)">
....
<input class="mainoption" accesskey="s" tabindex="6" type="submit" value="Submit" name="post" />

Thanks!
[originally posted on jforum.net by jshiau]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hm, it may be a problem with such libraries. I had trouble with them in the past in some specific Linux distros. For what I can remember, I did a set of tests in different directories, like having it only in tomcat's common/lib, then only in jforum's web-inf/lib and etc.. You may want to try that.

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

Joined: Apr 22, 2012
Posts: 17424
Thanks for the responses, Rafael. Unfortunately, I've tried that earlier and there is no duplication of library I could eliminate. What I couldn't understand is the symptom of the problem seems to indicate there are 2 different sources. It works with FireFox, but not IE means there may be code specific for IE that's broken. It behaves differently on different Tomcat versions seems to indicate there are differences on server code that might be broken. I am currently looking into all the JavaScript to see if there is anything stands out. Is there any client code that fills the module attribute that will end up in the HTTPRequest object?



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

Joined: Apr 22, 2012
Posts: 17424
HHm... maybe some ajax call, but they are rare (like previewing a post while writing it).

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

Joined: Apr 22, 2012
Posts: 17424
FYI, it's working now after we changed the NTLM filter url-pattern in web.xml to protect all *.page. I still don't quite understand the reason why it made the difference. :roll: Could the filter chain order changed so that those hidden fields like module and action got preserved somehow? But anyway it's working now and thanks for the response.
[originally posted on jforum.net by jshiau]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTTP Status 404
 
Similar Threads
unable to run servlet in tomcat
The First Steps.. you start here
server created in eclipse not showing welcome page of tomcat
Problem running tomcat - HTTP Status 404
HTTP Status 404 - Servlet springtest is not available