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]
Re: Deploying a portlet
I nocted that when you replace a portlet you have also to change the fragment id. Otherwise the old portlet is still displayed. I also put a random number and my portlets are displayed without association in an other file. Can someone explain the magic behind the fragment id? Is it stored in the database. Martin Priya Subramanian wrote: Hi Martin, I tried putting the entry in the default-page.psml. I replaced an entry for the Pick a number portlet with mine. But there is a fragment id which I need to specify. From where will I get this id? If I put some random number, does it need to be associated in any other file? Plz help. Thanks in advance. Regards, Priya Subramanian Systems Integration Infosys Technologies Ltd. Ext. No: 62965, Mob: 9880200241. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Dulisch Sent: Friday, March 18, 2005 8:40 PM To: jetspeed-user@jakarta.apache.org Subject: Re: Deploying a portlet Have you added your portlet to a portal page. You can do this for example by adding it to jetspeed/WEB-INF/pages/default-page.psml. May be jetspeed expands your war when the portlet is accessed. You could also look into the jetspeed/logs/deployment.log file. Is there an error. HTH, Martin Priya Subramanian wrote: Hi, I am naive to jetspeed. My problem is how to deploy a custom portlet into Jetspeed 2. I tried creating a portlet war (mydemo) file and put it in the web-inf/deploy directory of the jetspeed. But when I restart the tomcat, only an empty folder named mydemo is getting created in the webapps folder. I cant even find any error entry in the logs. Can anyone point me to some document which describes the procedure to deploy a portlet in jetspeed 2? Thanks in advance. - 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: [J2] Logging in portlets
Thanks for your answer Thomas, I have some additional questions: - do you have a seperate log4j.properties file in web-inf/classes of your portlet or is it the file from jetspeed/conf - are you using log4j logger in your class or commons-logging Thanks, Martin [EMAIL PROTECTED] wrote: hi ! my logging with log4j and tomcat 5.0.28 and cvs-version from 2.5 weeks works fine. the property is in webinf/classes and the log is on desktop, because i'am starting tomcat from this point. thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a portlet
Have you added your portlet to a portal page. You can do this for example by adding it to jetspeed/WEB-INF/pages/default-page.psml. May be jetspeed expands your war when the portlet is accessed. You could also look into the jetspeed/logs/deployment.log file. Is there an error. HTH, Martin Priya Subramanian wrote: Hi, I am naive to jetspeed. My problem is how to deploy a custom portlet into Jetspeed 2. I tried creating a portlet war (mydemo) file and put it in the web-inf/deploy directory of the jetspeed. But when I restart the tomcat, only an empty folder named mydemo is getting created in the webapps folder. I cant even find any error entry in the logs. Can anyone point me to some document which describes the procedure to deploy a portlet in jetspeed 2? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Develop deploy a portlet(Tomcat)
You can find some info on the wiki. I dont know another document. Martin Priya Subramanian wrote: Hi, Can anyone point me to some good document for developing and deploying a portlet in jetspeed 2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[J2] Logging in portlets
Hello, what is the recommendet way for logging in portlets? I added a new category and file appender to the log4j.properties in (jetspeed-webapp-dir)/WEB-INF/conf. The log file is created but it is empty. The level is set to debug. I noticed that the logfiles from the example portlets are also empty (e.g. sutruts). How can I use logging in my portlet? Does jetspeed 2 use log4j? I am using the current cvs version with tomcat 5.0.30. Thanks, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoClassDefFoundError
Hello, I am trying to run the current CVS jetspeed 2 version. I am executing the steps in the getting started document. When I try to open the portal in the browser an error occurs. The tomcat logs contain the following exception. My environment: Mac OS 10.3.7 Tomcat 5.0.28 Java 1.4.2_05 Has someone running jetspeed 2 on Mac OS? Thanks for help, Martin - 2005-02-25 11:35:08 StandardContext[/jetspeed]Marking servlet jetspeed as unavailable 2005-02-25 11:35:08 StandardContext[/jetspeed]Servlet /jetspeed threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.jetspeed.engine.JetspeedServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) ... - Root Cause - java.lang.NoClassDefFoundError: org/apache/jetspeed/exception/JetspeedException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618) at java.lang.Class.getConstructor0(Class.java:1930) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]