JetSpeed2 Maven Plugin
After poking around in the CVS JetSpeed2 world off and on over the last two days, I have a quick question on how the existing Maven Plugin support should be used. I would like to start building a customized portal. Since there is no jetspeed2:genapp goal yet, I assume that I should copy the /portal directories as a starting point and use the jetspeed2:build.portal goal to merge/build jetspeed2 support into my customized version? Is it safe to say that one should not edit the contents of /portal? Just trying to get started on the right foot! Randy Watler
Database registry implementation status
Hi, reading a couple of month ago, that the database registry implementation is there but not quite ready yet. I am currently working on a portal implementation where I find that the castor registry implementation not flexible enough (xml data as portlet param values as one example). My questions are: how far away is a working implementation of the database registry now, can what is in there now be used at all, or are there other alternatives? Any information would be appreciated. Regards Kristofer Eriksson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Database registry implementation status
David, Thanks for the quick answer. For me that sounds really interesting so if I want to be able to use this, and I cant wait for the 1.6 release, what is the best to do, try to implement the Hybrid Registry Service alone or check out the JS1-6-2004-07-23-spring-start branch and use it? How much implications would that have any implications on the stability in general? And would it be possible to share with us how to configure the Hybrid Registry Service? What config files needs to be changed and/or added? Thanks in advance! Kristofer Eriksson -Original Message- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 9:57 AM To: Jetspeed Users List Subject: Re: Database registry implementation status On Aug 11, 2004, at 12:38 AM, Kristofer Eriksson wrote: Hi, reading a couple of month ago, that the database registry implementation is there but not quite ready yet. I am currently working on a portal implementation where I find that the castor registry implementation not flexible enough (xml data as portlet param values as one example). My questions are: how far away is a working implementation of the database registry now, can what is in there now be used at all, or are there other alternatives? Currently as of the CVS head we have the Security and Portlet registries storing in the database. I still need to document how this all works, including the import procedure. Will do so for the 1.6 release Also of interest, it is now possible to sync all security and portlet registry caches in a Jetspeed Cluster See the details here: http://portals.apache.org/jetspeed-1/messaging.html We are also working on a solution to sync PSML caches in a Jetspeed Cluster That will be available for the 1.6 release Please note that skins, controls, controllers, and media types are all still only supported by the Castor Registry Service The database registry service is called the Hybrid Registry Service, since you can enable database support for security and portlets, leaving XML(Castor) support in for the remaining registries Any information would be appreciated. Regards Kristofer Eriksson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194 - 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]
Accents with turbine
Hi people, I work with jetspeed 1.5. I work with spanish and catalan. Users need write words with accents. All letters with accens go fine. My problem is with e with grave accent (accent to left). When I do rundata.getParameter().getString(STRING), this convert the e to strange character, this ?. Should I to work with iso-8859-1 (latin characterset)? I can see in rundata.getRequest() that turbine works with UTF-8. Some ideas???
AW: Accents with turbine
Hi, I had the same problem with german umlauts. I changed in media.xref the parameter character-setUTF-8/character-set to character-setISO-8859-1/character-set Hope this helps! -Ursprüngliche Nachricht- Von: Sez [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. August 2004 13:16 An: 'Jetspeed Users List' Betreff: Accents with turbine Hi people, I work with jetspeed 1.5. I work with spanish and catalan. Users need write words with accents. All letters with accens go fine. My problem is with e with grave accent (accent to left). When I do rundata.getParameter().getString(STRING), this convert the e to strange character, this ?. Should I to work with iso-8859-1 (latin characterset)? I can see in rundata.getRequest() that turbine works with UTF-8. Some ideas??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JetSpeed2 Maven Plugin
David, Thanks for the reply: no wonder I was having trouble with the approach! I would like to use the customizer at some point, but for now I would like to figure out how the underlying mechanics work! I am focusing on the layout/decorations at the momoment... let me dig around some more. Once I get it figured out, I will add it to the Wiki for you if you'd like so that you and others can help me get other newbies off the ground with jetspeed2. Thanks again, Randy Watler -Original Message- From: David Sean Taylor To: Jetspeed Users List Sent: 8/11/04 1:51 AM Subject: Re: JetSpeed2 Maven Plugin On Aug 10, 2004, at 11:27 PM, Randy Watler wrote: After poking around in the CVS JetSpeed2 world off and on over the last two days, I have a quick question on how the existing Maven Plugin support should be used. I would like to start building a customized portal. Since there is no jetspeed2:genapp goal yet, I assume that I should copy the /portal directories as a starting point and use the jetspeed2:build.portal goal to merge/build jetspeed2 support into my customized version? Is it safe to say that one should not edit the contents of /portal? Just trying to get started on the right foot! Randy Watler Jetspeed2 isn't meant to be 'merged' like Jetspeed1 is merged. We are trying hard to not repeat that pattern. Our goal is to make all resources deployable: - layouts - decorators - portlet applications If you develop a portlet application, simply drop it into the auto deploy directory You are right, you should not edit the portal or components directories unless you are planning on submitting a patch However if you develop your own component, such as the Portal's NavigationState Component or Aggregator Component for example, then you can extend the existing Jetspeed component if necessary, and develop your own component and assemble it in the jetspeed-spring.xml You can also assemble pipelines of request execution in the pipelines.xml, also based on Spring components To create your own portal layout on a page, you will still need to manually edit the PSML until our customizer is ready We have made some progress in the customizer recently, but its still not quite there For examples of creating deployable units of decorations and layout, see examples under portal/src/webapp/WEB-INF/decorations/ We really need more documentation in this area I'll try to get that up on the Wiki -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not found (but it's there)?
That should work. Yes. I would not know what is going wrong. I thought you had your own property file (the overriding property mechanism in Jetspeed)...that is why I told you to put the entry in front of all the other declarations. We are using the overriding mechanism so that we do not have to directly touch the JetspeedResource.properties etc. -Original Message- From: Stijn de Witt [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 5:14 PM To: Jetspeed Users List Subject: Re: Action not found (but it's there)? Archana, You say I should put my path in front, but how? I am using the 'merge properties' technique, and my modules.packages line always gets added at the end. Still, it is strange that it worked before. I've had this before. Somehow there is something wrong, somewhere...but beats me what. I could ofcourse modify the JetspeedResources from jetspeed itself, and place my modules path before it in there, but up to now I managed to avoid having to change the jetspeed source. And this *should* work, shouldn't it? Thanks, -Stijn - Original Message - From: Archana Turaga [EMAIL PROTECTED] To: Jetspeed Users List [EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 2:24 PM Subject: RE: Action not found (but it's there)? Try putting your module package declaration in front of the Jetspeed module package definition. -Original Message- From: Stijn de Witt [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:01 PM To: Jetspeed Users List Subject: Action not found (but it's there)? Hi, I have an action located in WEB-INF\classes\nl\bergland\portal\jetspeed1\actions\job it's name is BitCandidateSubmitAction.class I have set up the Turbine modules.packages path, adding nl.bergland.portal.jetspeed1 I tried all sorts of things, but I keep getting this ClassNotFoundException. Does anyone know of another cause of this, besides a wrong modules.packages path? The weird thing is that I had this working before, but it broke somehow... Any help would be greatly appreciated. Greetings, -Stijn 2004-08-10 02:50:40,203 [PoolThread-9] DEBUG GenericMVCPortlet - GenericMVCPortlet: Executing action [job.BitCandidateSubmitAction] for portlet [BitCandidateSubmitPortlet] 2004-08-10 02:50:40,265 [PoolThread-9] ERROR GenericMVCPortlet - GenericMVCPortlet - error executing action java.lang.ClassNotFoundException: Requested Action not found: job.BitCandidateSubmitAction Turbine looked in the following modules.packages path: [org.apache.jetspeed.modules, org.apache.turbine.modules, nl.bergland.portal.jetspeed1] at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:17 4) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(Gener icMV CPortlet.java:276) at org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(Generic MVCP ortlet.java:207) at org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(P ortl etWrapper.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok e(Ub erspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java :197 ) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc e.ja va:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference .jav a:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav a:23 0) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:449) at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:418) at org.apache.turbine.services.velocity.TurbineVelocityService.decodeReques t(Tu rbineVelocityService.java:494) at org.apache.turbine.services.velocity.TurbineVelocityService.handleReques t(Tu rbineVelocityService.java:336) at org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(Turbi neVe locity.java:143) at org.apache.jetspeed.portal.controls.VelocityPortletControl.getContent(Ve loci tyPortletControl.java:155) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok e(Ub erspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java :197 ) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc e.ja va:175)
Maven Prob
I'm trying to build jetspeed v1.5 using maven and am receiving the following error: The build cannot continue because of the following unsatisfied dependencies: activation-1.0.1.jar javamail-1.2.jar jaxp-1.2.jar jdbc-2.0.jar jndi-1.2.1.jar stratum-1.0-b4-dev.jar uddi4j-1.0.jar maven-torque-plugin-3.2.jar How can I satisfy these dependencies? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Downloading files with portlets.
Hello, I'm developing a jetspeed portlet, which runs an application on the server with some parameters given by the user as input and produces an output file that should be available for downloading. The application runs, the file is created but I'm having a problem with the download implementation: the file should be available to, and only to, the user who had ran the portlet. This means that I can't just copy the file to a folder in the portal, because any user would have access to it. I've tried putting the output file in a hidden directory (such as the user's psml dir) and download it through the HttpServletResponse, but I keep getting getWriter() has already been called for this response exceptions. So, do you guys have any idea of how to implement this? Thanks for your attention, ~Paolo Victor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action not found (but it's there)?
On Aug 11, 2004, at 7:20 AM, Archana Turaga wrote: That should work. Yes. I would not know what is going wrong. I thought you had your own property file (the overriding property mechanism in Jetspeed)...that is why I told you to put the entry in front of all the other declarations. We are using the overriding mechanism so that we do not have to directly touch the JetspeedResource.properties etc. We have 2 property override mechanisms. I was just asking to verify the end result properties in the web application - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database registry implementation status
On Aug 11, 2004, at 1:24 AM, Kristofer Eriksson wrote: David, Thanks for the quick answer. For me that sounds really interesting so if I want to be able to use this, and I cant wait for the 1.6 release, what is the best to do, try to implement the Hybrid Registry Service alone or check out the JS1-6-2004-07-23-spring-start branch and use it? How much implications would that have any implications on the stability in general? Its not a branch, just a tag Not necessary to use that Just go straight to the CVS head for now as that is most stable regarding this feature When you say implement the Hybrid Registry Service, I assume you mean implement the remaining registries (skins, controls, controllers. mediatypes)? And would it be possible to share with us how to configure the Hybrid Registry Service? What config files needs to be changed and/or added? Look at the JetspeedResources.properties Instructions for Building Jetspeed with DB Registry 1. Checkout from the CVS head 2. Set these properties in your $HOME/build.properties: database = YOUR DATABASE (oracle|mysql) etc Here is for MS SQL for example # MS SQL torque.database.url = jdbc:microsoft:sqlserver://localhost:1433;databaseName=jetspeed torque.database.driver =torque.database.url = com.microsoft.jdbc.sqlserver.SQLServerDriver torque.database.user = jetspeed torque.database.password = * org.apache.jetspeed.test.jdbc.j1.drivers.path=${HOME}/bluesunrise/ apache/jdbc/ msbase.jar org.apache.jetspeed.test.jdbc.j1.drivers.path2=${HOME}/bluesunrise/ apache/ jdbc/msutil.jar org.apache.jetspeed.test.jdbc.j1.drivers.path3=${HOME}/bluesunrise/ apache/ jdbc/mssqlserver.jar 3. Update the Torque properties in WEB-INF/conf torque.database.default.adapter=mssql torque.dsfactory.default.connection.driver = com.microsoft.jdbc.sqlserver.SQLServerDriver torque.dsfactory.default.connection.url = jdbc:microsoft:sqlserver://localhost:1433;databaseName=jetspeed torque.dsfactory.default.connection.user = jetspeed torque.dsfactory.default.connection.password = * 4. Build Jetspeed maven -Dmaven.test.skip=true clean war 4b. maven torque:sql This will generate the new SQL script: target/classes/sql/registry-schema.sql Run this script using isql.exe or another tool 5. Change over to Registry DB, edit JetspeedResources.properties: # uncomment these lines services.Registry.database.default.Security=DATABASE services.Registry.database.default.Portlet=DATABASE # choose the Hybrid Service # # services.Registry.classname=org.apache.jetspeed.services.registry.Castor RegistryService services.Registry.classname=org.apache.jetspeed.services.registry.Hybrid RegistryService 6. Run the importer maven -o registry-import 7. after successful import, delete the old registry files admin.xreg demo-portlets.xreg email.xreg fusion.xreg portlets.xreg security.xreg wml-examples.xreg 8. Deploy maven deploy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new user, no images
Hello, Im new to jetspeed, tomcat, and java in general. this is what im doing and im curious about the results: Download jetspeed-1.5-war.zip unzip and copy the .war to the webbapps wait some time, to make it apear in the tomcat manager now there is a $TOMCAT/webapps/jetspeed directory i edit the file /jetspeed/WEB-INF/conf/JetspeedResources.properties: change bottomnav.enable=true to false change leftnav.enable=true to false from the tomcat manager, i restart jetspeed go to the jetspeed URL and press some times in the jetspeed logo (that poing to the main url) like 5 times or so. Then the result, is that i dont see any images not the logos, not nothing. why does this happend? -- Phillip Neumann [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JetSpeed 1.5 and Postgresql configuration problem
I get null pointer exceptions and no DataSourceFactory configured for the connection, etc., when I start up jetspeed. Everything works fine if I use the default war file and database. I've been reading docs and googling for two days. Does anyone have Jetspeed 1.5 up and running with postgresql? If so, could you send me your postgres-related config files so I can tweak them and get things running here? I know it's just some stupid little thing. Unfortunately I don't know which one it is. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading files with portlets.
To do this, I created a service that, given a file, caches the file and generates a random string (actually, a base-64-encoded 128 bit random number). The caller then uses this string as a parameter on the download url. The raw screen grabs the string from the parameter, and fetches the file from the service using the string. I use the TTL on the cache to make sure that the string is only good for a limited amount of time. If the string isn't found in the cache, then I return an access denied error. -- Michael On 8/11/04 12:36 PM, Paolo Victor Gonçalves Soares / Projeto Ourgrid - Projeto OurGrid [EMAIL PROTECTED] wrote: Hello, I'm developing a jetspeed portlet, which runs an application on the server with some parameters given by the user as input and produces an output file that should be available for downloading. The application runs, the file is created but I'm having a problem with the download implementation: the file should be available to, and only to, the user who had ran the portlet. This means that I can't just copy the file to a folder in the portal, because any user would have access to it. I've tried putting the output file in a hidden directory (such as the user's psml dir) and download it through the HttpServletResponse, but I keep getting getWriter() has already been called for this response exceptions. So, do you guys have any idea of how to implement this? Thanks for your attention, ~Paolo Victor - 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 Development Logistics
Phillip, Yes, we too are interested in role based PSML configuration, (right?). I am glad to see there is general interest in helping the jetspeed2 team develop a tutorial and look forward to any and all input. At this point, I am trying to lay the foundation for a tutorial by establishing the best practices for customizing the base build/install. Once there, I think I will move immediately on to layout/decoration/page/security configuration based on the things I need to do while prototyping our Portal. After I get the base content in place and look and feel off the ground, I was going to address portlet development/deployment. I too would like to see more focus on jetspeed2 configuration than was developed for jetspeed1.5. However, even our modest portal project will require some portlet development! I would guess that a Wiki based FAQ/Tutorial that can be contributed to over time will eventually find the balanced coverage we all need. Thanks for the encouragement, Randy Watler Philip Saville wrote: Hi Randy, If you're thinking of offering input for the Tutorial for Jetspeed 2, I would like to offer a few comments about the Jetspeed 1.5 tutorial I hope can be improved. I found the first few chapters of the original tutorial very helpful in configuring and customizing the look and feel of the portal. The primary focus of the tutorial, however, seemed to be about developing portlets, although it is an excellent way to customize ones portal, the tutorial did not really explain enough detail about PSML. My goal is to have a portal based solely on roles. Imagine a portal designed for hundreds of users where the administration of the content is managed by a small team, roles are the only sensible solution. Once I have figured out exactly how I can accomplish this, I would be very willing to help/ contribute towards a tutorial or publication about the Jetspeed 2. Thanks and best regards, Philip -Original Message- From: Randy Watler [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 6:01 PM To: Jetspeed Users List Subject: JetSpeed2 Development Logistics David, You wrote: Our goal is to make all resources deployable: - layouts - decorators - portlet applications If you develop a portlet application, simply drop it into the auto deploy directory Got it. It appears that decorators/layouts can be similarly dropped into the jetspeed/WEB-INF/deploy directory, no? You are right, you should not edit the portal or components directories unless you are planning on submitting a patch However if you develop your own component, such as the Portal's NavigationState Component or Aggregator Component for example, then you can extend the existing Jetspeed component if necessary, and develop your own component and assemble it in the jetspeed-spring.xml You can also assemble pipelines of request execution in the pipelines.xml, also based on Spring components How would Jetspeed2 find my custom component classes/jars, (i.e. where should these be installed)? I generally understand the configuration being done in jetspeed-spring.xml and pipelines.xml. Would I edit these configuration files in the deployed jetspeed/WEB-INF/assembly directly? To create your own portal layout on a page, you will still need to manually edit the PSML until our customizer is ready We have made some progress in the customizer recently, but its still not quite there Right. Editing PSML is certainly not a big deal. I suppose adding and deleting pages falls into the same category. However, I am still hesitant to modify the deployed jetspeed webapp... is that the intended development strategy? Obviously, there are numerous jetspeed configuration and content files that one might wish to edit/delete/create. I am trying to understand how to approach making these changes in the jetspeed2 environment for a formal production portal/development process, (despite the fact that jetspeed2 is just entering first alpha). Basically, if I am going to write a tutorial for the Wiki, I'd like to get it right from the start! Thanks, Randy Watler - 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]