[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1738) can not access a member of class org.jboss.portal.portlet.impl.jsr168.taglib.GenerateURLTag

David Schlechtweg (JIRA) jira-events at lists.jboss.org
Tue Oct 9 07:32:03 EDT 2007


can not access a member of class org.jboss.portal.portlet.impl.jsr168.taglib.GenerateURLTag
-------------------------------------------------------------------------------------------

                 Key: JBPORTAL-1738
                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1738
             Project: JBoss Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Portal Portlet
    Affects Versions: 2.6.2 Final
            Reporter: David Schlechtweg
         Assigned To: Julien Viet


Hi, 
 
i get a IllegalAccessException when i use a jsp tag in freemarker: 
 
<#assign portlet=JspTaglibs["http://java.sun.com/portlet"]>  
<#import "/spring.ftl" as spring /> 
<@portlet.actionURL var="postURL"> 
<@portlet.param name="action" value="newQuery" /> 
</@portlet.actionURL> 
 
I use freemarker 2.3.10 in jboss-portal-2.6.2.GA 
 
java.lang.IllegalAccessException: Class freemarker.ext.jsp.TagTransformModel can not access a member of class org.jboss.portal.portlet.impl.jsr168.taglib.GenerateURLTag with modifiers "public" 
The problematic instruction: 
---------- 
==> user-directive portlet.actionURL [on line 3, column 1 in template/search/simple/view.ftl] 
---------- 
 
Java backtrace for programmers: 
---------- 
freemarker.template.TemplateModelException: java.lang.IllegalAccessException: Class freemarker.ext.jsp.TagTransformModel can not access a member of class org.jboss.portal.portlet.impl.jsr168.taglib.GenerateURLTag with modifiers "public" 
at freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:177) 
at freemarker.core.Environment.visit(Environment.java:220) 
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) 
at freemarker.core.Environment.visit(Environment.java:196) 
at freemarker.core.MixedContent.accept(MixedContent.java:92) 
at freemarker.core.Environment.visit(Environment.java:196) 
at freemarker.core.Environment.process(Environment.java:176) 
at freemarker.template.Template.process(Template.java:232) 
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:344) 
 
any ideas? 

My hunch is that the class org.jboss.portal.portlet.impl.jsr168.taglib.GenerateURLTag is not public, and you're trying to invoke a method on it that though itself is public, it is not declared in any public superclass of GenerateURLTag, or public interface that GenerateURLTag implements.  

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

        



More information about the jboss-jira mailing list