• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

ActionServletRequest

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

I have a strange behaviour here.

I integrated jforum with my website. Everything works fine on my computer: Win XP + Tomcat 5.5.17.

But when I install it remote on a linux machine + Tomcat 5.5.16 it does not run at all.

After adding a lot of logging I isolated the problem.

In the ActionServletRequest.
There is one if there, to select which path to go. If a GET request or a POST request. Strange is that it is a GET request, but the code doesn't go either part of the if. So it results in having module parameter == null and therefore JForum return a 404 page.

My question is:
In this line
if ((("GET").equalsIgnoreCase(requestType) && (superRequest.getQueryString() == null))
&& requestUri.endsWith(SystemGlobals.getValue(ConfigKeys.SERVLET_EXTENSION)))

Why was the superRequest.getQueryString() == null condition added?
Can I get it out, or?

Thank you very much.
[originally posted on jforum.net by danidacila]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are some problems with Tomcat 5.5.16 also ... there have been several threads posted regarding this. You may want to try a search to read the relevant topics.
[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do not use Tomcat 5.5.16 - downgrade or upgrade it.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
version 5.5.17 is ok! update and enjoy it!
[originally posted on jforum.net by udlich]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic