RE: Jetspeed2 Portlet Development Example

2005-03-27 Thread Clemens A mensik
Hi Stephen, 

thx for asking the same question I wanted to post ;-)

...installed jetspeed 2 successfully I'm also looking for
some kind of 'how to', that describes portlet developement
up from scratch.

I would appreciate any help, because I've to set up a default
portlet for a new project till thursday... 2 days left, thats not
much...

thx in advance...
clemens (jetspeed-rookie)

 -Original Message-
 From: Stephen Hatfield [mailto:[EMAIL PROTECTED] 
 Sent: Freitag, 25. März 2005 15:35
 To: jetspeed-user@jakarta.apache.org
 Subject: Jetspeed2 Portlet Development Example
 
 Does anyone have a full example of portlet development in Jetspeed2? 
 What I would dearly love to have are all the files necessary 
 for a portlet and instructions on how to deploy portlets. I 
 find the documentation on portlet development at Apache a bit thin.
 
 I realize I am probably asking for a lot and anyone may 
 certainly give me a hard time about that. But then I hope 
 they have pity on a newbie and help him out.
 
 Thank you very much!
 Stephen
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Enabling logging for Struts portal bridges

2005-03-27 Thread Hema Menon
I wanted to enable the logging for struts portal bridges. I added a
new  log4j category for org.apache.portals with DEBUG level and also
added a logfile definition . I find the log file is created but is
empty. Forgive my ignorance, but is there some other configurations
that I am missing? Any help very much appreciated.

Thanks,
Hema


~~
Hema Menon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jetspeed2 Portlet Development Example

2005-03-27 Thread Martin Dulisch
I can not point you to a howto documentation, but the examples in the 
applications folder of the jetspeed distribution are good examples for 
portlets.

As jetspeed2 supports jsr 168 portlets the spec is also a goog point to 
start. It contains documentation about the needed files for a portlet 
distribution.

martin

Clemens A mensik wrote:
Hi Stephen, 

thx for asking the same question I wanted to post ;-)
...installed jetspeed 2 successfully I'm also looking for
some kind of 'how to', that describes portlet developement
up from scratch.
I would appreciate any help, because I've to set up a default
portlet for a new project till thursday... 2 days left, thats not
much...
thx in advance...
clemens (jetspeed-rookie)

-Original Message-
From: Stephen Hatfield [mailto:[EMAIL PROTECTED] 
Sent: Freitag, 25. März 2005 15:35
To: jetspeed-user@jakarta.apache.org
Subject: Jetspeed2 Portlet Development Example

Does anyone have a full example of portlet development in Jetspeed2? 
What I would dearly love to have are all the files necessary 
for a portlet and instructions on how to deploy portlets. I 
find the documentation on portlet development at Apache a bit thin.

I realize I am probably asking for a lot and anyone may 
certainly give me a hard time about that. But then I hope 
they have pity on a newbie and help him out.

Thank you very much!
Stephen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enabling logging for Struts portal bridges

2005-03-27 Thread Ate Douma
Hema,
The log4j logging configuration *within* jetspeed can/is only be used
for *within* the jetspeed context.
While the current configuration file still contains definitions for
struts, myfaces etc., this is obsolete since we removed the global
commons-logging and log4j jars (in $Tomcat/shared/lib for example).
For your own portlet applications you must provide your own logging
setup like putting log4j (and commons-logging if you want) in WEB-INF/lib
and also provide your own log4j.properties/xml in WEB-INF/classes.
I'm going over the jetspeed log4j.properties right now and will clean out
several of these obsolete definitions as they definitely give the wrong signal.
Thanks for bringing this up ;-) It'll be another small improvement of the M2 
release.
Remark: I do think it would be nice if we *could* provide a generic logging 
service
for the portlet applications, but without getting into classloader problems on
different platforms, right now I don't have a solid solution ready
(although I have an idea which might work but it'll have to wait for now).
Regards, Ate
Hema Menon wrote:
I wanted to enable the logging for struts portal bridges. I added a
new  log4j category for org.apache.portals with DEBUG level and also
added a logfile definition . I find the log file is created but is
empty. Forgive my ignorance, but is there some other configurations
that I am missing? Any help very much appreciated.
Thanks,
Hema
~~
Hema Menon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enabling logging for Struts portal bridges

2005-03-27 Thread Hema Menon
Ate,

Thank you so much for clearing that out !!!. You are indeed a
lifesaver:) Well, your reply would amount to a newbie FAQ towards
logging as far as I am concerned.

With logging enabled, I could compare my application's action
processing in Jetspeed 2 and 1.6 to see why it is failing in JS1.6.

I find that withing Jetspeed2, the beans populate is called with all
the bean properties values, but with Jetspeed 1.6, I do not find the
bean properties. This results in validation failure, which ofcourse,
results in the failure. Well, that's a good start, now if only, I
could figure out why the bean populate/validation is failing in
Jetspeed1.6

The Jetspeed 1.6 logging clearly shows that the bean utils populate as
not having any properties, hence validation failure.
3-27 18:57:21,460 [http-8080-Processor25] DEBUG
CommonsMultipartRequestHandler - File upload temp dir:
D:\jakarta-tomcat-5.0.28\work\Catalina\localhost\welcomegreetings
2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG BeanUtils -
BeanUtils.populate(BaseForm:
|
, {_spage=[Ljava.lang.String;@1ed56e2})
2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG BeanUtils -  
setProperty(BaseForm:
|
, _spage, [/saveWelcomeChanges.do])
2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG RequestProcessor
-  Validating input form properties
2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG RequestProcessor
-   Rolling back multipart request
2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG RequestProcessor
-  Validation failed, returning to '/reshowWelcome.do'

Jetspeed2 logging clearly shows the target bean values being set and
is successful. The set property will contain all the values of the
bean property.I am not sure why the bean properties are not available
within Jetspeed 1.6. Any Pointers?

Thanks,
Hema


On Sun, 27 Mar 2005 23:22:51 +0200, Ate Douma [EMAIL PROTECTED] wrote:
 Hema,
 
 The log4j logging configuration *within* jetspeed can/is only be used
 for *within* the jetspeed context.
 While the current configuration file still contains definitions for
 struts, myfaces etc., this is obsolete since we removed the global
 commons-logging and log4j jars (in $Tomcat/shared/lib for example).
 
 For your own portlet applications you must provide your own logging
 setup like putting log4j (and commons-logging if you want) in WEB-INF/lib
 and also provide your own log4j.properties/xml in WEB-INF/classes.
 
 I'm going over the jetspeed log4j.properties right now and will clean out
 several of these obsolete definitions as they definitely give the wrong 
 signal.
 Thanks for bringing this up ;-) It'll be another small improvement of the M2 
 release.
 
 Remark: I do think it would be nice if we *could* provide a generic logging 
 service
 for the portlet applications, but without getting into classloader problems on
 different platforms, right now I don't have a solid solution ready
 (although I have an idea which might work but it'll have to wait for now).
 
 Regards, Ate
 
 Hema Menon wrote:
  I wanted to enable the logging for struts portal bridges. I added a
  new  log4j category for org.apache.portals with DEBUG level and also
  added a logfile definition . I find the log file is created but is
  empty. Forgive my ignorance, but is there some other configurations
  that I am missing? Any help very much appreciated.
 
  Thanks,
  Hema
 
 
  ~~
  Hema Menon
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 


~~
Hema Menon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FusionAccessController - Throwing Exception

2005-03-27 Thread Hema Menon
I am trying to trace down an issue that I have with a Struts
application only in  Jetspeed 1.6 with Fusion. Looking at the logs I
found an exception in the turbine log  as follows.
2005-03-27 21:45:12,492 [http-8080-Processor23] ERROR JetspeedLoggingService  - 
java.lang.Exception: redirectingat
org.apache.jetspeed.fusion.modules.actions.FusionAccessController.doPerform(FusionAccessController.java:181)
at org.apache.turbine.modules.Action.perform(Action.java:87)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at org.apache.turbine.Turbine.doGet(Turbine.java:529)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 

It appears that this exception is thrown within the doPerform() method
of FusionAccessController class. The method is as below
 public void doPerform( RunData data ) throws Exception   {  
   boolean throwit = false; 
try 
{ 
 super.doPerform(data); 

 traverse(portlets, windowId, windowState, (JetspeedRunData)data);
 throwit = true;
   }  else
 }
 ...
}
catch (Throwable t)
{
t.printStackTrace();
log.error(error in fusion access controller, t);
}
finally
{
if (contextComponent != null  context != null)
{
contextComponent.release(context);
}
if (throwit)
throw new Exception(redirecting);
}
}
 It looks like throwit will be true at all times and the exception
will be thrown whenever the doPerform() method is called. I guess this
is related to changes in the navigational state. I  am not sure
whether this exception is of any relevance to my problem, still
thought I would think out loud.

Thanks,
Hema


~~
Hema Menon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: J2 new deployment- How to undeploy an application?

2005-03-27 Thread Hema Menon
Ate,

If I understand it right, If I have an expanded  infused war, I don't
even need to deploy it in the Deploy directory. Instead dropping it
in the webapps folder would be good enough. That's great. So if I do
have an application that I need to 'portalize', I could modify the
web.xml  portlet.xml and drop it to in the webapps(ofcourse, assuming
implementation of the app itself is as per spec) ready to be picked up
as a JSR168 portlet. Great!

Hema



Ate Douma [EMAIL PROTECTED] wrote:
 A infused war can simply be dropped in your web/app server webapp folder 
 and/or deployed
 any other way your web/app server requires. For the same reason, you can 
 (hot) deploy
 an expanded *and infused* war yourself using the web/app server functionality.





 The new deployment model may seem more limited at first but actually its not.
..

~~
Hema Menon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Jetspeed2 Portlet Development Example

2005-03-27 Thread Clemens A mensik
thx... but I've also found some helpful links:

http://wiki.apache.org/portals/Jetspeed2
http://docs.sun.com/source/817-5319/index.html

greets
clemens 

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Dulisch
 Sent: Sonntag, 27. März 2005 21:06
 To: jetspeed-user@jakarta.apache.org
 Subject: Re: Jetspeed2 Portlet Development Example
 
 I can not point you to a howto documentation, but the 
 examples in the applications folder of the jetspeed 
 distribution are good examples for portlets.
 
 As jetspeed2 supports jsr 168 portlets the spec is also a 
 goog point to start. It contains documentation about the 
 needed files for a portlet distribution.
 
 martin
 
 
 
 Clemens A mensik wrote:
  Hi Stephen,
  
  thx for asking the same question I wanted to post ;-)
  
  ...installed jetspeed 2 successfully I'm also looking for 
 some kind of 
  'how to', that describes portlet developement up from scratch.
  
  I would appreciate any help, because I've to set up a 
 default portlet 
  for a new project till thursday... 2 days left, thats not much...
  
  thx in advance...
  clemens (jetspeed-rookie)
  
  
 -Original Message-
 From: Stephen Hatfield [mailto:[EMAIL PROTECTED]
 Sent: Freitag, 25. März 2005 15:35
 To: jetspeed-user@jakarta.apache.org
 Subject: Jetspeed2 Portlet Development Example
 
 Does anyone have a full example of portlet development in 
 Jetspeed2? 
 What I would dearly love to have are all the files necessary for a 
 portlet and instructions on how to deploy portlets. I find the 
 documentation on portlet development at Apache a bit thin.
 
 I realize I am probably asking for a lot and anyone may 
 certainly give 
 me a hard time about that. But then I hope they have pity 
 on a newbie 
 and help him out.
 
 Thank you very much!
 Stephen
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invoking another portlet

2005-03-27 Thread Deep Kumar
Hi All,
How can I invoke another portlet which is in different Tab.
e.g.
I have two Tabs A and B.
Tab A has portlet x whereas Tab B has portlet y.
Now on click on some hyperlink in portlet x of Tab A, it should redirect
to portlet y on Tab B.

Is there any solution to this scenario. Pls reply Any help is
appreciated.


Deep


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]