Hello, I am using Tomcat 4.1 under Windows NT (with
service pack 2 installed) and jdk1.3.
I have configured a JDBC realm in my server.xml file
(to connect to a MSAccess database through JDBC:ODBC
bridge) by doing the following for my web app:
<Context path="/dasreiseportal"
docBase="dasreiseportal" debug="0">
<Realm
className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:LoginDBTest"
userTable="Users"
userNameCol="UserName"
userCredCol="UserPassword"
userRoleTable="UserRoles"
roleNameCol="RoleName" />
</Context>
(I have also tried the Realm tag outside the Context
tag).
I also have a web.xml file under the daseriseportal
webapplication folder which is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<!--
- Deployment descriptor for an authenticated
- section of the web site.
-->
<web-app>
<display-name>Dasreiseportal</display-name>
<description>Configuration for dasreiseportal
realm.</description>
<security-constraint>
<web-resource-collection>
<web-resource-name>dasreiseportal</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>dasreiseportal</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<!-- BASIC authentication, i.e. the authentication
resets when the user closes his/her browser -->
<auth-method>BASIC</auth-method>
<realm-name>Dasreiseportal</realm-name>
</login-config>
</web-app>
Everytime I startup Tomcat it throws a
"An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x1f90f56c
Function name=SQLFetch
Library=C:\WINNT\System32\ODBCJT32.DLL
Current Java thread:
at
sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native
Method)"
and goes on with several pages of error messages. If
I do not put the web.xml file under the dasreiseportal
folder then everything works fine (but I have no
realm).
I have set up the tables and roles properly in the
database (according to Tomcat Realm documentation).
I have looked for known bugs in apache's web site
but I could not find anything relevant.
I have looked through the Tomcat archives and some
more people had the same error (though not with Tomcat
4.1 buit with 3.2.2). They suggested that a MSACCESS
db might not be suitable for commercial use, but this
is the only solution I can go with at the moment.
Any help/thoughts are appreciated.
Regards
Panos
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>