click-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul <>
Subject Re: By-passing Security on Home Page
Date Thu, 30 Oct 2008 15:35:28 GMT
Hi Bob,

Thank you very much for your suggestion.  Yes, I am using Click's quickstart to
generate my application. I'm having a bit of a problem moving the home page and
making it work.  Below is what I did.

1. Moved ...\myapp\WebContent\user\home.htm to

2. In ...\myapp\WebContent\WEB-INF\menu.xml
changed user/home.htm to home.htm

3. Moved ...\myapp\page\user\ to

4. In changed
package; to

5. In all of the other java files changed
import; to

6. In ...\WebContent\redirect.html changed "URL=user/home.htm" to

7. In ...\WebContent\logout.html changed $context/user/home.htm to

When I start Tomcat, I get the error below.  Entering address
(http://server1:8080/myapp/home.htm) in my web browser works the way I want
(i.e., security is by-passed and the home page is displayed).  However, when I
enter http://server1:8080/myapp/login.htm" in the web browser and try to login,
the web browser URL is changed to "http://server1:8080/myapp/j_security_check"
and the error is "HTTP Status 400 - Invalid direct reference to form login
page".  Did I make a mistake in the steps above or did I leave something out?
Maybe instead of moving the home page which will just be for searching, I should
just create a search page and put it at the root level and leave everything else
alone.  Any suggestions?

Thank you,

********** Error when starting Tomcat ***********************
[Click] [info ] initialized in debug mode
Oct 30, 2008 10:15:05 AM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions:
ion:; unable to create instance; unable to
create instance
at org.apache.catalina.session.StandardSession.readObject
  ( ...

View raw message