CastorRegistryService in standalone mode - problem
Hi, I am using castor for parsing the xml config file for my application. After this, I am not able to run jetspeed app in standalone mode. TurbineConfig.init() used to work fine before. But it does not work now. All is see is: Waiting for init of Registry. Waiting for init of Registry. Waiting for init of Registry. lines in jetspeed.log. This is coming from init() method of CastorRegistryService. Turbine never gets initialized and the app just hangs. However the same code works fine when run as a scheduled job. What is the difference between standalone mode and servlet mode pertaining to CastorRegistryService? Please help. thanks, -Raje -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Jetspeed and tomcat 4.0
Hi, Is any one using this configuration? So far I have been using tomcat 3.2.3 on win2k. Just now I got some benchmarks for my jetspeed app within tomcat 4.0 and it is very very fast. I am very impressed with tomcat 4.0 performance. I was wondering if any of you faced any issues with using tomcat 4.0? thanks, -Raje - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting headers in JSP templates
Hi, I want to set the content-type for my page. Can I do this in the JSP like this? It does not work. Please suggest if there are any other possible ways to do this? rundata.setContentType(text/plain); rundata.getResponse().setHeader(content-disposition,attachment;filename=x yz.txt); thanks, -Raje - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.util.Date() into a java.sql.Date
Try this: You can also use setString for a timestamp field. It is legal. SimpleDateFormat formatter = new SimpleDateFormat(MM DD, hh:mm:ss a); pstmt.setString(1, formatter.format(new Date()); For details on SimpleDateFormat refer to javadoc of java.text package. -Raje -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 17, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: RE: java.util.Date() into a java.sql.Date I tried this but I get the ORA-00947 error:not enough values. The format of the existing date field in the ora db is-- October 17,2001 1:15:33 PM The format I get from following timestamp code is --2001-10-17 13:13:19.485 I cant believe that oracle would be that picky since it is a date field? Thanks to all that replied, I will keep trying to get this to work(seems like such a simple task) Graham -Original Message- From: David Sean Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 17, 2001 12:08 PM To: [EMAIL PROTECTED] Subject: RE: java.util.Date() into a java.sql.Date with oracle all dates are actually timestamps, so you can use jdbc timestamps: java.util.Date date = new java.util.Date(); // get timestamp now java.sql.Timestamp timeStamp = new java.sql.Timestamp(date.getTime()); ps.setTimestamp( 2, timeStamp ); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 17, 2001 9:15 AM To: [EMAIL PROTECTED] Subject: java.util.Date() into a java.sql.Date Importance: Low Hi, I have a prepared statement that requires a date for Oracle db. Basically it is a field that records time and date that record was created(timestamp). I use this to get time and date : java.util.Date utilDate = new java.util.Date(); //Now I need to convert this utilDate into a sqlDate to use in a prepared statement. I need this: October 17, 2001 11:00:00PM which util gives me but I cant get it to sql type ps.setDate(2,sqlDate); How can I convert or better yet grab the current date/time as a sql.Date to begin with. THANKS!! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
psml for user, role and group
Hi, I have created permissions for roles and users have different roles. In jetspeed all created users belong to Jetspeed group by default. I want to have separate psml files for each of the roles. So I created: role1/html/default.psml role2/html/default.psml But I get exceptions when I access home page after logging in. It complains about not being able to find psml file in following locations: user\robin\html\en\US\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: user\robin\html\en\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: user\robin\html\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: user\robin\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: anon\default.psml. etc etc Why is not checking in role\* dir?? I dont want any psml is anon dir. I looked at CastorPsmlManager. It checks for user or role or group. Since the user is logged in, it always looks in user\* dir for psml? Is my understanding right? Please suggest. thanks, -Raje - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: psml for user, role and group
Hi Paul, thanks for you feedback. That is what I was thinking before reading following mailing list info. After some researching, I found out that Jetspeed adds all new users to 'jetspeed' group directly (in the code somewhere..). So you can not add users to other groups you wish. If you login as admin/jetspeed you can use user, role, permission and group browsers to created new entities. What I noticed was, I cant add a user to a new group that I create. However, I was able to assign roles to users, and permissions for each of the role. This info was very useful: http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg01169.html http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg00680.html That is why I want role-level customization for psml files. Psml files in user\* dir works fine. But I dont want to create separate user dir for every user. I want next level - that is role. Hope I presented my problem correctly. thanks again, -Raje -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:14 PM To: [EMAIL PROTECTED] Subject: Re: psml for user, role and group Rajeswari, I believe you are using role incorrectly. According to you description, you have roles and groups reversed, i.e. instead of psml/role1/html/default.psml it should psml/group/Group1/html/default.psml. That said, I am not aware how to configure a user's default portal to be Group1/html/default.html. Try searching the mailing list, http://www.mail-archive.com Their has to be a anon/... directory. A user can not log in with out it! Paul Spencer Rajeswari Venkatachalam wrote: Hi, I have created permissions for roles and users have different roles. In jetspeed all created users belong to Jetspeed group by default. I want to have separate psml files for each of the roles. So I created: role1/html/default.psml role2/html/default.psml But I get exceptions when I access home page after logging in. It complains about not being able to find psml file in following locations: user\robin\html\en\US\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: user\robin\html\en\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: user\robin\html\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: user\robin\default.psml. -- INFO -- CastorPsmlManager: about to return null doc: anon\default.psml. etc etc Why is not checking in role\* dir?? I dont want any psml is anon dir. I looked at CastorPsmlManager. It checks for user or role or group. Since the user is logged in, it always looks in user\* dir for psml? Is my understanding right? Please suggest. thanks, -Raje - 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]
RE: mysql
step 1: configure TurbineRes.props as shown below: #database.default.driver=org.hsql.jdbcDriver #database.default.url=jdbc:HypersonicSQL:${webapp.dir}/WEB-INF/db/jetspeed #database.default.username=sa #database.default.password= database.default.driver=org.gjt.mm.mysql.Driver database.default.url=jdbc:mysql://localhost:3306/mysql database.default.username=root database.default.password= database.adaptor=DBMM database.adaptor.DBMM=org.gjt.mm.mysql.Driver step 2: Run sql script for mysql. This creates database needed by turbine/jetspeed. scripts are located in: C:\Jetspeed\jakarta-jetspeed\src\sql\external Thats it. -Raje -Original Message- From: Paul Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 12:37 PM To: [EMAIL PROTECTED]; Sumit Ranjan Subject: Re: mysql - Original Message - From: Sumit Ranjan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 3:16 PM Subject: mysql hi all ! i want to use mysql in place of hsql. please tell me how to go about it. thanx Sumit Ranjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I'm pretty new to Jetspeed myself but from reading through the docs I think you need to to alter the database.default parameters. These are in the turbine.resources.properties file located in path_to_jetspeed\web-inf\ conf\TurbineResources.properties. Presuming your classpath is set up correctly that should sort out your problem. Ian Lewis - 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]
JSP Portlet question. Please Help!!
So far I have been using JSP and actions as defined in turbine documentation. So these were shown as screens instead of a portlet. Now I want to display the JSP content inside a portlet. I defined something like this: portlet-entry name=VSecurity hidden=false type=ref parent=JSP application=false meta-info titleTEST/title descriptionTEST portlet/description /meta-info parameter name=template value=/WEB-INF/templates/jsp/portlets/html/vsGlance.jsp hidden=false/ media-type ref=html/ /portlet-entry But I want to invoke an action that creates the data to be displayed by this JSP. I used to do it like this:.../template/myjspName/action/myAction. This worked very well. I dont know how to do this with JSP portlet. Displaying a simple hello.jsp as a portlet works fine. Please help me. thanks, -Raje - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Portlet question. Please Help!!
I managed to do it this way: Invoke the action explicitly from JSP page. ActionLoader.getInstance().exec(rundata, MyActionClass); This solves my issue.It is not very neat but it is OK. Is there any other solution to this? -Raje -Original Message- From: Rajeswari Venkatachalam To: '[EMAIL PROTECTED]' Sent: 8/23/01 8:01 AM Subject: JSP Portlet question. Please Help!! So far I have been using JSP and actions as defined in turbine documentation. So these were shown as screens instead of a portlet. Now I want to display the JSP content inside a portlet. I defined something like this: portlet-entry name=VSecurity hidden=false type=ref parent=JSP application=false meta-info titleTEST/title descriptionTEST portlet/description /meta-info parameter name=template value=/WEB-INF/templates/jsp/portlets/html/vsGlance.jsp hidden=false/ media-type ref=html/ /portlet-entry But I want to invoke an action that creates the data to be displayed by this JSP. I used to do it like this:.../template/myjspName/action/myAction. This worked very well. I dont know how to do this with JSP portlet. Displaying a simple hello.jsp as a portlet works fine. Please help me. thanks, -Raje - 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]
peer classes, JSPs and jetspeed
Hi, I am relatively new to Jetspeed. I am using v1.3a2. So far everything has been fine. I like jetspeed a lot. I was able to use portlets without any problem. I have 2 issues: 1. showing JSP inside portlet window. I see JSP contents at the top of the page. Will this be fixed in the near future? I have 15 days to complete my prototype. 2. How to generate peer classes for my database (app specific) tables within jetspeed. Is there any other way for doing O-R mapping? What is the best way to bring SQL results to the template. Please advise. thanks very much, -Raje -Original Message- From: Frans Thamura To: [EMAIL PROTECTED] Sent: 8/12/01 9:36 PM Subject: Re: Jetspeed and frames I think this concept is look like mycnn.com (today mycnn.com become mynetscape.com, isn't it?) I have tried this, but if I want to archive it, the page cannot be saved. I found this if there is a complex javascript in the html. Frans --- Dave Carlson [EMAIL PROTECTED] wrote: I've also been exploring the use of frames in Jetspeed. With my application, some of the content is large and benefits from an independently scrollable pane. Also, one pane displays a file-folder hierarchy that is generated by javascript and is very slow to render, so I don't want to refresh it each time the page is updated. I've already built this application in non-jetspeed JSP and servlets and am still trying to get my head wrapped around the flow of control for templates. With 3 top-level frames, each one is displaying a separate URL, all managed by Jetspeed/turbine in my application. So I want 3 different default templates, depending on which pane is displaying the content. Any suggestions? I've had some success with 3 different Home.vm screens that each set a different template. -- Dave - Original Message - From: David Sean Taylor [EMAIL PROTECTED] You can use frames. One of my clients has a Jetspeed frame-controller written in ECS. I don't know of any other way to control the size of a WebPagePortlet. If anyone knows how to do this with frames, please let us know! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Let's Empowering Open Source Spirit... Open Source is Open Source. Shared Source is another things. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ - 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]