You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by secam secam <se...@yahoo.fr> on 2004/03/09 10:28:57 UTC

Access JetspeedRundata

Hi all
 
I'm new in jetspeed
 
I want to access the JetspeedRundata object in a simple external class.
How can i do it?
 
Thanks,
Regards,
Secam

		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

Access JetspeedRundata

Posted by secam secam <se...@yahoo.fr>.
I'm not in a portlet, i just want to access the rundata in an external class.
Is anyone can help me?
Secam 

scott <sc...@macrisolutions.com> wrote:
First you must import the proper classes:
import org.apache.turbine.util.RunData;
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
import org.apache.ecs.ConcreteElement;

Then extend the AbstractInstancePortlet.

Over-ride the getContent method:
    public ConcreteElement getContent (RunData runData)
    {
        //Your code here
    }

Refer to section 5.1 of the following link:
http://www.bluesunrise.com/jetspeed-docs/JetspeedTutorial.htm#_Toc26987015

On Tuesday 09 March 2004 04:28 am, secam secam wrote:
> Hi all
>
> I'm new in jetspeed
>
> I want to access the JetspeedRundata object in a simple external class.
> How can i do it?
>
> Thanks,
> Regards,
> Secam
>
>
> ---------------------------------
> Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
> Créez votre Yahoo! Mail
>
> Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

-- 
Scott A. Macri
Software Engineer/Director
Macri Solutions, LLC



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

Re: Access JetspeedRundata

Posted by scott <sc...@macrisolutions.com>.
First you must import the proper classes:
import org.apache.turbine.util.RunData;
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
import org.apache.ecs.ConcreteElement;

Then extend the AbstractInstancePortlet.

Over-ride the getContent method:
    public ConcreteElement getContent (RunData runData)
    {
        //Your code here
    }

Refer to section 5.1 of the following link:
http://www.bluesunrise.com/jetspeed-docs/JetspeedTutorial.htm#_Toc26987015

On Tuesday 09 March 2004 04:28 am, secam secam wrote:
> Hi all
>
> I'm new in jetspeed
>
> I want to access the JetspeedRundata object in a simple external class.
> How can i do it?
>
> Thanks,
> Regards,
> Secam
>
>
> ---------------------------------
> Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
> Créez votre Yahoo! Mail
>
> Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

-- 
Scott A. Macri
Software Engineer/Director
Macri Solutions, LLC



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: [Fatal Error] :-1:-1: Premature end of file

Posted by karthikeyan <ka...@email.unc.edu>.
Problem solved.. deleted the entire demo-portlet.xreg file.
Please ignore the previous message..
regards



--
M. Karthikeyan, Ph.D., Scientist
 _|      _|    _|_|_|  _|
 _|_|    _|  _|        _|
 _|  _|  _|  _|        _|
 _|    _|_|  _|        _|
 _|      _| o  _|_|_|o _|_|_|_|
 National    Chemical  Laboratory
 Pune - 411 008, INDIA
 Ph: +91-(0)20-5893 457  FAX: 5893 973
 http://www.ncl-india.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: [Fatal Error] :-1:-1: Premature end of file

Posted by karthikeyan <ka...@email.unc.edu>.
Hi Jeremy Ford,

you are right.. i just realized it and deleted the file
demo-portlet.xreg file.. it is working perfect..
thanks for immediate response.


--
M. Karthikeyan, Ph.D., Scientist
 _|      _|    _|_|_|  _|
 _|_|    _|  _|        _|
 _|  _|  _|  _|        _|
 _|    _|_|  _|        _|
 _|      _| o  _|_|_|o _|_|_|_|
 National    Chemical  Laboratory
 Pune - 411 008, INDIA
 Ph: +91-(0)20-5893 457  FAX: 5893 973
 http://www.ncl-india.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: [Fatal Error] :-1:-1: Premature end of file

Posted by Jeremy Ford <ca...@hotmail.com>.
This appears when one of the xreg files was not fully written out to disk
when tomcat shutdown.  You can replace it with one from the release war and
it should work fine.  

If using versions previous to 1.4 Release, this is easier to encounter,
although it still might be possible in the released version.

Jeremy Ford
jford@apache.org


-----Original Message-----
From: karthikeyan [mailto:karthik@email.unc.edu] 
Sent: Tuesday, March 09, 2004 10:21 AM
To: Jetspeed Users List
Subject: [Fatal Error] :-1:-1: Premature end of file

I don't know what went wrong : I get this error when jetspeed is
starting..

[Fatal Error] :-1:-1: Premature end of file

I remember adding, deleting users under 'admin' level

from log file:
[main] ERROR CastorRegistryService - RegistryService: Could not
unmarshal: C:\tomcat\webapps\jetspeed\WEB-INF\conf\demo-portlets.xreg
org.xml.sax.SAXParseException: Premature end of file.

Ofcourse I can re-install jetspeed, though it is working perfect now..
but
the error makes to feel uncomfortable...

regards



--
M. Karthikeyan, Ph.D., Scientist
 _|      _|    _|_|_|  _|
 _|_|    _|  _|        _|
 _|  _|  _|  _|        _|
 _|    _|_|  _|        _|
 _|      _| o  _|_|_|o _|_|_|_|
 National    Chemical  Laboratory
 Pune - 411 008, INDIA
 Ph: +91-(0)20-5893 457  FAX: 5893 973
 http://www.ncl-india.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


[Fatal Error] :-1:-1: Premature end of file

Posted by karthikeyan <ka...@email.unc.edu>.
I don't know what went wrong : I get this error when jetspeed is
starting..

[Fatal Error] :-1:-1: Premature end of file

I remember adding, deleting users under 'admin' level

from log file:
[main] ERROR CastorRegistryService - RegistryService: Could not
unmarshal: C:\tomcat\webapps\jetspeed\WEB-INF\conf\demo-portlets.xreg
org.xml.sax.SAXParseException: Premature end of file.

Ofcourse I can re-install jetspeed, though it is working perfect now..
but
the error makes to feel uncomfortable...

regards



--
M. Karthikeyan, Ph.D., Scientist
 _|      _|    _|_|_|  _|
 _|_|    _|  _|        _|
 _|  _|  _|  _|        _|
 _|    _|_|  _|        _|
 _|      _| o  _|_|_|o _|_|_|_|
 National    Chemical  Laboratory
 Pune - 411 008, INDIA
 Ph: +91-(0)20-5893 457  FAX: 5893 973
 http://www.ncl-india.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


AW: Access JetspeedRundata

Posted by Danny <da...@mms-dresden.de>.
What do you mean exactly with external class?

If you write a porlet, you would override the getContent() methode from
AbstractPortlet, which has a parameter of type RunData.

Hope this helps...

> -----Ursprüngliche Nachricht-----
> Von: secam secam [mailto:secam2004@yahoo.fr]
> Gesendet: Dienstag, 9. März 2004 10:29
> An: jetspeed-user@jakarta.apache.org
> Betreff: Access JetspeedRundata
>
>
> Hi all
>
> I'm new in jetspeed
>
> I want to access the JetspeedRundata object in a simple
> external class.
> How can i do it?
>
> Thanks,
> Regards,
> Secam
>
>
> ---------------------------------
> Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit
> partout !
> Créez votre Yahoo! Mail
>
> Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org