Re: J2 Security Customization
Scott T Weaver wrote: Our registration process is very controlled and goes through a work flow and verification process. The process is handled by an entirely different department. Ive got the same kind of situation on a Jetspeed-2 portal deployment. The login is actually done by a federated authentication server, and then redirected to Jetspeed. -- 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]
how to rename tab-panes on runtime?
Hello, how can I rename navigations-elements (ie tab-panes) on runtime? thank you.
Re: Jetspeed2-M2 genapp
Robert Young wrote: So what is the difference in the following goals? I am making a guess here. QuickStart: Build with demo portlets and layouts? builds everything. standard jetspeed demo release MiniStart: Build without demo portlets, but with layouts and all necessary database data to deploy your own portlets? minStart Just the portal and security You need to create your own PSML tree with this one There are nodb variants that dont populate the database if your project needs to do that itself -- 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: Jetspeed2-M2 genapp
Rene Medellin wrote: Yup. Could really use some guidance on that. (Have not heard anything on this since the original post) I think if someone could outline what all the minimal pieces are then maybe some of us could take a shot at writing the jetspeed2:genapp Maven goal. But the new distribution structure is so complex, it's hard to know where to begin. A jetspeed2:genapp goal would be great! For custom builds, take the following steps: 1. Start with a basic Jetspeed 2 deployment, such as the M2 distributable 2. create a new project with maven's genapp or eclipse 3. add some goals to this project to: - build and deploy my portlet app(s) - deploy my custom decorators and layouts - replace the default PSML with custom PSML - replace the jetspeed assembled components with my own I think that incorporating these kinds of goals into a standard plugin would be very useful. Note, there are now a number of goals in the base build that we can leverage: description="Creates the production DB and calls portal/maven fullDeploy"> description="Don't create a new production DB but call portal/maven fullDeploy"> description="Creates the production DB and calls portal/maven minDeploy"> description="Don't create a new production DB but call portal/maven minDeploy"> description="Creates the production DB and calls portal/maven basicDeploy"> description="Don't create a new production DB but call portal/maven nodbBasicDeploy"> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed2: Portal Site Detail
Thang H. Lai wrote: I am willing to do this, but I need a little hand-holding until I am more familiar with the procedures. I am thinking about how to propose. Is there any document, discussion about this? Not really. Lets start a discussion on jetspeed-dev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed2: Portal Site Detail
Thang H. Lai wrote: Hello, I am trying to use/understand the Portal Site Manager. If I select a folder, the Portal Site Detail portlet shows a few options, one of which is "Add Page" and the URL under that link is: http://localhost:8080/jetspeed/portal/Administrative/%3Cbf:forward%20view='add-page'/%3E How does this work and if it is not implemented yet, how do I proceed? Where can I find more info about this feature? Thank you for any help you could give, Thang Lai The feature is not yet implemented. The goals of the Portal Site Manager is to: - allow an administrator to maintain folders and pages (add/edit/delete) - define security constraints and other attributes to the folders and pages If you'd like to work on it, please send a proposal to the jetspeed-dev list and we can continue the discussion there. I'd be glad to help you work on it as this has been sitting on the back burner for a while now. Just want to make sure that we all use the same style in the admin portlets as I'll be cleaning up the admin portlets next week -- 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: possibility to have jslink give relative URIs ?
Fabrice Dewasmes wrote: Hi, Another question : when using velocity, URIs are rendered using $jslink variable. In fact This URI is rendered by the toString Method of a DynamicURI object coming from Turbine. But this gives absolute URI and not relative ones. For me this is problematic especially when you sit behind a reverse proxy as this is our case, or even when you have custering problematics in mind. Is there a simple way to change this behaviour or do I have to rewrite DynamicURI class and simply replace it within turbine jar ? (kind of brute force patch isn't it ;) ?) $jslink works fine behind a proxy configure your jvm to use the proxy -- 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: found fusion/pluto interaction bug
Raphaël Luta wrote: I would personnally say that the best way would be to define a new FusionEncodingPortalURL that behaves just like PathInfoEncoding except that it adds the follwoing string : _ns/_ns: instead of simply _ns: It would change anything for j2 since it specically looks for '_ns:' as an identifier and will allow Turbine to recognize a new _ns parameter which it would care about but at least will not break the othher parts of the URL. The Fusion assembly script needs to use the FusionPortalURL instead of any of the regular ones. What do you think ? Looks Turbine friendly to me. Are you going to write it ? Im going to try releasing 1.6 today. If we could get the fix in now I'd be glad to incorporate it in the release -- 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: [Fwd: Re: found fusion/pluto interaction bug]
I was planning on release 1.6 today and getting it over with. I'll look into once I get started here. join me out on irc if you get a chance (i'll be starting here in 30 min or so) how bad is the hard drive situation? Ate Douma wrote: Sorry, didn't notice at first I responded to Fabrice directly and not to the list. Original Message Subject: Re: found fusion/pluto interaction bug From:"Ate Douma" <[EMAIL PROTECTED]> Date:Tue, April 12, 2005 17:44 To: "Fabrice Dewasmes" <[EMAIL PROTECTED]> -- Fabrice Dewasmes said: Hi, I think for just testing out your solution, the last option is the easiest and quickest to realize and test (in the end, the first might be the better solution or maybe even another, but for that I'll have to investigate this first). Using the QueryStringEncodingPortalURL is configured against Jetspeed, not Pluto. You should be able to do so in the jetspeed-spring.xml under WEB-INF/assembly. Lookup the NavigationalStateComponent bean definition. One of the constructor arguments (I think the second) defined the PortalURL implementation to use. yes I found this parameter just after having sent my email. Just try it out. If it solves your problem we will try to define the real solution after that. Changing navaigational state component strategy works like a charm. Great! The only thing I'm unsure is (but I will have to double check QueryStringEncodingPortalURL) how this class handles previously existing parameter in the URL: are they preserved ? Yes. No difference there. Anyway, maybe that we should look for a better way to circumvent the problem. I agree. What's your opinion ? I don't have any at the moment. I would need time to investigate this more, but I won't have time for that before the end of this week. I expect that David will be able to give a better response (if he reads the mailing list today, I know he too is covered in work till at least Thursday). Regards, Ate regards Fabrice Regards, Ate Question is : Ate and David what do you think about the best way to circumvent this? Do you think it's possible to tell pluto not to add the ns element at all ? Thanks for your help Fabrice - 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] -- 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]
Jetspeed 2.0 M2 Released
The Apache Portals Jetspeed Team is pleased to announce the second milestone release of Jetspeed-2. The release is available for download from the Apache Download Mirrors: http://www.apache.org/dyn/closer.cgi Follow the links to portals/jetspeed-2 Two binary releases are provided. 1. Jetspeed-2 + Tomcat 5.0.30 distribution. 2. Jetspeed-2 + Tomcat 5.5.8 distribution. With this second milestone of Jetspeed-2, new versions of the Portals Bridges components are released as well. These components are now all upgraded to version 0.2. Portals Bridges can be used independently of Jetspeed-2 and will eventually migrate to its own Portals Bridges project. Bridges released with M2: * Struts Bridge 0.2 * Velocity Bridge 0.2 * JSF Bridge 0.2 * Perl Bridge 0.2 * PHP Bridge 0.2 * Portlet Framework 0.2 -- Jetspeed 2.0-M2 Release April 4, 2005 -- * PALM - Portlet Application Lifecycle Manager A new administrative portlet for managing the lifecycle of portlet applications. Supports start, stop, undeploy and delete operations. * JBoss Support Jetspeed tested and running on JBoss versions 3.2.7 and 4.0.1sp1 * New Improved Deployment Deployment overhauled to support application server controlled deployment. Class loader and cross-context session control issues resolved. * Struts Bridge Enhancements * Navigations Refactoring * Enhanced credential security and validation, Login/Password Enhancements * LDAP Authentication support added. * Secure Access to Site Resources (Pages, Folders) * Profiler, Layout, PSML Security Documentation * SSO Enhancements * Improved JSF Support * Finer grain Spring configuration * Main Jetspeed context no longer requires /jetspeed --- Bug fixes --- see M2-bugfixes.html - Tested App Servers: - * Tomcat 5.0.30 * Tomcat 5.5.8 * JBoss 3.2.7 * JBoss 4.0.1sp1 (Tomcat 5.5 requires a different jetspeed.xml found in the source tree under src/resources/jetspeed-tomcat-5.5.xml) Check out our wiki page for details: http://wiki.apache.org/portals/Jetspeed2 - NO Longer Supported: - * Tomcat 4.1.x Support for Tomcat 4.1.x has been dropped. --- Installation Instructions --- 1. Download jetspeed-2.0-M2-Tomcat-5.0.30.tar.gz, or Download jetspeed-2.0-M2-Tomcat-5.0.30.zip (windows), or Download jetspeed-2.0-M2-Tomcat-5.5.8.tar.gz, or Download jetspeed-2.0-M2-Tomcat-5.5.8.zip (windows) 2. Expand jetspeed-2.0-M2-Tomcat-.tar.gz into a clean directory (as example we will use 'jetspeed') cd /jetspeed tar xfz jetspeed-2.0-M2-Tomcat-.tar.gz For Windows: cd c:\jetspeed unzip jetspeed-2.0-M2-Tomcat-.zip 3. start the database cd /jetspeed/jetspeed-database start-database.sh For Windows: cd c:\jetspeed\jetspeed-database start-database.bat 4. startup Tomcat execute /jetspeed/jakarta-tomcat-/bin/startup.sh For Windows: execute c:\jetspeed\jakarta-tomcat-\bin\startup.bat 5. start up a web browser and navigate to http://localhost:8080/jetspeed/portal -- Configuring Another Database -- 1. cd $TOMCAT_HOME/jetspeed-database/scripts 2. edit the build.properties, set the properties for your database connection, save. 3. create a database schema/catalog to hold your database tables 4. type 'ant' to run the database population scripts 5. edit the jetspeed.xml properties - $TOMCAT_HOME/conf/Catalina/localhost/jetspeed.xml and set your database connection 6. copy your database driver into Tomcat's common/endorsed directory 7. start up a web browser, navigate to http://localhost:8080/jetspeed/portal Sample accounts to login as: admin/admin manager/manager user/user Upgrading from Jetspeed 2.0 M1 If you are upgrading an installation from Jetspeed 2.0 M1, remember to delete the M1 jar files found under Tomcat's shared/lib directory. The following files should be deleted: jetspeed-api-2.0-M1.jar jetspeed-commons-2.0-M1.jar pluto-1.0.1-rc1.jar portals-bridges-common-0.1.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed Jars are *failing* to Download.
Elam Daly wrote: Howdy all, Yesterday and today I've checked out the latest cvs tree for jetspeed to and ran a 'maven allClean allBuild' and am getting many 'failed to Download' errors: You are a little ahead of me. Just finished the M2 release (announcements coming shortly) Going to start uploading the M3-dev jars to the remote maven repo in a few minutes. In the meantime try building without -o, and the jars should be created automatically into your Maven repository -- 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 Processing of JSR168 portlets within Fusion
Hema Menon wrote: David, Thanks again. Do you mean to say, turbine maynot support this, which could be why it is failing on Jetspeed 1.6? I was saying that turbine does support file uploads. and that support could be interfering with your app -- 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 Processing of JSR168 portlets within Fusion
Hema Menon wrote: David, First of all, thanks very much for taking time to respond. I have been struggling with this for quite a while. But I guess I might have got to something. The struts demo which uses form data, seems to work fine. So I was really concerned on why my struts application is not working. You see, my application uses a multi-part form data, it contains file upload. I removed the enctype "Multi-part/form-data" from my form and removed the html:file link. The input parameters are now set on the application. So the test that needs to be done is more of a multi-part/form data rather than regular form data. i didn't catch the multi-part bit turbine actually parses that automatically there may lie your problem -- 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: Something weird happening with fusion/pluto
Fabrice Dewasmes wrote: Le 30 mars 05, à 18:45, David Sean Taylor a écrit : Fabrice Dewasmes wrote: Thats the navigational state for JSR 168 portlets. I tried your case against a running version of Fusion here, and it works fine (it stays on the same page and tab). Unfortunately all of my work (and installed applications) with Fusion was before the new navigational state implementation in Jetspeed-2. Thanks for your reply and interest David. In fact I'm using Jetspeed 1/fusion that depends on the M1 release of J2. Is it your case ? No, all my Fusion builds here are from September 2004 Slippery slope since then Be careful that everything works pretty fine when you're on the user default psml page. Did you use another psml page in which is the JSR168 portlet ? yes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new portal deployment problems
Michael Neilly wrote: I have the same problem if I go into /portal and build and deploy the same way. I've tried looking at the quickStart goal in maven.xml but since I'm not familiar with Maven I'm still at a loss. How should I deploy these properly? I usually build a base system from the source and then add portlet applications as needed. Minimally I always need the security app. For PSML, just copy over your PSML replacing the Jetspeed default PSML directory I'm also attempting to use PERL portlets and so far have just been making modifications in applications/perl/src directly to portlet.xml, jetspeed-portlet.xml and cgi-bin/*. Is this the correct approach? Recommend making your own project, and extending the Perl portlets. I hesitate to recommend using Maven to create a new project (since you dont operate maven), but you can do so easily with 'maven genapp' As a rule I modify the Jetspeed source code when working on my own applications -- 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 Processing of JSR168 portlets within Fusion
Hema Menon wrote: David, I am running into a strange problem with Jetspeed 1.6 w/Fusion, where our struts application does not seem to set the input parameters from the form. The same application without any change runs fine on Jetspeed 2. I am trying to figure out what is it that could cause the bean properties to be not populated while running on Jetspeed 1.6. Can you just give an idea on how the action handling for jsr168 portlets are handled in fusion? Any pointers to any specific suspect in code would be great. The input parameters should be passed to the portlet. Nothing different goes on there afaik I'll look at this before releasing 1.6, not today though -- 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: J2 Configuration
Mike R. wrote: Thanks David - that clears up a lot of questions! Could you tell me which items are still being configured via the jetspeed.properties? thats a documentation task in itself and im sure it will lead to more questions these are still used: * log4j properties location * default pipeline * autodeployment substitution * jndi flag * supported portletmodes, windowsstates * navigation state prefix * location of assembly directory for Spring -- 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: AW: PSML Import Problem with MySQL
OK, Im going to try real quick to summarize MySQL and PSML importing. I sent these instructions to Sven, and they really need to go out to everyone on the list: I am speaking here about version 1.6(-dev) You need to generate the DDL for the PSML. As described on the online docs, you need to: 1. change the project.properties database = mysql 2. run torque to gen the schema maven torque:sql It will generate a file named target/classes/sql/dbpmsl-schema.sql 3. run this script in MySQL 4. follow the instructions for making a specific build of Jetspeed, generating the torque bindings for MySQL. http://portals.apache.org/jetspeed-1/psml_db.html specifically, set your Torque.properties to MySQL and rebuild: torque.database.default.adapter=mysql torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver torque.dsfactory.default.connection.url = jdbc:mysql://localhost:3306/jetspeed torque.dsfactory.default.connection.user = root torque.dsfactory.default.connection.password = 5. then and only then you can run the importer I hate this, but you must RECOMPILE the source to run against any database except Hypersonic. These are all good reasons to NOT use Jetspeed-1 and instead use Jetspeed-2. (sigh) For the final 1.6 release, I will try to solve the compile/binding problem. -- 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: AW: PSML Import Problem with MySQL
Daniel Brose wrote: Hi Dmitriy! Attempts to import PSML into DB keeps causing errors, even though I modified properties files (attached) to use MySQL settings instead of HSQL. I tried both MySQL drivers and ensured that they are in the CLASSPATH. Still I get the problem that you can see in attached stdout log. AbstractDataSourceFactory says that the driver is not supported, and its code seems to hide the real source / line of the exception. What could be causing this problem? http://db.apache.org/torque/xref/org/apache/torque/dsfactory/AbstractDat aSourceFactory.html Im seeing a lot of PSML import failures. I guess its not a trivial process. Im sorry. Before even importing, can you get Jetspeed to run with MySQL? Can you create new users from the User Admin portlet? Often the importer fails because Jetspeed is compiled with HSQL parameters -- 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: No requests, just a remark
Stefano Bianchi wrote: Dear ALL (and mainly J1&2 developers), no requests in this mail, just my 2 cents to the "Jetspeed" case. I have noticed that the nature of the mails circulating in the Jetspeed User List is becoming more & more technical day by day. People asks about classes, interfaces etc., i.e. code, and have to cope with Maven, Ant, builds and so on even to get started (both for J1 and J2). This is indeed a good fact: the community is alive, good exchange of ideas, collaboration, skilled people etc. BUT: if you (J developers) really want Jetspeed to become a reference, you should also think of the good guy who wants something that is easy to work with, easy to start, easy to configure etc. Your approach is open to several architecture (DBMS, other tools etc.), but please take a few seconds thinking about the classes of users that could be interested in using Jetspeed. I DO appreciate your work and effort (I would never be able to do such work!), but I think that an easier approach for e.g. deploy and set up (for dummies, let's say) would be better. I think you are have a great point here. Jetspeed-2 really needs better docs and installers. Personally, I think it needs to install with little or no configuration. Jetspeed-2 has so much configuration and possibilities that we sometimes lose sight of the class of user who just needs something working 'out of the box'. We understand your needs, and we are working towards this goal. Your input is valued and helps us all define the goals of the community -- 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: J2 Tomcat JAAS
Dworkin, Marc wrote: Hi, I am trying to install Jetspeed2 on top of tomcat 5.0. I have a JAAS Realm set up in tomcat which authenticates users and populates roles off an LDAP directory. I am using the SingleSignOn Valve so this authentication works across webapps. I would like this to work for jetspeed as well. Query: Can it? When I try having jetspeed use my JAAS Login Module I get the following error: type Status report message SecurityConstraintsImpl.checkConstraints(): Access for view not permitted. description Access to the specified resource (SecurityConstraintsImpl.checkConstraints(): Access for view not permitted.) has been forbidden. see http://issues.apache.org/jira/browse/JS2-205 Did you try removing Jetspeed's JAAS component? -- 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: Jetspeed In Action
Vladimir Simjanoski wrote: Hi! I've read somewhere that Jetspeed In Action is in the writing process. Can anyone (the author?) tell me when it's going to be printed? Are there any plans for making some chapters available earlier (chapter on layouts/decorators and security/sso will be very valuable)? Recently completed Portlets In Action (the title may change slightly) for Manning. I don't know when it will be available, I'd guess some time this summer. Im going to take a break from Jetspeed In Action, and hopefully get back to writing it soon after the final 2.0 release. As far as making chapters available early, no I can't do that. But you can sign up with Manning to become a reviewer. I find the documentation on the website obscure in many areas (too many TODOs)... Yes, sorry. We are working on it -- 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: J2 Configuration
Mike R. wrote: I am documenting the Jetspeed 2.0 configuration (as documentation is sparse...) Can anyone give me a quick overview of the config files currently in use for JetSpeed 2.0? For example, I have the following questions after having investigated the config, starting from the web.xml: 1. The web.xml references "jetspeed-configuration.xml". Is this the location of a XML config database that will be created? Or is this a leftover config item that is no longer being used? Not used. The ideas was that you could bootstrap Jetspeed with a properties file or XML configuration. Only the properties file was actually put into use. We've moved almost all configuration already from commons configuration to Spring, but there are still a few configuration settings in jetspeed.properties I see no jetspeed-configuration.xml in either the binary or source distributions. 2. In the jetspeed.properties file, there is an entry: deployment.descriptor.mapping.xml= /WEB-INF/conf/portletdefinitionmapping.xml The portletdefinitionmapping.xml only appears in the archives castor directory; is it obsolete? again, thats left over from the days when we used commons configuration. Look to the spring configurations under WEB-INF/assembly for component configuration Thanks, need help fast! Mike R. - 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]
Re: Something weird happening with fusion/pluto
Fabrice Dewasmes wrote: Hi all ! I'm using JS1 + fusion (without the latest deployment model) 1. The user logs in (let's say he's in role 'dummy') 2. the default dummy psml page is rendered 3. the user chooses another PSML Page using the drop down menu at the top right of the page and is now on a psml page from anon user. 4. User clicks on a link which has been rendered by a renderResponse.createActionURL().toString() on a JSR168 portlet. And that's where the trick happens... He's redirected on the default user's psml page ('dummy' psml page). (Which of course is not what we want : the previously clicked portlet is even not displayed). So the problem won't occur if the JSR168 porlet is in the 'dummy' psml page. After investigating it seems that the rendered URL is something like /jetspeed/portal/_ns:XXX/media-type/html/language/-1/user/anon/Accueil.psml/js_pane/P-XX-10003 (XXXs are to be replaced with a alphanumeric sequence) and if I remove the _ns: part everything works fine ! Am I wrong ? What is this mysterious _ns:part ? Thats the navigational state for JSR 168 portlets. I tried your case against a running version of Fusion here, and it works fine (it stays on the same page and tab). Unfortunately all of my work (and installed applications) with Fusion was before the new navigational state implementation in Jetspeed-2. I will need to upgrade my Fusion installs soon. Hope to get some time to work on this over the next week. Will look out for this bug, thanks -- 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: JS2: Portlet Level security
Jouni Rajala wrote: I see that it is possible to put security constraints in psml files at page level. Is it possible to restrict usage of some exact portlet on page by security constraints so that it is not rendered if user is not in some spesific group/role. Not quite yet, scheduled for 2.0 final release What we do have is the PortletPermission class, and we can check against it using the JAAS security, however the checks are not being made in the current aggregator. INSERT INTO SECURITY_PERMISSION VALUES(11,'org.apache.jetspeed.security.PortletPermission','MyPortet','view'... -- 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: Installation problem
Reinl, Greg wrote: I am trying to build jetspeed-2 and am getting the following error when I try to Start the Hypersonic database: Attempting to download hsqldb-1.7.1.jar. Error retrieving artifact from [http://www.bluesunrise.com/maven/hsqldb/jars/hsqldb-1.7.1.jar]: java.net.UnknownHostException: www.bluesunrise.com I believe this is because I am behind a proxy server that requires a user id and password to pass through. I can get to the above .jar file on bluesunrise.com just fine from a browser. Is there a way to configure Maven to use my proxy server user id & password when it tries to download the plugins it wants? Is there another way around this problem? What about downloading and installing the Jetspeed-2 binaries? I see that they are available but didn't find any installation instructions. Any help would be appreciated. Thanks. Try these settings for accessing remote repositories through a firewall: maven.proxy.host maven.proxy.port maven.proxy.username(if required) maven.proxy.password(if required) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the Status of Jetspeed 2 ??
Jouni Rajala wrote: If you don't need fancy portlets for modifying your portal from portal itself, Jetspeed-2 already works just fine. Only problem is that you need to modify all the xml files and deploy your portlets directly in jetspeed deployment directory with other tools. A portlet selector (customizer) will be included in M2. I recently wrote a prototype popup portlet selector with satisfying results. -- 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: Struts-Bridge & Fusion - David/Ate/others- Pls comment
Hema Menon wrote: Hi, I have been trying to get our Struts application under JS1.6 with Fusion. Here's the env Latest JS 1.6 build from CVS Struts-portal bridge 0.2 version. I find that the application runs as a standalone using Portal bridges 0.2, which means that the portalbridges work as expected outside of Jetspeed. However inside Jetspeed, the lookup dispatch action fails. THE INTERESTING FACT IS THAT IF I DEPLOY THIS APPLICATION ON JETSPEED 2, IT WORKS AS EXPECTED. This makes me believe that the Jetspeed 1.6 with Fusion is causing the problem. I believe there are changes in Struts bridge 0.2 version, which require it to run with JS-M2 files. However any time, I build Jetspeed 1.6 with fusion, I find that the jetspeed.war contains M1 files. I have removed the M1 jars from TOMCAT shared/lib directory. However since JS1.6 is being build against M1 jars, I cannot remove what's in the jetspeed war. Here's my situation, Please help - All our portlets are JS1.5 compliant and we are quite happy with it - We cannot move to JS2 immediately since it means changing to JSR168 portlets - We need support for Struts portlet - JS1.6 WITH FUSION, was the perfect solution for us since it would suit all our needs. - However, if the struts portlet does not work as expected in JS1.6 with Fusion, I don't know what option does we have :( The changes is Struts-portlet bridge is very very important and neat, since it requires minor changes to our Struts application. But JS1.6 with Fusion is equally important to us for deploying it. Somehow I find that JS1.6 With Fusion on JS2M1 jars does not seem to be running right. I am not sure what option do I have :( Can you please let us know what your plans are regarding to JS1.6 on Fusion. Thanks for reading a long email, forgive me, I am desperate :( Im sorry about your situation. I recommend running Fusion against the M1 release. Recently, the dependencies in Fusion were upgraded to match Jetspeed-2's Spring dependencies. This may be causing some problems. Try checking out Fusion from the same time as the M1 release. Im in a situation here myself and not finding any time for Jetspeed. 'Up to my ears in it' as they say :( Really hope to free up next week some, and by the first week in April I will get Fusion fixed up and released. Im sorry but thats the best I can do right now. If someone else wants to step up and release Fusion before then, please do so! -- 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: JS1.6 W/Fusion release
Hema Menon wrote: David, I read in another email, that you are hoping for JS1.6 release soon. Will you be using JSM2 for this release? That depends on if we can get Fusion working with the new deployment branch. Right now Im leaning towards releasing 1.6 with M1, and then 1.6.1 with M2, 1.6.2 with the final release... -- 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: J2 decorators not displayed in IE
Marina wrote: I can see this line: #includeStyleSheets() but where is this function? (I'm assuming this is a function ?) Its a Velocity macro (velocimacro): http://jakarta.apache.org/velocity/user-guide.html#Velocimacros Jetspeed's global macro used by all layouts can be found here: /portal/src/webapp/WEB-INF/jetspeed-macros.vm You can also include specific macros for your layouts http://portals.apache.org/jetspeed-2/layouts.html http://portals.apache.org/jetspeed-2/decorators.html -- 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: importing PSML into the database - where do I put the driver?
Sven, Zip up and send me your project and PSML and I'll see if I can get it to work. I always run the importer from the Jetspeed source directory. Never tried it from a plugin project. Make sure you run 'maven clean' before zipping the project and sending it. David Sven Richter wrote: Hello, I found the solution to the first problem: you don't have to copy the ./src/webapp directory to ./webapp (there are only the merge-files and the files that you changed in there); you have to first run "maven jetspeed:deploy" (of course) and then copy the ./target/[your-projects-name] (in my case: ./target/MyPortal) under the name ./webapp. Then it at least imports the profiles (I checked with an database tool). But I still get the following error message with maven: === [MyPortal]# maven import __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: import: [java] * PSML Importer * [java] log4j:WARN No appenders could be found for logger (org.apache.stratum.component.ComponentLoader). [java] log4j:WARN Please initialize the log4j system properly. [java] NOTICE: Finished initializing all services! [java] Running with Importer Service: class org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService [java] Running with Exporter Service: class org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService [java] PSMLImporter completed. Exported 24 profiles [java] PSML Importer - completed [java] [ERROR] Java Result: 1 BUILD SUCCESSFUL Total time: 13 seconds Finished at: Sun Mar 20 17:23:32 CET 2005 === And even worse than that. When I try to start it in the browser (http://localhost:8080/MyPortal) jetspeed doesn't seem to find the database entries and I get the following error message: === There has been an Error! Reason: org.apache.jetspeed.om.profile.ProfileException: java.lang.NullPointerException Get/Post Data: template = /html/ShowError.vm Stacktrace: org.apache.jetspeed.om.profile.ProfileException: java.lang.NullPointerException at org.apache.jetspeed.services.profiler.JetspeedProfilerService.fallbackProfile(JetspeedProfilerService.java:502) at org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(JetspeedProfilerService.java:245) at org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(JetspeedProfilerService.java:528) at org.apache.jetspeed.services.Profiler.getProfile(Profiler.java:87) at org.apache.jetspeed.modules.actions.JetspeedAccessController.doPerform(JetspeedAccessController.java:74) 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:529) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) at org.apache.jsp.index_jsp._jspService(index_jsp.java:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipel
Re: importing PSML into the database - where do I put the driver?
Sven Richter wrote: He also mentioned that I have to update the path to include the jetspeed 1.5 jar. But I don't know how. I tried several things, but I know always get the error message, that the file NULL/.../TurbineResources.properties was not found. Maven is looking in the wrong directory (in NULL). Could you (or somebody else) send me an example of this file and/or $HOME/build.properties, so that I can figure out how? Didn't you say that you created your project with the Jetspeed Plugin? If so, then it appears that you will need to copy your ./src/webapp directory to ./webapp, and you will need a TurbineResources.properties file located in ./webapp/WEB-INF/conf/TurbineResources.properties -- 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: Portlet displaying a dynamic image
Howard Lewis Ship wrote: This is more of a general portlet question. I have a portlet that wants to display a dynamic image (*) as part of its output. In a traditional HTML application, I would build a URL to a servlet and the servlet would build the image and send a bytestream to the client. I want to do something similar with a portlet. Is it possible to build such a URL? I want to build a render URL and have the handler for that URL build and return the image bytestream. With portlets, the URL always goes back to the portal. The portal then asks your portlet to contribute its portion of the content to the full bytestream. Your portlet could do the exact same thing as the servlet: generate the image bytestream within the context of the entire portlet stream. It can generate the content itself or dispatch to your servlet (internally) to retrieve the content. If I understand, I think you are looking to still go thru the portal to get your content, but for the URL to specify the content of just one portlet. (I could be wrong) I don't know of a portable solution to do that. I was thinking you could handle a special portlet mode, or max window state, but its still up to the portal to decide on the layout around the portlet. As a non-portable solution: Jetspeed can specifically be told to generate the content of a given portlet using the portlet pipeline, specified in the URL /jetspeed/portal?pipeline=portlet-pipeline&entity={portletentity} I've also done similar solutions using a portlet page holding one portlet and no layout or decorator (*) This is really about Tapestry Portlet support. The dynamic image data is really going to be images packaged in JARs that need to be exposed to the client. Tapestry includes an engine service that will access such things. I'm trying to see if I can avoid using a Tapestry servlet in anotherwise Tapestry portlet application. -- 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: importing PSML into the database - where do I put the driver?
Roel van Dijk wrote: I did see this, but was unsure how to use it. Where do I define these variables ${org.apache.jetspeed.test.jdbc.j1.drivers.path} ? in your $HOME/build.properties -- 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: importing PSML into the database - where do I put the driver?
Molina Pablo (teampro) wrote: Wherever it is, just add it as a dependency within the project.xml file: If the .jar file is named mysql-driver-1.0.1.jar, then mysql-driver 1.0.1 and that's it! Run maven and it will access the driver. Not sure if you are aware, but there are other databases besides MySQL that Jetspeed supports. Thus, I can't add a direct dep on MySQL to the jetspeed cvs, and that is why we have the solution with property used in the pathelement (actually 3 properties) for database drivers. Obviously, you are free to add a dep to MySQL in your custom builds. -- 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: Graffito - Jetspeed CMS framework
Fabrice Dewasmes wrote: Hi, This is great news. My first question would be : do you think it can work within JS1 with fusion ? Graffito (and Graffito portlets) will run inside Fusion. Just need to add the Graffito components to the Spring configuration -- 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: importing PSML into the database - where do I put the driver?
Roel van Dijk wrote: -Oorspronkelijk bericht- Van: Roel van Dijk [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, March 15, 2005 2:03 PM Aan: Jetspeed Users List Onderwerp: importing PSML into the database - where do I put the driver? So here is the big question: where should I put the MySQL-Driver JAR file so that the combination of Maven and Torque can find it? [note: I'm using 1.6-dev from CVS] org.apache.jetspeed.test.jdbc.j1.drivers.path: -- 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: Importing Jetspeed settings into database
Sven Richter wrote: Thank you for your quick answer. But I generated a new jetspeed-application with the maven plugin (maven jetspeed:genapp) that I'm working with. Doesn't your answer not only import the settings from the original jetspeed into the database? copy the maven import goal into your project (you will need to update the class path below to include the jetspeed 1.5 jar) it should then look at the psml files located in your psml directory tree description="Import PSML"> Thank you very much, Sven. Am Mon, 14 Mar 2005 15:05:01 -0800 schrieb David Sean Taylor <[EMAIL PROTECTED]>: Sven Richter wrote: Hello, is there nobody who can help me with my problem? I need this to carry on. Please help me! you have to run import from the jetspeed source directory - 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]
Re: Importing Jetspeed settings into database
Sven Richter wrote: Hello, is there nobody who can help me with my problem? I need this to carry on. Please help me! you have to run import from the jetspeed source directory -- 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: WSRP4j is available on current Jetspeed 2 or not?
Zhonghui Ning wrote: I can not make WSRP4j working on jetspeed 2(download from CVS). Can anyone tell me WSRP4j is available on current Jetspeed 2 or not? Thanks. Regards, Zhonghui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] We plan to integrate WSRP4j + Jetspeed for the final 2.0 release (May 2005?..) -- 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: Maximized Window State in decorator.top
Doug Schnelzer wrote: Hi, I want to know if any portlet on my page is in the maximized window state. I used to use the JPT to do this in the decorator.top (which was probably not really correct). I want to change (minimize) the portal banner when a portlet is in the maximized window state. My previous approach no longer works. Can someone point me in the right direction? Thanks, Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] fyi -- All of the layouts in the CVS use a different template for maximized Could you set a velocity variable in the layout that the decorator could pick up? Also, you have the columns available from the power tool #set($table = $jetspeed.columns) by walking the columns, you can find the first portlet (the first portlet is the only portlet in max mode) and then check its window state -- 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: Jetspeed 1.6-Fusion HELP!!!!
Ate Douma wrote: > I know and you know that I started in the new deployment branch from a clean sheet. I explicitly stated that this would *initially* result in some features gone missing. I also said these features have to be recreated once we decide this proposed new deployment model. Right now, I have had no formal acknowledgment from *anyone* yet to go ahead and commit my changes to the main branch. Here is my acknowledgement: resolve the Fusion issues before merging. Probably everybody does know though I definitely would like to see this happen, but I will be the first to acknowledge that it isn't ready for that yet. Me too And then of course the integration with the ServerManager. This will be quite easy to bring back online. Actually, I've already done so. I have the TomcatManager working again. Furthermore, I created a new (secured) ManagerServlet through which you can interact with the ApplicationManagerServer as well as the PortletApplicationManager. I've used the Tomcat ManagerServlet as example for this. Right now I can list, start, stop, unregister and undeploy a PortletApplication all from the commandline or webbrowser and working without problems. Providing the same features to Fusion will be a peace of cake. Great I'm still working on an deploy command (uploading a deployment object like a war or decorator). The basic code is already in place, the only thing left to implement is the uploading part in the new commandline tool (JetspeedConsole). I'm putting in a lot of effort to get this all working even *better* than it did before, and I'm going to provide as much effort as needed to get Fusion working again with the new deployment model, once we decided it will be the used for J2. Perhaps we should formally call a vote on the jetspeed-dev list: 1. deprecate fusion Nonsense I'll take that as a -1 on deprecating Fusion ;) -or-- 2. require developers to test fusion I do care about Fusion and, as far you *can* require that, I have no objection to make it a policy. We should think about an easier way to test fusion do though because getting J1 and J2 to build right beside each other is quite a hassle... Frankly the whole situation has led to me becoming less and less involved in Jetspeed as my contributions are devaluated. I think you are over reacting. I value your contributions very highly and I know I'm not alone ;-) You did a hell of a job (and I know it was a hell of a job) to integrate J2 with J1, AKA Fusion. I think it is one of the most important contributions to Jetspeed (as a whole, J1 and J2 together) because it not only provides a JSR-168 container but also a view of the power of J2 and a migration path for J1 users not (yet) ready to make the jump to J2. Well, we did everything except put out a release, and its long overdue. We need to figure out if we want to release 1.6 with: 2.0 M1 2.0 M2 2.0 Final Release We could do a 1.6.1 release with M2, 1.6.2 with the Final Release -- 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: Jetspeed 1.6-Fusion HELP!!!!
Scott T Weaver wrote: I'm curious, which deployment refactoring has broken Fusion? Is it the things in Ate's branch or what is currently working in HEAD? Both, although the CVS head break is pretty minimal (api signature changes), whereas the branch is missing entire dependent interfaces and extended classes. -- 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: Jetspeed 1.6-Fusion HELP!!!!
Archana Turaga wrote: Thanks for the reply. What about the database tables those come along with Jetspeed 2.0 deployment? Are those all needed (they are the bunch of them) or only the 2.0 jars are enough to get fusion going? The database tables are included in the Fusion build if you build with the Fusion option on. This is all not yet documented. Getting this documentation of course will delay the release schedule. If we (all of us interested in Fusion) decide to release Jetspeed 1.6 (which includes Fusion) with 2.0 M1, then there are going to be some new features added to Jetspeed 2.0 that will be missing, mainly some nice improvements in the Struts bridge. If we wait for the M2 release, we get all the bug fixes, but then the means a substantial bit of work to get deployment working again in Fusion. We're hoping for an M2 release by the end of this month, but its looking doubtful now. -- 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: Jetspeed 1.6-Fusion HELP!!!!
Archana Turaga wrote: Thanks for the reply Jeff. But I know in the past they have said that when Jetspeed 1.6 is released you do not need to build Jetspeed 2.0. Won't that be really convenient...if it works that way? The 1.6 release will only require jars from Jetspeed 2.0 If that is M1 or M2 is yet to be determined... -- 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: Jetspeed 1.6-Fusion HELP!!!!
Archana Turaga wrote: Hi, We really need to know when Jetspeed 1.6 is going to be released. We need it more so because of its ability to support struts with Fusion and we are depending on it very heavily for our implementation. At the most we need to know what binaries from 2.0 are needed to get fusion going since Jetspeed 2.0 adds a whole bunch of tables to the database and we do not know which are needed and which are not. Please let us know the release date or at-least give us a list of binaries/tables that need to get fusion going on top of Jetspeed 1.6. I know David said that it will be out Feb end and I also know that you guys are all very busy but please can you let us know the status? Thanks a lot for your co-operation. Regards, Archana Well we now have a new complication with Fusion. The CVS head for 2.0 will soon change its deployment model. In the deployment branch, quite a few interfaces that Fusion is dependent on are now deleted. The code doesn't even compile against this branch. Once again, J2 developers have no consideration for Fusion. Perhaps we should formally call a vote on the jetspeed-dev list: 1. deprecate fusion -or-- 2. require developers to test fusion Frankly the whole situation has led to me becoming less and less involved in Jetspeed as my contributions are devaluated. Anyway, enough of my whining. What we could do put out the 1.6 release with 2.0 M1 But since the deployment is changing in M2, this means that Fusion is stuck at M1 until someone comes along and refactors the Fusion deployment. Im open to suggestions -- 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: portal management
Litton, Tom - CEPM wrote: Is there a plan to have a gui that can manage portals and page layouts per user? yes of course ive just started working on a portlet selecter we plan to have a site manager portlet completed for M2 jetspeed 1.6 supports this today In other words, I want the ability to log into jetspeed as user X. Remove portal A, B, and C. Add portal D. Rearrange the portals on different pages, folders, and columns, etc and have this only effect the layout for user X. This is similar to how uPortal works. Also, are there plans to implement dynamic skinning? Thats already possible, but only by editing the psml file That feature should be covered in M2 also -- 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: regarding roadmaps
Siddharth Chhabra wrote: hi In my current company we are currently evaluating portal products and Jetspeed appears to be the most ambitious and cost effective project out ther(when we see all the possible things it intends to support out of the box). But we need to have our portal out sometime by the end of this year and out managements concerns is whether jetspeed 2 will have a release version out by that time. The roadmaps on the site have no dates next to them. We'll try to get a roadmap/release plan onto the site soon Sorry for the inconvenience We had our M1 release in December M2 should be release in March (thats pushed back 1 month thus far) After that, we will follow with a 2.0 FINAL release (1-2 months) -- 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: Database parameters missing.
[EMAIL PROTECTED] wrote: Hi, I using Tomcat 5.5.7 and jetspeed on jdk 1.5 on a windows xp platform. I'm 5.5 doesn't run with Jetspeed-2 unfortunately http://issues.apache.org/jira/browse/JS2-187 -- 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: Importing Jetspeed settings into database
Sven Richter wrote: Hello, I so far made all the changes to Torque.properties.merge JetspeedResources.properties.merge and project.properties and created all tables in MySQL, as described on the Jetspeed homepage. The next step is (according to the website) to import the file-based settings to the database with "maven import". Unfurtunately I get the error message that the goal import does not exist. Could you please help me with this problem? What version are you using? The import goal is clearly there in the cvs head and 1.5 im pretty sure -- 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: SQL script - DB - timestamp error
Stefano Bianchi wrote: Dear ALL, when I create a new_user (with admin functionalities) the field 'TURBINE_USERS'.'CREATED' contains -00-00 00:00:00, and once I try to login as the new_user the system returns an exception (cannot convert the value in a valid timestamp). The MySQL scripts in the 1.5 distribution should be fine. This problem comes up over and over: you need to recompile with MySQL Torque flags -- 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: attempt to download jmock
Ramin wrote: while running maven on JS2, I keep noticing that jmock-SNAPSHOT.jar is having some problems being downloaded. The build process finishes successfully, but I dont think this file being downloaded into the repository. Is it necessary to run JS2 ? try building with -o for offline if you don't want to check for snapshots -- 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: Force restart/reload
Christophe Lombart wrote: I had similar issues with my portlets. There is a bug in tomcat 5.0.28 with the autoDeploy. It is not used correctly in this version. Now, I use tomcat 5.0.30 and hot deploy works fine. I usually just deploy the entire webapp (portlet app) by dropping it into the jetspeed deploy directory (maven task), although that can be expensive if you have a lot jars in your distribution, but it still can be quicker than restarting I still think we need to further look into Jetspeed portlet cache since it holds on to the webapp class loader and could be causing this kind of problem. Not sure if Ate's latest go at deployment is considering this or not Christophe Howard Lewis Ship wrote: Is there a quick and easy way to force Jetspeed to restart? I'm hot deploying a small portlet into Jetspeed. I believe (not 100% certain) that it is picking up changes to my Portlet instance after the hot deploy. It does not appear to pick up changes to a static helper class. I see Portlet is Not Available: ClickLink Reason: Node has been removed. At the bottom of my portlet's window. I'm having to stop/restart Tomcat to pick up such changes and I'm hoping for something a little quicker and easier. - 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]
Re: Default users and passwords
Siddharth Chhabra wrote: admin/admin should work. and once u r logged in u can see other users. we try to make it easy for hackers as possible: passwords are same as usernames -- 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: JSP template
Marek Nowak wrote: Hello Is it possible in Jetspeed 2 to use JSP as a teplate instead of Velocity? I assume this is one of those obvious questions that no one answers because well its so obvious Or maybe because its unclear When you say 'use JSP' do you mean in your portlets? Then the answer is YES, of course! Plenty of examples of that in the applications included in the distribution If you mean in decorators or layouts, then also yes, although you don't have the Jetspeed Power Tool so it would be a little harder than with velocity -- 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: J2 - Menu Navigation - Root Folder
Hi Shah, Can you move this discussion to the jetspeed-dev mailing list? I think its going to involve some reworking of APIs, and I prefer to discuss it there. Thanks, David -- 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: AW: [J1] Jetspeed 1.6 MySQL PSML problem
Daniel Brose wrote: Hi David, hi all! Could you send the relevant properties from your JetspeedResources.properties. Also, for Jetspeed-1, to switch databases you have to change the Torque properties and rebuild. Did you do that? Okay, here are the relevant properties from my JetspeedResources.properties (as far as I know which ARE relevant): # To use the File-based PSML service, select (uncomment) this service (this is the default setting): # services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast orPsmlManagerService Is that my email wrapping ? Looks like 2 separate lines to me i.e. its not commented out # To use the DB-PSML service, select (uncomment) this service, and comment out the above service: services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.D atabasePsmlManagerService # Select this service to import from File System to the Database (make sure that DatabasePsmlManagerService is selected above) services.PsmlImportManager.classname=org.apache.jetspeed.services.psmlmanage r.CastorPsmlManagerService # Select this service to import from the Database to the File System (make sure that CastorPsmlManagerService is selected above) # services.PsmlImportManager.classname=org.apache.jetspeed.services.psmlmanage r.db.DatabasePsmlManagerService again, it looks to me like you have both uncommented just select one And yes, I changed my Torque.properties and rebuild. I'm already using MySQL for users. Here are my settings for my db in my Torque.properties: torque.database.default=default torque.database.default.adapter=mysql torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver torque.dsfactory.default.connection.url = jdbc:mysql://localhost:3306/jetspeed torque.dsfactory.default.connection.user = jetspeed torque.dsfactory.default.connection.password = jetspeed Finally, check the log files from the import. Send any relevant stack traces to this list Actually there seem to be some problems with the MySQL driver. As I'm already using it for users, I thought anything would be fine with it. Where do I put the jar for the MySQL driver so that maven recognizes it? Excerpt from my jetspeedservices.log: Seems like the import command line task in the cvs head didn't have a standard way of addding the driver I just updated the maven.xml in the cvs head You can use this property for your classpath, for example: org.apache.jetspeed.test.jdbc.j1.drivers.path=/etc/drivers/jdbc/mysql-connector-java-3.0.8-stable-bin.jar -- 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: New Article about Jetspeed2 second part (migration jet1 -> jet2)
massimiliano wrote: It's a second part (In italian): http://www.jugsardegna.org/vqwiki/jsp/Wiki?Jetspeed2_I or: http://www.mokabyte.it/2005/02/jetspeed2-2.htm The example of migration, it's a portlet based on Spring, MX4J and a three type of persistence, JdbcClassic, JdbcTemplate(Spring) and JDO (JPOX with JDO 2.0 features). The third part of article are available at the end of february, and contains the part with MX4J, and the portlet for Jetspeed2 build with plutoeclipse, and a complete source of the example (Apache license naturally). Massimiliano Thanks! I added a link here: http://portals.apache.org/jetspeed-1/resources.html -- 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: SQL errors on binary distribution
Smits.Dolf wrote: Hi, I changed to another tomcat version, 5.0.28, and this seems to be working (tried it also on tomcat 4.1.24, but that goes wrong) I still do get some errors and the rss application is not working, but furthermore I have at least a working portal for now. I'll start playing around. The RSS failing is most likely an error with xalan (XSLT) jar conflict Check your log files. -- 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: Jetspeed UML diagramms
Hans Peter Stubenrauch wrote: Hi, I am looking for some Jetspeed UML diagramms to understand it`s working better. In the Mailarchive I found an URL:http://www.bluesunrise.com/jetspeed-docs/javadocs-1.3a2/ but it didn´t work. I also found some old mails with an URL to an Jetspeed presentation also hosted at www.bluesunrise.com. Are there any actual URLs, where I can acces the UML diagrams and the presentation. Thanks Hans Peter I removed the UML/javadocs from the site. 1.3a2 is over 3 years old. You can find the slide shows here: http://www.bluesunrise.com/jetspeed-docs/Slides/Slide1.html IE: http://www.bluesunrise.com/jetspeed-docs/Jetspeed-Slides_files/frame.htm -- 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: Menu Navigation Tree
Shah Amit wrote: Hi, I understand the navigation structure of jetspeed a little bit. I am reading the ProfiledPageContext interface and trying to figure out how I can display a menu tree. The examples do show how child folders and links will be displayed. But how can I display the parent tree? Also where exactly on the parent menu tree am I currently ... That is my confusion. I posted the question before but seems like somehow it didn't make to the mailing list so I am posting this again. The interface http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfiledPageContext.java?rev=1.3&view=log provides you with the ability to traverse over the folder and page tree. Take a look at some of the page decorators examples such as tigris. Where the profiled page context is set to the $site variable: #set($site = $request.getAttribute("org.apache.jetspeed.profiledPageContext")) and then passed in to macros of interest, see #macro (includeNestedLinksWithIconNavigation $_nodeSet $_nodePrefix $_orientation) -- 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: [J1] Jetspeed 1.6 MySQL PSML problem
Daniel Brose wrote: Hi all, I already use MySQL (version 3) for security like users and stuff, now I want to use it for the PSML registry. I followed the steps in http://portals.apache.org/jetspeed-1/psml_db.html. It worked for me up to the "maven import". Maven tells me that the build was successful but that 0 profiles were exported?! Running Jetspeed and pointing with the browser to it leads to the following error, which is quite logic as my PSML registry does not yet reside in my database: "Error retrieving Portal Page: Profile not found." Any help would be appreciated! Actually I just tested MySQL, Oracle and PSML registry importing for someone last week. It seemed to work fine. Could you send the relevant properties from your JetspeedResources.properties. Also, for Jetspeed-1, to switch databases you have to change the Torque properties and rebuild. Did you do that? Finally, check the log files from the import. Send any relevant stack traces to this list -- 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: SQL errors on binary distribution
Smits.Dolf wrote: Hi all, I'm just starting with jetspeed, so hope i don't ask too stupid a question. running on win2000 I downloaded the binary distribution from jetspeed 2.0.M1 I installed java jsdk latest version 1.5.0.1 installed a clean tomcat latest version (5.5.7) unzipped the jetspeed zip file in the webapps directory from tomcat go to the jetspeed-database and start the database with start-database.bat startup tomcat It start to throw error messages about SQL execeptions. (see enclosed error messages) Do I need to prepare more actions? Or is something else going wrong? We're still having troubles running with Tomcat 5.5. There is an open JIRA issue I hope to find an hour this week to look into it (thats a lot more difficult than it sounds these days ;) -- 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: non-scrollable IFramePortlet
Marina wrote: Hello! I tried using IFramePortlet to display a content from another URL inside it, and I noticed that the content of the IFramePortlet window is not scrollable. Any idea how I could make it scrollable? Try adding this Preference to your portlet.xml and redeploy: SCROLLING TRUE -- 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: Diagrams for login, authentication, LDAP handlers 1/3
Tom, Thanks for putting this together... See comments below: --- "Pesendorfer, Tom" <[EMAIL PROTECTED]> wrote: > From: Pesendorfer, Tom > Sent: Thursday, 10 February 2005 7:18 AM > To: 'Jetspeed Users List' > Subject: Diagrams for login, authentication, LDAP > handlers > > > Attached are 3 sequence diagrams (in 3 posts due to > mail size limit) from > what I could follow in the code in an effort to > understand what is > happening. The first one covers the login, the > second one the portlet > security, and the third one the new LDAP handlers > (by Mike Long). > > Any clarifications, corrections, or additional > details are very welcome! > > The first question I have is: It seems the user is > retrieved twice - once > (typically) inside the LoginModule (see first > diagram), and then later on > when the SecurityValveImpl doesn't find a Subject in > the session (if it's > the first time). Why is the Principal & > Subject/credential not re-used from > when it was available in the LoginModule? (if I > were to do that, would it > remove the need for the UserSecurityHandler?) The UserSecurityHandler is used by the UserManager for managing users also. > Also, regarding the first diagram, how does the > user/password end up with > the LoginModule - I assume this is done by JBoss' > JAAS implementation, > correct? > > Thanks & regards, > Tom > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to deploy JSR-168 portlets with fusion
Fabrice Dewasmes wrote: Fabrice Dewasmes a écrit : David Sean Taylor a écrit : Fabrice Dewasmes wrote: Hi, I've built and installed fusion following instructions on the wiki (http://wiki.apache.org/portals/Jetspeed2/Fusion) and using latest from CVS. It seems to work fine but when I drop a war or exploded webapp into WEB-INF/deploy directory, I don't see anything happening in the logs and the portlet does not appear in portlet list when I want to add a portlet to a page. The JSR 168 portlets I tried to deploy were struts-demo and RSS demo taken from js2. Is there something special to do to deploy the portlets ? Check your log files. There must be something going wrong . Did you run this target in a different shell to start the J2 database?: maven db.fusion.start David, thanks for your kind reply. the database is started using the db.fusion.start goal in fusion subdirectory. Tomcat logs at startup seems OK : Starting Up Fusion Service APP ROOT = /usr/java/jakarta-tomcat-5.0.28/webapps/jetspeed/ PROP FILE = /usr/java/jakarta-tomcat-5.0.28/webapps/jetspeed/WEB-INF/conf/fusion.properties JNDI System Property flag null INFO: Using PDEF NAME portlet_definition INFO: Using PAPP NAME portlet_application INFO: Deployment server port: 8080 INFO: Deployment server: localhost INFO: Starting auto deployment service: org.apache.jetspeed.deployment.impl.StandardDeploymentManager INFO: Deployment scanning delay: 1 INFO: Deployment staging directory: /usr/java/jakarta-tomcat-5.0.28/webapps/jetspeed/WEB-INF/deploy INFO: Deployment scanner successfuly started! Fusion Service: Initialization Done however when I put struts-demo.war in WEB-INF/deploy nothing happens either in the logs and in portlet listing. What could be the error ? OK I found the problem : first : it seems that even if you set in ~/build.properties the following line org.apache.jetspeed.catalina.version.major=5 it is not used correctly to generate fusion.properties file located in WEB-INF/conf of jetspeed. So i've correctly put the property directly in fusion.properties. Sounds like Fusion is out of sync with the Jetspeed properties for Tomcat 5. I 'll try to get that fixed. I also came across that when retesting Fusion yesterday against Tomcat 5 second : the JSR 168 apps must be deployed not as a war file but must be exploded. Then everything works fine ! Hmm, that shouldn't be necessary. -- 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: Read a psml file
zaza wrote: David Sean Taylor wrote: angeloimm wrote: Hi all; if i know the psml name... how could i have a parameter in this psml file? Hi, What about J2? Can you configure fragments responsible for portlets in similar way? Can you add a paramater tag to the psml file? And finally can you access those parameters programatically later? Jetspeed-2 is different. We make a clean separation of layout (PSML) and preferences (J1 parameters). Preferences are stored in a database and are accessible from your portlet with the Portlet API. Default preferences are specified in the portlet.xml descriptor -- 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: Access your own psml file
Shah Amit wrote: I have my own "portlet web application". Now it logically makes sense that to deploy this this applicaiton, I should just throw it under jetspeed/web-inf/deploy, and should be able to access my webapplication from the browser. Till now I used to edit the "default-page.psml" in jetspeed/web-inf/pages directory and enter my portlet in there. But suppose I want to have my own psml file. (I guess I should put it under /web-inf/pages/myPage.psml ??) Now even if I do this, how should I access this page from the browser ? http://localhost:8080/jetspeed/myapp/myPage.psml ?? http://localhost:8080/jetspeed/portal/myapp/myPage.psml Also look at the _user directory, as it holds folders and pages specific to a user. Also regarding decorators. I have read all the documentation on the website and I understand how it should be done. But again similar question. I should be able to put my decorators under /web-inf/decorations etc. ?? Decorations can be packaged into a jar and dropped in the WEB-INF/deploy directory My only concern is that I dont want to change anything in jetspeed. This way I can easily keep updating jetspeed with new releases. Otherwise I would have to put my changes in jetspeed everytime I upgrade my jetspeed. I do exactly that on my projects here. For development, I have maven goals to drop in decorators, PSML and portlet apps With PSML, I have one PSML directory per project (I don't use the demo PSML directory from the Jetspeed cvs) Please help/advise/comment Thanks, Amit - 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]
Re: how to deploy JSR-168 portlets with fusion
Fabrice Dewasmes wrote: Hi, I've built and installed fusion following instructions on the wiki (http://wiki.apache.org/portals/Jetspeed2/Fusion) and using latest from CVS. It seems to work fine but when I drop a war or exploded webapp into WEB-INF/deploy directory, I don't see anything happening in the logs and the portlet does not appear in portlet list when I want to add a portlet to a page. The JSR 168 portlets I tried to deploy were struts-demo and RSS demo taken from js2. Is there something special to do to deploy the portlets ? Check your log files. There must be something going wrong . Did you run this target in a different shell to start the J2 database?: maven db.fusion.start -- 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: Read a psml file
angeloimm wrote: Hi all; if i know the psml name... how could i have a parameter in this psml file? Not sure if I understand the question, but I'll try. To change the parameters on a portlet instance, you can edit the psml file by hand, for example the StockQuote portlet, override the default init parameters on a portlet instance: or change them from the running portlet. For example the StockQuote portlet provides an edit mode to edit the parameters For example let's suppose i have in the file a.psml a parameter called text. well in a portlet called b how can i have this parameter? Thanks Programatically a Jetspeed-1 portlet can access its PSML parameters by via the portlet instance http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/PortletInstance.html The are a few variations on this, see the example portlets that come with the distribution -- 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: Database Related Question
mike long wrote: I think David is saying that you should create implementations of the interfaces he references below. I am doing that to allow Jetspeed-2 to use an LDAP directory server instead of a relational database. My strategy has been to check out the Jetspeed-2 code from CVS and then write my own implementations of these classes and wire them in using the jetspeed-spring.xml, security.xml, and a couple other configuration files. A really good set of unit tests exists for the security components already that will tell you if your implementation of those interfaces is correct. You will have good assurance that your implementation is correct when all the component/security tests work. The tests should run out of the box hooked up to your custom implementations. Your work will be easier than mine since you are only mapping the Jetspeed-2 security tables to your own. Since LDAP is not generally a transactional resource like a relational database, I am having difficulty because the existing suite of security tests is hardwired to use SQL persistence. That said, the work for you is still considerable. I would suggest reading up on Maven, all the tutorials on JAAS, and then the Spring reference manual. The later will show you how to wire the application together using your own security implementations. I setup a new set of a maven project and basic skeletons for the services like this in a few minutes (but yes, I ve done it before). Integration with the unit tests will take more time and thought. But yes, if you are new to Spring and Maven and J2, its going to take more time. The lack of docs doesn't help: http://portals.apache.org/jetspeed-2/spi.html I still need to review your LDAP code. Sorry I haven't got to that yet. -- 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: Database Related Question
Shah Amit wrote: Hi David, Please pardon my stupid questions. I am pretty new with JAAS so ... By what you suggested, you mean to say that I should have my own implementation for almost all the interfaces in org.apache.jetspeed.security.spi .. ?? and then change the jetspeed-spring.xml file to point to my own interfaces ... Only implement what you need. Would that mean I would be changing the source of jetspeed and building again ?? If not, how can I get the classfiles that I woudl write on jetspeed's classpath No. 1. create a maven project 2. add these deps to your project.xml: jetspeed2:jetspeed-api 2.0-M2-dev false jetspeed-security jetspeed2 2.0-M2-dev false 3. build a jar containing your classes maven jar 4. make a maven goal to install your jar and spring config into J2, something like -- 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: Nested portlet?
Nan Anonymous wrote: You can setup a portlet pipeline and retrieve only the content for one portlet within another portlet. This is what we do in Jetspeed 1.6 fusion to support jsr 168 portlets Thanks. Can you point me to the document about this portlet pipeline? I suppose there can be an API (as Java class/method or JSP tag) to include another portlet. Something like this can be put in the view rendering JSP of one portlet: ... ^DJIX ^IXIA ... ... Is there anything like that already? Is it doable? Get a dispatcher for: String dispatchURL = "/jetspeed/portal?pipeline=portlet-pipeline&entity=" + entityId; alternatively you may find it useful to include in by psml layout-decorator="simple" portlet-decorator="clear" /> User Chooser and then linking to that page Of course these are non-portable solutions -- 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: Database Related Question
Shah Amit wrote: Thanks for the reply. Now I already have an existing schema where I have a users table with some users and I check logins against that table in my existing schema. In that case, how should I configure my authentication mechanism ? Should I translate my current "user" and related tables to "Jetspeed2 Security" schema ?? Like, I just want to know what would be a good design ?? My feeling is I should translate my user and related tables to the jetspeed security model, but would like to get some feedback ... I don't think that is necessary, although you could do that if its close. Or perhaps a view that combines the two... A better solutoin may be to provide your own security handlers in the spring configuration. For ex, for credentials, user security, and roles, assemble your components something like: > > class="com.amit.portal.security.spi.impl.AmitRoleSecurityHandler" > Thanks for your helps ... Amit Original Message Follows From: David Sean Taylor <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" To: Jetspeed Users List Subject: Re: Database Related Question Date: Mon, 31 Jan 2005 12:17:16 -0800 Shah Amit wrote: I have an existing database, and a website built on it. We are in a process of portalizing the website with Jetspeed2. Now I downloaded jetspeed2 and the DB that it creates has quite a lot of tables (atleast 30 - 40). Out of all of these tables, I do understand that security_XXX tables would probably be used by the JAAS Security module of jetspeed. But apart from those, which are the tables that I would have to preserve on my production database for jetspeed to work ?? Like, I know that there are lot of sample applications shipped with Jetspeed2, and lot of those applications might need their own tables. But if I were to remove all the sample applications shipped with J2, and only have the minimal skeleton of J2, what are the tables that I need to preserve ?? Ive gone thru something similar here. Minimized, its not that much smaller (see below) summary: phase 1 schema: need this for the capability map component which only runs against a relational database store phase 2 schema: need the profiler schema phase3 ojb: ojb internals prefs schema: to handle preferences - required for proper operation using prefs registry schema: all Portlet app and portlet info from portlet.xml stored here security-schema: you could minimize this by removing SSO tables or providing your own security components # --- # MEDIA_TYPE # --- drop table if exists MEDIA_TYPE; CREATE TABLE MEDIA_TYPE ( MEDIATYPE_ID INTEGER NOT NULL, NAME VARCHAR (80) NOT NULL, CHARACTER_SET VARCHAR (40), TITLE VARCHAR (80), DESCRIPTION MEDIUMTEXT, PRIMARY KEY(MEDIATYPE_ID) ); # --- # CLIENT # --- drop table if exists CLIENT; CREATE TABLE CLIENT ( CLIENT_ID INTEGER NOT NULL, NAME VARCHAR (80) NOT NULL, USER_AGENT_PATTERN VARCHAR (128), MANUFACTURER VARCHAR (80), MODEL VARCHAR (80), VERSION VARCHAR (40), PREFERRED_MIMETYPE_ID INTEGER NOT NULL, PRIMARY KEY(CLIENT_ID) ); # --- # MIMETYPE # --- drop table if exists MIMETYPE; CREATE TABLE MIMETYPE ( MIMETYPE_ID INTEGER NOT NULL, NAME VARCHAR (80) NOT NULL, PRIMARY KEY(MIMETYPE_ID) ); # --- # CAPABILITY # --- drop table if exists CAPABILITY; CREATE TABLE CAPABILITY ( CAPABILITY_ID INTEGER NOT NULL, CAPABILITY VARCHAR (80) NOT NULL, PRIMARY KEY(CAPABILITY_ID) ); # --- # CLIENT_TO_CAPABILITY # --- drop table if exists CLIENT_TO_CAPABILITY; CREATE TABLE CLIENT_TO_CAPABILITY ( CLIENT_ID INTEGER NOT NULL, CAPABILITY_ID INTEGER NOT NULL ); # --- # CLIENT_TO_MIMETYPE # --- drop table if exists CLIENT_TO_MIMETYPE; CREATE TABLE CLIENT_
Re: users/roles/groups creation and saving
Marina wrote: Hi! I'm trying to find an easy way to add new users/roles/groups to J2 permanently (using HSQL DB for now). By that I mean that I want to persist newly created objects in the DB between upgrades of J2. Currently, when you update and rebuild J2 from CVs, for example, you have to run the 'maven quickStart' goal, otherwise none of the web applications (/jetspeed, etc.) get deployed into the Tomcat. Unfortunately, this goal also wipes out your DB clean and you have to re-create all your custom users/groups/roles... After going through this (painful, if you have many users) exercise a few times, I decided to write my own version of the populate-default-db.sql - kind of script. Ive been using the target maven nodbMinDeploy from /portal to deploy the basic Jetspeed portal and security portlet app without demo apps. Note that this goal does not populate the database. After running nodbMinDeploy, I run my own database scripts to populate the database, run maven goals to customize J2 to my components, and then deploy my portlet app(s). I think I attached those scripts to another email on this list a few days ago. Thus I have a complete custom script for DDL and default data. The problem is that I'm not sure what are dependences between all tables and it was not that easy to find what tables changed after you add, say, a new user since you don't really know which tables you should be monitoring. Because of that, I have a few questions: 1. could somebody complete my list of tables that have to be modified when use create custom users and roles and want to tie them together? So far I have: to create a new role: PREFS_NODE SECURITY_PRINCIPAL to create a new user and assign the new role to it: SECURITY_PRINCIPAL PRINCIPAL_ROLE_ASSOC SECURITY_USER_ROLE SECURITY_USER_GROUP This actually does not work - I guess I missed a few tables... Yes its not enough, see the email or I can post them again. 2. Is there a way to save a 'snapshot' of a working DB with all new objects and use that in a new J2 installation? Sure, thats dependent on your database. For HSQL, simply save the script 3. if all else fails, where is the actual data for the HSQL DB stored? Maybe I could use some kind of 'diff' on it after I add a new user ... :-) After seeing the file you will probably never use HSQL again. I never use HSQL, not even for development. Last time I checked it went here: src/database/hsql/Test.script src/database/hsql/Production.script Thank you! Marina __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - 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]
Re: Database Related Question
T NOT NULL, IS_ENCODED BIT NOT NULL, IS_ENABLED BIT NOT NULL, AUTH_FAILURES SMALLINT NOT NULL, IS_EXPIRED BIT NOT NULL, CREATION_DATE TIMESTAMP NOT NULL, MODIFIED_DATE TIMESTAMP NOT NULL, PREV_AUTH_DATE TIMESTAMP, LAST_AUTH_DATE TIMESTAMP, EXPIRATION_DATE DATETIME, PRIMARY KEY(CREDENTIAL_ID), FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); # --- # SSO_SITE # --- drop table if exists SSO_SITE; CREATE TABLE SSO_SITE ( SITE_ID INTEGER NOT NULL, NAME VARCHAR (254) NOT NULL, URL VARCHAR (254) NOT NULL, ALLOW_USER_SET BIT default 0, REQUIRES_CERTIFICATE BIT default 0, PRIMARY KEY(SITE_ID), UNIQUE (URL) ); # --- # SSO_SITE_TO_PRINCIPALS # --- drop table if exists SSO_SITE_TO_PRINCIPALS; CREATE TABLE SSO_SITE_TO_PRINCIPALS ( SITE_ID INTEGER NOT NULL, PRINCIPAL_ID INTEGER NOT NULL, PRIMARY KEY(SITE_ID,PRINCIPAL_ID), FOREIGN KEY (SITE_ID) REFERENCES SSO_SITE (SITE_ID) ON DELETE CASCADE , FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); # --- # SSO_PRINCIPAL_TO_REMOTE # --- drop table if exists SSO_PRINCIPAL_TO_REMOTE; CREATE TABLE SSO_PRINCIPAL_TO_REMOTE ( PRINCIPAL_ID INTEGER NOT NULL, REMOTE_PRINCIPAL_ID INTEGER NOT NULL, PRIMARY KEY(PRINCIPAL_ID,REMOTE_PRINCIPAL_ID), FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE , FOREIGN KEY (REMOTE_PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); # --- # SSO_SITE_TO_REMOTE # --- drop table if exists SSO_SITE_TO_REMOTE; CREATE TABLE SSO_SITE_TO_REMOTE ( SITE_ID INTEGER NOT NULL, PRINCIPAL_ID INTEGER NOT NULL, PRIMARY KEY(SITE_ID,PRINCIPAL_ID), FOREIGN KEY (SITE_ID) REFERENCES SSO_SITE (SITE_ID) ON DELETE CASCADE , FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); # --- # SECURITY_USER_ROLE # --- drop table if exists SECURITY_USER_ROLE; CREATE TABLE SECURITY_USER_ROLE ( USER_ID INTEGER NOT NULL, ROLE_ID INTEGER NOT NULL, PRIMARY KEY(USER_ID,ROLE_ID), FOREIGN KEY (ROLE_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE , FOREIGN KEY (USER_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); # --- # SECURITY_USER_GROUP # --- drop table if exists SECURITY_USER_GROUP; CREATE TABLE SECURITY_USER_GROUP ( USER_ID INTEGER NOT NULL, GROUP_ID INTEGER NOT NULL, PRIMARY KEY(USER_ID,GROUP_ID), FOREIGN KEY (GROUP_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE , FOREIGN KEY (USER_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); # --- # SECURITY_GROUP_ROLE # --- drop table if exists SECURITY_GROUP_ROLE; CREATE TABLE SECURITY_GROUP_ROLE ( GROUP_ID INTEGER NOT NULL, ROLE_ID INTEGER NOT NULL, PRIMARY KEY(GROUP_ID,ROLE_ID), FOREIGN KEY (GROUP_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE , FOREIGN KEY (ROLE_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID) ON DELETE CASCADE ); -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL
Re: jetspeed2 and simple webapps
Carlos Ortiz wrote: Maybe a stupid question, but what Jetspeed2 Bridge would I use if I just wanted to call a non-jsf, non-struts, webapp from a jetspeed2 portlet without having to add portlet code? Just a plain old servlet. Is this possible? Of course. Just use the GenericServletPortlet for servlets and JSPs See examples under the demo portlet app -- 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: Nested portlet?
Nan Anonymous wrote: Hmm.. forgot this forum is for both. I would be more interesting on JS2 as I want to do this in as much conformance to JSR168 as possible. Of course, a comparison of different approaches for different portal servers would also be very educational. Thanks You can setup a portlet pipeline and retrieve only the content for one portlet within another portlet. This is what we do in Jetspeed 1.6 fusion to support jsr 168 portlets Another quick solution is to include the content of another portlet using the IFramePortlet and a portlet on a single psml page with a clear decorator: SRC /jetspeed/portal/frames/dtb-frame.psml -- 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: Spring portlet
Matthias Koch wrote: Hi, its my first time working with jetspeed, because I used the Spring Framework for my applications I just will test how I can integrate them into jetspeed. Portlet is Not Available: SpringPortletDemo Reason: PortletFactory: Failed to load portlet org.apache.portals.bridges.frameworks.GenericFrameworkPortlet:javax.portlet.PortletException: Spring Configuration file not specified Can anyone help me getting this portlet to run, please? or any hints what i have maked wrong? You will need to add these settings to your portlet def: spring-configuration /WEB-INF/velocity/spring-portlet-configuration.xml validator-configuration /WEB-INF/velocity/validator-configuration.xml Look here for examples: http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/portals-bridges/library/ -- 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: J2 Warning: HttpServletRequest.getContextPath() now returns the contextPath of the Portlet, not the Portal
Ate Douma wrote: No, to /jetspeed/login/proxy. I can't reproduce your error. Please check that you indeed have updated the change-password.jsp and login.jsp from the security application. In these the required url is now generated with an explicit reference to the portal (jetspeed) context using the following construction: (Not sure why I sent this to user list) Seems my Tomcat instance had some leftover artifacts (war files) from my testing with Randy's deployment. I removed them at it cleared up -- 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: J2 Warning: HttpServletRequest.getContextPath() now returns the contextPath of the Portlet, not the Portal
Ate Douma wrote: I've just fixed issue: http://issues.apache.org/jira/browse/JS2-203 Please read it if you are currently are (mis)using the Portal contextPath from within a Servlet/JSP/Velocity dispatched by a Portlet. Regards, Ate after a cvs update, when I login Im now getting -- HTTP Status 404 - /security/login/proxy type Status report message /security/login/proxy description The requested resource (/security/login/proxy) is not available. Apache Tomcat/5.0.30 -- Shouldn't we now be logging on to /login/proxy ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed-2 Clustering
Andre Bonhote wrote: Hi! It's my first post, and I am completely new to Jetspeed, so bear with me please. The idea is to deploy a portal on n machines, where n is 4 at the moment. We would like to have some pretty load balancers in front of them, the boxes are located in two countries. As this is usual for good portals, the user/customer should not care about where he is. The jetspeed-2 installation will access an oracle 10 database. Now there's my question: Since it doesn't make sense (IMHO) to put the oracle beast on all the 4 machines, is it possible to have all 4 jetspeed installations access the same database? Or even, the same tablespace? Or do I have to create users for each server? I have clustered Jetspeed 1.6-dev and 1.5 in several installations. Jetspeed-2 is not quite cluster ready, but I think it was designed much better than Jetspeed-1 for clustering. Many of the components already persist their state in a database, so therer is not a lot of need for tweaking the implementations like we had to do in 1.6. The plan is to work on clustering for the final release. Current problems I see with Jetspeed-2 and clustering: * PSML stored on the file system * lots of use of the session * cache synchronization on a number of components Is there a clustering guide somewhere? I am quite stuck at the moment, to be honest. Thanks for your kind help in advance Cheers André -- 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: Nested portlet?
Please let us know, is this question for Jetspeed-1 or Jetspeed-2... Nan Anonymous wrote: Hi, I need to be able to nest one portlet in another portlet's MAX view. I want to see if you have done this before or have some ideas to share with. Supposedly, I have a Stock Porfolio portlet. In normal view, this just show my list of stock symbols and prices. Now when I maximize it, in addition to the more detailed listing one would expect, I should also see the following: 1. A portlet displaying in NORMAL view the major market indices. In fact, this portlet is the same as the containng portlet -- the Stock Porfolio portlet! 2. A business news portlet listing some latest headline 3. Further, it might be interested if one could change the layout of this portlet view. What would be the sound approaches to handle this portlet and its nested children? Thanks - 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]
Re: Migrating to MySQL without rebuild
Stefano Bianchi wrote: Dear ALL, is there a way to migrate to MySql for J1.5 without rebuilding with Maven? Just .properties configurations and MySQL scripts? Never used Maven before... Would be nice. Thats my biggest complaint about the 1.x codebase: You have to rebuild to switch databases I have a plan for fixing that but no time to write it I guess someone with Maven could build it for you ... Or you could just try to learn Maven, if you have time -- 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: JSF as portlet
[EMAIL PROTECTED] wrote: Hi, I included the portal bridge: portals-bridges-myfaces-0.1.jar to migrate my JSF application as portlet. However I get the following error which I can't figure out because I have configured my pages as shown below in the portlet.xmlany help would be appreciated: This looks fine to me. For some reason its not finding the init param Im really not sure why that is Do you see any other exceptions logged? > > ViewPage > /pages/tree.jsp > ERROR: Portlet is Not Available: ListView Reason: PortletFactory: Failed to load portlet org.apache.portals.bridges.myfaces.FacesPortlet:javax.portlet.PortletException: Portlet ListView is incorrectly configured. No pages are defined. portlet.xml: -- 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: Jetspeed 2 - PSML fragment ids
[EMAIL PROTECTED] wrote: Chris, This is a known issue with J2... they are cached in the DB. I do not remember which table, so you'll have to do some digging in your DB... it is obvious when you see the table names. IIRC, it is ok to clean out the table between J2 launches, but YMMV. See the PORTLET_ENTITY table Its a very simple mapping: entity id -> APP_NAME + PORTLET_NAME Yes, the entities can be cleaned out and they will be recreated Perhaps we need to log the below situation as a bug. If we were to catch the exception, delete the old entry in the portlet entity table, and recreate the entity from the fragment definition, it would fix this bug. Patches welcome :) Randy If I change the portlet name of a fragment in a PSML file, the change doesn't get picked up, even if I restart Tomcat/Jetspeed. The only way I seem to get the change recognized is by using a new fragment id. Are the fragment ids cached somewhere? How can I recycle them? Chris - 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]
Re: portlet property
Ken Ramirez wrote: I don't have one like that yet, and I was planning on writing one. This is perfect. I'll put it into Gems. Great! In my opinion, what makes this portlet cooler than using an init-param is that the name of the file can be changed after the portlet is deployed without having to redeploy any part of the portlet. Would you agree with this? Yes. Init Params are across all users. Using a pref is better here so that we can use the same portlet for different users. -- 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: portlet property
Marek Nowak wrote: Hello I want to write a portlet for Jetspeed2. This portlet should display a given html page. Let's call this portlet HtmlPortlet. I want to put 4 portlets on my page, each of them should display a given page. ++ | | | | | | | HtmlPortlet | HtmlPortlet | | | | |displays a.html | displays b.html | | | | | | | ++ | | | | | | | HtmlPortlet | HtmlPortlet | | | | |displays c.html | displays d.html | | | | | | | ++ Does anybody know how to set an "myUrl" property of these portlets? Is it possible? I know that properties of portlets are stored in database, but I would like to set the property "myUrl" in a file. If it is impossible, maybe you know how to make my application to set this property in database for each portlet. Regards Marek Think you mean preferences. The storage method of preferences is up to the portal impl. You shouldn't really be concerned with the details of how the portal stores preferences... Are you looking for an external link or a local file? We already have a web content portlet for external links in Jetspeed-2. For a local html file, I just took 5 minutes and wrote this portlet for you. I guess I should commit it to Gems if Ken doesnt already have something like this. --- package com.which.idtb.portlets; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.portlet.PortletConfig; import javax.portlet.PortletException; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import javax.portlet.PortletPreferences; import org.apache.portals.bridges.common.GenericServletPortlet; /* * Copyright 2000-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * FilePortlet * * @author mailto:[EMAIL PROTECTED]">David Sean Taylor * @version $Id: $ */ public class FilePortlet extends GenericServletPortlet { public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { response.setContentType("text/html"); PortletPreferences prefs = request.getPreferences(); String fileName = prefs.getValue("file", null); if (fileName != null) { InputStream is = this.getPortletContext().getResourceAsStream(fileName); drain(is, response.getPortletOutputStream()); is.close(); } else { response.getWriter().println("Could not find file preference "); } } static final int BLOCK_SIZE=4096; public static void drain(InputStream r,OutputStream w) throws IOException { byte[] bytes=new byte[BLOCK_SIZE]; try { int length=r.read(bytes); while(length!=-1) { if(length!=0) { w.write(bytes,0,length); } length=r.read(bytes); } } finally { bytes=null; } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting Jetspeed-2 Junit tests to Run using Maven
mike long wrote: Dear Jetspeed-2 users: How do I run the JUnit tests as a Maven goal? I have run the allTests goal and no tests get run. maven -o -Dmaven.test.skip=false allBuild or permanently override the property in your $HOME/build.properties then the -D is not necessary -- 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: Can I use Hibernate with Jetspeed 2 ??
Jonathan Hawkins wrote: What is the issue with the licences. see: http://www.apache.org/licenses/GPL-compatibility.html Again, you can use Jetspeed and Hibernate together in your projects. No problem there. We simply can't checkin code into the Apache repository that has imports from Hibernate. -- 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: JSP decorators in Jetspeed 2?
Marcel Dullaart wrote: Hi David, I am a collegue of Chris, and we have no experience with velocity. Can you give a simple overview/list of the classes/packages that implement the velocity templating engine, so we might give it a try to implement the jsp engine ourselves? Lets start with overriding a layout. Layouts are implemented as portlets. See the layouts-portlets directory, and the base classes for our current layouts are: org.apache.jetspeed.portlets.layout.LayoutPortlet and org.apache.jetspeed.portlets.layout.LayoutPortlet.MultiColumnPortlet Note that LayoutPortlet extends GenericServletPortlet I think you can start with the same approach. You will need to create an equivalent of the JetspeedPowerTool with perhaps a tag library or request scoped bean. Im in the process of documenting the JetspeedPowerTool this week. It would be best if the JSP layouts would make use of the same JPT as the velocity layouts. see the org.apache.jetspeed.velocity package, and specifically: JetspeedPowerTool JetspeedVelocityViewServlet -- 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: Returning binary data through portlet
Dan Moore wrote: Hi Alan, I can't imagine that you can actually do this, because once the portal begins rendering text (which would happen before your portlet was rendered), you can't change it to render binary data. Any chance you can have a link to a servlet with a target of _blank which pops up in a new window and sends the binary data? (I outlined how I did this in a slightly different circumstance here: http://www.mooreds.com/weblog/archives/18.html) Or, you could just link to that JSP. Dan --- Alan Chiang <[EMAIL PROTECTED]> wrote: Hi all, Wondering if anyone knows how to get a portlet to return binary data, or get Jetspeed to return binary data. I have a JSP that reads files for download, coupled with the JSP portlet, but any data returned seems to be intercepted and interpreted as text and is dumped to the portlet window. Recommend using the portlet pipeline -- 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: Documentation
Adrian Nadeau wrote: Hello, We have just currently installed Jetspeed 2 on Tomcat 5.0.30. We are wondering if there are any documentation or resources out there to help us get started on development of JSR 168 Compliant Portlets and deploying them to Jetspeed 2? We have added a few test Portlets fine but we would like to better understand how Tomcat 5 actually deploys the war files and how we can update Portlets within our testing environment without re-exporting them as a new .war file every time we make a change. Any information would be great, thank you in advance. Regards, Adrian Nadeau VP, Development Evolving Solutions...Technology for changing [EMAIL PROTECTED] www.evolvingsolutions.ca 506.633.2012 Well I've been on a little vacation from the jetspeed user mailing list. I've come back to see what I find to be an overwhelming theme. People are saying (and I paraphrase) "Jetspeed-2 looks cool man, but where the hell are the docs dude!" The answer is, not much there. But we're working on it. I see Ate wrote a nice document on User Attributes: http://portals.apache.org/jetspeed-2/user-attributes.html We still have a long way to go with docs To answer your questions: I think you can look at the existing portlet applications under /applications for examples of how to write JSR 168 compliant portlets. Also see the Gems project over at java.net. We hope to get Gems moved into Apache Portals in the near future. For deployment, currently you have to redeploy the war file to pick up new changes to any Java code unless your application server supports 'hot deploying'. The Tomcat 5 deployment is a little messy right now and we are experiencing some race conditions where both Jetspeed and Tomcat try to deploy the same portlet application. Randy is working on getting that fixed. Also, there is an open issue to pick up changes to the portlet.xml and redeploy: http://issues.apache.org/jira/browse/JS2-190 -- 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: Can I use Hibernate with Jetspeed 2 ??
Shah Amit wrote: Hi all, I tried to look up on google, but only found an article dated back in May that J2 will soon have Hibernate support. I would like to know if I can use Hibernate with J2. I dont know the best way to architect this, but if J2 doeesnot provide any inbuilt support and I have to write everything in my application, I guess that is fine too. The Apache license is not compatible with Hibernates license. Thus we cannot use Hibernate in Jetspeed-2. However you are free to use Hibernate in your portlet applications or component implementations. I downloaded the code from CVS on 17th Jan. and there was a DB Browser application in that, but that doesnot work, and it probably looks like it is still not finished, and also it doesnot user Hibernate I think. The DB Browser should work fine. Let me know if it doesn't. Again, its in an Apache CVS. Can't use Hibernate. -- 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: Single Sign-On in Jetspeed2
Daniela Innerwinkler wrote: hi list! is there any documentation how single sign-on is implemented in jetspeed? See here: http://portals.apache.org/jetspeed-2/sso.html Hope to have more by the end of the week :) if not, could anyone please give me a short overview about the functionality? Just login as admin/admin, go to the Jetspeed Administrative Portlets folder, SSO Management and try it out. Also try out My Second Page and there are 2 portlets there SSO enabled. -- 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: J2 JAAS
Shah Amit wrote: Hi All, I am trying to use JAAS provided by J2. Is there any documentation on how to use that ? I tried reading all the test examples they have and read all the code for security. Ive started documenting it. SLOW process, but you can watch the snail pace here: http://portals.apache.org/jetspeed-2/security-overview.html I know its just an empty shell but its a start. As they say, better than nothing. Well maybe... here is my problem, when I follow JAAS client-side specification and try to use J2's JAAS. I get NULLPointer exception. this is because i dont instantiate userManager. Do i need to initialize this ? Is any one has example how to authenticate username and password with J2 JAAS. We just have the one example, the default implementation which does use a Java security login module. -- 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: JSP decorators in Jetspeed 2?
Christopher Wood wrote: Do decorators based on JSP templates work in Jetspeed 2? I've tried changing the "template.type" property in decorator.properties to "jsp", or variations of that, without success. Regardless of whatever I specify, a velocity template (.vm) is searched for. Can someone tell me how to get this working? Thanks, Chris Wood We haven't written support for JSP decorations and layouts yet. Since all velocity templates are dispatched, the procedure will be very similar for JSP. We only supported one templating engine (velocity) to start with and plan to support JSP in future releases. -- 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: jetspeed status
Han, Richard wrote: Hi everyone, I'm new on this list. I'm doing an evaluation of java portals. Could someone give me some ideas of how mature jetspeed is? Is jeetspeed good at integrating web applications? There are two code bases for Jetspeed: * Jetspeed-1 * Jetspeed-2 Jetspeed-1 has been around for a while several years and the 1.6 code base is stable. Jetspeed-2 is new and less stable, but IMO has great support for webapp integration. We now have portals bridges for JSF, Struts, Velocity, PHP and Perl. The Struts bridge is maturing nicely and requires little to no modification to your Struts web app. -- 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: Exception starting tomcat
Jeff Sheets wrote: I'm in the process of updating my Fusion build, and noticed that I still get the ojb.properties file not found exception when deploying from the latest cvs trees for Jetspeed 1 and 2. Could someone with commit access modify the jetspeed 2 portal/maven.xml file for this task: I have changed the fileset to correctly copy over the ojb files, and have to credit Chris Custine with originally finding the fix. -- Jeff Sheets - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] patch applied -- 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: login portlet and tomcat-users.xml
Xavier Lawrence wrote: Hi, How could I configure Jetspeed-2 so the login portlet can use login details given in tomcat-users.xml ??? Thanks in advance for any help. Regards Xavier see login.conf under the security component: Jetspeed { org.apache.jetspeed.security.impl.DefaultLoginModule required debug=true; }; and org.apache.jetspeed.security.impl.AuthenticationProviderImpl, which ultimately does: System.setProperty("java.security.auth.login.config",loginConfigUrl.toString()); to set the Java Security login module. To make use of Tomcat's login module, I wanted to suggest simply removing the authentication provider from the Spring configuration and letting Tomcat handle login via the login portlet calling Tomcat's login module (you would need to configure that in Tomcat). However Im seeing some couplings between the SecurityProvider, GroupManager, RoleManager, and UserManager and the authentication provider. Thus I recommend writing a new Authentication Provider that does not override the login module but simply aggregates the needed handlers. Im also looking into enhancing the authentication provider this week. See issue http://issues.apache.org/jira/browse/JS2-173 I still haven't come up with a good solution for that one, but I will be working in this area, (note this is probably better discussed on jetspeed-dev) -- 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]