@web.resource-ref fail with WebsphereTagHandler
-----------------------------------------------

         Key: XDT-1558
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1558
     Project: XDoclet
        Type: Bug
  Components: IBM Module  
    Versions: 1.2.3    
 Environment: windows xp, jdk1.5
 Reporter: ZhengPing Wang
 Assigned to: xdoclet-devel (Use for new issues) 


When I add @web.resource-ref to servlet, it failed with XDocletException. 

[webdoclet] --- Nested Exception ---
[webdoclet] xdoclet.XDocletException: XDtWebSphere.forAllResourceRefs can only b
e used inside XDtWebSphere.forAllTags
[webdoclet]     at xdoclet.modules.ibm.websphere.ejb.WebSphereTagsHandler.forAll
ResourceRefs(WebSphereTagsHandler.java:38)


I fixed it like these in WebSphereTagsHandler.

        if (currentTag == null) {

            //throw new XDocletException("XDtWebSphere.forAllResourceRefs can 
only be used inside XDtWebSphere.forAllTags");

            resRefName = getCurrentClassTag().getAttributeValue(nameParam);
        }
        else {
            resRefName = currentTag.getAttributeValue(nameParam);
        }

 



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



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to