You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by pl...@jakarta.apache.org on 2004/07/30 21:42:41 UTC

[jira] Resolved: (PLUTO-48) Problem with more than one resource-ref in portlet app web.xml

Message:

   The following issue has been resolved as FIXED.

   Resolver: David DeWolf
       Date: Fri, 30 Jul 2004 12:41 PM

Added ResourceRefSet implementation and updated castor configuration.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/PLUTO-48

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: PLUTO-48
    Summary: Problem with more than one resource-ref in portlet app web.xml
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: Pluto
 Components: 
             portal driver
   Fix Fors:
             Current CVS
   Versions:
             unspecified

   Assignee: David DeWolf
   Reporter: Th. Walter

    Created: Fri, 28 May 2004 8:48 AM
    Updated: Fri, 30 Jul 2004 12:41 PM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
Pluto fails to start if the portlet application web.xml contains more than one
resource-ref section. The exception message is:

2004-05-28 10:30:47 ServiceManager: An unidentified error occurred
ValidationException: element "resource-ref" occurs more than once.
(XMLFieldDesciptor: resourceRef AS resource-ref)
	at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:753)
...


I tested that the web.xml is well-formed and valid. This is the critical section:

<resource-ref>  
         <res-ref-name>
            jdbc/OnlineDb
         </res-ref-name>
         <res-type>
            javax.sql.DataSource
         </res-type>
         <res-auth>
            Container
         </res-auth>
    </resource-ref>
    <resource-ref>
         <res-ref-name>
            mail/Session
         </res-ref-name>
         <res-type>
            javax.mail.Session
         </res-type>
         <res-auth>
    	    Container
         </res-auth>
    </resource-ref>

If the first or the second resource-ref-section is removed, Pluto works fine.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira