Re: integration with ldap
hi atul ! thanks for the reply. i tried to use your first solution. but it seems jetspeed uses turbine to handle database related issues. can u please tell where exactly i look for to modify code so as to use ldap/NIS rather than mysql db. alsoplease do tell me how to use the ldap/jndi related entries in TR.P. i know , i am asking for the skies...but will greatly appreciate whatever help i get. thanks, CB >From: Atul Dambalkar <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: integration with ldap >Date: Wed, 17 Oct 2001 16:11:36 -0700 > >I had done some preliminary research on this. > >This probably can be done in two ways, >1. There is turbine user itself in turbine schema. You want to maintain >that schema for Jetspeed to function and maintain same user id in your >ldap. If you do this, you can re-write one of the Jetspeed action classes >that handles the user login functionality and override the exact same part >that goes to Jetspeed database and checks for the validity of the >username/password. >2. You can use, web-server's basic user authentication feature and put the >username and password in the request object and then rather than going >thro' Jetspeed's login screen invoke user specific screen. Over here you >have to do some research to figure out how you can change the default login >screen to something that will be specific to the logged-in user specific >screen. > >-Atul > >At 07:18 PM 10/17/01 +0530, you wrote: >>hi all ! >> i am trying to use ldap/NIS with jetspeed but do not know how to... >> can anyone please give me some insight into this. i mean what if i use >>an ldap/NIS based directory service for authentication and authorizaiton >>instead of the database. >> >> i see some refernce to this in the turbine resource.properties but am >>not sure how to use it. >> >> please guide me. >> >> thanking you, >> >>CB >> >>_ >>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp >> >> >>- >>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] > _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
integration with ldap
hi all ! i am trying to use ldap/NIS with jetspeed but do not know how to... can anyone please give me some insight into this. i mean what if i use an ldap/NIS based directory service for authentication and authorizaiton instead of the database. i see some refernce to this in the turbine resource.properties but am not sure how to use it. please guide me. thanking you, CB _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
please help !
hi friends ! please help me solve the following problem . i am writing an application where i have an RSS portlet containing a link to a form redered by cocoon.now the link itself gets generated dynamically using rundata to append the current userid as the query string in the link. this link then will present the form with the relevant user details filled already. the problem is that all work fine when i access the form first time. but any subsequent clicking on the link shows that the link is not getting refreshed when I log out and log in as a different user. even starting a new browser window has no effect.only when i restart tomcat and log in as a different user does the link refreshes. i doubt that the problem may be due to cache. so i change the following in my TurbineResources.Properties. module.cache=false and in JR.P. refresh.portlet.default = 1 contentfeeds.fetchall=false but the problem stays ! any ideas ??? i am using jetspeed 1.3a1 tomcat 3.2.2 win NT 4.0 apache 1.3.11 awaiting response, thanx, CB _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rundata
hi all ! can anybody please send me some sample code illustrating the use of rundata to extract the username of currently logged user ? i have tried the code in portlet how-to on jstspeed site but i always get problem with class-path and/or import statements. please help. CB _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon with jetspeed
hi ming ! i tried to use the cocoonportlet with jetspeed...but could not succeed as it gives errors during build... compile: [javac] Compiling 352 source files to E:\jet3oct\jakarta-jetspeed\bin\classe s [javac] E:\jet3oct\jakarta-jetspeed\src\java\org\apache\jetspeed\portal\cont rollers\CocoonPortletController.java:72: package org.apache.jetspeed.portal.fact ory does not exist [javac] import org.apache.jetspeed.portal.factory.*; [javac] ^ [javac] E:\jet3oct\jakarta-jetspeed\src\java\org\apache\jetspeed\portal\cont rollers\CocoonPortletController.java:99: cannot resolve symbol [javac] symbol : variable JetspeedResources [javac] location: class org.apache.jetspeed.portal.controllers.CocoonPortlet Controller [javac] public final String STYLESHEET = TurbineResources.getString( Jet speedResources.XMLPORTLETCONTROLLER_STYLESHEET_KEY ); [javac] ^ [javac] E:\jet3oct\jakarta-jetspeed\src\java\org\apache\jetspeed\portal\cont rollers\CocoonPortletController.java:196: incompatible types [javac] found : java.util.Map [javac] required: java.util.Dictionary [javac] Dictionary data = portlet.getPortletConfig().getSkin(); [javac] ^ [javac] E:\jet3oct\jakarta-jetspeed\src\java\org\apache\jetspeed\portal\cont rollers\CocoonPortletController.java:221: incompatible types [javac] found : java.util.Map [javac] required: java.util.Dictionary [javac] Dictionary data = portlet.getPortletConfig().getLayout(); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 4 errors BUILD FAILED E:\jet3oct\jakarta-jetspeed\build\build.xml:175: Compile failed, messages should have been provided. Total time: 1 minute 27 seconds do u have any idea what am i doing wrong here ? thanx, CB _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon integration with WebPagePortlet
hi there ! regarding the cocoon - jetspeed integration.how are you maintaining sessions ? i mean when i try...i access the cocoon page as a webpageportlet allright but the session details...like username etc. are not passed to cocooni think this is because the session being maintained within the context boundary( i have cocoon and jetcpeed running as two different contexts or webapplications within the same tomcat ! )... any idea how to do this ? regards CB >From: "Ming Fai" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: RE: Cocoon integration with WebPagePortlet >Date: Sun, 30 Sep 2001 18:54:20 +0800 > >I can successfully use a WebPagePortlet to get HTML from Cocoon, however, I >suspect it got serious performance drawback as the process involves loading >Turbine/Jetspeed Servlet and then Cocoon Servlet. I wonder if there are any >ways to make it perform better. Is there a plan for CocoonPortlet be >created >again? and how about using ServletPortlet to call Cocoon? (what's the >function of ServletPortlet anyway? is it a depreciated class as well?) > >Regards, >mingfai > > >-Original Message- >From: Paul Spencer [mailto:[EMAIL PROTECTED]] >Sent: Saturday, September 29, 2001 6:46 AM >To: [EMAIL PROTECTED] >Subject: Re: Cocoon integration with WebPagePortlet > > >Karsten, >I have been able to verify the problem, i.e. the value of Cache-Control >and Expires in the HTTP header are ignored for web pages that are >considered local. I will start a new thread in the jetspeed-user >mailing list to solve this problem. > >Paul Spencer > > >[EMAIL PROTECTED] wrote: > > > > Hello Paul, > > > > is there a world without cache ? :-)) > > > > 1) > > The cocoon1 server is on the same host (Tomcat 3.2.3). > > ( http://localhost:8080/cocoon/myxmlfile.xml ) > > > > 2) > > i didnt set any cache-instructions in the http header of the page in > > cocoon. > > When i use to the above link in a browser, content is correct shown. > > because of that i think its not a cocoon problem > > > > 3) > > ok, after ~45 minutes the content was updated. Why after 45 Minutes? I >use > > the current cvs 1.3a2. the only setting that i have changed was > > refresh.portlet.default = 5. that causes the following messages in the > > jetspeed logfile every 5 seconds: > > > > [Thu Sep 27 12:08:56 CEST 2001] -- INFO -- DaemonThread -> PROCESSING > > daemon -> diskcachedaemon > > [Thu Sep 27 12:08:56 CEST 2001] -- INFO -- parsing out document store > > [Thu Sep 27 12:08:56 CEST 2001] -- INFO -- Calling JetspeedDiskCache > > getEntries > > [Thu Sep 27 12:08:56 CEST 2001] -- INFO -- DaemonThread -> *DONE* > > PROCESSING daemon -> diskcachedaemon > > > > why doesnt jetspeed update the cache? (getEntries) > > > > >Thus, the caching need to be tuned! > > how do i tune the cache? can you give me an introduction? > > Does the webpageprotlet examine the ' > ="0"' tag of the html page? > > > > Karsten Gampe > > > > Karsten, > > Welcome to the world of cache! > > > > Jetspeed does cache portlet content, see > > http://jakarta.apache.org/jetspeed/site/diskcache.html. > > > > 1) Is the cocoon server on the same or different host? > > > > 2) Are you setting any expiration of cache-control in the http header of > > the page in cocoon? > > > > 3) Will the portlet eventually, after 1+ hour, update? > > > > I suspect the log files of Jetspeed, Cocoon, Tomcat, and Apache will > > show that Jetspeed is not requesting the portlet content every time the > > portlet is viewed. Thus, the caching need to be tuned! > > > > If you are using Cocoon2, I saw the following in the cocoon mailing list > > that look interesting. I have not been able to try it, but is appears > > to address caching. This is from a sitemap before the > > tag. > > > > > > > > > > > > > > > > Paul Spencer > > > > [EMAIL PROTECTED] wrote: > > > > > > Hello (Paul), > > > > > > i have a problem with the caching in jetspeed. i use cocoon to render > > > xml-files to html-files. that works fine. after i integrate it in > > jetspeed > > > with a WebPagePortlet some problems comes up. if the content change in > > the > > > xml-file jetspeed show not the new version. i thought thats a updating > > > problem so i edited the jetspeed.properties (refresh.portlet.default = > > 5). > > > > > > after that the content of the portlet were updated, but only 1 time. > > futhur > > > changes in the xml-file where not recognized by jetspeed. > > > > > > can someone (you) give me an introduction to solve this problem? > > > > > > regards > > > > > > Karsten Gampe > > > > > > - > > > 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: please help me with mysql !!!
good morning ! today i started mysql as a service(having acquired admin privileges for my comp.! ) ,did " NET START mysql " , changed the database user name to root and password "" ...and now i am able access whatever entries i had put manually in the database...i am even able to edit the user details ( a confirmation mail and the confirmation key page also comes...)... but still when i try to create new userit takes me to the home page...and in my jetspeed.log , following appears... [Thu Sep 13 12:26:41 GMT+05:30 2001] -- INFO -- PSML-Man: calculated resource:anon\html\en\US\default.psml. Base: E:\tom1\webapps\jetspeed\WEB-INF\psml [Thu Sep 13 12:26:41 GMT+05:30 2001] -- INFO -- CastorPsmlManager: about to return null doc: [Thu Sep 13 12:26:41 GMT+05:30 2001] -- INFO -- PSML-Man: calculated resource:anon\html\en\default.psml. Base: E:\tom1\webapps\jetspeed\WEB-INF\psml [Thu Sep 13 12:26:41 GMT+05:30 2001] -- DEBUG -- JetspeedTemplatePage: requested template = NewAccount.vm [Thu Sep 13 12:26:41 GMT+05:30 2001] -- DEBUG -- template exists: E:\tom1\webapps\jetspeed\WEB-INF\templates\vm\screens\html\NewAccount.vm returning /html/NewAccount.vm [Thu Sep 13 12:26:41 GMT+05:30 2001] -- DEBUG -- JetspeedTemplatePage: calculated template = /html/NewAccount.vm [Thu Sep 13 12:26:41 GMT+05:30 2001] -- DEBUG -- template exists: E:\tom1\webapps\jetspeed\WEB-INF\templates\vm\layouts\html\default.vm returning /html/default.vm [Thu Sep 13 12:26:41 GMT+05:30 2001] -- DEBUG -- JetspeedTemplatePage: layoutTemplate is finally /html/default.vm [Thu Sep 13 12:27:08 GMT+05:30 2001] -- INFO -- PSML-Man: calculated resource:anon\html\en\US\default.psml. Base: E:\tom1\webapps\jetspeed\WEB-INF\psml [Thu Sep 13 12:27:08 GMT+05:30 2001] -- INFO -- CastorPsmlManager: about to return null doc: [Thu Sep 13 12:27:08 GMT+05:30 2001] -- INFO -- PSML-Man: calculated resource:anon\html\en\default.psml. Base: E:\tom1\webapps\jetspeed\WEB-INF\psml [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- SELECT TURBINE_USER.USER_ID, TURBINE_USER.LOGIN_NAME, TURBINE_USER.PASSWORD_VALUE, TURBINE_USER.FIRST_NAME, TURBINE_USER.LAST_NAME, TURBINE_USER.EMAIL, TURBINE_USER.CONFIRM_VALUE, TURBINE_USER.MODIFIED, TURBINE_USER.CREATED, TURBINE_USER.LASTLOGIN, TURBINE_USER.OBJECTDATA FROM TURBINE_USER WHERE (TURBINE_USER.LOGIN_NAME='pavan') [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- SELECT TURBINE_USER.USER_ID, TURBINE_USER.LOGIN_NAME, TURBINE_USER.PASSWORD_VALUE, TURBINE_USER.FIRST_NAME, TURBINE_USER.LAST_NAME, TURBINE_USER.EMAIL, TURBINE_USER.CONFIRM_VALUE, TURBINE_USER.MODIFIED, TURBINE_USER.CREATED, TURBINE_USER.LASTLOGIN, TURBINE_USER.OBJECTDATA FROM TURBINE_USER WHERE (TURBINE_USER.LOGIN_NAME='pavan') [Thu Sep 13 12:27:08 GMT+05:30 2001] -- INFO -- Forced id retrieval - no available vector [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- JetspeedTemplatePage: requested template = Error.vm [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- template exists: E:\tom1\webapps\jetspeed\WEB-INF\templates\vm\screens\html\Error.vm returning /html/Error.vm [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- JetspeedTemplatePage: calculated template = /html/Error.vm [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- template exists: E:\tom1\webapps\jetspeed\WEB-INF\templates\vm\layouts\html\default.vm returning /html/default.vm [Thu Sep 13 12:27:08 GMT+05:30 2001] -- DEBUG -- JetspeedTemplatePage: layoutTemplate is finally /html/default.vm [Thu Sep 13 12:27:11 GMT+05:30 2001] -- INFO -- DaemonThread -> PROCESSING daemon -> feeddaemon [Thu Sep 13 12:27:11 GMT+05:30 2001] -- INFO -- Jetspeed: FeedDaemon -- BEGIN -- [Thu Sep 13 12:27:11 GMT+05:30 2001] -- INFO -- Jetspeed: FeedDaemon -- END -- [Thu Sep 13 12:27:11 GMT+05:30 2001] -- INFO -- DaemonThread -> *DONE* PROCESSING daemon -> feeddaemon [Thu Sep 13 12:27:12 GMT+05:30 2001] -- INFO -- DaemonThread -> PROCESSING daemon -> diskcachedaemon [Thu Sep 13 12:27:12 GMT+05:30 2001] -- INFO -- parsing out document store [Thu Sep 13 12:27:12 GMT+05:30 2001] -- INFO -- Calling JetspeedDiskCache getEntries [Thu Sep 13 12:27:12 GMT+05:30 2001] -- INFO -- DaemonThread -> *DONE* PROCESSING daemon -> diskcachedaemon any idea , where else do i have to modify ??? thanking you for all your support. CB >From: Rajeswari Venkatachalam <[EMAIL PROTECTED]> >To: 'chaloo banda ' <[EMAIL PROTECTED]> >Subject: RE: please help me with mysql !!! >Date: Wed, 12 Sep 2001 09:01:19 -0700 > > >how do you start mysql? I start it like this: > > net start mysql > >-Raje > >-Original Message- >From: chaloo banda >To: [EMAIL PROTECTED] >Sent: 9/12/01 8:45 AM >Subject: RE: please help me with mysql !!! > >hi ! > i did as you said but with the same output. i am indeed not able to >telnet.in my task manager i have one mysqld-nt.e
pray
Lets pray the god and observe a moment of silence for all the innocent civilians who have perished in a very tragic manner yesterday. May the god bless their souls. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mysql problem........
hi all ! i am trying to use mysql as the database for jetspeed. i have configured the TR.P as under... database.default.driver=org.gjt.mm.mysql.Driver database.default.url=jdbc:mysql://localhost:3306/jetspeed database.default.username=ranjanwa database.default.password=password (i have checked with mysqladmin that my database runs with the above user name and password ! ) database.adaptor=DBMM database.adaptor.DBMM=org.gjt.mm.mysql.Driver database.idbroker.cleverquantity=true next i created all the tables as given in src/sql/external/turbine-mysql.sql and populated them with the values given in populate-mysql.sql (these i did manually...and checked that the tables exist and are populated.) i have mm.mysql-2.0.4-bin (jar file) in jetspeed/web-inf/lib and in web-inf/db . i also have mm.mysql-2.0.4(not bin !) in my tomcat/lib. now i start mysql(i have tried to run it in stand-alone as well as in service mode !), start jetspeed .the first page comes well. but when i try to access any of the default user (admin or turbine ) or try to create new user it takes me to the home page(and not the expected confirmation key page ! )...and my jetspeed.log gives the following error Wed Sep 12 16:49:20 GMT+05:30 2001] -- ERROR -- Turbine.handleException: Error in BasePeer.initTableSchema(TURBINE_USER): Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException) [Wed Sep 12 16:49:20 GMT+05:30 2001] -- ERROR -- Exception: java.lang.Error: Error in BasePeer.initTableSchema(TURBINE_USER): Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException) Stack Trace follows: java.lang.Error: Error in BasePeer.initTableSchema(TURBINE_USER): Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException) at org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:232) at org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:194) at org.apache.turbine.om.security.peer.TurbineUserPeer.(TurbineUserPeer.java) at org.apache.turbine.services.security.db.DBUserManager.retrieve(DBUserManager.java:158) at org.apache.turbine.services.security.db.DBUserManager.retrieve(DBUserManager.java:246) at org.apache.turbine.services.security.BaseSecurityService.getAuthenticatedUser(BaseSecurityService.java:313) at org.apache.turbine.services.security.TurbineSecurity.getAuthenticatedUser(TurbineSecurity.java:199) at org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:103) at org.apache.turbine.modules.Action.perform(Action.java:87) and ... [Wed Sep 12 17:01:51 GMT+05:30 2001] -- INFO -- Entering JLoginUser action [Wed Sep 12 17:01:51 GMT+05:30 2001] -- ERROR -- Turbine.handleException: null [Wed Sep 12 17:01:51 GMT+05:30 2001] -- ERROR -- Exception: java.lang.NoClassDefFoundError Stack Trace follows: java.lang.NoClassDefFoundError at org.apache.turbine.services.security.db.DBUserManager.retrieve(DBUserManager.java:158) at org.apache.turbine.services.security.db.DBUserManager.retrieve(DBUserManager.java:246) at org.apache.turbine.services.security.BaseSecurityService.getAuthenticatedUser(BaseSecurityService.java:313) at org.apache.turbine.services.security.TurbineSecurity.getAuthenticatedUser(TurbineSecurity.java:199) at org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:103) at org.apache.turbine.modules.Action.perform(Action.java:87) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at org.apache.jetspeed.modules.actions.JLoginUser.doPerform(JLoginUser.java:143) 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:393) at org.apache.turbine.Turbine.doPost(Turbine.java:537) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) i am simply at my wits end trying to find out where did i go wrong. is this a problem of wrong mysql installation(but i followed the manual !)as with hsql i had my jetspeed running real smooth. or is this some permission mismatch for mysql ? in my jetspeed/web-inf/db i have the attached files. please have a look at them and suggest. i am using mysql3.23.41 jetspeed(latest) tomcat 3.2.2 apache 1.3.11 windows NT 4.0 workstation I ap
mysql problem !
hi jetspeeders ! i am new to jetspeed. having installed jetspeed (latest) on my NT 4.0 workstation. it works fine till now. now i want to use mysql as a database for jetspeed.i followed all the mysql manual instructions but was unable to load mysql as a service...so i installed it as stand-alone. then i made the corresponding changes in turbineresources.properties file , created a new databases, tables and populated them with the default user details(i mean admin and turbine ! ).i accessed the admin and turbine users from jetspeed ...worked fine...i could even edit these user's passwords etd. so far so good ! now when i wish to create new uers from jetspeed , nothing happensi mean , the expected confirmation key page does not come up. on looking up in my mysql db , i don't find any entry for this new user there either. has anybody else faced similar problem ? does anyone know the answers? do u have to run mysql as a service to use that in jetspeed? kindly help . regards, CB _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]