[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1558?page=comments#action_17400 ]
K. Ita commented on XDT-1558: ----------------------------- Your fix suppresses the exception but doesn't generate correct binding and web.xml files. See also XDT-1524. > @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 > Assignee: xdoclet-devel (Use for new issues) > > Original Estimate: 1 hour > Remaining: 1 hour > > 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: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel