You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wayne Gemmell <wa...@flashmedia.co.za> on 2007/01/24 15:12:01 UTC
UserDatabaseRealm Problems
Hi all
I'm running tomcat 5.0.30-9 with java 1.5.0_06-b05 on ubuntu
Dapper.
I am trying to receive a callback from worldpay in my application but
this seems to break the session causing an authentication failure when
worldpay initiates the callback.
Here is the dump of the error :
2007/01/24 01:56:57 org.apache.coyote.tomcat5.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the
request processing java.lang.NullPointerException
at
org.apache.catalina.realm.UserDatabaseRealm.authenticate(UserDatabaseRealm.java:156)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:129)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Any ideas what I'm doing wrong or what I can do to fix it?
Regards
Wayne Gemmell
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: UserDatabaseRealm Problems
Posted by Wayne Gemmell <wa...@flashmedia.co.za>.
Hi, thanks for the response.
On Thu, 25 Jan 2007 10:27:20 +0000
Pid <p...@pidster.com> wrote:
> Enable a RequestDumperValve so you can see what WorldPay is doing
> when it hits your URL.
>
> http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper
> %20Valve
Wow thats a lot of output! I think this is the significant part -
2007-01-25 13:15:03 RequestDumperValve[Catalina]:
---------------------------------------------------------------
2007-01-25 13:15:03 RequestDumperValve[Catalina]:
authType=BASIC 2007-01-25 13:15:03 RequestDumperValve[Catalina]:
contentLength=-1 2007-01-25 13:15:03
RequestDumperValve[Catalina]:
contentType=text/html;charset=ISO-8859-1 2007-01-25 13:15:03
RequestDumperValve[Catalina]: header=Pragma=No-cache
2007-01-25 13:15:03 RequestDumperValve[Catalina]:
header=Cache-Control=no-cache 2007-01-25 13:15:03
RequestDumperValve[Catalina]: header=Expires=Thu, 01 Jan
1970 02:00:00 SAST 2007-01-25 13:15:03
RequestDumperValve[Catalina]: message=null 2007-01-25
13:15:03 RequestDumperValve[Catalina]: remoteUser=user
2007-01-25 13:15:03 RequestDumperValve[Catalina]:
status=200 2007-01-25 13:15:03 RequestDumperValve[Catalina]:
=============================================================== SELECT
* FROM Tokens WHERE token_owner_id = 124 2007-01-25 13:15:07
RequestDumperValve[Catalina]: remoteHost=wcc2.worldpay.com
2007-01-25 13:15:07 RequestDumperValve[Catalina]:
remoteUser=null 2007-01-25 13:15:07 RequestDumperValve[Catalina]:
requestedSessionId=null 2007-01-25 13:15:07
RequestDumperValve[Catalina]: scheme=http 2007-01-25
13:15:07 RequestDumperValve[Catalina]: serverName=server.com
2007-01-25 13:15:07 RequestDumperValve[Catalina]: serverPort=80
2007-01-25 13:15:07 RequestDumperValve[Catalina]:
servletPath=/servlet.jsp 2007-01-25 13:15:07
RequestDumperValve[Catalina]: isSecure=false 2007-01-25
13:15:07 RequestDumperValve[Catalina]:
---------------------------------------------------------------
I setup worldpay with the following callback url:
http://user:password@server/servlet.jsp
This satisfies the apache password. I'm not sure how to now get it past
tomcats security.
>
>
> Has the system worked with this configuration before, or is this a
> new component?
The system worked before. I've now moved it to a new server and the
errors have started.
>
>
> What have you got configured in the UserDatabaseRealm file?
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="web_user"/>
<user username="user" password="password" roles="web_user"/>
</tomcat-users>
> Have you made sure the Roles are defined in the web.xml file?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted site </web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>web_user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
Regards
Wayne
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: UserDatabaseRealm Problems
Posted by Pid <p...@pidster.com>.
Wesley Hof wrote:
> There is no UserDatabaseRealm config file.
server/conf/tomcat-users.xml
UserDatabaseRealm reads from that file to determine who can log in, with
which privileges. Authentication is activating, but I don't see any
references to a restricted area in your web.xml.
what is the path that you've got for the WorldPay callback? (don't post
the server address)
(I'm not familiar with WebWork, so I don't know if that's handling the
authentication.)
>> Enable a RequestDumperValve so you can see what WorldPay is doing when
>> it hits your URL.
>>
>> http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper
>> %20Valve
>>
>>
>> Has the system worked with this configuration before, or is this a new
>> component?
>>
>>
>> What have you got configured in the UserDatabaseRealm file?
>> Have you made sure the Roles are defined in the web.xml file?
>>
>>
>> p
>>
>>
>>
>>
>> Wayne Gemmell wrote:
>>> Sorry for the shameless bump. Was this question badly phrased, too
>>> easy, incomplete, etc? I've been battling for days on this, asked local
>>> lugs and the irc channel with no response. This is a system that I've
>>> inherited and I've never worked with Tomcat or any other J2EE stuff
>>> before and I am getting very dispondent about the whole thing. Any
>>> constructive advice will be appreciated.
>>>
>>> Regards
>>> Wayne
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Wed, 24 Jan 2007 16:12:01 +0200
>>> Wayne Gemmell <wa...@flashmedia.co.za> wrote:
>>>
>>>> Hi all
>>>>
>>>> I'm running tomcat 5.0.30-9 with java 1.5.0_06-b05 on ubuntu
>>>> Dapper.
>>>> I am trying to receive a callback from worldpay in my application but
>>>> this seems to break the session causing an authentication failure when
>>>> worldpay initiates the callback.
>>>>
>>>> Here is the dump of the error :
>>>> 2007/01/24 01:56:57 org.apache.coyote.tomcat5.CoyoteAdapter service
>>>> SEVERE: An exception or error occurred in the container during the
>>>> request processing java.lang.NullPointerException
>>>> at
>>>> org.apache.catalina.realm.UserDatabaseRealm.authenticate(UserDatabaseRealm.java:156)
>>>>
>>>> at
>>>> org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:129)
>>>>
>>>> at
>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>>
>>>> at
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>>
>>>> at
>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>> at
>>>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>>>> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>>>> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>>>> at
>>>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>>>>
>>>> at
>>>> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>>>> at
>>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>>>
>>>> at java.lang.Thread.run(Thread.java:595)
>>>>
>>>> Any ideas what I'm doing wrong or what I can do to fix it?
>>>>
>>>> Regards
>>>> Wayne Gemmell
>>>>
>>>> ---------------------------------------------------------------------
>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: UserDatabaseRealm Problems
Posted by Wesley Hof <wh...@kiala.com>.
P, :)
This is a new compoment. I have this in my web.xml
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>org.nanocontainer.integrationkit.ContainerComposer</param-name>
<!--<param-value>org.nanocontainer.nanowar.ScopedContainerComposer</param-value>-->
<param-value>com.kiala.kweb.dspextranet.util.setup.PicoComposer</param-value>
</context-param>
<!--
<context-param>
<param-name>org.nanocontainer.integrationkit.ContainerComposer.configuration</param-name>
<param-value>/WEB-INF/classes/nanowar.xml</param-value>
</context-param>
-->
<context-param>
<param-name>sitemesh.configfile</param-name>
<param-value>/WEB-INF/classes/sitemesh.xml</param-value>
</context-param>
<context-param>
<param-name>net.incongru.beantag.Options</param-name>
<param-value>/WEB-INF/classes/beandisplaytag.properties</param-value>
</context-param>
<servlet>
<servlet-name>JspSupportServlet</servlet-name>
<servlet-class>com.opensymphony.webwork.views.JspSupportServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<listener>
<listener-class>org.nanocontainer.nanowar.ServletContainerListener</listener-class>
</listener>
<filter>
<filter-name>NanoWar</filter-name>
<filter-class>org.nanocontainer.nanowar.ServletRequestContainerFilter</filter-class>
</filter>
<filter>
<filter-name>NanoWar-WebWork2</filter-name>
<filter-class>org.nanocontainer.nanowar.webwork2.PicoObjectFactoryFilter</filter-class>
</filter>
<filter>
<filter-name>pico-delegate-login</filter-name>
<filter-class>org.nanocontainer.nanowar.ServletContainerProxyFilter</filter-class>
<init-param>
<param-name>delegate-class</param-name>
<param-value>net.incongru.berkano.security.seraph.filter.BerkanoLoginFilter</param-value>
</init-param>
<init-param><!-- todo : check best value for this one -->
<param-name>init-type</param-name>
<param-value>never</param-value>
</init-param>
</filter>
<filter>
<filter-name>pico-delegate-security</filter-name>
<filter-class>org.nanocontainer.nanowar.ServletContainerProxyFilter</filter-class>
<init-param>
<param-name>delegate-class</param-name>
<param-value>net.incongru.berkano.security.seraph.filter.BerkanoSecurityFilter</param-value>
</init-param>
<init-param><!-- todo : check best value for this one -->
<param-value>context</param-value>
</init-param>
</filter>
<filter>
<filter-name>webwork-cleanup</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<!--
<filter>
<filter-name>DisplayTagResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
-->
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>NanoWar</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>NanoWar-WebWork2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>pico-delegate-login</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>pico-delegate-security</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>webwork-cleanup</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<!--
<filter-mapping>
<filter-name>DisplayTagResponseOverrideFilter</filter-name>
<servlet-name>webwork</servlet-name>
</filter-mapping>
-->
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>velocity</servlet-name>
<servlet-class>com.opensymphony.webwork.views.velocity.WebWorkVelocityServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>logout</servlet-name>
<servlet-class>com.atlassian.seraph.logout.LogoutServlet</servlet-class>
</servlet><param-name>init-type</param-name>
<!--
<servlet-mapping>
<servlet-name>velocity</servlet-name>
<url-pattern>*.vm</url-pattern>
</servlet-mapping>
-->
<servlet-mapping>
<servlet-name>logout</servlet-name>
<url-pattern>/logout</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>default.action</welcome-file>
</welcome-file-list>
<!--
<jsp-config>
<taglib>
<taglib-uri>displaytag-custom</taglib-uri>
<taglib-location>/WEB-INF/tld/displaytag-custom.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>template</taglib-uri>
<taglib-location>/WEB-INF/tld/template.tld</taglib-location>
</taglib>
</jsp-config>
-->
<resource-ref>
<description>db connection for berkano</description>
<res-ref-name>jdbc/dspExtranetDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
There is no UserDatabaseRealm config file.
W.
> Enable a RequestDumperValve so you can see what WorldPay is doing when
> it hits your URL.
>
> http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper
> %20Valve
>
>
> Has the system worked with this configuration before, or is this a new
> component?
>
>
> What have you got configured in the UserDatabaseRealm file?
> Have you made sure the Roles are defined in the web.xml file?
>
>
> p
>
>
>
>
> Wayne Gemmell wrote:
>> Sorry for the shameless bump. Was this question badly phrased, too
>> easy, incomplete, etc? I've been battling for days on this, asked local
>> lugs and the irc channel with no response. This is a system that I've
>> inherited and I've never worked with Tomcat or any other J2EE stuff
>> before and I am getting very dispondent about the whole thing. Any
>> constructive advice will be appreciated.
>>
>> Regards
>> Wayne
>>
>>
>>
>>
>>
>>
>> On Wed, 24 Jan 2007 16:12:01 +0200
>> Wayne Gemmell <wa...@flashmedia.co.za> wrote:
>>
>>> Hi all
>>>
>>> I'm running tomcat 5.0.30-9 with java 1.5.0_06-b05 on ubuntu
>>> Dapper.
>>> I am trying to receive a callback from worldpay in my application but
>>> this seems to break the session causing an authentication failure when
>>> worldpay initiates the callback.
>>>
>>> Here is the dump of the error :
>>> 2007/01/24 01:56:57 org.apache.coyote.tomcat5.CoyoteAdapter service
>>> SEVERE: An exception or error occurred in the container during the
>>> request processing java.lang.NullPointerException
>>> at
>>> org.apache.catalina.realm.UserDatabaseRealm.authenticate(UserDatabaseRealm.java:156)
>>>
>>> at
>>> org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:129)
>>>
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>>>
>>> at
>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>>
>>> at
>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>>
>>> at
>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>
>>> at
>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>
>>> at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
>>>
>>> at
>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>> at
>>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>>> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>>> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>>> at
>>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>>>
>>> at
>>> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>>> at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>>
>>> at java.lang.Thread.run(Thread.java:595)
>>>
>>> Any ideas what I'm doing wrong or what I can do to fix it?
>>>
>>> Regards
>>> Wayne Gemmell
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
(o_ Wesley Hof | System Engineer
//\ Kiala NV | Louizalaan 149/28 (Brussels/BE)
V_/_ Tel +32 2 541 1839 - http://www.kiala.com
*DISCLAIMER*
This e-mail (including any attachments) may contain information which is privileged or confidential or constitute non-public information.It is to be conveyed only to the intended recipient(s).If you received this e-mail in error, please notify the sender immediately by e-mail or telephone and delete the e-mail from your system without reading, copying or disclosing its contents to any other person.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: UserDatabaseRealm Problems
Posted by Pid <p...@pidster.com>.
Enable a RequestDumperValve so you can see what WorldPay is doing when
it hits your URL.
http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper
%20Valve
Has the system worked with this configuration before, or is this a new
component?
What have you got configured in the UserDatabaseRealm file?
Have you made sure the Roles are defined in the web.xml file?
p
Wayne Gemmell wrote:
> Sorry for the shameless bump. Was this question badly phrased, too
> easy, incomplete, etc? I've been battling for days on this, asked local
> lugs and the irc channel with no response. This is a system that I've
> inherited and I've never worked with Tomcat or any other J2EE stuff
> before and I am getting very dispondent about the whole thing. Any
> constructive advice will be appreciated.
>
> Regards
> Wayne
>
>
>
>
>
>
> On Wed, 24 Jan 2007 16:12:01 +0200
> Wayne Gemmell <wa...@flashmedia.co.za> wrote:
>
>> Hi all
>>
>> I'm running tomcat 5.0.30-9 with java 1.5.0_06-b05 on ubuntu
>> Dapper.
>>
>> I am trying to receive a callback from worldpay in my application but
>> this seems to break the session causing an authentication failure when
>> worldpay initiates the callback.
>>
>> Here is the dump of the error :
>> 2007/01/24 01:56:57 org.apache.coyote.tomcat5.CoyoteAdapter service
>> SEVERE: An exception or error occurred in the container during the
>> request processing java.lang.NullPointerException
>> at
>> org.apache.catalina.realm.UserDatabaseRealm.authenticate(UserDatabaseRealm.java:156)
>> at
>> org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:129)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>> at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>> at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>> at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
>> at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>> at
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>> at
>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>> at
>> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> at java.lang.Thread.run(Thread.java:595)
>>
>> Any ideas what I'm doing wrong or what I can do to fix it?
>>
>> Regards
>> Wayne Gemmell
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: UserDatabaseRealm Problems
Posted by Wayne Gemmell <wa...@flashmedia.co.za>.
Sorry for the shameless bump. Was this question badly phrased, too
easy, incomplete, etc? I've been battling for days on this, asked local
lugs and the irc channel with no response. This is a system that I've
inherited and I've never worked with Tomcat or any other J2EE stuff
before and I am getting very dispondent about the whole thing. Any
constructive advice will be appreciated.
Regards
Wayne
On Wed, 24 Jan 2007 16:12:01 +0200
Wayne Gemmell <wa...@flashmedia.co.za> wrote:
> Hi all
>
> I'm running tomcat 5.0.30-9 with java 1.5.0_06-b05 on ubuntu
> Dapper.
>
> I am trying to receive a callback from worldpay in my application but
> this seems to break the session causing an authentication failure when
> worldpay initiates the callback.
>
> Here is the dump of the error :
> 2007/01/24 01:56:57 org.apache.coyote.tomcat5.CoyoteAdapter service
> SEVERE: An exception or error occurred in the container during the
> request processing java.lang.NullPointerException
> at
> org.apache.catalina.realm.UserDatabaseRealm.authenticate(UserDatabaseRealm.java:156)
> at
> org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:129)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
> at
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
>
> Any ideas what I'm doing wrong or what I can do to fix it?
>
> Regards
> Wayne Gemmell
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org