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

Joe Bohn updated GERONIMO-1262:
-------------------------------

    Attachment: Repository.patch

This attachement (Repository.patch) provides a revised implementation of the 
repository portlet that uses the ListableRepository to obtain the list of files 
and present them in the proper format of groupid/artifact/version/type.  It 
also uses the WriteableRepository copyToRepository to add new files to the 
repository.  As such, we no longer display absolute path names.   Since I could 
not find a way to get user friendly names for the wrtieable repositories so 
that the user could select the proper one I followed the lead of the Database 
Pools portlet and just chose the first one which is usually the only one.   To 
be able to add via the WriteableRepository we have to retrieve some additional 
information from the user (groupid, artifact, version, and type).  The way I do 
this here isn't very pretty but it is functional.  I've also added some 
validation to ensure that all fields are specified and some javascript to 
attempt to populate the fields as best as we can based upon the file and 
directory structure ( if a file is give to the portlet as 
..../product/jarName-version.jar we will use the "product" as the groupID, the 
jarName as the artifact, the version as the version and "jar" as the type).  
The user can override these choices prior to submitting the new repository file.

All in all the UI isn't very pretty, but it is mostly functional and a lot 
better than the current exception due to the invalid configurationId.  We can 
make it more user friendly and bullet proof as we continue to refine things.

> Common Libraries portlet fails with a GBeanNotFoundException
> ------------------------------------------------------------
>
>          Key: GERONIMO-1262
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1262
>      Project: Geronimo
>         Type: Bug
>   Components: console
>     Reporter: Rick McGuire
>     Assignee: Joe Bohn
>  Attachments: GERONIMO-1262.patch, Repository.patch
>
> Selecting Common Libraries from the main console page fails with the 
> following exception:
> Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: 
> geronimo.server:J2
> EEApplication=null,J2EEModule=org/apache/geronimo/System,J2EEServer=geronimo,j2e
> eType=GBean,name=Repository not found
>         at 
> org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(Basic
> Registry.java:110)
>         at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 179)
>         at 
> org.apache.geronimo.console.repository.RepositoryViewPortlet.init(Rep
> ositoryViewPortlet.java:77)
>         ... 116 more
> Nested Exception is
> org.apache.geronimo.kernel.GBeanNotFoundException: 
> geronimo.server:J2EEApplicati
> on=null,J2EEModule=org/apache/geronimo/System,J2EEServer=geronimo,j2eeType=GBean
> ,name=Repository not found
>         at 
> org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(Basic
> Registry.java:110)
>         at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 179)
>         at 
> org.apache.geronimo.console.repository.RepositoryViewPortlet.init(Rep
> ositoryViewPortlet.java:77)
>         at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:106)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.jav
> a:383)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java
> :329)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405
> )
>         at 
> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolde
> r.java:99)
>         at 
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:830)
>         at 
> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171
> )
>         at 
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
>         at 
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
> onHandler.java:471)
>         at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:277)
>         at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)

-- 
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