jetspeedUser.setPerm() does not work???
Hi, I am using jetspeed-1.4b1 (stable release). I do a jetspeedUser.setPerm to store an object and use jetspeedUser.getPerm to retrieve it. But I can retrive it only during the current session. If I logout and then log in, I cannot retrieve it. May I know how to retrieve it even after I log out and log in again. Thanks a lot --Gopi -- To unsubscribe, e-mail: mailto:jetspeed-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jetspeed-user-help;jakarta.apache.org
Log4j problem with jetspeed 1.4b1
Hi, I am using jetspeed1.4b1. I am also using log4j 1.2.6 for logging stuff. I have two portlets which log stuff using log4j into two separate files. When these two portlets are on different panes i.e different pages, each portlet logs stuff to its own logfile correctly. However if the two portlets are in the same pane i.e same page, there is total chaos. I see stuff from both the portlets in both the logfiles. But the two logfiles are not identical, so each portlet logs some of its stuff into one logfile and some other stuff into the other logfile. There does not seem to a pattern in this weird behaviour. What is to be done? Thanks a lot. --GK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jetspeed and xerces-2.0
Hi Paul, I don't know how to thank you enough for this. I will use the new jetspeed and report any problems. Thanks once again, --GK On Thursday 26 September 2002 02:51 am, Paul Spencer wrote: Gopi, I have replaced Xerces 1.4.4 with Xerces 2.1.0 and rebuild Jetspeed. This seems to work :-) Some more testing needs to be done before committing. I suggest load Jetspeed from the CVS and replace lib/xerces-1.1.4.jar with xercesImpl.jar and xmlParserAPIs.jar from Xerces 2.1.0. Please report any problems you find to the list. Make sure you mention in the posting that you are using Xerces 2.1.0. Paul Spencer Gopi Kandaswamy wrote: Hi Paul, Thanks. But I understand from lots of articles on the web that the XML Serializer in Xerces-2.0 used to break the castor marshaller. But this was fixed in Xerces-2.0.1. So is it possible to upgrade the xerces in jetspeed to xerces-2.0.1. Does xerces-2.0.1 have other problems with castor Thanks --GK On Wednesday 25 September 2002 07:25 pm, Paul Spencer wrote: Gopi, Currently we are using Castor to marshal and unmarshal the Registry and PSML files. Since the current version of Castor does not support Xerces 2.x, Jetspeed does not support Xerces 2.x. We recently upgrade Xerces to version 1.4.4 See http://jakarta.apache.org/jetspeed/site/jars.html for information about Jars used by Jetspeed. Paul Spencer Gopi Kandaswamy wrote: Hi, I have written a portlet which uses wsdl4j, which in turn needs xerces-2.0. But jetspeed (1.4b1) uses xerces-1.3.1 and does not work with xerces-2.0. I get errors like this if I use xerces-2.0. org.apache.turbine.util.TurbineException: Error rendering Velocity template: / controls/html/jetspeed.vm: Invocation of method 'getContent' in class org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWra p per threw exception class java.lang.AbstractMethodError : null Is there a version of jetspeed that uses xerces-2.0, or is there anyway I can specify my portlet to use xerces-2.0 and jetspeed to use xerces-1.3.1 Thanks a million, --GK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- --GK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jetspeed and xerces-2.0
Hi, I have written a portlet which uses wsdl4j, which in turn needs xerces-2.0. But jetspeed (1.4b1) uses xerces-1.3.1 and does not work with xerces-2.0. I get errors like this if I use xerces-2.0. org.apache.turbine.util.TurbineException: Error rendering Velocity template: / controls/html/jetspeed.vm: Invocation of method 'getContent' in class org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrapper threw exception class java.lang.AbstractMethodError : null Is there a version of jetspeed that uses xerces-2.0, or is there anyway I can specify my portlet to use xerces-2.0 and jetspeed to use xerces-1.3.1 Thanks a million, --GK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jetspeed and xerces-2.0
Hi Paul, Thanks. But I understand from lots of articles on the web that the XML Serializer in Xerces-2.0 used to break the castor marshaller. But this was fixed in Xerces-2.0.1. So is it possible to upgrade the xerces in jetspeed to xerces-2.0.1. Does xerces-2.0.1 have other problems with castor Thanks --GK On Wednesday 25 September 2002 07:25 pm, Paul Spencer wrote: Gopi, Currently we are using Castor to marshal and unmarshal the Registry and PSML files. Since the current version of Castor does not support Xerces 2.x, Jetspeed does not support Xerces 2.x. We recently upgrade Xerces to version 1.4.4 See http://jakarta.apache.org/jetspeed/site/jars.html for information about Jars used by Jetspeed. Paul Spencer Gopi Kandaswamy wrote: Hi, I have written a portlet which uses wsdl4j, which in turn needs xerces-2.0. But jetspeed (1.4b1) uses xerces-1.3.1 and does not work with xerces-2.0. I get errors like this if I use xerces-2.0. org.apache.turbine.util.TurbineException: Error rendering Velocity template: / controls/html/jetspeed.vm: Invocation of method 'getContent' in class org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrap per threw exception class java.lang.AbstractMethodError : null Is there a version of jetspeed that uses xerces-2.0, or is there anyway I can specify my portlet to use xerces-2.0 and jetspeed to use xerces-1.3.1 Thanks a million, --GK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- --GK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to make a servlet display a message as a portlet
Hi Paul, I can see only one message and it does not seem to be an error message. I found it in the jetspeed/WEB-INF/log/jetspeed.log. There are no relevant messages elswhere. [Fri Feb 01 13:45:57 EST 2002] -- DEBUG -- Adding entry HelloWorld of class class org.apache.jetspeed.services.registry.NormalizedPortletEntry to registry Registry I have the servlet.jar also in the jetpseed/WEB-INF/classes directory. I am using Tomcat 4.0.1 and Jetspeed 1.3a2 on Red Hat Linux 7.2 and jdk1.3. Also I deleted the HelloWorld.class from the jetspeed/WEB-INF/classes directory and restarted Tomcat. I got no error messages. So looks like the HelloWorld.class file is not being read/accessed at all by the portlets. Thanks a lot. I really hope I can be helped. Gopi On Friday 01 February 2002 13:58, you wrote: Gopi, Are their any message in the Jetspeed log file, Tomcat log files, standard output? Paul Spencer Gopi Kandaswamy wrote: I am new to jetspeed and have a simple question. How to run a servlet within jetspeed. I have a simple servlet to start with, i.e the HelloWorld servlet. I did the following but still cannot get the servlet to print the message HelloWorld when I make it a portlet. But it prints the message HelloWorld when I access it as a servlet. 1. I compiled the servlet and put the class file in jetspeed/WEB-INF/classes. 2. I added the following entry in the jetspeed/WEB-INF/conf/portlets.xreg file portlet-entry name=Servlet hidden=false type=abstract application=false classnameorg.apache.jetspeed.portal.portlets.ServletInvokerPortlet/cla ssname /portlet-entry portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info media-type ref=html/ url/servlet/HelloWorld/url /portlet-entry 3. I added the following entry to my jetspeed/WEB-INF/web.xml file servlet servlet-nameHelloWorld/servlet-name display-nameHello World Servlet/display-name descriptionno description/description servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-pattern/servlet/HelloWorld/url-pattern /servlet-mapping Any help would be greatly appreciated. Thanks Gopi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to make a servlet display a message as a portlet
I am sorry, but it did not solve the problem. 1. Added the following entry in jetspeed/WEB-INF/web.xml servlet servlet-nameHelloWorld/servlet-name display-nameHello World Servlet/display-name descriptionno description/description servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-pattern/servlet/HelloWorld/url-pattern /servlet-mapping 2. Added the following to jetspeed/WEB-INF/conf/portlets.xreg portlet-entry name=Servlet hidden=false type=abstract application=false classnameorg.apache.jetspeed.portal.portlets.ServletInvokerPortlet/classname /portlet-entry portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info parameter name=url value=/servlet/HelloWorld hidden=false/ media-type ref=html/ /portlet-entry I also put the HelloWorld.class in the jetspeed/WEB-INF/classes/servlet directory and restarted and did all such things. I also put it in the classes directory and changed the url value accordingly. Still, I can see the portlet but there is nothing in it. It does not print hello world. On the other hand if the servlet is accessed like a servlet, it prints hello world. Thanks a lot Gopi On Friday 01 February 2002 03:46 pm, you wrote: Gopi, Did this solve the problem? Paul Spencer Ozgur Balsoy wrote: Gopi, I am sorry that it was my mistake. The portlet entry must be like this: portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info parameter name=url value=/servlet/HelloWorld / media-type ref=html/ /portlet-entry Don't forget that HelloWorld.class must be in classes/servlet/ directory. If you put it in classes/ then the url becomes /HelloWorld Ozgur -Original Message- From: Gopi Kandaswamy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:44 PM To: Jetspeed Users List Subject: Re: How to make a servlet display a message as a portlet Hi Paul, I can see only one message and it does not seem to be an error message. I found it in the jetspeed/WEB-INF/log/jetspeed.log. There are no relevant messages elswhere. [Fri Feb 01 13:45:57 EST 2002] -- DEBUG -- Adding entry HelloWorld of class class org.apache.jetspeed.services.registry.NormalizedPortletEntry to registry Registry I have the servlet.jar also in the jetpseed/WEB-INF/classes directory. I am using Tomcat 4.0.1 and Jetspeed 1.3a2 on Red Hat Linux 7.2 and jdk1.3. Also I deleted the HelloWorld.class from the jetspeed/WEB-INF/classes directory and restarted Tomcat. I got no error messages. So looks like the HelloWorld.class file is not being read/accessed at all by the portlets. Thanks a lot. I really hope I can be helped. Gopi On Friday 01 February 2002 13:58, you wrote: Gopi, Are their any message in the Jetspeed log file, Tomcat log files, standard output? Paul Spencer Gopi Kandaswamy wrote: I am new to jetspeed and have a simple question. How to run a servlet within jetspeed. I have a simple servlet to start with, i.e the HelloWorld servlet. I did the following but still cannot get the servlet to print the message HelloWorld when I make it a portlet. But it prints the message HelloWorld when I access it as a servlet. 1. I compiled the servlet and put the class file in jetspeed/WEB-INF/classes. 2. I added the following entry in the jetspeed/WEB-INF/conf/portlets.xreg file portlet-entry name=Servlet hidden=false type=abstract application=false classnameorg.apache.jetspeed.portal.portlets.ServletInvokerPortlet/cl a ssname /portlet-entry portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info media-type ref=html/ url/servlet/HelloWorld/url /portlet-entry 3. I added the following entry to my jetspeed/WEB-INF/web.xml file servlet servlet-nameHelloWorld/servlet-name display-nameHello World Servlet/display-name descriptionno description/description servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-pattern/servlet/HelloWorld/url-pattern /servlet-mapping Any help would be greatly appreciated. Thanks Gopi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
Re: How to make a servlet display a message as a portlet
Hi, Actually it did work!!!. But the portlet prints HelloWorld only after I run the servlet as http://localhost:8080/jetspeed/servlet/HelloWorld. Why does the portlet not run the servlet automatically when I refresh the page. Is there any way I can solve this problem. May be my understanding of how jetspeed works is wrong. Thanks for your help. Gopi On Friday 01 February 2002 04:19 pm, you wrote: I am sorry, but it did not solve the problem. 1. Added the following entry in jetspeed/WEB-INF/web.xml servlet servlet-nameHelloWorld/servlet-name display-nameHello World Servlet/display-name descriptionno description/description servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-pattern/servlet/HelloWorld/url-pattern /servlet-mapping 2. Added the following to jetspeed/WEB-INF/conf/portlets.xreg portlet-entry name=Servlet hidden=false type=abstract application=false classnameorg.apache.jetspeed.portal.portlets.ServletInvokerPortlet/class name /portlet-entry portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info parameter name=url value=/servlet/HelloWorld hidden=false/ media-type ref=html/ /portlet-entry I also put the HelloWorld.class in the jetspeed/WEB-INF/classes/servlet directory and restarted and did all such things. I also put it in the classes directory and changed the url value accordingly. Still, I can see the portlet but there is nothing in it. It does not print hello world. On the other hand if the servlet is accessed like a servlet, it prints hello world. Thanks a lot Gopi On Friday 01 February 2002 03:46 pm, you wrote: Gopi, Did this solve the problem? Paul Spencer Ozgur Balsoy wrote: Gopi, I am sorry that it was my mistake. The portlet entry must be like this: portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info parameter name=url value=/servlet/HelloWorld / media-type ref=html/ /portlet-entry Don't forget that HelloWorld.class must be in classes/servlet/ directory. If you put it in classes/ then the url becomes /HelloWorld Ozgur -Original Message- From: Gopi Kandaswamy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:44 PM To: Jetspeed Users List Subject: Re: How to make a servlet display a message as a portlet Hi Paul, I can see only one message and it does not seem to be an error message. I found it in the jetspeed/WEB-INF/log/jetspeed.log. There are no relevant messages elswhere. [Fri Feb 01 13:45:57 EST 2002] -- DEBUG -- Adding entry HelloWorld of class class org.apache.jetspeed.services.registry.NormalizedPortletEntry to registry Registry I have the servlet.jar also in the jetpseed/WEB-INF/classes directory. I am using Tomcat 4.0.1 and Jetspeed 1.3a2 on Red Hat Linux 7.2 and jdk1.3. Also I deleted the HelloWorld.class from the jetspeed/WEB-INF/classes directory and restarted Tomcat. I got no error messages. So looks like the HelloWorld.class file is not being read/accessed at all by the portlets. Thanks a lot. I really hope I can be helped. Gopi On Friday 01 February 2002 13:58, you wrote: Gopi, Are their any message in the Jetspeed log file, Tomcat log files, standard output? Paul Spencer Gopi Kandaswamy wrote: I am new to jetspeed and have a simple question. How to run a servlet within jetspeed. I have a simple servlet to start with, i.e the HelloWorld servlet. I did the following but still cannot get the servlet to print the message HelloWorld when I make it a portlet. But it prints the message HelloWorld when I access it as a servlet. 1. I compiled the servlet and put the class file in jetspeed/WEB-INF/classes. 2. I added the following entry in the jetspeed/WEB-INF/conf/portlets.xreg file portlet-entry name=Servlet hidden=false type=abstract application=false classnameorg.apache.jetspeed.portal.portlets.ServletInvokerPortlet/c l a ssname /portlet-entry portlet-entry name=HelloWorld hidden=false type=ref parent=Servlet application=false meta-info titleHello World Servlet/title descriptionThis is my Hello World Servlet/description /meta-info media-type ref=html/ url/servlet/HelloWorld/url /portlet-entry 3. I added the following entry