[Gridsphere-users] Re: "Ant install" problem
neha sood
coolcapri85 at gmail.com
Fri Mar 28 04:42:19 PDT 2008
hi,
i have tried to find the error in code..but i cudn't find any discrepency..
i also think some errors are cascaded...
i am sending code lines of first file where it shows error ..its <
basecomponentlifecycle.java file...
package org.gridsphere.layout;
import org.gridsphere.portlet.impl.SportletProperties;
import org.gridsphere.portletcontainer.GridSphereEvent;
import javax.portlet.PortletRequest;
import java.util.List;
public abstract class BaseComponentLifecycle implements ComponentLifecycle {
protected int COMPONENT_ID = 0;
protected String componentIDStr = "0";
protected BaseComponentLifecycle() {
}
public List<ComponentIdentifier> init(PortletRequest req,
List<ComponentIdentifier> list) {
this.COMPONENT_ID = list.size();
componentIDStr = String.valueOf(COMPONENT_ID);
return list;
}
it gives error identifier expected...as error is
<identifier> expected
[javac] public List<ComponentIdentifier> init(PortletRequest req,
List<ComponentIdentifier> list) {
/usr/local/gridsphere-3.1/src/org/gridsphere/layout/BasePortletComponent.java:38:
<identifier> expected
[javac] protected List<PortletComponent> listeners = null;
[javac] ^
[javac] /usr/local/gridsphere-3.1/src/org/gridsphere/layout/BasePortletComponent.java:54:
<identifier> expected
[javac] public List<ComponentIdentifier> init(PortletRequest req,
List<ComponentIdentifier> list) {
in all these file it says identifier expected..these three errors wud b
interlinked.
one more thing ..in first line syntax is list<>..is this syntax valid in
java..or it askafor some user defined ...
thanks a lot for ur quick reply..
cheers
neha
On Fri, Mar 28, 2008 at 12:30 AM, <gridsphere-users-request at gridsphere.org>
wrote:
> Send Gridsphere-users mailing list submissions to
> gridsphere-users at gridsphere.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
> or, via email, send a message with subject or body 'help' to
> gridsphere-users-request at gridsphere.org
>
> You can reach the person managing the list at
> gridsphere-users-owner at gridsphere.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gridsphere-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Title of portlet language in portlet.xml (Jason Novotny)
> 2. Re: Cannot build example of Hello World Portlet (Mona Wong-Barnum)
> 3. Re: Problem in "ant install" (Mona Wong-Barnum)
> 4. Re: another Gridsphere 3 hello world problem (Mona Wong-Barnum)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 27 Mar 2008 11:56:29 -0400
> From: Jason Novotny <novotny at gridsphere.org>
> Subject: Re: [Gridsphere-users] Title of portlet language in
> portlet.xml
> To: GridSphere Users <gridsphere-users at gridsphere.org>
> Message-ID: <47EBC3AD.4030404 at gridsphere.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
> Hi,
>
> A render method is always performed-- so even if an action method is
> invoked, then a render method (doView for example) would be invoked
> after. Try adding the lines of code below to all the methods in your
> portlet that take a RenderFormEvent parameter and see if that works.
>
> Jason
>
> Edrick wrote:
> > Your proposed workaround looks better, but the new problem is: how do i
> > define the title on the action methods (the ones with ActionFormEvent
> > parameter) since I can't get a RenderResponse object from them? I did
> this
> >
> > PortletRequest request =event.getRenderRequest();
> > RenderResponse rr = event.getRenderResponse();
> > rr.setTitle(getLocalizedText(request,
> > "PORTLET_TITLE_TRANSACTIONS"));
> >
> > on the prepare method and it displays the string correctly the first
> time
> > from the Portlet.properties file, but once i click on an action link or
> > button, the portlet title will change to the one defined on portlet.xmland
> > I don't know how to set the title from a method called from an action
> tag
> > instead of a render tag method (since I can't get a RenderResponse
> object
> > from a method called from an action tag). How can I set the title from
> > within an action method?
> >
> > Thanks in advance,
> > Edrick
> >
> > novotny wrote:
> >
> >> Hi,
> >>
> >> I believe that feature worked for GS2.X but not for 3...
> >>
> >> One thing you can do is to use
> >>
> >> RenderResponse#setTitle(String title)
> >>
> >> method in your portlet to set the title based on the locale
> >>
> >> Jason
> >>
> >> Edrick wrote:
> >>
> >>> Can I set a portlet title for another language in the portlet.xml file
> of
> >>> my
> >>> proyect?
> >>>
> >>> I tried to change this:
> >>> <title>Transaction Logs</title>
> >>> to this:
> >>> <title xml:lang="en">Transaction Logs</title>
> >>> <title xml:lang="es">Registro de Transacciones</title>
> >>> but it doesn't work. I don't want to have all the portlet titles in
> >>> english
> >>> if I'm using another language. Can it be done in any other way?
> >>>
> >>>
> >> _______________________________________________
> >> Gridsphere-users mailing list
> >> Gridsphere-users at gridsphere.org
> >> http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
> >>
> >>
> >>
> >
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 27 Mar 2008 11:08:21 -0700
> From: Mona Wong-Barnum <mona at sdsc.edu>
> Subject: Re: [Gridsphere-users] Cannot build example of Hello World
> Portlet
> To: GridSphere Users <gridsphere-users at gridsphere.org>
> Message-ID: <3ADA0A49-DB3D-414F-8155-A800130561F6 at sdsc.edu>
> Content-Type: text/plain; charset="us-ascii"
>
> 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
> *********************************************************
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.gridsphere.org/pipermail/gridsphere-users/attachments/20080327/3a5058b9/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Thu, 27 Mar 2008 11:12:17 -0700
> From: Mona Wong-Barnum <mona at sdsc.edu>
> Subject: Re: [Gridsphere-users] Problem in "ant install"
> To: GridSphere Users <gridsphere-users at gridsphere.org>
> Message-ID: <2F0D6019-9FB7-4FF3-9768-D77CA72B1092 at sdsc.edu>
> Content-Type: text/plain; charset="us-ascii"
>
>
> > when i give commnad
> > "ant install" in gridsphere src directory..its give error in
> > framework code..folowoing are some errors
>
> "some" errors? Are these the *first* errors? Errors can cascade
> in
> compilation and I usually start by fixing the first error.
>
> If this is the first error, there appears to be some syntax problem
> with BaseComponentLifecycle.java at line 36. Take a look and see if
> you can spot the problem. If you cannot, please post that line and
> also may 10-15 lines above and below that line.
>
> Mona
>
> > [javac] /usr/local/gridsphere-3.1/src/org/gridsphere/layout
> > /BaseComponentLifecycle.java:36: <identifier> expected
> > [javac] public List<ComponentIdentifier> init
> > (PortletRequest req, List<ComponentIdentifier> list) {
> > [javac] ^
> > [javac] /usr/local/gridsphere-3.1/src/org/gridsphere/layout/
> > BasePortletComponent.java:38: <identifier> expected
> > [javac] protected List<PortletComponent> listeners = null;
> > what are these identifiiers and what al values of identifier i need
> > to give?
> > any kind of help is welcome....
>
> *********************************************************
> Mona Wong-Barnum
> Data Services Portal Developer
> San Diego Supercomputer Center
> http://datacentral.sdsc.edu
>
> Once you start to see through the myth
> of status, possessions, and unlimited
> consumption as a path to happiness,
> you'll find that you have all kinds of
> freedom and time. It's like a deal you
> can make with the universe: I'll give up
> greed for freedom."
> David Edwards
> *********************************************************
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.gridsphere.org/pipermail/gridsphere-users/attachments/20080327/a00474ab/attachment-0001.html
>
> ------------------------------
>
> Message: 4
> Date: Thu, 27 Mar 2008 11:16:30 -0700
> From: Mona Wong-Barnum <mona at sdsc.edu>
> Subject: Re: [Gridsphere-users] another Gridsphere 3 hello world
> problem
> To: GridSphere Users <gridsphere-users at gridsphere.org>
> Message-ID: <43C5ADEB-152A-4FB1-923C-2B808C81453F at sdsc.edu>
> Content-Type: text/plain; charset="us-ascii"
>
>
> > My problem (Problem: failed to create task or type if) has been
> > 'solved' by the following:
> >
> > - removing all <if> and <then> constructs not pertaining to my
> > system in build.xml... seems like ant 1.7 doesn't support them
> > (???!!?!)
>
> I've seen that error before...caused by a problem w/ the ant
> installation. ant 1.7 does support the <if> and <then>; I have ant
> 1.6.5 and mine works.
>
> Check your ant installation, environment variables, libraries.
> When
> all else fails, reinstall ant.
>
> I highly recommend that you don't mess w/ the build.xml in the way
> you described because that's not the problem and you haven't really
> solved the problem but possibily created another problem by making
> the build more tied to your system setup and if your setup should
> change...
>
> cheers,
> Mona
>
> ***************************************************
> Mona Wong-Barnum
> Data Services Portal Developer
> San Diego Supercomputer Center
> http://datacentral.sdsc.edu
>
> "Life is a school for angels.
> Love is the Teacher, so do
> your homework without fear.
> Death is merely graduation."
>
> Jeffrey Kuehl
> ***************************************************
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.gridsphere.org/pipermail/gridsphere-users/attachments/20080327/1c328c2d/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Gridsphere-users mailing list
> Gridsphere-users at gridsphere.org
> http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
>
>
> End of Gridsphere-users Digest, Vol 19, Issue 18
> ************************************************
>
--
Friends are flowers in the garden of life
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gridsphere.org/pipermail/gridsphere-users/attachments/20080328/cbc43b93/attachment-0001.html
More information about the Gridsphere-users
mailing list