[Gridsphere-users] Cannot build example of Hello World Portlet
Edwin Lesmana
edwinlc.spam at gmail.com
Sun Mar 30 18:58:56 PDT 2008
hey is there no one who can reply my message?
the problem has not been solved, isn't it?
On Fri, Mar 28, 2008 at 2:42 PM, Edwin Lesmana <edwinlc.spam at gmail.com>
wrote:
> Have already tried with tomcat 5.0.28
> Work very quickly
> But I need to do it in 5.5, is there anything that i need to configure?
>
>
> On Fri, Mar 28, 2008 at 11:05 AM, Edwin Lesmana <edwinlc.spam at gmail.com>
> wrote:
>
> > Ok, so far, I have done several things, but it still did not work,
> > Firstly, I examined file layout.xml and portlet.xml under
> > <Tomcat_dir>/webapps/gsexamples/WEB-INF directory
> > Here is the content of portlet.xml under the directory
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <portlet-app xmlns="
> > http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
> > version="1.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="
> > http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
> > <portlet>
> > <description xml:lang="en">
> > The classic Hello World example
> > </description>
> > <portlet-name>HelloPortlet</portlet-name>
> > <display-name xml:lang="en">Hello World</display-name>
> > <portlet-class>
> > org.gridsphere.gsexamples.portlets.HelloWorld
> > </portlet-class>
> > <expiration-cache>60</expiration-cache>
> > <supports>
> > <mime-type>text/html</mime-type>
> > <portlet-mode>edit</portlet-mode>
> > <portlet-mode>help</portlet-mode>
> > </supports>
> > <supported-locale>en</supported-locale>
> > <portlet-info>
> > <title>Hello World</title>
> > <short-title>Hello World</short-title>
> > <keywords>hello</keywords>
> > </portlet-info>
> > </portlet>
> > <custom-portlet-mode>
> > <description xml:lang="en">Pre-defined custom portlet mode
> > CONFIGURE</description>
> > <portlet-mode>CONFIGURE</portlet-mode>
> > </custom-portlet-mode>
> > <user-attribute>
> > <description xml:lang="en">User Name</description>
> > <name>user.name</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">User Id</description>
> > <name>user.id</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">User Full Name</description>
> > <name>user.name.full</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">User E-Mail</description>
> > <name>user.email</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">Company Organization</description>
> > <name>user.organization</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">Last Login Time</description>
> > <name>user.lastlogintime</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">Timezone</description>
> > <name>user.timezone</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">Preferred Locale</description>
> > <name>user.locale</name>
> > </user-attribute>
> > <user-attribute>
> > <description xml:lang="en">Preferred Theme</description>
> > <name>user.theme</name>
> >
> > 1,1 Top </user-attribute>
> > <!--
> > <security-constraint>
> > <portlet-collection>
> > <portlet-name>TimeZoneClock</portlet-name>
> > </portlet-collection>
> > <user-data-constraint>
> > <transport-guarantee>CONFIDENTIAL</transport-guarantee>
> > </user-data-constraint>
> > </security-constraint>
> > -->
> > </portlet-app>
> >
> > layout.xml (After modification, and still did not work)
> >
> > <portlet-tabbed-pane>
> > <portlet-tab label="GS Examples">
> > <title lang="en">GS Examples</title>
> > <portlet-tabbed-pane style="sub-menu">
> > <portlet-tab label="zoneclocktab">
> > <title lang="en">Hello World</title>
> > <title lang="de">TimeZonen</title>
> > <table-layout>
> > <row-layout>
> > <column-layout>
> > <portlet-frame label="zoneclock">
> > <portlet-class>
> > org.gridsphere.gsexamples.portlets.HelloWorld</portlet-class>
> > </portlet-frame>
> > </column-layout>
> > </row-layout>
> > </table-layout>
> > </portlet-tab>
> > </portlet-tabbed-pane>
> > </portlet-tab>
> > </portlet-tabbed-pane>
> >
> > I also found that there is no group.xml file under that directory, it is
> > replaced with group.sample.xml,
> > so I decided to modify the content and renamed it into group.xml.
> >
> > group.xml (After modification)
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!--
> > Sample group layout
> >
> > $Id: group.sample.xml.tpl 4496 2006-02-08 20:27:04Z wehrens $
> > -->
> > <portlet-group>
> > <group-name>gsexamples</group-name>
> > <group-description>grup coba coba</group-description>
> > <group-visibility>HIDDEN</group-visibility>
> > <portlet-role-info>
> > <portlet-class>org.gridsphere.gsexamples.portlets.HelloWorld
> > </portlet-class>
> > <required-role>ADMIN</required-role>
> > </portlet-role-info>
> > <portlet-role-info>
> > <portlet-class>org.myorg.portlets.adminportlet.AdminPortlet
> > </portlet-class>
> > <required-role>ADMIN</required-role>
> > </portlet-role-info>
> > </portlet-group>
> >
> > After doing all this stuffs, still can not work....I wonder whether I
> > should change my Tomcat version or use other version of Gridsphere....
> > I also attach some screenshots of gridsphere admin interface, if you
> > want
> >
> >
> > On Fri, Mar 28, 2008 at 2:08 AM, Mona Wong-Barnum <mona at sdsc.edu> wrote:
> >
> > > Hi Edwin:
> > >
> > > I managed to solve the problem by using Gridsphere 2.2.x and redeploy
> > > gsexamples and GridSphere to Tomcat
> > >
> > >
> > > Hopefully you did GridSphere first and then the gsexamples (; I've
> > > ran into problems before that got solved by redeploying GridSphere first.
> > >
> > > But here I encounter another problem, after I created new group and
> > > including gsexamples portlet and
> > > admin user, in the gsexamples tab, the following is displayed:
> > >
> > > gsexamples#HelloPortlet Portlet unavailable
> > >
> > > So, I go to edit the layout in portlet-class tag, and tried to changed
> > > to:
> > >
> > > gsexamples#org.gridsphere.gsexamples.portlets.HelloWorld
> > > gsexamples#HelloWorld
> > >
> > >
> > > My layout.xml contains the full package path to the class:
> > >
> > > <portlet-class>edu.sdsc.datacentral.portal.datamining.portlets.Browse
> > > </portlet-class>
> > >
> > > Try that.
> > >
> > > Also, is the portlet listed in portlet.xml and group.xml?
> > >
> > > Mona
> > >
> > > *********************************************************
> > > Mona Wong-Barnum
> > > Data Services Portal Developer
> > > San Diego Supercomputer Center
> > > http://datacentral.sdsc.edu
> > >
> > > "Freedom comes when you learn
> > > to let go."
> > > Madonna
> > > *********************************************************
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Gridsphere-users mailing list
> > > Gridsphere-users at gridsphere.org
> > > http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gridsphere.org/pipermail/gridsphere-users/attachments/20080331/f703ad53/attachment.html
More information about the Gridsphere-users
mailing list