Hello,
I have two problems using Tomcat while developing a jsp web application,
I've been trying to solve them for quite some time but I wasn't able to do
so...

The first problem is about Tomcat's automatic authentication mechanism. I
need to authenticate users that are stored on an HSQL database, and I have
this database in the /data folder of my web application project. I am
using a form-based authentication, I have correctly set up the login and
error pages, and in the login page the form action is "j_security_check"
and the fields have the names "j_username" and "j_password". When I try to
access a protected resource, the mechanism correctly prompts me the login
form, I enter correct username and password (stored in the database) but
then I get redirected to the error page instead of the protected resource.
As everything looks correctly set to me, I think that maybe the problem is
in the server.xml file, where I have written the following lines to
connect the j_security_check with the database:

<Realm className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="org.hsqldb.jdbcDriver"
connectionURL="jdbc:hsqldb:hsql://localhost"
connectionName="SA"
connectionPassword=""
userTable="users"
userNameCol="username"
userCredCol="password"
userRoleTable="user_roles"
roleNameCol="rolename"
/>

So I'm guessing... where am I doing some mistake? Everything looks correct
to me...

The other problem I am having with Tomcat may be easier to solve: I can't
upload files greater than 1Mb. I tried specifying the maxpostsize
attribute in the server.xml file, like this:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
maxPostSize="1000000000"/>

but I still can't send 1025Kb. Any suggestion?

Thanks in advance for your help!


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to