You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Chi Runhua (Commented) (JIRA)" <ji...@apache.org> on 2011/11/05 09:28:52 UTC

[jira] [Commented] (GERONIMO-6210) IllegalArgumentException when creating a SQL-based security realm

    [ https://issues.apache.org/jira/browse/GERONIMO-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144628#comment-13144628 ] 

Chi Runhua commented on GERONIMO-6210:
--------------------------------------

I spent a little bit time debugging the issue and found the problem might be caused in DatasourcePortlet. When a Derby datasource is created, values of ResourceAdapter and JCAResource should be the fully qualified name of the datasource, such as console.dbpool/jdbc_oosd/1.0/car. While in 3.0, the values are tranql-connector-derby-embed-xa-1.7 which lead to the SQL-based security failure when creating using the wizard.


                
> IllegalArgumentException when creating a SQL-based security realm
> -----------------------------------------------------------------
>
>                 Key: GERONIMO-6210
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6210
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 3.0-beta-1
>            Reporter: Chi Runhua
>            Priority: Minor
>
> Following the instruction on G3.0 doc at https://cwiki.apache.org/GMOxDOC30/database-sql-realm.html
> After clicking the deploy button, the console shows exception as following:
> java.lang.IllegalArgumentException: id must be in the form groupId/artifactId/version/type : tranql-connector-db2-xa-1.6
> org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:61)
> org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:51)
> org.apache.geronimo.console.securitymanager.realm.SecurityRealmPortlet.actionGeneratePlan(SecurityRealmPortlet.java:458)
> org.apache.geronimo.console.securitymanager.realm.SecurityRealmPortlet.actionSaveRealm(SecurityRealmPortlet.java:526)
> org.apache.geronimo.console.securitymanager.realm.SecurityRealmPortlet.processAction(SecurityRealmPortlet.java:221)
> org.apache.pluto.driver.services.container.FilterChainImpl.doFilter(FilterChainImpl.java:117)
> org.apache.pluto.driver.services.container.FilterChainImpl.processFilter(FilterChainImpl.java:84)
> org.apache.pluto.driver.services.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:112)
> org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:359)
> org.apache.pluto.container.driver.PortletServlet.doPost(PortletServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233)
> org.apache.pluto.driver.container.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:101)
> org.apache.pluto.container.impl.PortletContainerImpl.doAction(PortletContainerImpl.java:251)
> org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:135)
> org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:205)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> org.apache.geronimo.console.filter.RedirectByHashFilter.doFilter(RedirectByHashFilter.java:116)
> org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:48)
> org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira