RE: buildNormalContext called twice?
Found this posting about changing from a JspPortlet to GenericMVCPortlet, but I am already using a GenericMVCPortlet and on a form submission, the buildNormalContext is being called only once on the portlet that has the doUpdate called, but it is being called twice for another portlet. http://www.mail-archive.com/[EMAIL PROTECTED]/msg11357.ht ml If it helps, here is the output in my log: 2004-03-10 14:32:17,062 [Thread-9] DEBUG GenericMVCAction - Action: try executing events INFO PartsSearchAction - *** doUpdate *** INFO PartsSearchAction - *** doUpdate - getMode = 0 INFO PartsSearchAction - *** doUpdate test-values = null *** DEBUG GenericMVCAction - GenericMVCAction: retrieved context: [EMAIL PROTECTED] DEBUG GenericMVCAction - GenericMVCAction: retrieved portlet: [EMAIL PROTECTED] DEBUG GenericMVCAction - GenericMVCAction: building normal INFO PartsSearchAction - *** buildNormalContext *** INFO PartsSearchAction - *** buildNormalContext portlet.getID() = P-fb363f03ee-1 *** INFO PartsSearchAction - *** buildNormalContext test-values = ALMOST THERE!!! *** A little further down: 2004-03-10 14:32:17,078 [Thread-9] DEBUG GenericMVCAction - GenericMVCAction: building normal INFO PartsSearchAction - *** buildNormalContext *** INFO PartsSearchAction - *** buildNormalContext portlet.getID() = P-fb363f9e69-10001 *** INFO PartsSearchAction - *** buildNormalContext test-values = ALMOST THERE!!! *** DEBUG GenericMVCAction - GenericMVCAction: retrieved context: [EMAIL PROTECTED] DEBUG GenericMVCAction - GenericMVCAction: retrieved portlet: [EMAIL PROTECTED] DEBUG GenericMVCAction - GenericMVCAction: building normal INFO PartsSearchAction - *** buildNormalContext *** INFO PartsSearchAction - *** buildNormalContext portlet.getID() = P-fb363f9e69-10001 *** INFO PartsSearchAction - *** buildNormalContext test-values = ALMOST THERE!!! *** So I have 2 portlets, which happen to be the same portlet, just two instances on my pane - notice the id's are different. Any thoughts as to why it is being called twice? Luckily I am not doing anything yet expensive in the buildNormalContext method, but I would be worried about this behavior if I were going to. Jason Trust
state / session / user storage
I have trawled the news group looking for ways to store user information, session information, portlet information, and combinations of these situations. I am specifically interested in understanding the most accurate way to store a data associated with a portlet instance for a specific user. Example (this is for demonstration purposes): User A logs into the portal, brings up a pane that has 2 portlets - Portlet X1 and another Portlet X2. These are search portlets and the user wants to have as many as they would like available to be added to their pane. In this case, User A has added 2 of them. User B also logs into the portal, and he has a pane which has only 1 portlet - Portlet X3. Portlet X1, X2, and X3 are all from the same portlet definition with the numbers representing "instances" of those portlets. If I need to store information about Portlet X1, for User A, but I do not want that information available to be confused with X2, X3 or User B information, what is the best way to do this? Available options: PortletSessionState.setAttribute() rundata.getUser.setTemp() others? If there is an ability to store portlet instance related data which lives as long as the portlet instance does, that would be the optimal place, well actually the most correct place. So long as there are unique portlet instances always. However, if that is not the case, then I would think some combination of storing user data along with a portlet id - portlet.getID() would be the right solution. Have others run into this situation? If so, what is the best way that you have solved this situation? Jason Trust ___ Corporate Technology Partners, Inc Delivering Enterprise Solutions www.ctpartners.com 877.287.2874 x702
RE: Jetspeed2 and Tomcat5.
A lot of times it's just because Tomcat 4 and 5 have different version of JAR, maybe even that have been moved. I've solved most problems going from one platform to another by moving JARs around (for example by copying them in the WEB-INF/lib directory of the application if they weren't there). Regards, Serge... At 02:03 PM 3/10/2004, you wrote: I had problems with Jetspeed2 and Tomcat5 too. Pavel Stehule V St, 10. 03. 2004 v 14:01, Dalton, Michael D pí¹e: > I have Jetspeed 1.4 up and running under Tomcat 5.0.19 if that is any > help. I am sure Jetspeed 2 works too under Tomcat 5. > > Michael Dalton > > -Original Message- > From: Rani Kavirajan [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 10:56 PM > To: [EMAIL PROTECTED] > Subject: Jetspeed2 and Tomcat5. > > > Is jetspeed-2 supposed to work on Tomcat 5.0.16? > If not, are there any plans to support Tomcat 5 in the near future? > > I am getting a series of exceptions when I try to access the > portal(build works ok and portal works on Tomcat4) > > thanks, > Rani. > > Caused by: javax.management.ReflectionException: The MBean class could > not be lo aded by the context classloader > at > com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstanti > atorImpl.java:444) > at > com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstanti > atorImpl.java:80) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Def > aultMBeanServerInterceptor.java:286) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Def > aultMBeanServerInterceptor.java:234) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.jav > a:362) > at > org.apache.jetspeed.services.jmx.JetspeedJMXService.initRemoteAccess( > JetspeedJMXService.java:337) > > > - > Do you Yahoo!? > Yahoo! Search - Find what you're looking for faster. > > - > 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] - -- --- -=[ shuber2 at jahia dot com ]= --- -- - www.jahia.org : A collaborative source CMS and Portal Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maximized question
David, Thanks, this worked well. I cast the rundata from the doUpdate (GenericMVCAction) method, and the mode is returned using the getMode() method. JetspeedRunData jrundata = (JetspeedRunData) rundata; logger.info("*** doUpdate - getMode = " + jrundata.getMode()); setTemplate(rundata, "parts_search_results"); if ( jrundata.getMode() == JetspeedRunData.MAXIMIZE ) { setTemplate(rundata, "parts_search_results_maximized"); } I have one additional question: The doUpdate method is followed by the buildNormalContext or buildMaximizedContext methods, which also call setTemplate. Is there an elegant way of having those buildXXXContext method to know that the template has already been set. For my uses, I updated a request attribute: rundata.getRequest().setAttribute("results", "true"); and let each buildXXXContext method check to see if it is set before they call setTemplate: String results = (String) rundata.getRequest().getAttribute("results"); if ( results == null ) { setTemplate(rundata, "parts_search_maximized"); } How have others dealt with this situation, or is there a much better way to handle different templates when running in normal or maximized mode and executing doUpdate calls? Jason Trust -Original Message- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 3:34 AM To: Jetspeed Users List Subject: Re: maximized question On Tuesday, March 9, 2004, at 10:29 AM, Jason Trust wrote: > I have a situation that involves a search and results type action, and > I > want the available search options and returned data set to be shown > differently based on when the user is normal or maximized mode. > > > > search_form.vm -> search_results.vm > > search_max_form.vm -> search_max_results.vm > > > > Is there an attribute or method that represents the maximized state of > the portlet? > Given JetspeedRunData jrd if (jrd.getMode() == JetspeeedRunData.MAXIMIZE) - 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: Jetspeed2 and Tomcat5.
I had problems with Jetspeed2 and Tomcat5 too. Pavel Stehule V St, 10. 03. 2004 v 14:01, Dalton, Michael D píše: > I have Jetspeed 1.4 up and running under Tomcat 5.0.19 if that is any > help. I am sure Jetspeed 2 works too under Tomcat 5. > > Michael Dalton > > -Original Message- > From: Rani Kavirajan [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 10:56 PM > To: [EMAIL PROTECTED] > Subject: Jetspeed2 and Tomcat5. > > > Is jetspeed-2 supposed to work on Tomcat 5.0.16? > If not, are there any plans to support Tomcat 5 in the near future? > > I am getting a series of exceptions when I try to access the > portal(build works ok and portal works on Tomcat4) > > thanks, > Rani. > > Caused by: javax.management.ReflectionException: The MBean class could > not be lo aded by the context classloader > at > com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstanti > atorImpl.java:444) > at > com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstanti > atorImpl.java:80) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Def > aultMBeanServerInterceptor.java:286) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Def > aultMBeanServerInterceptor.java:234) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.jav > a:362) > at > org.apache.jetspeed.services.jmx.JetspeedJMXService.initRemoteAccess( > JetspeedJMXService.java:337) > > > - > Do you Yahoo!? > Yahoo! Search - Find what you're looking for faster. > > - > 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: Jetspeed2 and Tomcat5.
I have Jetspeed 1.4 up and running under Tomcat 5.0.19 if that is any help. I am sure Jetspeed 2 works too under Tomcat 5. Michael Dalton -Original Message- From: Rani Kavirajan [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 10:56 PM To: [EMAIL PROTECTED] Subject: Jetspeed2 and Tomcat5. Is jetspeed-2 supposed to work on Tomcat 5.0.16? If not, are there any plans to support Tomcat 5 in the near future? I am getting a series of exceptions when I try to access the portal(build works ok and portal works on Tomcat4) thanks, Rani. Caused by: javax.management.ReflectionException: The MBean class could not be lo aded by the context classloader at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstanti atorImpl.java:444) at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstanti atorImpl.java:80) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Def aultMBeanServerInterceptor.java:286) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Def aultMBeanServerInterceptor.java:234) at com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.jav a:362) at org.apache.jetspeed.services.jmx.JetspeedJMXService.initRemoteAccess( JetspeedJMXService.java:337) - Do you Yahoo!? Yahoo! Search - Find what you're looking for faster. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build problem with Jetspeed2
I downloaded a CVS-Snapshot of Jetspeed2, I have problems with building. "maven allBuild" throws this exception: taskdef class org.apache.torque.task.TorqueDataModelTask cannot be found I am using Maven-1.0-rc1 / Ant 1.5.2 Thanks for helping to get Jetspeed2 running. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirection with DynamicURI, what is $jslink?
- Original Message - From: "David Sean Taylor" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Wednesday, March 10, 2004 9:27 AM Subject: Re: Redirection with DynamicURI, what is $jslink? > > On Tuesday, March 9, 2004, at 01:23 PM, Stijn de Witt wrote: > > > Can anyone point me in the right direction? > > I have attempted to get the $jslink in JSP myself, but I can't find > > it. If I > > dump my request attributes in my template, I see a 'link' attribute, > > but > > that is a JspLink or something, and I see a 'context', which is of > > class > > GenericMVCContext. I tried calling getKeys() on that, but that causes > > errors-a-plenty: > > Have you tried the jetspeed:portletlink tag? > See examples under the JSP1_1andJetspeedTagLib and > JSP1_2andJetspeedTagLib portlets David, thanks. No I never heard of the jetspeed:portletlink tag, but it sounds good. I'll have a look there and let you know if I got it. -Stijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is org.apache.jetspeed.om.dbpsml.BaseJetspeedGroupProfilePeer ?
JetspeedGroupProfilePeer.java is a class that allows object-oriented access to the jetspeed_group_profile table in the database. Torque generates such classes based on a database schema, in this case jetspeed/build/torque/schema/dbpsml.schema. The fact that access to this class is attempted, suggests you are using DbPsml, instead of the regular FilePsml. Check out the Jetspeed website, it has a section on PSML in the database. I think some of your properties are set contradictory to each other. -Stijn - Original Message - From: "Y.Watanabe" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Wednesday, March 10, 2004 10:08 AM Subject: Re[2]: Where is org.apache.jetspeed.om.dbpsml.BaseJetspeedGroupProfilePeer ? > > OK. I understand that I need to study about Torque firstly... > Thank you ! > > "Stijn de Witt" wrote on 2004/03/09 19:24 > with Subject: Re: Where is org.apache.jetspeed.om.dbpsml. > BaseJetspeedGroupProfilePeer ? > > >jakarta-jetspeed\src\java\org\apache\jetspeed\om\dbpsml\JetspeedGroupProfil e > >Peer.java > >This class is supposed to be generated automatically by torque... > > > >> Hi all. > >> > >> I have checked out the latest jakarta-jetspeed project from CVS. > >> And I command "maven war" but it fail. > >> > >> I think that > >> > >jakarta-jetspeed\src\java\org\apache\jetspeed\om\dbpsml\JetspeedGroupProfil e > >Peer.java > >> needs (extends) > >> BaseJetspeedGroupProfilePeer.java . > >> > >> But there is no such file. > >> > >> I confused. > > > - > 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[2]: Where is org.apache.jetspeed.om.dbpsml.BaseJetspeedGroupProfilePeer ?
OK. I understand that I need to study about Torque firstly... Thank you ! "Stijn de Witt" wrote on 2004/03/09 19:24 with Subject: Re: Where is org.apache.jetspeed.om.dbpsml. BaseJetspeedGroupProfilePeer ? >jakarta-jetspeed\src\java\org\apache\jetspeed\om\dbpsml\JetspeedGroupProfile >Peer.java >This class is supposed to be generated automatically by torque... >> Hi all. >> >> I have checked out the latest jakarta-jetspeed project from CVS. >> And I command "maven war" but it fail. >> >> I think that >> >jakarta-jetspeed\src\java\org\apache\jetspeed\om\dbpsml\JetspeedGroupProfile >Peer.java >> needs (extends) >> BaseJetspeedGroupProfilePeer.java . >> >> But there is no such file. >> >> I confused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maximized question
On Tuesday, March 9, 2004, at 10:29 AM, Jason Trust wrote: I have a situation that involves a search and results type action, and I want the available search options and returned data set to be shown differently based on when the user is normal or maximized mode. search_form.vm -> search_results.vm search_max_form.vm -> search_max_results.vm Is there an attribute or method that represents the maximized state of the portlet? Given JetspeedRunData jrd if (jrd.getMode() == JetspeeedRunData.MAXIMIZE) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirection with DynamicURI, what is $jslink?
On Tuesday, March 9, 2004, at 01:23 PM, Stijn de Witt wrote: Can anyone point me in the right direction? I have attempted to get the $jslink in JSP myself, but I can't find it. If I dump my request attributes in my template, I see a 'link' attribute, but that is a JspLink or something, and I see a 'context', which is of class GenericMVCContext. I tried calling getKeys() on that, but that causes errors-a-plenty: Have you tried the jetspeed:portletlink tag? See examples under the JSP1_1andJetspeedTagLib and JSP1_2andJetspeedTagLib portlets - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]