[ http://issues.apache.org/jira/browse/GERONIMO-2326?page=all ]

David Jencks updated GERONIMO-2326:
-----------------------------------

    Affects Version/s: 1.1.1

I've just reproduced the problem on branches/1.1 trying for a derby embedded 
pool.  I think the problem is the same in both versions.  Most likely xa pools 
won't have this problem (derby network xa didnt for me)

IMO the problem is that we are generating URLs that have : characters in them 
from the jdbc url: here's an example:

RequestURI=/console/portal/services/services_jdbc/_rp_services_jdbc_row1_col1_p1_adapterDisplayName/1_TranQL0x8Generic0x8JDBC0x8Resource0x8Adapter/_rp_services_jdbc_row1_col1_p1_rarPath/1_tranql0x3tranql-connector0x310x220x3rar/_rp_services_jdbc_row1_col1_p1_mode/1_params/_rp_services_jdbc_row1_col1_p1_driverClass/1_org0x2apache0x2derby0x2jdbc0x2EmbeddedDriver/_pm_services_jdbc_row1_col1_p1/view/_rp_services_jdbc_row1_col1_p1_dbtype/1_Derby0x8embedded/_rp_services_jdbc_row1_col1_p1_urlPrototype/1_jdbc:derby:{Database}/_st_services_jdbc_row1_col1_p1/normal/_ps_services_jdbc_row1_col1_p1/normal/_pid/services_jdbc_row1_col1_p1/_md_services_jdbc_row1_col1_p1/view/_rp_services_jdbc_row1_col1_p1_name/1_test2

Here's the bad part:

1_p1_urlPrototype/1_jdbc:derby:{Database}

I think the solution is likely to be to encode this stuff.  I haven't figured 
out if we or pluto should be doing the encoding

> unable to deploy a database pool
> --------------------------------
>
>                 Key: GERONIMO-2326
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2326
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 1.2, 1.1.1
>            Reporter: Bill Dudney
>
> Trying to deploy a jdbc datasource leads to a blank screen and the following 
> stack trace in the log.
> The issue appears to be that URLPatternSpec does not like the URL generated 
> by DatabasePoolPortlet from the info found in the DatabaseInfo.ALL_DATABASES 
> array.
> java.lang.IllegalArgumentException: Qualifier patterns must be present when 
> first URLPattern is an exact pattern
>       at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>       at 
> javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:83)
>       at 
> org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm.hasUserDataPermission(TomcatGeronimoRealm.java:131)
>       at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:460)
>       at 
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:322)
>       at 
> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>       at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>       at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
>       at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>       at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>       at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>       at java.lang.Thread.run(Thread.java:552)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to