geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hernan Cunico <>
Subject Re: Security Realms - Database SQL type
Date Tue, 28 Feb 2006 23:02:19 GMT
Hi All,
Thanks for the replies. The problem was the capitalization of the password, my mistake :D.
I missed the obvious and focused on the SQL selects.

I initially tried with Derby, but when you test the connection pool (from the creation pool
the test will succeed independently of the user you username, is that right?

As for DB2, I am aware of the limitation with the console and connection pools requiring multiple

files. There is an article in confluence with a manual procedure to workaround this limitation.

Although I have now successfully created a new SQL security realm with DB2 I still fail to
test the 
connection when using Derby, still working on it.

As an additional improvement, it would be nice to have the chance, when you edit an existing

connection pool, to test/re-test the connection after you make any changes to that configuration.

Currently you can only test the connection when you are creating the pool.

Thanks again for the replies.


Aaron Mulder wrote:
> Patches to improve error messages would be welcome.  :)
> If you're having problems with the database connections, it may be
> that we should work on getting the database pool working first and
> then attack the SQL realm.  Just be aware that the console can't
> handle database connections if more than one driver JAR is required (I
> think DB2 may have a second license JAR required, but Derby should
> work fine).
> Thanks,
>     Aaron
> On 2/28/06, Hernan Cunico <> wrote:
>>Hi All,
>>I am trying to set a new security realm using a Database SQL realm type. I tried with
DB2 and the
>>built in Derby, both fail when testing the connection.
>>For DB2 as well as for Derby I created a connection pool first as I have a different
issue from the
>>security realm wizard, it seems not to recognize the JDBC driver class. So far I have
been only
>>using the Admin Console.
>>This is the error I see when try to test a login (it does not say much). Any idea
what I'm missing?
>>Thanks in advance
>>14:22:19,929 WARN  [SecurityRealmPortlet] Test login failed
>>        at
>>        at
>>        at org.apache.geronimo.console.util.PortletManager.testLoginModule(
>>        at
>>        at
>>        at org.apache.pluto.core.PortletServlet.dispatch(
>>        at org.apache.pluto.core.PortletServlet.doGet(
>>        at javax.servlet.http.HttpServlet.service(
>>        at javax.servlet.http.HttpServlet.service(
>>        at org.apache.pluto.core.PortletServlet.service(
>>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>>        at org.apache.catalina.core.ApplicationDispatcher.invoke(
>>        at org.apache.catalina.core.ApplicationDispatcher.doInclude(
>>        at org.apache.catalina.core.ApplicationDispatcher.include(
>>        at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(
>>        at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(
>>        at org.apache.pluto.PortletContainerImpl.processPortletAction(
>>        at
>>        at org.apache.pluto.portalImpl.Servlet.doGet(
>>        at javax.servlet.http.HttpServlet.service(
>>        at javax.servlet.http.HttpServlet.service(
>>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>>        at org.apache.catalina.core.StandardWrapperValve.invoke(
>>        at org.apache.catalina.core.StandardContextValve.invoke(
>>        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
>>        at
>>        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(
>>        at org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(
>>        at org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(
>>        at org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(
>>        at org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
>>        at org.apache.catalina.core.StandardHostValve.invoke(
>>        at org.apache.catalina.valves.ErrorReportValve.invoke(
>>        at org.apache.catalina.core.StandardEngineValve.invoke(
>>        at org.apache.catalina.valves.AccessLogValve.invoke(
>>        at org.apache.catalina.connector.CoyoteAdapter.service(
>>        at org.apache.coyote.http11.Http11Processor.process(
>>        at
>>        at
>>        at
>>        at org.apache.tomcat.util.threads.ThreadPool$
>>        at

View raw message