4 Replies Latest reply on Oct 27, 2006 3:59 PM by Praveen Cheruvu

    Problem with Stock News Portlet.

    mmontoni Newbie

      Hi,

      I downloaded the portlet stock news and I am having the following issue:

      org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.jboss.portal.portlet.taglib.DefineObjectsTagTEI

      I changed the proxy URL and port as described in the readme.txt file.

      I am using Jboss POrtal 2.4 and Jboss AS 4.0.4

      Thanks,

      Mariella.

        • 1. Re: Problem with Stock News Portlet.
          mmontoni Newbie

          I recently found out how to solve the stock news problem. I had to change the directory of the classes in Portlet.tld. I had to change taglib for impl.jsr168.taglib. It worked fine. I also had to add the proxy init-param in my portal.xml.

          So it is register in case someone runs in the same problem ;-)

          -Mariella.

          • 2. Re: Problem with IFramePortlet and Stock News Portlet.
            Praveen Cheruvu Newbie

            Hi,

            I have the same problem with IFrame Portlet.

            org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.jboss.portal.portlet.taglib.DefineObjectsTagTEI
            
            


            I saw your reply, but did not understand completely. Can you be more explicit regarding what changes have to be made in portlet.tld and portal.xml
            My portlet.tld looks as follows:
            <?xml version="1.0" encoding="UTF-8"?>
            
            <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
            <taglib>
            
             <tlib-version>1.0</tlib-version>
             <jsp-version>1.2</jsp-version>
             <short-name>portlet</short-name>
            
             <uri>http://java.sun.com/portlet</uri>
            
             <tag>
            
             <name>param</name>
             <tag-class>org.jboss.portal.portlet.taglib.URLParameterTag</tag-class>
             <body-content>empty</body-content>
            
             <attribute>
             <name>name</name>
             <required>true</required>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>value</name>
             <required>true</required>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
            
             </tag>
             <tag>
            
             <name>defineObjects</name>
             <tag-class>org.jboss.portal.portlet.taglib.DefineObjectsTag</tag-class>
             <tei-class>org.jboss.portal.portlet.taglib.DefineObjectsTagTEI</tei-class>
             <body-content>empty</body-content>
            
             </tag>
             <tag>
            
             <name>namespace</name>
             <tag-class>org.jboss.portal.portlet.taglib.NamespaceTag</tag-class>
             <body-content>empty</body-content>
            
             </tag>
             <tag>
            
             <name>renderURL</name>
             <tag-class>org.jboss.portal.portlet.taglib.RenderURLTag</tag-class>
             <tei-class>org.jboss.portal.portlet.taglib.GenerateURLTagTEI</tei-class>
             <body-content>JSP</body-content>
            
             <attribute>
             <name>portletMode</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>secure</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>var</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>windowState</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
            
             </tag>
             <tag>
            
             <name>actionURL</name>
             <tag-class>org.jboss.portal.portlet.taglib.ActionURLTag</tag-class>
             <tei-class>org.jboss.portal.portlet.taglib.GenerateURLTagTEI</tei-class>
             <body-content>JSP</body-content>
            
             <attribute>
             <name>portletMode</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>secure</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>var</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
             <attribute>
             <name>windowState</name>
             <rtexprvalue>true</rtexprvalue>
            
             </attribute>
            
             </tag>
            
            </taglib>
            
            


            My Portlet.xml looks ad follows
            <?xml version="1.0" encoding="UTF-8"?>
            <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
             version="1.0">
             <portlet>
             <portlet-name>IFramePortlet</portlet-name>
             <portlet-class>org.jboss.portlet.iframe.IFramePortlet</portlet-class>
             <supports>
             <mime-type>text/html</mime-type>
             <portlet-mode>VIEW</portlet-mode>
             <portlet-mode>EDIT</portlet-mode>
             </supports>
             <portlet-info>
             <title>IFrame</title>
             </portlet-info>
             </portlet>
            </portlet-app>
            


            I am using JbossPortal 2.4

            thanks

            • 3. Re: Problem with Stock News Portlet.
              mmontoni Newbie

              Hi,

              yes sure!

              in your portlet.tld you have for example:

              org.jboss.portal.portlet.taglib.DefineObjectsTag
              

              and you should have
              org.jboss.portal.portlet.impl.jsr168.taglib.DefineObjectsTag
              

              So you should add the ".impl.jsr168." in each of your reference.

              And in your Portlet.xml you should add the following:
               <init-param>
               <name>proxy</name>
               <value>3.33.33.33</value>
               </init-param>
               <init-param>
               <name>proxyport</name>
               <value>80</value>
               </init-param>
              


              If this doesn't work, even though it should...You can try also adding the following in your run.bat under JBoss AS/bin
              -Dhttp.proxyHost=3.33.33.33 -Dhttp.proxyPort=80 -DproxySet=true
              


              in your set JAVA_OPTS=%JAVA_OPTS% definition.

              I hope it helps.

              --Mariella

              • 4. Re: Problem with Stock News Portlet.
                Praveen Cheruvu Newbie

                Hi,

                It worked. Thanks very much. Appreciate it.

                thank you