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 bu...@apache.org on 2004/05/28 10:48:51 UTC

DO NOT REPLY [Bug 29267] New: - Problem with more than one resource-ref in portlet app web.xml

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29267>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29267

Problem with more than one resource-ref in portlet app web.xml

           Summary: Problem with more than one resource-ref in portlet app
                    web.xml
           Product: Pluto
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: portal driver
        AssignedTo: pluto-dev@jakarta.apache.org
        ReportedBy: waltert@t-systems.com


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.