Thanks for the reply! Unfortunately I did upgrade to 4.0.4 and I'm still having the
same problem. Maybe I don't have all the .jar files I need in my CLASSPATH? (Which
.jars to use was always unclear.) Here are the ones I am using:
bootstrap.jar
catalina.jar
jakarta-regexp-1.2.jar
jasper-compiler.jar
jasper-runtime.jar
jndi.jar
naming-common.jar
naming-factory.jar
naming-resources.jar
servlet.jar
servlets-cgi.jar
servlets-common.jar
servlets-default.jar
servlets-invoker.jar
servlets-manager.jar
servlets-ssi.jar
servlets-webdav.jar
tomcat-http11.jar
tomcat-util.jar
xerces.jar
Also, here is my web.xml file:
<web-app>
<servlet>
<servlet-name>Controller</servlet-name>
<servlet-class>com.acme.admin.web.Controller</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>*.ctrl</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>15</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>main.html</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>Admin App</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Admin App</realm-name>
</login-config>
</web-app>
In addition to this I also have the standard default web.xml file the /conf
subdirectory. I'd also put in the code snippet where I set up the Embedded but I don't
want to inundate you with stuff :-)
So as I said it's still not working. If you see anything missing from the jars,
anything wrong with my web.xml file, or have any other ideas, any help is much
appreciated!
Thanks again!
noah
On 20 Jun 2002, [EMAIL PROTECTED] wrote:
> It is a bug in tomcat 4.0.3. I had the same
> problem until using 4.0.4.
>
> Bao-Ha Dam Bui [EMAIL PROTECTED]
> S. Jude Medical, Inc
> 651.765.1018
>
>
> -----Original Message----- From:
> [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] Sent: Thursday,
> June 20, 2002 11:49 AM To:
> [EMAIL PROTECTED] Subject: HELP!
> <login-config> problems
>
> Hi, I've posted this a few times and am
> trying one last time. When I run my .war
> file in a regular 4.0.3 server, using an
> <auth-method> of either BASIC or FORM, it
> works fine. However, if I run it in an
> embedded version of the same server, I get
> errors. With BASIC, the browser never shows
> the dialog, but just fails the login
> immediately. That is, it calls the
> "Principal authenticate (String username,
> String credentials)" right away, without
> even putting up the dialog. It then prints
> the following error to the log:
> HttpProcessor[8080][4]
> process.invokeInvalid user ID
>
> With the FORM login, a successful login caused
> the browser to redirect to one of the image
> files on the login page, rather than to the
> welcome page. An unsuccessful login fails to
> bring up the specified <form-error-page>.
>
> Either I'm misconfiguring something, or
> embedded Tomcat is EXTREMELY buggy when it
> comes to <login-config> implementation. BTW I
> did upgrade to 4.0.4 and the same problems
> happened. I'm using the o.a.c.startup.Embedded
> class, and am following the directions
> described in James Goodwill's Apache
> Jakarta-Tomcat book (with the correct .jar
> files that he lists in his article.)
>
> Has anyone had any experience with this? I
> really do need some help here, I'm on a pretty
> scary deadline.
>
> Thanks! Noah
>
> p.s. I will my web.xml file to anyone who
> asks, just didn't want to clutter up your
> mailbox right away.
>
> --
> To unsubscribe, e-mail: <mailto:tomcat-user-u-
> [EMAIL PROTECTED]> For additional
> commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>