Re: evenSubmit question
AFAIK, atleast in Jetspeed 1.5, this would not work due to the 'C. Change the method to doEditcommit and try it out. Hema On Apr 7, 2005 3:52 AM, Roel van Dijk [EMAIL PROTECTED] wrote: I'm using the eventSubmit mechanism to call functions in the portlet from the HTML. For example: input type=submit value=Edit name=eventSubmit_doEdit and in my code: public void doEdit( RunData rundata, Portlet portlet ) throws Exception { } This works fine. However, when I do this: input type=submit value=Edit name=eventSubmit_doEditCommit The following function is NOT being called: public void doEditCommit( RunData rundata, Portlet portlet ) throws Exception { } This is probably due to the capital 'C' of Commit? (I tried inserting an underscore, but to no avail) Is there any proper documentation about the eventSubmit mechanism? I couldn't find anything with Google.. Roel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: evenSubmit question
It is related to the action handling in Turbine. The documentation is available here http://jakarta.apache.org/turbine/turbine/turbine-2.3/howto/action-event-howto.html HTH, Hema On Apr 7, 2005 4:04 AM, Hema Menon [EMAIL PROTECTED] wrote: AFAIK, atleast in Jetspeed 1.5, this would not work due to the 'C. Change the method to doEditcommit and try it out. Hema On Apr 7, 2005 3:52 AM, Roel van Dijk [EMAIL PROTECTED] wrote: I'm using the eventSubmit mechanism to call functions in the portlet from the HTML. For example: input type=submit value=Edit name=eventSubmit_doEdit and in my code: public void doEdit( RunData rundata, Portlet portlet ) throws Exception { } This works fine. However, when I do this: input type=submit value=Edit name=eventSubmit_doEditCommit The following function is NOT being called: public void doEditCommit( RunData rundata, Portlet portlet ) throws Exception { } This is probably due to the capital 'C' of Commit? (I tried inserting an underscore, but to no avail) Is there any proper documentation about the eventSubmit mechanism? I couldn't find anything with Google.. Roel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: missing dependency for Jetspeed 1.6-dev (portals-bridges-common-0.2.jar)
Ate, I am sorry, it is actually 0.3-dev jar not 0.3. I had to drag the window to see the full name:( Hema On Apr 6, 2005 2:46 AM, Ate Douma [EMAIL PROTECTED] wrote: Hema Menon wrote: I am running into the same problem. I did build Jetspeed M2, the build was successful. When M2 is built, I will get portal-bridges-common-0.3.jar. This I find odd. If you checkout the current Jetspeed-2.0 cvs head, you *will* build portals-bridges-common-0.3-dev.jar as the versions all are bumped up for the following M3 release (definition in etc/artifact-versions.ent). There isn't a version 0.3 yet. If you build M2, you should end up with portals-bridges-common-0.2.jar. I just checked and its build for me... I've been looking in the config files for Jetspeed 1.6 to find out where infact does it have the dependency with 0.2 version of portal-bridges-commons. Could not find that out:( Hema On Apr 6, 2005 1:45 AM, Ate Douma [EMAIL PROTECTED] wrote: Ate Douma wrote: Roel van Dijk wrote: Check you're $USER_HOME/build.properties if you haven't defined it there (it will override any project.properties). I know, nothing about fusion in there either, but maven still tries to download that jar file.. Ok. I'm gonna test this right now and correct this in the build script if need be... You are correct Roel. Jetspeed-1 currently depends on this jar (and Jetspeed-2.0-M2 jars as well) for building it even if you're not gonna build Fusion. Because the portals-bridges-common-0.2.jar isn't available yet from bluesunrise/maven repository you're having this problem. I've thought out a solution which will effectively remove the dependencies on both this jar and the other Jetspeed-2 jars, but I first need to consult with David Sean Taylor about it. So, we will have this fixed by tomorrow either with the jar available from bluesunrise/maven or with the generic solution I have in mind. Anyone running into this same problem today can mail me directly and I'll send you this jar (as I can't send it through the mailing list). Regards, Ate Roel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed 2.0 M2 Released
Congratulations to all involved!!! Thanks, Hema P.S Now eagerly waiting for Jetspeed 1.6 release :) On Apr 4, 2005 3:29 PM, David Sean Taylor [EMAIL PROTECTED] wrote: 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-version.tar.gz into a clean directory (as example we will use 'jetspeed') cd /jetspeed tar xfz jetspeed-2.0-M2-Tomcat-version.tar.gz For Windows: cd c:\jetspeed unzip jetspeed-2.0-M2-Tomcat-version.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-version/bin/startup.sh For Windows: execute c:\jetspeed\jakarta-tomcat-version\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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Jetspeed 2.0 M2 Released
Ate, Thanks. I've been building it from J2_deployment_refactoring branch. Since you have already merged it, I will try to build it from the CVS head later today. Will report if I run into any problems. Thanks, Hema On Apr 5, 2005 6:51 AM, Ate Douma [EMAIL PROTECTED] wrote: Hema Menon wrote: Congratulations to all involved!!! Thanks :-) Thanks, Hema P.S Now eagerly waiting for Jetspeed 1.6 release :) We're sorry we didn't have enough time this weekend to do a 1.6 (RC1) release although we intended to do so. We just ran out of time. I know David will try to work on it asap and maybe I'll be able to help out again but my time is much more limited this week. I did merge the deployment_refactoring_sync branch for Fusion though to the Jetspeed-1 cvs head, and it should now build out of the box with Jetspeed-2.0-M2! Please try that out if you have time and if you might find any issues with it please report to the list. We might be able to include a fix then before the actual release... Regards, Ate ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action Processing of JSR168 portlets within Fusion
David, Now I understand what you were referring to. Its possible. I will look into Turbine's upload service. But our application is a struts application which will handle multi-part form data. So I guess it would be worth looking into how Fusion thru Turbine handles jsr168 portlets multi-part requests. Let me look into Turbine's service anyway to see if I could get around it. If anyone could think of any ideas, please share the thoughts. Thanks, Hema On Wed, 30 Mar 2005 14:02:50 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [J2] Struts Bridge updated again
. A redirect should have been issued. As can be observed from the logs, clearly within Jetspeed 1.6, the bean properties are not being set, which results in validation failure. Can you think of any reason why it would fail? We have to use Jetspeed 1.6 considering all our existing portlets. However the reason to use 1.6 is for support of struts, which seems to be failing here. Any input is well appreciated.I am so lost :( Thanks, Hema On Fri, 21 Jan 2005 17:39:59 +0100, Ate Douma [EMAIL PROTECTED] wrote: I've committed several fixed and a few enhancements to the Struts Bridge. If you currently are using the Script Tag, make sure to read the following (they are gone): - Support anchor tag in link and rewrite tags - Improved and corrected struts-el handling and dropped all BeanInfo classes (no longer needed) - Added PortletURLType.RESOURCE which allows link and rewrite tags to also render resource urls You can specify attribute resourceURL=true and/or define in the struts-portlet-config.xml a resource path=url prefix/ as subelement of the PortletUrlType elements (just like the action and render elements). A resourceURL will be rendered just like that: a context relative url, instead of a PortletURL (the contextPath will be prefixed, just as with images). This allows you to reference a javascript source with: script language=Javascript1.1 src=html:rewrite href=../js/staticJavascript.jsp resourceURL=true// or by using for example resource path=/js// in struts-portlet-config.xml: script language=Javascript1.1 src=html:rewrite href=../js/staticJavascript.jsp// Also (the reason I started out adding this feature): table background=html:rewrite href=../images/bkg-topbar.gif/ using a resource path=/images// in struts-portlet-config.xml for jpetstore instead of what I current have: table background=c:out value=${pageContext.request.contextPath}//images/bkg-topbar.gif This allowed me to remove the jstl dependency from jpetstore again (I only use it for the above) as well as REMOVE the ScriptTag and ELScriptTag!!! - DROPPED all Script Tags as it functionality can now be realized by the rewrite tag (see above) I never liked it to have to add a non-struts based tag in the struts-portlet tld. But because providing an additional tld for only those tags seemed a bit too much. Now, with the new resourceURL support in html:link and html:rewrite I don't really need the script tags anymore. Regards, Ate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action Processing of JSR168 portlets within Fusion
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. Surprising fact is that this works with Jetspeed2, so I will have to dig deep into why CommonsMultipartrequesthandler for struts works on Jetspeed 2 and not on Jetspeed 1.6. Thanks, Hema On Wed, 30 Mar 2005 13:13:25 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action Processing of JSR168 portlets within Fusion
David, Thanks again. Do you mean to say, turbine maynot support this, which could be why it is failing on Jetspeed 1.6? Any idea where to look for as far as code is concerned? Thanks, Hema On Wed, 30 Mar 2005 13:43:02 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deployment fails on a Solaris box JS1.6/wFusion
I am trying to deploy our application running with Jetspeed1.6 with fusion build with the new j2_deployment_refactoring_sync branch. Everything works fine on a Windows environment. This was installed on a solaris box. When trying to deploy a JSR168 portlet, it fails with the following exception. ERROR: java.io.IOException: No such file or directory org.apache.jetspeed.deployment.DeploymentException: java.io.IOException: No such file or directory at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep loyPortletApplication(DeployPortletAppEventListener.java:163) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv okeDeploy(DeployPortletAppEventListener.java:148) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc h(StandardDeploymentManager.java:257) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy( StandardDeploymentManager.java:168) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep loymentEvent(StandardDeploymentManager.java:202) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys temScanner.run(StandardDeploymentManager.java:332) Caused by: java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1314) at java.io.File.createTempFile(File.java:1402) at java.io.File.createTempFile(File.java:1439) at org.apache.jetspeed.tools.deploy.JetspeedDeploy.init(JetspeedDeploy .java:75) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep loyPortletApplication(DeployPortletAppEventListener.java:158) ... 5 more Any idea what is wrong? Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment fails on a Solaris box JS1.6/wFusion- Resolved
Sorry, false alarm. The stack trace explains it all. The temp directory was present, however the catalina_tmpdir was not. Catalina.sh seems to set the java.io.tmpdir to CATALINA_TMPDIR, which in my case did not exist. Hema On Tue, 29 Mar 2005 12:54:53 -0600, Hema Menon [EMAIL PROTECTED] wrote: I am trying to deploy our application running with Jetspeed1.6 with fusion build with the new j2_deployment_refactoring_sync branch. Everything works fine on a Windows environment. This was installed on a solaris box. When trying to deploy a JSR168 portlet, it fails with the following exception. ERROR: java.io.IOException: No such file or directory org.apache.jetspeed.deployment.DeploymentException: java.io.IOException: No such file or directory at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep loyPortletApplication(DeployPortletAppEventListener.java:163) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv okeDeploy(DeployPortletAppEventListener.java:148) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc h(StandardDeploymentManager.java:257) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy( StandardDeploymentManager.java:168) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep loymentEvent(StandardDeploymentManager.java:202) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys temScanner.run(StandardDeploymentManager.java:332) Caused by: java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1314) at java.io.File.createTempFile(File.java:1402) at java.io.File.createTempFile(File.java:1439) at org.apache.jetspeed.tools.deploy.JetspeedDeploy.init(JetspeedDeploy .java:75) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep loyPortletApplication(DeployPortletAppEventListener.java:158) ... 5 more Any idea what is wrong? Thanks, Hema ~~ Hema Menon -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: status of CVS
Some jars may not be downloaded sometimes from the maven repo. Ones that I have come across is pluto, myfaces, commons-validator, itgroundwork, jdbc-se, and someothers too. You could manually download this from the values corresponding to maven.repo.remote which is (maven.repo.remote = http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/) I usually download them from http://www.bluesunrise.com/maven and copy it to your local maven/repository directory. This would get your build to succeed. HTH, Hema On Mon, 28 Mar 2005 15:55:44 -0500, Steve B. [EMAIL PROTECTED] wrote: I am trying to start a project with Jetspeed2. I am having trouble getting out of the gate. Fedora Core 2 java 1.4.2 Jetspeed CVS (today) using included HSQL First of all, to get latest source, should I be using cvs or svn? I could not find anywhere on the site where one should go - things seem to be in transition between svn and cvs? Anyway, all I could get was the cvs as part of Jakarta (ie cvs checkout jakarta-jetspeed-2). I am following the Getting Started steps. I have setup the build.properties, etc. It seems that maven cannot download anything. I keep getting for example: WARNING: Failed to download pluto-1.0.1-rc1.jar. I get this message for every jar maven tries to download. Eventually, build fails with : + | Build and Install all Jetspeed 2 jars Apache Portals JSF Bridge | Memory: 49M/76M + Attempting to download myfaces-jsf-api-1.0.9.jar. WARNING: Failed to download myfaces-jsf-api-1.0.9.jar. BUILD FAILED File.. /root/jakarta-jetspeed-2/maven.xml Element... maven:reactor Line.. 133 Column 40 The build cannot continue because of the following unsatisfied dependency: myfaces-jsf-api-1.0.9.jar Any ideas how to troubleshoot this? Or are things just in flux right now pending a M2 release? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enabling logging for Struts portal bridges
I wanted to enable the logging for struts portal bridges. I added a new log4j category for org.apache.portals with DEBUG level and also added a logfile definition . I find the log file is created but is empty. Forgive my ignorance, but is there some other configurations that I am missing? Any help very much appreciated. Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Enabling logging for Struts portal bridges
Ate, Thank you so much for clearing that out !!!. You are indeed a lifesaver:) Well, your reply would amount to a newbie FAQ towards logging as far as I am concerned. With logging enabled, I could compare my application's action processing in Jetspeed 2 and 1.6 to see why it is failing in JS1.6. I find that withing Jetspeed2, the beans populate is called with all the bean properties values, but with Jetspeed 1.6, I do not find the bean properties. This results in validation failure, which ofcourse, results in the failure. Well, that's a good start, now if only, I could figure out why the bean populate/validation is failing in Jetspeed1.6 The Jetspeed 1.6 logging clearly shows that the bean utils populate as not having any properties, hence validation failure. 3-27 18:57:21,460 [http-8080-Processor25] DEBUG CommonsMultipartRequestHandler - File upload temp dir: D:\jakarta-tomcat-5.0.28\work\Catalina\localhost\welcomegreetings 2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG BeanUtils - BeanUtils.populate(BaseForm: | , {_spage=[Ljava.lang.String;@1ed56e2}) 2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG BeanUtils - setProperty(BaseForm: | , _spage, [/saveWelcomeChanges.do]) 2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG RequestProcessor - Validating input form properties 2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG RequestProcessor - Rolling back multipart request 2005-03-27 18:57:21,476 [http-8080-Processor25] DEBUG RequestProcessor - Validation failed, returning to '/reshowWelcome.do' Jetspeed2 logging clearly shows the target bean values being set and is successful. The set property will contain all the values of the bean property.I am not sure why the bean properties are not available within Jetspeed 1.6. Any Pointers? Thanks, Hema On Sun, 27 Mar 2005 23:22:51 +0200, Ate Douma [EMAIL PROTECTED] wrote: Hema, The log4j logging configuration *within* jetspeed can/is only be used for *within* the jetspeed context. While the current configuration file still contains definitions for struts, myfaces etc., this is obsolete since we removed the global commons-logging and log4j jars (in $Tomcat/shared/lib for example). For your own portlet applications you must provide your own logging setup like putting log4j (and commons-logging if you want) in WEB-INF/lib and also provide your own log4j.properties/xml in WEB-INF/classes. I'm going over the jetspeed log4j.properties right now and will clean out several of these obsolete definitions as they definitely give the wrong signal. Thanks for bringing this up ;-) It'll be another small improvement of the M2 release. Remark: I do think it would be nice if we *could* provide a generic logging service for the portlet applications, but without getting into classloader problems on different platforms, right now I don't have a solid solution ready (although I have an idea which might work but it'll have to wait for now). Regards, Ate Hema Menon wrote: I wanted to enable the logging for struts portal bridges. I added a new log4j category for org.apache.portals with DEBUG level and also added a logfile definition . I find the log file is created but is empty. Forgive my ignorance, but is there some other configurations that I am missing? Any help very much appreciated. Thanks, Hema ~~ Hema Menon - 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FusionAccessController - Throwing Exception
I am trying to trace down an issue that I have with a Struts application only in Jetspeed 1.6 with Fusion. Looking at the logs I found an exception in the turbine log as follows. 2005-03-27 21:45:12,492 [http-8080-Processor23] ERROR JetspeedLoggingService - java.lang.Exception: redirectingat org.apache.jetspeed.fusion.modules.actions.FusionAccessController.doPerform(FusionAccessController.java:181) 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 It appears that this exception is thrown within the doPerform() method of FusionAccessController class. The method is as below public void doPerform( RunData data ) throws Exception { boolean throwit = false; try { super.doPerform(data); traverse(portlets, windowId, windowState, (JetspeedRunData)data); throwit = true; } else } ... } catch (Throwable t) { t.printStackTrace(); log.error(error in fusion access controller, t); } finally { if (contextComponent != null context != null) { contextComponent.release(context); } if (throwit) throw new Exception(redirecting); } } It looks like throwit will be true at all times and the exception will be thrown whenever the doPerform() method is called. I guess this is related to changes in the navigational state. I am not sure whether this exception is of any relevance to my problem, still thought I would think out loud. Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2 new deployment- How to undeploy an application?
Ate, If I understand it right, If I have an expanded infused war, I don't even need to deploy it in the Deploy directory. Instead dropping it in the webapps folder would be good enough. That's great. So if I do have an application that I need to 'portalize', I could modify the web.xml portlet.xml and drop it to in the webapps(ofcourse, assuming implementation of the app itself is as per spec) ready to be picked up as a JSR168 portlet. Great! Hema Ate Douma [EMAIL PROTECTED] wrote: A infused war can simply be dropped in your web/app server webapp folder and/or deployed any other way your web/app server requires. For the same reason, you can (hot) deploy an expanded *and infused* war yourself using the web/app server functionality. The new deployment model may seem more limited at first but actually its not. .. ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
J2 new deployment- How to undeploy an application?
How can we undeploy an application with the new deployment model? Previously you could delete the deployed war from the deploy directory which would then unregister the application. With the new model, the deployed WAR is removed from the deploy directory upon deployment. So how can I undeploy an application? Also, previous versions would allow you to have a war that is unpacked to be added to the deploy directory. It appears that it is necessary to have the application packaged as a WAR to be deployed. If the unpacked directory is added, the application is not deployed, a warning of Unrecognized file is displayed. I guess, it is now necessary to have the application deployed as a WAR, which is OK, I guess. Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2 new deployment- How to undeploy an application?
Ate, Thanks for the information. I was not sure how the new deployment model fully worked. I will try it out with the PALM. Thanks, Hema On Sat, 26 Mar 2005 23:27:42 +0100, Ate Douma [EMAIL PROTECTED] wrote: The new deployment model may seem more limited at first but actually its not. The real change is that deployment really now is handled by the web/app server you are using. What J2 deployment manager does when you drop a war in the deploy folder is nothing more than rewriting the web.xml (if needed) so that the required JetspeedContainerServlet is present. Then it simple *moves* the war file into the configured webapp folder of the web/app server. That will take over from there. If you have autodeploy enabled in your server it will happen automatically after that. Note: you don't have to drop your war in the deploy folder if it is already properly configured (infused J2 web.xml). You can do this yourself by hand (just look at the changes J2 makes, there are only a few), or use the JetspeedDeploy tool, which is a component in the components/deploy-tool folder. The JetspeedDeploy tool can be used standalone to infuse your war offline. A infused war can simply be dropped in your web/app server webapp folder and/or deployed any other way your web/app server requires. For the same reason, you can (hot) deploy an expanded *and infused* war yourself using the web/app server functionality. Undeploy is now something which has to be performed by your web/app server as well. For Tomcat, J2 can already handle this for you through the new PALM portlet (if you configured it correctly like in the default configuration as it comes with J2). But, you can do this directly from the Tomcat manager itself or through some other way your web/app server supports. What undeployment *not* does is unregistering the portlet application. This isn't always wanted either because you lose possible stored preferences when you do. But, the PALM portlet allows you to do this too through its delete function. Because the delete function is web/app server independent its always available. So, I hope you agree the new deployment model really brings more flexibility to the way you can deploy your application. Only undeployment now requires a little more effort (but then, how often do you really do a terminating undeployment). Another benefit of this solution is the much shorter startup time you might have noticed already (at least, after the initial deployment has been done). Regards, Ate Hema Menon wrote: How can we undeploy an application with the new deployment model? Previously you could delete the deployed war from the deploy directory which would then unregister the application. With the new model, the deployed WAR is removed from the deploy directory upon deployment. So how can I undeploy an application? Also, previous versions would allow you to have a war that is unpacked to be added to the deploy directory. It appears that it is necessary to have the application packaged as a WAR to be deployed. If the unpacked directory is added, the application is not deployed, a warning of Unrecognized file is displayed. I guess, it is now necessary to have the application deployed as a WAR, which is OK, I guess. Thanks, Hema ~~ Hema Menon - 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Action Processing of JSR168 portlets within Fusion
Hi, How is the action processing of JSR 168 portlets being handled within Fusion? I have a struts application for which the action handling works fine within Jetspeed2 but fails with Jetspeed1.6 with fusion. (I've tried the new build from j2_deployment_sync branch that Ate has been working on). The struts application uses Lookupdispatch action for the action handling. With Fusion, somehow the method to be invoked in the action class( which is determined by the value of the parameter method on submit) is not invoked. With Jetspeed 2, Struts bridge seems to handle it right. So I suspect that with Fusion forwarding(handling) the action of /to the Struts bridges, somehow it seems to be missing the parameter which is required for succesfully invoking the method by Struts action classes, which it turn results in the action not being invoked. I wil try by changing the logging level to DEBUG( I believe in Fusionlog4j) . Also will try to get the logging for Struts bridges too. Anyway, If someone could give me an idea on how it is handled, it would really help me a lot. Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2/Fusion synchronisation and release plan (Was: Re: Struts-Bridge Fusion - David/Ate/others- Pls comment)
Ate, Sure. That's fine with me. Hema On Tue, 22 Mar 2005 10:08:05 +0100, Ate Douma [EMAIL PROTECTED] wrote: Hema Menon wrote: Ate, HM I am not sure what's the show stopper for merging the deployment refactoring branch. As far as I understand from the mails going around, the changes in the refactoring branch has been breaking some Fusion stuff. If you think, the first step in getting to resolve that is to get it the branch merged, maybe it should. Well, I am not aware of all the implications, David might be able to say which way to go. /HM Synchronizing the merged deployment refactoring branch with Fusion is what I'll take onto myself. But once that's done, I could use help from you and others for testing the result and detect possible (other) problems to resolve before we should release Fusion. Getting help from some of you currently working with Fusion might help too: Hema, Jeff? HM Sure. We could offer whatever help that we can provide. A better product is the need for the community as a whole:) /HM Great. Keep monitoring the list for progress and I might just mail you directly if I have a new Fusion ready for testing. Is that alright with you? HM Well, that would be awesome! I guess it could be a Fusion with M2 release :) /HM Thats what I'm aiming for... Ate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2/Fusion synchronisation and release plan (Was: Re: Struts-Bridge Fusion - David/Ate/others- Pls comment)
I tend to agree to the good developers/bad documentors theory. However its not always easy to work with lack of/no documentation to a product. Yes, user experience is the best form of documentation. Will try to use Wiki to give more feedback, that could help others too. Hema On Tue, 22 Mar 2005 14:56:31 +0100, Raphaël Luta [EMAIL PROTECTED] wrote: Don't forget most good developers are pathologically bad documenters :) Also, in my experience, the most useful documentation usually comes from new user/developer experiences discovering the product and describing their experience and pitfalls encountered. If you really want a top notch documentation, please try and use the wiki to report on your install/config experiences, issues encountered and things you want to do with J2 but can't find how to do. This kind of feedback helps us put the emphasis where it's needed, explaining better the difficult points and not losing too much energy on documenting obscure things of limited value or miss some major functional areas. Basically, every user can help make the documentation as helpful as possible by giving feedback on their experience. Just create a new page in the Jetspeed2 wiki : http://wiki.apache.org/portals/Jetspeed2 and let us know about it ! -- Raphaël Luta - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2/Fusion synchronisation and release plan (Was: Re: Struts-Bridge Fusion - David/Ate/others- Pls comment)
I guess my words didn't come out right either. I have seen many queries in the user list is regarding the build issuses or related to installation be it multiple platform or diff db's. Every user who tries to use this product has to go thru this routine. Based on that, what I meant to say, is that user experiences is very relevant in that case, more for development of a FAQ, similar to what Wiki has right now. Hema On Tue, 22 Mar 2005 15:50:47 +0100, Raphaël Luta [EMAIL PROTECTED] wrote: Hema Menon wrote: I tend to agree to the good developers/bad documentors theory. However its not always easy to work with lack of/no documentation to a product. Yes, user experience is the best form of documentation. Will try to use Wiki to give more feedback, that could help others too. My point was not to imply that user should document the product with their experiences, simply that user feedback is a great tool for developers to build a *useful* documentation without spending too much energy documenting every features in one go... It enables us to identify where explanations are needed and what can be made more intuitive. -- Raphaël Luta - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-Bridge Fusion - David/Ate/others- Pls comment
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 :( Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JS1.6 W/Fusion release
David, I read in another email, that you are hoping for JS1.6 release soon. Will you be using JSM2 for this release? Thanks, Hema - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JS1.6 W/Fusion release
David, Thanks for the response.Hopefully, getting Fusion to work with the new deployment branch would not be that bad. Thanks, Hema On Mon, 21 Mar 2005 10:19:51 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts-Bridge Fusion - David/Ate/others- Pls comment
David, I truly understand. Since your initial plan is to release JS1.6 with M1, I might try that out. I will try it out without mixing M1 M2 jars and see where it will take me:) Thanks, Hema On Mon, 21 Mar 2005 10:26:10 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the Status of Jetspeed 2 ??
That's great news. We(so are the many JS1.5 users, I hope) are so used to the deployment using the customizer in JS1.5 since it is quite handy. Hema On Mon, 21 Mar 2005 10:28:57 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2/Fusion synchronisation and release plan (Was: Re: Struts-Bridge Fusion - David/Ate/others- Pls comment)
Ate, Its almost the end of the day( a long tiring day, I must add) for my part of the world, but hey, all of a sudden I feel all awake and energetic to start another? :) Well, thanks for the response. My comments are inline. I want to propose the following: - I like to call a vote on merging the J2 deployment_refactoring branch with CVS HEAD before the end of *this week* - if/once the deployment_refactoring branch is merged, I'll step up and work on getting Fusion running again with the current J2 CVS HEAD. I'll try to do so within a few days, (the sooner we decide if/when to merge the branch the more time I will have for it) Precondition for success though is that there are not other blocking issues with Fusion to get it working again. I don't know. Community, David? HM I am not sure what's the show stopper for merging the deployment refactoring branch. As far as I understand from the mails going around, the changes in the refactoring branch has been breaking some Fusion stuff. If you think, the first step in getting to resolve that is to get it the branch merged, maybe it should. Well, I am not aware of all the implications, David might be able to say which way to go. /HM Getting help from some of you currently working with Fusion might help too: Hema, Jeff? HM Sure. We could offer whatever help that we can provide. A better product is the need for the community as a whole:) /HM - Hopefully, beginning next week we have both J2 and Fusion in sync again - If all works out well, I'll propose to do a J2-M2 release as well as a Fusion 1.6 release next weekend (!) as I can dedicate most of my time that weekend doing the release. HM Well, that would be awesome! I guess it could be a Fusion with M2 release :) /HM I haven't done a release before though, so getting at least some help from someone from the team with previous experience will be important I think. Furthermore, I'd like to propose to do releases more often (say once every month, maybe two) at least until we reach J2-final. HM I believe incremental releases are a great way to go, but its your call, since you are the developers(the hardworking group) /HM The next release (M3) could contain the portlet selector (customizer) from David if he won't be able to commit it in time for M2. HM Customizer, is as I mentioned before, a great tool and a must. I kind of felt lost without the customizer, trying to deploy a portlet in JS2. Its great, that David has it almost ready for JS2. /HM Furthermore, we should try to get most of the outstanding bugs fixed by then. I'm willing to work on that a lot. - Furthermore, I am going to spend more time in April on writing documentation as the community really is in dire need of it. I'd say the M3 release should contain enough documentation to allow new users to start working with J2 on their own. Hopefully, other team members and/or active community users can step up too in providing more documentation... HM Well, you said it! Good documentation is a must. I haven't tried out much with JS2, since we are still with JS1.6, but is sure willing to lend a hand to get it going. /HM I know this list is quite ambitious, but well, I am ;-) HM Great! We need the energy. Its always been here, which is why we have a stable product running on JS 1.5 . /HM Anyone like to comment? Jeff, over to you:) Thanks! Hema Regards, Ate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: submit form in struts-portlet
Jeff, Is this required with Struts-bridges 0.2? I thought it applies only for 0.1 version. Thanks, Hema On Wed, 16 Mar 2005 09:46:28 -0600, Jeff Sheets [EMAIL PROTECTED] wrote: Make sure you are using the struts-portlet form tag, so you may need your html-p instead of just html. The javascript looks ok, but I usually access my forms by saying: href=javascript:submitForm(this.form); Then in your javascript you can just do something like function submitForm(theForm) { theForm.submit(); } On Wed, 16 Mar 2005 16:31:45 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi ! my problem is, that the following formular doesn't work in a portlet (with struts-bridge). i get no errors, only a white page. when i use the portlet as single app it also works fine. which way my link have to go to submit the form to my action ? i think, that the JS is the problem, isnt it ? the link:html-p:link action=/kundeSearch.dotest/html-p:link works fine, but i hav no form in my action, of course... i had a formular like this in my struts-app: html:form action=/kundeSave styleId=EDITFORM html:hidden property=kunde.kunde.pk/ ... /html:form and a save button like this: html:link styleClass=button href=javascript:submitForm();save/html:link and at last a JS-funcion like this: function submitForm() { if(checkRequiredFields()){ if(checkUsername()){ document.getElementById(EDITFORM).submit(); } } } thank for every help thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-Portal-bridge-0.2 - LookupDispatchAction fails
We have a struts application that uses LookupDispatch action to provide for related functions. With the struts portal bridge 0.2 version( I just had a new build from CVS today, and I running the Struts portlet under Fusion), I find that the Lookupdispatch action is never executed. The lookup is based on the parameter defined in the struts config file, however I find that the action class methods are not executed. I printed out the ActionRequest request parameters. I do only the one request parameter _spage and its value being the target in the application's struts config page. Am I missing the request parameters? Is this the same case as Colin was referring to? I am basically stuck at this part of our application. Can anyone please let me know what needs to be done to get this resolved? Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Getting Jetspeed started on Windows
, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs - 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can not build Jetspeed 2 on linux with jkd 1.5
What version of Jetspeed 2 (M1 or the latest source from CVS Head) are you using? I remember a comment from Jeremy Ford that the M1 source is not compatible with JDK1.5, but if you get the latest source from CVS Head, you should be able to compile with JDK1.5. Hema On Sat, 12 Mar 2005 12:11:01 -0500, Danilo Luiz Rheinheimer [EMAIL PROTECTED] wrote: Hi, I can not build jetspeed 2 on a machine running linux with jdk 1.5 Using jdk 1.4 and windows it is working ok (but I think the problem is with jdk 1.5 not linux). This is the error message : + | Build and Install all Jetspeed 2 jars Jetspeed-2 Registry Components | Memory: 58M/73M + Attempting to download jmock-SNAPSHOT.jar. jar:install: build:end: build:start: java:prepare-filesystem: [mkdir] Created dir: /home/danilo/prg/portal/jetspeed/components/registry/target/classes java:compile: [echo] Compiling to /home/danilo/prg/portal/jetspeed/components/registry/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == [javac] Compiling 52 source files to /home/danilo/prg/portal/jetspeed/components/registry/target/classes [javac] /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.4 or lower to use 'enum' as an identifier) [javac] for (Enumeration enum = bundle.getKeys(); enum.hasMoreElements();) [javac] ^ [javac] /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.4 or lower to use 'enum' as an identifier) [javac] for (Enumeration enum = bundle.getKeys(); enum.hasMoreElements();) [javac] ^ [javac] /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:284: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.4 or lower to use 'enum' as an identifier) [javac] String key = (String) enum.nextElement(); [javac] ^ [javac] 3 errors BUILD FAILED File.. /home/danilo/prg/portal/jetspeed/maven.xml Element... maven:reactor Line.. 133 Column 40 Unable to obtain goal [java:compile] -- /home/danilo/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48: ant:javac Compile failed; see the compiler error output for details. Total time: 12 minutes 55 seconds Finished at: Sat Mar 12 11:09:11 EST 2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User Attributes with Struts Portlet bridge on Fusion
Frank, Thanks. RenderRequest's getRemoteUser returned me null, however the getUserPrincipal() returns the value correctly. I thought both should return the same value. Anyway, thanks for you help. Later, Hema On Fri, 11 Mar 2005 07:08:52 -0600, Frank Villarreal [EMAIL PROTECTED] wrote: Hema, I'm not positive that you can get a list of the User's roles in a direct way without rewriting the user-management implementation ... but you can certainly check to see if a user is in a specific role by using the PortletRequest object's isUserInRole and getRemoteUser methods ... HTH, - Frank -Original Message- From: Hema Menon [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 08:48 PM To: Jetspeed Users List Subject: Re: User Attributes with Struts Portlet bridge on Fusion Thanks Frank. Redeployment seems to take care of it. I was thinking of getting the login name, not the user first name. Now, how can I get the logged in user's loginname and role? Thanks, Hema On Thu, 10 Mar 2005 16:36:37 -0600, Frank Villarreal [EMAIL PROTECTED] wrote: Make sure you re-deploy your portlet application, b/c J2 caches the portlet.xml in the database and will not pick up changes to your portlet.xml file if you edit it directly in ${webapps}/yourapp/WEB-INF/portlet.xml directly ... - Frank -Original Message- From: Hema Menon [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 04:28 PM To: Jetspeed-User Subject: User Attributes with Struts Portlet bridge on Fusion I am trying to get the user attributes (user name) from a servlet filter in my struts application. I have the user-attribute defined in portlet.xml. However when I try to get the user attributes from the PortletRequest, I am getting null. Is there something I am missing? The code gets the PortletRequest first and then tries to get the USER_INFO attribute from the PortletRequest. PortletRequest portletReq = (PortletRequest)request.getAttribute(javax.portlet.request); Map userInfo = (Map) portletReq.getAttribute(PortletRequest.USER_INFO); This returns a null for userInfo. Can someone suggest a better way to getting the User information from the struts portlet? Thanks, Hema -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for help in getting Jetspeed-2 running on Windows:Part 2
start.production.server, quickStart are all targets within the maven.xml not separated script files. For changing the directory, all it means is for you to change directory to whereever you have jetspeed-2 base. Hema On Fri, 11 Mar 2005 12:09:26 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks. I've modified my build.properties according to your suggestion. I'm now at Step 5 on http://portals.apache.org/jetspeed-2/getting-started.html;. The instructions are: * 1. If you are using the Hypersonic SQL database, make sure you have terminated the test HSQLserver. Then in the same terminal, start the production Hypersonic database by typing maven start.production.server * 2. (in seperate window/terminal session) cd ${jetspeed-2-home} * 3. maven quickStart This will recreate the DB to deploy into. WARNING This will drop all the tables and data in the production database. * 4. Start up Tomcat. With a browser, go to: http://localhost:8080/jetspeed Bullet 1 is apparently instructing me to run a script called start.production.server with Maven. I've searched and cannot find a file by that name. I have started the HSQL database using the batch file in the %TOMCAT_HOME%/jetspeed-database directory. There is no batch file for stopping the database and the contents of the batch file to start it gives no clue as to how it is accomplished gracefully. If someone knows how and will tell me, I promise to scour the HSQL site at SourceForge.net later. Scout's honor. O.K., the database is now started. Bullet 2 instructs me to change to a directory via a variable I don't have and whose value is a mystery as well. Bullet 3 give me a hint on Bullet 2. If I find a directory with a script called quickStart I may just be in the right place. Alas, there is no quickStart anywhere on my disk for Maven to run. Bullet 4 has me start Tomcat and navigate to a URL. When I do this I get what is for me, an undecipherable stack trace. Tomcat is working, by the way, so the problem must be further up. Has anyone got some help for me? Thanks -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Scott T Weaver [EMAIL PROTECTED] Sent: Fri, 11 Mar 2005 10:29:07 -0500 To: 'Jetspeed Users List' jetspeed-user@jakarta.apache.org Subject: RE: Request for help in getting Jetspeed-2 running on Windows:Part 1 I think you might be able to ignore this property entry as it is only used when building from source, and not even be used there anymore. I build and deploy on Linux, Windows and Solaris on a daily basis. I will post my windows build.properties. It may help point you in the right direction. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed 1.6-Fusion HELP!!!!
David, I too would like to echo what Jeff is talking about. For us too, Fusion was a must to get our struts portlet running, otherwise we were very much happy with what Jetspeed 1.5 offered. We are not yet ready to move to JS2, due to the changes from JS1.5. So Fusion is doing for us what JS2 has in the offing. My vote would be to not deprecate Fusion. P.S - Sorry to hear about your disappointment. We, the users of Jetspeed value your and the contributions of the developers here at Jetspeed, very much. Thanks. Thanks, Hema On Thu, 10 Mar 2005 13:43:04 -0600, Jeff Sheets [EMAIL PROTECTED] wrote: David, I definitely vote to support Fusion. My reasoning is that Jetspeed 1 is much more stable and complete than Jetspeed 2, even if the architecture is lacking. With Jetspeed 1 and the JSR 168 capabilities of 1.6 Fusion, we would have everything we need until 2 if finally finished. And I see I was not correct about the build being ok. After checking out the use-fusion.xml file, I see that Jetspeed 1 builds with the Jetspeed 2 M1 files that were still cached in Maven. Switching this to M2-dev does break the build. I, for one, highly value your work on Fusion. Without Fusion, we would have found another portal to work with, because JSR-168 is a high priority item for our portlets. Thank you, -- Jeff On Thu, 10 Mar 2005 10:52:54 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed 1.6-Fusion HELP!!!!
If anyone's asking :) , would be great to have. 1.6.1 release with M2, 1.6.2 with the Final Release Hema On Thu, 10 Mar 2005 13:35:12 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
User Attributes with Struts Portlet bridge on Fusion
I am trying to get the user attributes (user name) from a servlet filter in my struts application. I have the user-attribute defined in portlet.xml. However when I try to get the user attributes from the PortletRequest, I am getting null. Is there something I am missing? The code gets the PortletRequest first and then tries to get the USER_INFO attribute from the PortletRequest. PortletRequest portletReq = (PortletRequest)request.getAttribute(javax.portlet.request); Map userInfo = (Map) portletReq.getAttribute(PortletRequest.USER_INFO); This returns a null for userInfo. Can someone suggest a better way to getting the User information from the struts portlet? Thanks, Hema -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[JS1.6 W/fusion]Getting the user information in Struts portlet
We have a struts portlet running under Jetspeed 1.6 with Fusion. Currently we have a servlet filter that adds dummy user information to the session. How can I get the user information from Jetspeed so that I can replace the dummy information with the user info? I also need to get the user role information too. With our 1.5 applications, we used to get the user info from the Rundata. I could find an object of DefaultJetspeedRundata instance from the request rundata attribute. However I could not cast it to DefaultJetspeedRundata, because it thru classcastexception. Its very likely, that it cannot find the jetspeed rundata classes. For JS1.6 with fusion, I have been following the Wiki instructions. I would first build and install JS2 and then build and install JS1.6 . Any inputs very much appreciated. Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[JS1.6/Fusion] Database tables for Fusion
Is there any way to know what database tables are required for JS1.6 with Fusion? Since I always install JS2 and then JS1.6, I am not sure what all tables are required for JS1.6. I would assume all the tables required for 1.5 with additional tables related to the JS2 dependency in Fusion. Can someone help to identify these additional tables? Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Server Faces no JetSpeed 1
I believe Jetspeed 1.6 with Fusion would support this. Hema On Fri, 4 Mar 2005 19:45:22 -0800 (PST), Ray Clark [EMAIL PROTECTED] wrote: I thought I read that JSF isn't supported util Jetspeed 2. Ray --- João Paulo Delgado Preti [EMAIL PROTECTED] wrote: Someone knows if Java Server Faces can be used in Jetspeed 1.5? Thanks, João Paulo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portlet is Not Available after including struts-portlet
Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:437) at org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111) at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209) at org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:55) at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209) at org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127) at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209) at org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:122) at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209) at org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:191) at org.apache.jetspeed.engine.AbstractEngine.service(AbstractEngine.java:257) at org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:225) 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.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: questions
You could apply the patch as suggested by Randy in this link http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg14839.html I build Jetspeed for Sybase and I run into similar problems. So usually, I modify the schemas manually before building Jetspeed and it seems to work fine. Hema On Wed, 2 Mar 2005 18:10:07 -0600, Litton, Tom - CEPM [EMAIL PROTECTED] wrote: I should have looked before asking the second question. I see the mssql scripts now, but i'm getting the error: C:\jetspeed-2\jetspeed-database\scripts\build.xml:39: java.sql.SQLException: Int roducing FOREIGN KEY constraint 'SSO_PRINCIPAL_TO_REMOTE_FK_2' on table 'SSO_PRI NCIPAL_TO_REMOTE' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Is there a work around for this? Thanks, Tom -Original Message- From: Litton, Tom - CEPM [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:30 PM To: jetspeed-user@jakarta.apache.org Subject: questions First question: Is there an archive for this list? The maven generated site doesn't have a link. Second question: Does jetspeed 2 support MS SQL server yet? If so, which release? Third question: Is there any documentation for installing jetspeed directly from the binaries (ie, without the maven scripts)? I see the ant scripts for initializing the db, so I'm assuming its possible. Is it just running db.create and copying the shared, webapp, and conf directories to the tomcat home? Or is there more configuration I should be aware of? Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed-2: Drop support for Tomcat 4...? Please comment/vote!
I see no reason to stick with Tomcat 4. Another vote to drop 4! Hema On Tue, 1 Mar 2005 15:26:23 +0530, Gaurav Vaish [EMAIL PROTECTED] wrote: And, if there are no big objections, I'd like to vote on dropping Tomcat 4 support! +1 -- Cheers, Gaurav Vaish http://www.mastergaurav.org http://mastergaurav.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: regarding roadmaps
David, I have to ask since we are relying on the release of JS1.6. Will there be a release for Jetspeed 1.6 before M2 release of JS2? Thanks, Hema On Thu, 24 Feb 2005 15:56:15 -0800, David Sean Taylor [EMAIL PROTECTED] wrote: 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using MySQL with J2 - setup problem
Marina, Shouldn't there be a default name entry in your build.properties file? I have used it with Sybase and I have the following entry in my build.properties. org.apache.jetspeed.test.database.default.name = sybase Hema On Thu, 24 Feb 2005 18:37:18 -0800 (PST), Marina [EMAIL PROTECTED] wrote: Hi, I finally got around to switch from HSQLDB to MySQL and ran into a build problem. I setup MySQL DB schema and users per J2 instructions (created 'j2test' and 'j2' schemas and the 'jetspeed2' user that has all writes for those schemas). I have also modified J2's build.properties to use MySQL (I'm including a snippet below). After that, I do the following: 1. start MySQL DB 2. cd [EMAIL PROTECTED] maven allClean - OK maven allBuild - Error: Attempting to download maven-torque-plugin-3.2.jar. 2/6K 6/6K 6K downloaded build:start: allBuild: check.required.properties: torque:init: db.scripts.gen: [echo] Generating SQL schema creation scripts for HSQLDB [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\hsql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for MySQL [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\mysql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for Oracle [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\oracle\report.portal.sql.generation [echo] Generating SQL schema creation scripts for MS SQL [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\mssql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for Postgres [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\postgres\report.portal.sql.generation BUILD FAILED File.. C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\maven.xml Element... sql Line.. 355 Column 39 Source file does not exist! Total time: 12 seconds Finished at: Thu Feb 24 21:27:54 EST 2005 Here is my build.properties (relevant parts): # Override the database connection and driverproperties in your ${USER_HOME}/build.properties appropriately # See: # http://portals.apache.org/jetspeed-2/database.html org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2test org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver org.apache.jetspeed.test.database.user = jetspeed2 org.apache.jetspeed.test.database.password = jetspeed2 org.apache.jetspeed.test.jdbc.drivers.path=C:/Marina/MySQL/mysql-connector-java-3.0.16-ga/mysql-connector-java-3.0.16-ga-bin.jar org.apache.jetspeed.test.database.default.name=j2test org.apache.jetspeed.test.database.ojb.platform=mysql org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2 org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver org.apache.jetspeed.production.database.user = jetspeed2 org.apache.jetspeed.production.database.password = jetspeed2 org.apache.jetspeed.production.jdbc.drivers.path=C:/Marina/MySQL/mysql-connector-java-3.0.16-ga/mysql-connector-java-3.0.16-ga-bin.jar org.apache.jetspeed.production.database.default.name=j2 org.apache.jetspeed.production.database.ojb.platform=mysql (I am not sure about the ojb.platform property, there were no directions on what it should be set to for MySQL, so I decided to set it to 'mysql' instead of keeping the default value of 'Hsqldb' ...) Any idea what I did wrong? Thanks! Marina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using MySQL with J2 - setup problem
Marina, What I meant to say is that, I believe the default name should be the type of database name, so in your build script it should be mysql instead of j2 and j2test. If you look at the sample build properties, it contains hsql for both test and production default database name. org.apache.jetspeed.test.database.default.name=hsql org.apache.jetspeed.test.database.ojb.platform=Hsqldb Hema On Thu, 24 Feb 2005 18:37:18 -0800 (PST), Marina [EMAIL PROTECTED] wrote: Hi, I finally got around to switch from HSQLDB to MySQL and ran into a build problem. I setup MySQL DB schema and users per J2 instructions (created 'j2test' and 'j2' schemas and the 'jetspeed2' user that has all writes for those schemas). I have also modified J2's build.properties to use MySQL (I'm including a snippet below). After that, I do the following: 1. start MySQL DB 2. cd [EMAIL PROTECTED] maven allClean - OK maven allBuild - Error: Attempting to download maven-torque-plugin-3.2.jar. 2/6K 6/6K 6K downloaded build:start: allBuild: check.required.properties: torque:init: db.scripts.gen: [echo] Generating SQL schema creation scripts for HSQLDB [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\hsql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for MySQL [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\mysql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for Oracle [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\oracle\report.portal.sql.generation [echo] Generating SQL schema creation scripts for MS SQL [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\mssql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for Postgres [torque-sql] Using classpath [torque-sql] Generating to file C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\target\src\sql\postgres\report.portal.sql.generation BUILD FAILED File.. C:\Marina\Harvard\Projects\jakarta-jetspeed-2-MYSQL\maven.xml Element... sql Line.. 355 Column 39 Source file does not exist! Total time: 12 seconds Finished at: Thu Feb 24 21:27:54 EST 2005 Here is my build.properties (relevant parts): # Override the database connection and driverproperties in your ${USER_HOME}/build.properties appropriately # See: # http://portals.apache.org/jetspeed-2/database.html org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2test org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver org.apache.jetspeed.test.database.user = jetspeed2 org.apache.jetspeed.test.database.password = jetspeed2 org.apache.jetspeed.test.jdbc.drivers.path=C:/Marina/MySQL/mysql-connector-java-3.0.16-ga/mysql-connector-java-3.0.16-ga-bin.jar org.apache.jetspeed.test.database.default.name=j2test org.apache.jetspeed.test.database.ojb.platform=mysql org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2 org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver org.apache.jetspeed.production.database.user = jetspeed2 org.apache.jetspeed.production.database.password = jetspeed2 org.apache.jetspeed.production.jdbc.drivers.path=C:/Marina/MySQL/mysql-connector-java-3.0.16-ga/mysql-connector-java-3.0.16-ga-bin.jar org.apache.jetspeed.production.database.default.name=j2 org.apache.jetspeed.production.database.ojb.platform=mysql (I am not sure about the ojb.platform property, there were no directions on what it should be set to for MySQL, so I decided to set it to 'mysql' instead of keeping the default value of 'Hsqldb' ...) Any idea what I did wrong? Thanks! Marina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to deploy JSR-168 portlets with fusion
Fabrice, Does the deployed war or webapp contains portlet.xml? Hema On Tue, 08 Feb 2005 12:29:51 +0100, Fabrice Dewasmes [EMAIL PROTECTED] 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 ? Thanks in advance for your replies, regards, Fabrice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Admin password for jetspeed 2
configured security rules that is). Once you have re enabled the admin user and can login with admin/admin, you can use the administrative UserManagement portlets to enable other user accounts which might have been locked out again. Note: at first login, you'll be required to change the password again ;-) And yes, you are right, we should document this more prominently I guess :-) Regards, ATe Jack Lund wrote: Hi. I apologize if this is a newbie question, but I'm having a lot of trouble logging in as admin with my jetspeed 2 installation. The jetspeed 2 docs don't seem to have any indication (that I have seen) of what the default admin password is, and I've tried the one listed in the jetspeed 1 docs, plus any others I could think of. I've also tried looking for docs on where the passwords are kept, with no luck. I've also tried just looking through the DB tables, again with no luck. Please, any assistance would be greatly appreciated. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [J1] ConnectionPool
Torque.properties is also configured to use our DataSource Factory. Hema On Thu, 3 Feb 2005 10:10:50 -0600, Hema Menon [EMAIL PROTECTED] wrote: Daniel, We are using Connection Pooling thru Apache commons. For our configuration, in the jetspeed.xml, we changed the default factory to use our DataSourceFactory, which uses commons connection pooling. ResourceParams name=jdbc/jetspeed parameter namefactory/name valuecom.xx.yy.zz.abcDataSourceFactory/value /parameter Hema On Thu, 3 Feb 2005 16:33:03 +0100, Daniel Brose [EMAIL PROTECTED] wrote: Hi all, using Jetspeed 1.6-dev I want to use the Torque ConnectionPool for accessing my own database in my portlets. How can I do so? I can't find any class in the javadoc that seems to fit (by classname) my needs. Any help would be appreciated Regards -- Daniel Brose http://www.daniel-brose.de mailto:[EMAIL PROTECTED] ICQ-UIN: 5366841 Mobil: 0173/2903411 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [J1] ConnectionPool
Daniel, We are using Connection Pooling thru Apache commons. For our configuration, in the jetspeed.xml, we changed the default factory to use our DataSourceFactory, which uses commons connection pooling. ResourceParams name=jdbc/jetspeed parameter namefactory/name valuecom.xx.yy.zz.abcDataSourceFactory/value /parameter Hema On Thu, 3 Feb 2005 16:33:03 +0100, Daniel Brose [EMAIL PROTECTED] wrote: Hi all, using Jetspeed 1.6-dev I want to use the Torque ConnectionPool for accessing my own database in my portlets. How can I do so? I can't find any class in the javadoc that seems to fit (by classname) my needs. Any help would be appreciated Regards -- Daniel Brose http://www.daniel-brose.de mailto:[EMAIL PROTECTED] ICQ-UIN: 5366841 Mobil: 0173/2903411 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Redirect when using SSL with Tomcat
Chris, I've tried it in a different way. In the Login page, I use javascript to detect if the request comes with a scheme of HTTP or HTTPS and based on that would redirect the request to use HTTPS. We use Tomcat 5.0.28 and JS 1.5 SSL Connector is enabled in the Tomcat configuration. Hema On Tue, 18 Jan 2005 09:08:47 -0500, chris holt [EMAIL PROTECTED] wrote: I sent the following email with no response so I would like to ask my question in a different way to see if anybody has done what I'm trying to do. Has anybody successfully setup Tomcat 5.0.28 with Jetspeed 1.5 and forced their users to use a secure connection to their portal? Thanks, Chris -Original Message- From: chris holt [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 10:57 AM To: Jetspeed Users List Subject: RE: Problem with Redirect when using SSL with Tomcat I have been researching this more by debugging and it appears that the HttpServletRequest class that the TurbineRunDataService class uses to populate the ServerData class is returning the wrong port. This is feeling like a problem with Tomcat. Has anybody else hit a problem similar to this one. Thanks, Chris -Original Message- From: chris holt [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 6:01 PM To: Jetspeed Users List Subject: Problem with Redirect when using SSL with Tomcat I am using Tomcat 5.0.28 with Jetspeed 1.5 and I am having a problem using SSL. I have set the following in the web.xml file of jetspeed to force use of SSL when talking to portal. security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint descriptionConstrain the entire application to force use of HTTPS/description transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint When the user goes to http://localhost:8080/jetspeed Tomcat correctly redirects the browser to https://localhost:8443/jetspeed. However, the anonymous user login page takes forever to come up, and when it does come up the skin isn't working. There is no borders, tab controls, or anything. I believe the problem has to do with the base tag being base href=https://mroadster:8080/jetspeed/;. I can see why this would make things slow because of all the redirects but I don't understand why the stylesheet isn't working correctly. However, if the user goes to https://localhost:8443/jetspeed/ everything works fine. Is there a why to get the $clink.External command to store the redirected URL instead. Thanks, Chris - 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can you apply a patch on xml files? ( was Re: Invalid Column Name error - JS 2 build - SecurityAccessImpl
I don't mind answering my own queries, since I hope someone will later benefit from the reply if they encounter a similar situation:) Anyway, I find that security_repository.xml and sso_repository.xml contains the column names in lower-case, whereas the table column names themselves are defined in upper case. In my case, Sybase throws exception, other databases(say Oracle) may not. Will it be possible to update these files to reflect the column names in the upper case? Thanks, Hema On Fri, 14 Jan 2005 14:38:53 -0600, Hema Menon [EMAIL PROTECTED] wrote: Hello, I was successful in building Jetspeed 2 from the source checked out from CVS today. My database for deployment is Sybase. After deploying jetspeed when I try to login I get the SQLException due to invalid column name. The error stack trace is provided below. I am not why the code is looking for a Column name: creation_date, when the column name is indeed CREATION_DATE. It appears that getInternalUserPrincipal() method of SecurityAccessImpl is creating the query using QueryFactory where this is failing. From what I understand it is using SECURITY_PRINCIPAL table where CREATION_DATE coulmn is defined. I am not sure failure of the query due to case-sensitiveness is specific to Sybase. Can anyone let me know why this is happening? Stack trace follows: org.springframework.jdbc.UncategorizedSQLException: (OJB operation): encountered SQLException [Invalid column name 'creation_date'. ]; nested exception is com.sybase.jdbc2.jdbc.SybSQLException: Invalid column name 'creation_date'. org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:94) org.springframework.orm.ojb.OjbAccessor.convertJdbcAccessException(OjbAccessor.java:107) org.springframework.orm.ojb.OjbAccessor.convertOjbAccessException(OjbAccessor.java:89) org.springframework.orm.ojb.PersistenceBrokerTemplate.execute(PersistenceBrokerTemplate.java:155) org.springframework.orm.ojb.PersistenceBrokerTemplate.getObjectByQuery(PersistenceBrokerTemplate.java:178) org.apache.jetspeed.security.spi.impl.SecurityAccessImpl.. ..) org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) $Proxy2.getInternalUserPrincipal(Unknown Source) org.apache.jetspeed.security.spi.impl.DefaultUserSecurityHandler.getUserPrincipal(DefaultUserSecurityHandler.java:61) Thanks, Hema ~~ Hema Menon -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Jetspeed2
Mike, I did build JS2 from CVS successfuly today. Source was checked out today. What is the compile error that maven is reporting? Also delete the .cache files from the maven plugin directory before trying again.( Wiki link http://wiki.apache.org/portals/Jetspeed2/ResolvingPossibleMavenIssues ) Even though the build was successful, I had a problem which I will post separately. Hema On Fri, 14 Jan 2005 11:04:07 -0600, Mike Shoemaker [EMAIL PROTECTED] wrote: I've followed the getting started steps listed on the website @ http://portals.apache.org/jetspeed-2/getting-started.html I'm having a problem with the maven allClean allBuild step. During the build I see various messaes stating that various jars failed to download, and once the script stops I get the following. BUILD FAILED File.. C:\Documents and Settings\mshoemaker\projects\jakarta-jetspeed-2\maven.xml Element... maven:reactor Line.. 133 Column 40 Unable to obtain goal [java:compile] -- C:\Documents and Settings\mshoemaker\.maven\cache\maven-java-plugin-1.5\plugin.j elly:63:48: ant:javac Compile failed; see the compiler error output for details. Total time: 7 minutes 31 seconds Finished at: Fri Jan 14 10:01:23 CST 2005 It seems to me that this is more of a maven problem than Jetspeed. Is there a way to down load a prebuilt binary that is ready to deploy? What is the appropriate way to remedy this? Download all the dependencies one by one? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invalid Column Name error - JS 2 build - SecurityAccessImpl
Hello, I was successful in building Jetspeed 2 from the source checked out from CVS today. My database for deployment is Sybase. After deploying jetspeed when I try to login I get the SQLException due to invalid column name. The error stack trace is provided below. I am not why the code is looking for a Column name: creation_date, when the column name is indeed CREATION_DATE. It appears that getInternalUserPrincipal() method of SecurityAccessImpl is creating the query using QueryFactory where this is failing. From what I understand it is using SECURITY_PRINCIPAL table where CREATION_DATE coulmn is defined. I am not sure failure of the query due to case-sensitiveness is specific to Sybase. Can anyone let me know why this is happening? Stack trace follows: org.springframework.jdbc.UncategorizedSQLException: (OJB operation): encountered SQLException [Invalid column name 'creation_date'. ]; nested exception is com.sybase.jdbc2.jdbc.SybSQLException: Invalid column name 'creation_date'. org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:94) org.springframework.orm.ojb.OjbAccessor.convertJdbcAccessException(OjbAccessor.java:107) org.springframework.orm.ojb.OjbAccessor.convertOjbAccessException(OjbAccessor.java:89) org.springframework.orm.ojb.PersistenceBrokerTemplate.execute(PersistenceBrokerTemplate.java:155) org.springframework.orm.ojb.PersistenceBrokerTemplate.getObjectByQuery(PersistenceBrokerTemplate.java:178) org.apache.jetspeed.security.spi.impl.SecurityAccessImpl.. ..) org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) $Proxy2.getInternalUserPrincipal(Unknown Source) org.apache.jetspeed.security.spi.impl.DefaultUserSecurityHandler.getUserPrincipal(DefaultUserSecurityHandler.java:61) Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About j2M1 installer/build scripts - (was Re: Building Jetspeed2)
I thought of using the binary installer for J2 MI, unfortunately it does not have support for my deployment database, Sybase. Same goes for the manual build scripts. Could you consider including a Sybase entry to the build scripts and the installer, in future, perhaps? I could send out the modified build scripts and sql schemas for Sybase and maybe offer support for updating the scripts for future builds. Thanks, Hema On Fri, 14 Jan 2005 10:19:47 -0700, Randy Watler [EMAIL PROTECTED] wrote: Mike, There is a recent J2 M1 binary release and an installer. Well, I finally got the binary installer for J2 M1 finished, here is a temporary link: http://www.binary-designs.net/downloads.html. The download takes a little time to start but fairly quick once it does. The only requirements are that you have a compatible version of the JDK 1.4.2, installed, see: http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk1 and The Apache Portals community is pleased to announce the release of Jetspeed 2.0 M1. This is our first milestone release and brings Jetspeed closer to a final 2.0 release. Feedback is greatly appreciated, especially in the form of bug reports. You can download Jetspeed 2.0 M1 from: http://www.apache.org/dist/portals/jetspeed-2/ Release notes and installation instructions are at: http://www.apache.org/dist/portals/jetspeed-2/JETSPEED-2.0-M1-README.txt The Jetspeed Project Wiki and Home pages can be found here: http://wiki.apache.org/portals/Jetspeed2 http://portals.apache.org/jetspeed-2/ You can also probably try to rerun your maven build and it will try to reload the missing jars... it might take a few iterations if you are not on a reliable connection. Good luck! Randy ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to JetSpeed
Deepa, Do you have a need to compile Jetspeed 1.5? If not, you could download the release binaries available at http://jakarta.apache.org/site/binindex.cgi Hema On Fri, 14 Jan 2005 14:57:18 -0600, deepa chopra [EMAIL PROTECTED] wrote: I am new to jetSpeed. I am trying to use the jetspeed1.5. I got jetspeed1.5-src.zip file from the internet and tried to compile. It does not work form me. I used build.xml included with the project, for compiling. I tried to use IntelliJ and tried the jar target. Does the build.xml work? It has path that do not match to the files present in the project? Any suggestions? Thanks Deepa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JLogoutUser
In JS1.5, you could create your own class which extends ActionEvent instead of JLogoutUser. Within this class you can redirect on logout to any other page. You also need to modify the turbine resources property action.logout to use your class instead of JLogoutUser. Hema On Thu, 6 Jan 2005 16:15:32 -0300, Carlos Torres [EMAIL PROTECTED] wrote: Hi people, when I click in the exit link in jetspeed screen, it calls the url above: http://localhost:8080/jetspeed/portal/action/JLogoutUser that is a action of a portlet. Anybody how to make it go to another page(jsp) or to redirect it to another jsp? Thank you. Regards, Carlos Alberto Torres -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi and getting started
I believe this refers to the requirement of JDK mentioned here http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk14 You need jdk1.4.2_04 or above. Hema On Wed, 05 Jan 2005 13:36:57 +0100, Lacerda, Wellington (AFIS) [EMAIL PROTECTED] wrote: Hi, The error reported by the JSP remains the same, but that`s what the logs tell about: org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception! at org.apache.jetspeed.engine.AbstractEngine.init(AbstractEngine.java:155) at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:64) at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:135) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:104 4) CAUSED BY... org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'java.util.prefs.PreferencesFactory' defined in URL [file:/C:/Tomcat 5.0.18/webapps/jetspeed/WEB-INF/assembly/jetspeed-spring.xml]: Initialization of bean failed; nested exception is org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.InternalError: Can't instantiate Preferences factory java.lang.ClassNotFoundException: org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory. createBean(AbstractAutowireCapableBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory. createBean(AbstractAutowireCapableBeanFactory.java:205) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstrac tBeanFactory.java:204) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstrac tBeanFactory.java:136) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInsta ntiateSingletons(DefaultListableBeanFactory.java:236) at org.springframework.context.support.AbstractApplicationContext.refresh(Abstra ctApplicationContext.java:284) at org.springframework.context.support.FileSystemXmlApplicationContext.init(Fi leSystemXmlApplicationContext.java:114) at org.springframework.context.support.FileSystemXmlApplicationContext.init(Fi leSystemXmlApplicationContext.java:96) at org.apache.jetspeed.components.SpringComponentManager.init(SpringComponentM anager.java:44) at org.apache.jetspeed.engine.SpringEngine.initComponents(SpringEngine.java:108) at org.apache.jetspeed.engine.AbstractEngine.init(AbstractEngine.java:135) CAUSED BY... org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.InternalError: Can't instantiate Preferences factory java.lang.ClassNotFoundException: org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl at org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactory Impl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.s So, it seems to be related to the preferences framework. Could the cause be the JVM used? Is there any restriction regarding the JVM? Anyway, what could it be? Thanks a lot, Wellington -Original Message- From: Aleksandr Vushkan [mailto:[EMAIL PROTECTED] Sent: 05 January 2005 12:01 To: Jetspeed Users List Subject: Re: Hi and getting started Hello! Yes, just a plain out-of-the-box startup. I suppose everything was boxed in with the db. Should I run any script on it before trying to play with the program? try to run start-database.sh(.bat) script from $TOMCAT_HOME/jetspeed-database/ directory - restart tomcat, and browse http://localhost:8080/jetpseed/portal/ -- With best wishes Aleksandr [EMAIL PROTECTED] [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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j2 initializing error
Do you have the Database running? Hema On Wed, 5 Jan 2005 13:01:51 -0600 (CST), Krish Chandra [EMAIL PROTECTED] wrote: hi, I tried installing J2. I have a tomcat-5.0.28 and using j2sdk1.4.06 and apache ant-1.6.2. My tomcat http port is 2925. Below is the stack trace when I start my tomcat. Does anyone know what the problem might be. thanks in advance, -Krish PS: I checked the tomcat/shared/lib and I do have commons-collections-2.1.jar and the class CursorableLinkedList is in it. Using CATALINA_BASE: /ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /ccs/mssl/ecs/dmefs/krish/j2sdk1.4.2_06 - Initializing Coyote HTTP/1.1 on http-2925 - Initialization processed in 3400 ms - Starting service Catalina - Starting Servlet Engine: Apache Tomcat/5.0.28 - XML validation disabled - Create Host deployer for direct deployment ( non-jmx ) - Processing Context configuration file URL file:/ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true - Processing Context configuration file URL file:/ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balancer.xml - Processing Context configuration file URL file:/ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manager.xml - Processing Context configuration file URL file:/ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/conf/Catalina/localhost/jetspeed.xml - Setting useContextClassLoader = false - Delegating to '[EMAIL PROTECTED]' - Jetspeed Starting Initialization... - JetspeedServlet identifying web application root... - JetspeedServlet identifed web application root as /ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/webapps/jetspeed/ - JetspeedServlet attempting to create the portlet engine... - Jetspeed environment attempting to initialize portal Engine... JNDI System Property flag null WARN: IOException, CatalinaPAM will only function as FileSystemPAM: java.net.ConnectException: Connection refused org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'java.util.prefs.PreferencesFactory' defined in URL [file:/ccs/mssl/ecs/dmefs/students/krish/jakarta-tomcat-5.0.28/webapps/jetspeed/WEB-INF/assembly/jetspeed-spring.xml]: Initialization of bean failed; nested exception is org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList at org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactoryImpl.java:69) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j2 initializing error
Are you using j2sdk1.4.06? You need atleast 1.4.2_02 or above according to the bug related to http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk14 On Wed, 5 Jan 2005 13:01:51 -0600 (CST), Krish Chandra I tried installing J2. I have a tomcat-5.0.28 and using j2sdk1.4.06. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j2 initializing error
Check if you do have these files 1. verify that these files are present under webapps/jetspeed/WEB-INF/classes in you tomcat install: OJB-logging.properties OJB.properties repository_database.xml repository.dtd repository_internal.xml repository.xml TEMP.xml Hema On Wed, 5 Jan 2005 14:51:14 -0600 (CST), Krish Chandra [EMAIL PROTECTED] wrote: I am using j2sdk1.4.2_06 missed out the 2_. -Krish On Wed, 5 Jan 2005, Hema Menon wrote: Are you using j2sdk1.4.06? You need atleast 1.4.2_02 or above according to the bug related to http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk14 On Wed, 5 Jan 2005 13:01:51 -0600 (CST), Krish Chandra I tried installing J2. I have a tomcat-5.0.28 and using j2sdk1.4.06. - 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gmail Invitations
I've got 5 more invitations left if anyone else needs it. I must say it is quite useful for Jetspeed or other mailing list messages :) Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gmail Invitations
Hi, Unfortunately, I do not have any more available. I will forward you one if I get more. Hema On Tue, 04 Jan 2005 13:30:28 -0700, BaTien Duong [EMAIL PROTECTED] wrote: Please give me 1 and the instruction how to activate it. Thanks BaTien [EMAIL PROTECTED] Hema Menon wrote: I've got 5 more invitations left if anyone else needs it. I must say it is quite useful for Jetspeed or other mailing list messages :) Hema ~~ Hema Menon - 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] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2 release
Jetspeed M1 release is already out. Here's the relevant quotes from David Scott. David Sean Taylor [EMAIL PROTECTED] to Jetspeed Show options 12/5/04 The Apache Portals community is pleased to announce the release ofJetspeed 2.0 M1. This is our first milestone release and brings Jetspeed closer to a final 2.0 release. Feedback is greatly appreciated, especially in the form of bug reports. You can download Jetspeed 2.0 M1 from: http://www.apache.org/dist/portals/jetspeed-2/ Release notes and installation instructions are at: http://www.apache.org/dist/portals/jetspeed-2/JETSPEED-2.0-M1-README.txt The Jetspeed Project Wiki and Home pages can be found here: http://wiki.apache.org/portals/Jetspeed2 http://portals.apache.org/jetspeed-2/ Scott T. Weaver to Jetspeed, Well, I finally got the binary installer for J2 M1 finished, here is a temporary link: http://www.binary-designs.net/downloads.html. The download takes a little time to start but fairly quick once it does. The only requirements are that you have a compatible version of the JDK 1.4.2, installed, see: http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk14 for mor info. Hema On Tue, 4 Jan 2005 16:16:46 -0600 (CST), Krish Chandra [EMAIL PROTECTED] wrote: hi, I had read some time back that J2 would be released end of december. I havent since then heard much about it. Can anyone tell me tentatively when the first official release will be. -thanks, Krish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSR168 api
You cannot write JSR168 portlets under Jetspeed 1.5. You need either JS1.6 with fusion or Jetspeed 2 for JSR168 portlets. If using JS1.6 with Fusion you need to build and install JS2 and then install JS1.6 Hema On Thu, 23 Dec 2004 15:02:58 +0200, Aleksandr Vushkan [EMAIL PROTECTED] wrote: Hello, all. I'm recently learn portlets. Can I write valid JSR168 portlets under JS1.5. If yes,how? Can I add jetspeed-api-2.0-M2-dev.jar library in CLASSPATH and write portlets? Where can I download it? -- With best wishes Aleksandr [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward from item of menu
The link that you are trying is incorrect. Try http://portals.apache.org/jetspeed-1/tutorial/5/helloworld.html You will find a pretty decent documentation on the tutorial here http://portals.apache.org/jetspeed-1/tutorial/index.html IMHO, search the website and the mailing list before you make negative conclusions on the documentation. Most often, the developers are around here to help you with problems. Hema On Fri, 17 Dec 2004 16:07:29 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Does any one know where the tutorial referenced here is http://portals.apache.org/jetspeed-1/tutorial/5/helloworld.html.html; I get a Page not found message. Does anyone know of any basic tutorial? (I have never seen a more poorly documented open source project as this). John Johnson -Original Message- From: Vladimir Lisin [mailto:[EMAIL PROTECTED] Sent: Friday, December 17, 2004 2:48 PM To: [EMAIL PROTECTED] Subject: Forward from item of menu Hi all ! Can anybody suggest the solution of my task. I works with Jetspeed 1.5 and want to make forward to new browser's window with the some http address from some item of menu. The Forward Tool don't serve for this aim . I attempted to do this by HTML-portlet with META tag: html head meta HTTP-EQUIV=Refresh CONTENT=0; URL=http://www.emgas.gazprom.ru/; target=_blank titleGo to home page of Elcomgaz/title /head /html but window with portal is overrided by the page with URL. Thanks for any ideas :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed to initialize jetspeed.
Quoted response from previous messages It looks like you might be missing some of the OJB repository files in your classpath. 1. verify that these files are present under webapps/jetspeed/WEB-INF/classes in you tomcat install: OJB-logging.properties OJB.properties repository_database.xml repository.dtd repository_internal.xml repository.xml TEMP.xml Hema On Fri, 17 Dec 2004 09:59:55 -0500, Superman [EMAIL PROTECTED] wrote: Hi, I've deployed jetspeed2 on jboss 4.0 on jdk 1.5 per the instructions for deploying to jboss and I get the servlet error below when I try the url http://localhost:8080/jetspeed. I looked in the logs and it appears that the PreferenceFactory failed with the error below from the jetspeed.log. Any help or direction on how to troubleshoot the problem is appreciated. chris jetspeed.log 2004-12-17 09:30:34,685 [main] INFO STDOUT - Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'java.util.prefs.PreferencesFactory' defined in URL [file:/home/chris/programs/jboss-4.0.0/server/j2/deploy/jetspeed.war/WEB-INF/assembly/jetspeed-spring.xml]: Initialization of bean failed; nested exception is org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.ExceptionInInitializerError 2004-12-17 09:30:34,685 [main] INFO STDOUT - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300) servlet error: javax.servlet.ServletException: Failed to initalize jetspeed. org.apache.jetspeed.exception.JetspeedException: Unable to create Engine org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:206) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) org.apache.jsp.index_jsp._jspService(index_jsp.java:44) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) root cause - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange JLoginUser problem
Kristofer, We are using our custom login action on JS1.5 and it is working fine. We modified the my.properties value for action.login to our class name. I belive it is not recommended to have hidden action defined in the jsp pages as per the FAQ on jetspeed on Changing portlet template as quoted below http://portals.apache.org/jetspeed-1/faq.html ** Changing portlet template QuestionAnswer In my action class extending JspPortletAction, I try to use the setTemplate method, but it doesn't work. I throws a NullPointerException in PortletAction when trying to retrieve a VelocityPortletContext (how surprising when working with a JSPPortlet) Besides, I had to catch this exception myself, otherwise it wasn't appearing anywhere in the logs, not even a single error message... Most common mistake with portlets is to use the hidden action variable and set it to the portlet's action class: form name=form action=http://myhost/ThingWeb/portal; method=get input type=hidden name=js_peid value=%=jspeid%/ input type=hidden name=action value=ThingieSearchAction/ input type=submit name=eventSubmit_doSearch value=Search input type=reset value=Clear Fields input type=text name=thingieid size=20 /form In the above example, Turbine executes the action before the portlet and therefore the context is null. The above should be rewrittern as follows: form name=form action=js:portletlink template= / method=get input type=hidden name=js_peid value=%=jspeid%/ input type=submit name=eventSubmit_doSearch value=Search input type=reset value=Clear Fields input type=text name=thingieid size=20 /form * Hema On Thu, 16 Dec 2004 12:37:24 +0100, Kristofer Eriksson [EMAIL PROTECTED] wrote: Hi, A quick question regarding below problem! It seems I am having the same problem when trying to use my own custom login action and was wondering if anyone know what is going on. Using JS 1.5 on tomcat 5 Any help appreciated. Kind Regards /Kristofer ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What about J1.6 ?
I believe by the end of the year, as per the attached quote from David. Quote By the end of the year Its dependent on the J2 release, and fixing a few introduced bugs in Fusion --David Sean Taylor /Quote Hema On Tue, 14 Dec 2004 10:56:31 +0100, Heins, Hendrik [EMAIL PROTECTED] wrote: Hi, when will Jestspeed1.6/Fusion be released ? Thanks in advance Hendrik -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session information for a Struts portlet in JS1.6
Hi Ate, Thanks a lot for your prompt response. Tomcat 4 is a definite 'no' for us. We are currently on 5.0.28 and is likely to switch to 5.5. So I guess I'll have to look into the option of using getCurrentRequestContext(). I'll try it out with our application, and may have more followup questions on it. Again, thanks for the information. Hema On Sat, 11 Dec 2004 10:13:17 +0100, Ate Douma [EMAIL PROTECTED] wrote: Hema Menon wrote: 1. Is it possible for the struts application to access the session variables that are added on login? Yes :-) 2. If it is how can it be done? There are several factors at play here. First of all, cross-context restrictions. In contrast to other (non-JSR168) portlets, Jetspeed-2 (fusion) deploys its portlet applications as separate web applications and accesses them using the cross-context feature of Tomcat. According to the servlet specs, each web application *must* have its own session, so formally, access to cross-context session is not supported. But, there are two solutions to this problem I know of (if you find more I'd would like to know about it). 1) Use Tomcat 4 Tomcat 4 has the annoying bug in that it does *not* create separate sessions for cross-context access. Normally, this is quite a security breach and one of the reasons why I'm never going to use Tomcat 4 again. But, it might be helpful in your situation. Then, you should have direct access to your login variables. 2) Make use of (J2) org.apache.jetspeed.Jetspeed.getCurrentRequestContext(). That returns a RequestContext instance which gives you access to the session of the portal (getSessionAttribute() and setSessionAttribute()). Note: while the RequestContext is defined in the public (J2) jetspeed-api package, the Jetspeed class is *not*. So, you will have to build against the J2 portal. Furthermore, this is not (yet) a formal supported feature of Jetspeed-2: we (the team) might conclude that this is too much of a security breach and close that backdoor in the future. But, in that case I expect us to at least leave read-only access in place as we rely on it ourselves for the J2 management portlets. Good luck, Ate ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session information for a Struts portlet in JS1.6
Hi, How can a struts application deployed as a JSR 168 portlet in Jetspeed 1.6 with fusion get the user information and other session variables in Jetspeed's context? In other words we have some jetspeed 1.5 which are running under jetspeed 1.6 with fusion. We converted an existing struts application to be deployed as a portlet in Jetspeed. We have authentication done thru sybase and when the user logs in user information and some other relevant information are added to the session. These variables are available to all the portlets in jetspeed. However when a struts portlet is added to jetspeed, the context seems to be different even though it resides in the jetspeed portal. The question is 1. Is it possible for the struts application to access the session variables that are added on login? 2. If it is how can it be done? Any inputs very much appreciated. Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Filters with Struts App on Fusion
Hi, I am trying to make our struts application to a portal that can be displayed within Jetspeed 1.6 w/Fusion. I modifed the portlet.xml, web.xml and the html:form as per Ate Douma's documentation on Struts portlet. We have some servlet filters defined in the web.xml file. Somehow the servlet filter does not seem to be called. Is it not supported with Jetspeed? Can someone let me know if this is supported, if not this could be a road block for us. Thanks in advance, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet Filters with Struts App on Fusion
Hi Scott, That's it. I modified the web.xml and it works perfectly. Thanks a lot for your help. Thanks, Hema On Thu, 09 Dec 2004 11:10:56 -0500, Scott T. Weaver [EMAIL PROTECTED] wrote: Hi Hema, I use filters in my portlet apps. However, there is one caveat, you need setup filters to fire on Forward, Include and Request which can only be done from within a Servlet 2.4 compatible container (i.e. tomcat 5.x ) Here is a example what one of our filter mappings from my web.xml: filter-mapping filter-nameOEFilter/filter-name url-pattern*.htm/url-pattern dispatcherINCLUDE/dispatcher dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping HTH, Hema Menon wrote: We have some servlet filters defined in the web.xml file. Somehow the servlet filter does not seem to be called. Is it not supported with Jetspeed? Can someone let me know if this is supported, if not this could be a road block for us. ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem installing J2M1
Here's the info on it from Wiki http://wiki.apache.org/portals/Jetspeed2/PrefsClassloaderIssuesAndSdk14 Hema On Mon, 6 Dec 2004 14:27:08 -, Jonathan Hawkins [EMAIL PROTECTED] wrote: Check your Java version. Sure I've seen somewhere that this is a Java problem, I use 1.4.2_04 on Windows and do not get that error, get plenty of otheres, but not that one !! ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem buiilding jetspeed-2
Gary, You need to download it . Here's how I resoved it , check it out in this link http://www.mail-archive.com/jetspeed-user%40jakarta.apache.org/msg14306.html HTH, Hema On Sat, 04 Dec 2004 00:02:26 -0700, Gary Shea [EMAIL PROTECTED] wrote: I attempted to build jetspeed2 for the first time today. The allClean target seems happy enough although there are hundreds of reports of trouble downloading various jars. The allBuild target fails with: The build cannot continue because of the following unsatisfied dependency: pluto-1.0.1-rc1.jar I am running maven 1.0.1, java 1.5.0 Any ideas? Gary Shea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Demo on Fusion/Sybase/JS1.6
I am trying to deploy the Struts demo on JS1.6 with fusion. The database is Sybase.The following exception is thrown [org.apache.ojb.broker.platforms.PlatformDefaultImpl] ERROR: Set autoCommit(true) failed SET CHAINED command not allowed within multi-statement transaction. com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction. Here's some questions regarding the deployment. Maybe someone can help me with this. 1. The system output shows that it cannot find the jetspeed-portlex.xml file in the deployment directory as shown below. Is it a required configuration file? Also the path doesn't seem right either. INFO: Portlet application deployment target directory is D:\Tomcat5.0\webapps\myportal/..//jsf-demo INFO: Did not load extended metadata as it most likely does not exist. java.io.FileNotFoundException: Unable to locate file or path D:\Tomcat5.0\webapps\myportal\..\jsf-demo\WEB-INF\jetspeed-portlet.xml 2. OJB.properties, repository.xml and related xml files were required for Jetspeed2. Is it required for Jetspeed1.6? I don't see it being deployed. 3. Does anyone know how to set the autocommit to false/true? The repository.dtd in Jetspeed2 defines useAutoCommit attribute. But when I use this with Jetspeed1.6, it fails to lookup the jndi datasource. Can someone give any pointers to fix this issue? !ATTLIST jdbc-connection-descriptor jcd-alias CDATA #REQUIRED default-connection (true | false) false platform (Db2 | Hsqldb | Informix | MsAccess | MsSQLServer | MySQL | Oracle | PostgreSQL | Sybase | SybaseASE | SybaseASA | Sapdb | Firebird | Axion | NonstopSql | Oracle9i | MaxDB ) Hsqldb jdbc-level (1.0 | 2.0 | 3.0) 1.0 eager-release (true | false) false batch-mode (true | false) false useAutoCommit (0 | 1 | 2) 1 ignoreAutoCommitExceptions (true | false) false jndi-datasource-name CDATA #IMPLIED driver CDATA #IMPLIED protocol CDATA #IMPLIED subprotocol CDATA #IMPLIED dbalias CDATA #IMPLIED username CDATA #IMPLIED password CDATA #IMPLIED Thanks, Hema - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Demo on Fusion/Sybase/JS1.6
I guess I was thinking out loud. I was able to set the autocommit to 0 in the repository_database.xml as defined by the repository.dtd. No more Sybase exceptions are thrown and Struts demo is deployed. Hema:) On Thu, 2 Dec 2004 13:16:53 -0600, Hema Menon [EMAIL PROTECTED] wrote: I am trying to deploy the Struts demo on JS1.6 with fusion. The database is Sybase.The following exception is thrown [org.apache.ojb.broker.platforms.PlatformDefaultImpl] ERROR: Set autoCommit(true) failed SET CHAINED command not allowed within multi-statement transaction. com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction. 3. Does anyone know how to set the autocommit to false/true? The repository.dtd in Jetspeed2 defines useAutoCommit attribute. But when I use this with Jetspeed1.6, it fails to lookup the jndi datasource. Can someone give any pointers to fix this issue? !ATTLIST jdbc-connection-descriptor jcd-alias CDATA #REQUIRED default-connection (true | false) false platform (Db2 | Hsqldb | Informix | MsAccess | MsSQLServer | MySQL | Oracle | PostgreSQL | Sybase | SybaseASE | SybaseASA | Sapdb | Firebird | Axion | NonstopSql | Oracle9i | MaxDB ) Hsqldb jdbc-level (1.0 | 2.0 | 3.0) 1.0 eager-release (true | false) false batch-mode (true | false) false useAutoCommit (0 | 1 | 2) 1 ignoreAutoCommitExceptions (true | false) false jndi-datasource-name CDATA #IMPLIED driver CDATA #IMPLIED protocol CDATA #IMPLIED subprotocol CDATA #IMPLIED dbalias CDATA #IMPLIED username CDATA #IMPLIED password CDATA #IMPLIED Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JS 1.6 with Fusion Struts demo/JS1.6/ Sybase - AutoCommit failure
For reference if anyone come across this problem. You can fix this issue by modifying the repository_database.xml to have useAutoCommit=0 added to it as shown below. jdbc-connection-descriptor jcd-alias=jetspeed platform=Sybase default-connection=true jdbc-level=2.0 jndi-datasource-name=java:comp/env/jdbc/jetspeed batch-mode=false useAutoCommit=0 Hema On Wed, 1 Dec 2004 18:35:17 -0600, Hema Menon [EMAIL PROTECTED] wrote: Hi, I am trying to deploy the struts and jsf demo portlets on jetspeed 1.6 with fusion. I find the following exception. It seems to be specific to Sybase and might be related to OJB component. Also I was successful in deploying these with Hsql database. Has anyone come across this error? Any pointers? Thanks in advance, Hema Stack trace INFO: Preparing to (re) deploy portlet app jsf-demo INFO: Deploying portlet applicaion WAR jsf-demo INFO: Portlet application deployment target directory is D:\Tomcat5.0\webapps\ccportal/..//jsf-demo INFO: Did not load extended metadata as it most likely does not exist. java.io.FileNotFoundException: Unable to locate file or path D:\Tomcat5.0\webapps\ccportal\..\jsf-demo\WEB-INF\jetspeed-portlet.xml INFO: Loading web.xml into memory INFO: Saving the portlet.xml in the registry... [org.apache.ojb.broker.platforms.PlatformDefaultImpl] ERROR: Set autoCommit(true) failed SET CHAINED command not allowed within multi-statement transaction. com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction. at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2884) at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2206) at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69) at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220) at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203) at com.sybase.jdbc2.jdbc.SybStatement.updateLoop(SybStatement.java:1702) at com.sybase.jdbc2.jdbc.SybStatement.executeUpdate(SybStatement.java:1685) at com.sybase.jdbc2.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatement.java:115) at com.sybase.jdbc2.tds.Tds.setOption(Tds.java:1206) at com.sybase.jdbc2.jdbc.SybConnection.setAutoCommit(SybConnection.java:986) at org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:268) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(PoolingDataSource.java:293) at org.apache.ojb.broker.platforms.PlatformDefaultImpl.changeAutoCommitState(PlatformDefaultImpl.java:199) at org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.restoreAutoCommitState(ConnectionManagerImpl.java:251) at org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.localCommit(ConnectionManagerImpl.java:195) at org.apache.ojb.broker.core.PersistenceBrokerImpl.commitTransaction(PersistenceBrokerImpl.java:434) at org.apache.ojb.broker.core.DelegatingPersistenceBroker.commitTransaction(DelegatingPersistenceBroker.java:145) at org.apache.ojb.broker.core.DelegatingPersistenceBroker.commitTransaction(DelegatingPersistenceBroker.java:145) at org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl.getSequence(SequenceManagerHighLowImpl.java:195) at org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl.getUniqueLong(SequenceManagerHighLowImpl.java:145) at org.apache.ojb.broker.util.sequence.AbstractSequenceManager.getUniqueValue(AbstractSequenceManager.java:139) at org.apache.ojb.broker.util.BrokerHelper.setAutoIncrementValue(BrokerHelper.java:317) at org.apache.ojb.broker.util.BrokerHelper.getValuesForObject(BrokerHelper.java:364) at org.apache.ojb.broker.util.BrokerHelper.getKeyValues(BrokerHelper.java:176) at org.apache.ojb.broker.Identity.init(Identity.java:150) at org.apache.ojb.broker.Identity.init(Identity.java:119) at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:691) at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:175) at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:175) at org.springframework.orm.ojb.PersistenceBrokerTemplate$8.doInPersistenceBroker(PersistenceBrokerTemplate.java:239) at org.springframework.orm.ojb.PersistenceBrokerTemplate.execute(PersistenceBrokerTemplate.java:152) at org.springframework.orm.ojb.PersistenceBrokerTemplate.store(PersistenceBrokerTemplate.java:237) at org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry.registerPortletApplication(PersistenceBrokerPortletRegistry.java:184
JS 1.6 with Fusion Struts demo/JS1.6/ Sybase - AutoCommit failure
:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy0.registerPortletApplication(Unknown Source) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication(FileSystemPAM.java:390) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSystemPAM.java:310) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPAM.java:121) at org.apache.jetspeed.fusion.tools.pamanager.FusionPAM.deploy(FusionPAM.java:173) at org.apache.jetspeed.fusion.tools.pamanager.FusionAppServerPAM.deploy(FusionAppServerPAM.java:76) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:262) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:165) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:304) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:195) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:458) [org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl] ERROR: Can't lookup new HighLowSequence for field id using sequence name SEQ_PORTLET_APPLICATION Set autoCommit(false) failed ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: really The Hypersonic JDBC driver require no configuration?
What version of tomcat are you running this? Also do you have jetspeed.xml file in CATALINA_HOME\conf\catalina\localhost directory? Hema On Tue, 30 Nov 2004 11:02:23 +0100, Peter Kmet [EMAIL PROTECTED] wrote: Hi, Use anyone this driver? What shall I configure instead steps that are in http://portals.apache.org/jetspeed-2/getting-started.html ? When I try http://localhost:8080/jetspeed I get blank page and in tomcat logs is following: ... [org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR: SQLException thrown while trying to get Connection from Datasource (java:comp/env/jdbc/jetspeed) Cannot create JDBC driver of class '' for connect URL 'null' org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780) ... It looks like somewhere missing configuration, but where? in WEB-INF/conf/test/registry-hsql-database.xml is: database name=registry engine=hsql driver url=jdbc:hsqldb:./test/db/hsql/Registry class-name=org.hsqldb.jdbcDriver param name=user value=sa / param name=password value= / /driver mapping href=registry-mapping.xml/ /database - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Sybase DB for Jetspeed 2
Hi, I am trying to build Jetspeed2 with Sybase database. I modified the build.properties to add Sybase as the db as mentioned in this link http://portals.apache.org/jetspeed-2/database.html The maven build failed first with the following torque:init: db.scripts.gen: [echo] Generating SQL schema creation scripts for HSQLDB [torque-sql] Using classpath [torque-sql] Generating to file C:\users\hmenon\jakarta-jetspeed-2\target\sr . [torque-sql] Generating to file C:\users\hmenon\jakarta-jetspeed-2\target\sr c\sql\mssql\report.portal.sql.generation [echo] Generating SQL schema creation scripts for Postgres [torque-sql] Using classpath [torque-sql] Generating to file C:\users\hmenon\jakarta-jetspeed-2\target\sr c\sql\postgres\report.portal.sql.generation BUILD FAILED File.. C:\users\hmenon\jakarta-jetspeed-2\maven.xml Element... sql Line.. 355 Column 39 Source file does not exist! I found that there are no sql scripts for sybase. So added the sql scripts under src/sql/sybase. Also modified the maven.xml to contain one more torque-sql entry for sybase.Tried again, but this time it failed with the following exception. Database-specific properties file does not exist: C:\users\hmenon\jakarta-jetspe ed-2\sql\base\Sybase\db.props org.apache.torque.engine.EngineException: Database-specific properties file does not exist: C:\users\hmenon\jakarta-jetspeed-2\sql\base\Sybase\db.props at org.apache.torque.engine.database.model.AppData.getIdiosyncrasies(App Data.java:183) at org.apache.torque.engine.database.model.Database.getProperty(Database .java:373) at org.apache.torque.engine.database.model.ConstraintNameGenerator.gener ateName(ConstraintNameGenerator.java:100) Does anyone know anything about this error? Has anyone tried to build jetspeed2 against sybase? Can someone please help me with this? Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Sybase DB for Jetspeed 2
Well, It seems to be a torque issue. I got the latest source from CVS, compiled fine. Hema On Tue, 30 Nov 2004 11:14:48 -0600, Hema Menon [EMAIL PROTECTED] wrote: Hi, I am trying to build Jetspeed2 with Sybase database. I modified the build.properties to add Sybase as the db as mentioned in this link http://portals.apache.org/jetspeed-2/database.html The maven build failed first with the following torque:init: db.scripts.gen: [echo] Generating SQL schema creation scripts for HSQLDB [torque-sql] Using classpath [torque-sql] Generating to file C:\users\hmenon\jakarta-jetspeed-2\target\sr . [torque-sql] Generating to file C:\users\hmenon\jakarta-jetspeed-2\ Database-specific properties file does not exist: C:\users\hmenon\jakarta-jetspe ed-2\sql\base\Sybase\db.props org.apache.torque.engine.EngineException: Database-specific properties file does not exist: C:\users\hmenon\jakarta-jetspeed-2\sql\base\Sybase\db.props at org.apache.torque.engine.database.model.AppData.getIdiosyncrasies(App Data.java:183) - ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fusion Compilation Error
Hi, Last week I was able to compile and run Jetspeed 1.6 with fusion. I checked out the latest source from CVS, and tried building jetspeed1.6 with fusion as described in http://wiki.apache.org/portals/Jetspeed2/Fusion The build fails with the following compile error. java:compile: [echo] Compiling to C:\users\hmenon\jakarta-jetspeed\fusion/target/classes [javac] Compiling 10 source files to C:\users\hmenon\jakarta-jetspeed\fusion \target\classes [javac] C:\users\hmenon\jakarta-jetspeed\fusion\src\java\org\apache\jetspeed \fusion\profiler\impl\FusionPage.java:32: org.apache.jetspeed.fusion.profiler.im pl.FusionPage is not abstract and does not override abstract method getShortTitl e(java.util.Locale) in org.apache.jetspeed.page.document.Node [javac] public class FusionPage implements Page [javac]^ [javac] 1 error BUILD FAILED File.. C:\users\hmenon\jakarta-jetspeed\maven.xml Element... maven:reactor Line.. 47 Column 40 Unable to obtain goal [java:compile] -- C:\Documents and Settings\hmenon\.maven\ cache\maven-java-plugin-1.4\plugin.jelly:53:48: ant:javac Compile failed; see the compiler error output for details. Total time: 2 minutes 4 seconds Finished at: Tue Nov 30 22:04:38 CST 2004 I removed all the jars from the local repository, and removed the .cache and tried again. Same result. Interesting, I was able to build it successfully last week :( Its very likely that I am having the wrong jars. Can some one help me with this? Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any idea when Jetspeed 1.6 is likely to be released?
We need to move to Jetspeed version that offers struts support. Of course, the choice is between 1.6 with fusion or jetspeed 2. I read from the mailing list that 1.6 and 2(m1) are likely to be released this month or maybe next. We don't want to move to 2.0 yet since it means possibly rewriting our 1.5 portlets. Is jetspeed 1.6 likely to be released anytime soon? Thanks, Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LateInitCastorRegistryService - InitializationException
Hi, I rebuild my jetspeed1.5 application using Jetspeed 1.6 with fusion. Everything starts up fine with successful Fusion Service initialization Done. However when I try to access my login page, I get the following exception org.apache.turbine.services.InitializationException: Unable to initialize LateInitCastorRegistryService, missing config keys . Stacktrace is shown below. I am using Sybase server and the tables are the same one that I have been using for Jetspeed 1.5. Can someone point me to what these missing config keys are? Thanks, Hema org.apache.turbine.services.InitializationException: Unable to initialize LateInitCastorRegistryService, missing config keys at org.apache.jetspeed.services.registry.LateInitCastorRegistryService.init(LateInitCastorRegistryService.java:368) at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:304) rethrown as org.apache.turbine.services.InstantiationException: Service Registry failed to initialize at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:322) at org.apache.jetspeed.services.Registry.getService(Registry.java:63) ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LateInitCastorRegistryService - InitializationException - Bug??
I found the source for the error in LateInitCastorRegistryService.java code under jakarta-jetspeed/src/org/apache/jetspeed/services/registry directory. In the init method, a classCastException is thrown at the getConfiguration().getInt(refreshRate) which in turn is rethrown as an InitializationException with the message missing config keys. I am overriding the property value for refreshRate in my.properties. I verified to see if there is any extra space after the value but could not find any. Not sure why commons getConfiguration.getInt() is throwing a classCastException on this. The code snippet is as follows int refreshRate = 0; // read the configuration keys try { directory = getConfiguration().getString(directory); mapFile = getConfiguration().getString(mapping, DEFAULT_MAPPING); extension = getConfiguration().getString(extension, DEFAULT_EXTENSION); refreshRate = getConfiguration().getInt(refreshRate, DEFAULT_REFRESH); mapFile = TurbineServlet.getRealPath(mapFile); directory = TurbineServlet.getRealPath(directory); } catch (Throwable t) { throw new InitializationException(Unable to initialize LateInitCastorRegistryService, missing config keys); } I tried using getConfiguration().getString(refreshRate) and parsing the trimmed string value to set the integer value for refresh rate. The initialization was successful in that case. Thanks, Hema On Mon, 29 Nov 2004 13:01:13 -0600, Hema Menon [EMAIL PROTECTED] wrote: Hi, I rebuild my jetspeed1.5 application using Jetspeed 1.6 with fusion. Everything starts up fine with successful Fusion Service initialization Done. However when I try to access my login page, I get the following exception org.apache.turbine.services.InitializationException: Unable to initialize LateInitCastorRegistryService, missing config keys . Stacktrace is shown below. I am using Sybase server and the tables are the same one that I have been using for Jetspeed 1.5. Can someone point me to what these missing config keys are? Thanks, Hema org.apache.turbine.services.InitializationException: Unable to initialize LateInitCastorRegistryService, missing config keys at org.apache.jetspeed.services.registry.LateInitCastorRegistryService.init(LateInitCastorRegistryService.java:368) at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:304) rethrown as org.apache.turbine.services.InstantiationException: Service Registry failed to initialize at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:322) at org.apache.jetspeed.services.Registry.getService(Registry.java:63) ~~ Hema Menon -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting Started
) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 What's it now? Here's the answer http://www.mail-archive.com/jetspeed-dev@jakarta.apache.org/msg16644.html Copy all the files and restart Tomcat. 7. Finally, http://localhost:8080/jetspeed is loaded with the new jetspeed 2 page. Logged in as admin/jetspeed user/password combo. What?? Invalid username/password?? Why? With jetspeed2 you need to use user/user or jetspeed/jetspeed as the user/password combination to login. Other Known Issues 1. Issues with using JDK versions lower than 1.4.2_02 This bug as reported here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5012893 is likely to cause the followin exception java.lang.RuntimeException: Failed to initialize prefs api. java.lang.InternalError: Can't instantiate Preferences factory java.lang.ClassNotFoundException: org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl. Hence you need to have jdk1.4.2_02 or higher. I am not sure whether you were successful in building Jetspeed 2. But thought I would share my experience to make the process easier. Thanks, Hema On Sat, 27 Nov 2004 12:26:14 -0500, Ron Wheeler [EMAIL PROTECTED] wrote: In getting started with Jetspeed, I am trying to follow the instructions on http://portals.apache.org/jetspeed-2/mail-lists.html fairly literally to see how clear they really are to a new person. I have Apache and Tomcat working at the start of the process. Problem 1) The instructions do not describe how to download Jetspeed or even mention the need to do this. Am I supposed to have downloaded it before I got here or am I supposed to download it through Maven between step 1 and 2.? Problem 2) What is USER_HOME in a Windows 2000 environment. A windows use would expect this to be C:\Documents and Settings\rwheeler\My Documents but I am not sure if that makes any sense in the context of a Tomcat server. It needs explaining for either windows or Linux. I hope that these comments lead to a better set of instructions that make it easy for new users. I will try to document the little issues that I run into. I know that it is hard for someone who completely understands the whole process to put themselves in the shoes of a new system administrator who has never seen the software before. It is easy to forget to mention something that seems so obvious once you have done it successfully. Ron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting Started
Ron, I wonder the space in Program Files has anything to do with. Try it without the space. Just a wild guess:) Hema On Sat, 27 Nov 2004 16:37:41 -0500, Ron Wheeler [EMAIL PROTECTED] wrote: Thanks for the hints. I got stopped before you did but it helped to see where the build file belongs. I would have buried it too deep. I am working with Tomcat 5.5.4, Java 5 (1.5.0), the latest Eclipse, Maven 1.0.1 and have downloaded the latest Eclipse plug-ins recomended in the Jetspeed Wiki. So far so good. Jetspeed is downloaded and I only got one error message about license.txt which appears to be downloaded OK anyway. I am trying to report as many of the errors and omissions in the current documentation as I can. I have a feeling that the guys who are writing the documentatoin are sometimes too knowledable and leave things out that us mere mortals do not deduce from their descriptions. The best one is the Jetspeed installation where they omit the step of downloading Jetspeed after carefully making sure that we have Maven and all the other stuff I am a big Eclipse fan and use it for all of our interactions with CVS and for non-Java activities such as Flash Actionscript development and to get the marketing types to keep organized by creating eclipse projects for marketing. It handles Mindmaps, XML, word processing documents, etc.. It gives us a truly secure, distributed file system with good protection against conflicting updates. We work out of 4 locations in Montreal and have staff in Columbia sharing files and managing projects through Eclipse. When I tried to do the maven build, I got this error. File or url 'C:\Program Files\Java\jdk1.5.0/Classes/classes.jar' could not be found java.net.MalformedURLException: unknown protocol: c at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at com.werken.forehead.Forehead.loadFileOrUrl(Forehead.java:403) at com.werken.forehead.Forehead.load(Forehead.java:322) at com.werken.forehead.Forehead.config(Forehead.java:245) at com.werken.forehead.Forehead.config(Forehead.java:131) at com.werken.forehead.Forehead.main(Forehead.java:579) So now I guess that I start the research on this. There does not appear to be a file classes.jar in Java 5 or Java 4 so it must be a setting that is not right somewhere. It looks like it is having trouble with the c: but I do not know where it is building this. JAVA_HOME has the C: in it but removing it from the definition of JAVA_HOME did not have any effect. Hema Menon wrote: Hi Ron, I have used Jetspeed with 1.5 binaries before. I needed to upgrade to 1.6 or 2 since it offered struts and jsr 168 portlet support. So this past week, I was able to successfully build and deploy Jetspeed 2 and Jetspeed 1.6 with fusion. I downloaded and used Maven for the first time just for the purpose of building Jetspeed 2. Some patience and lot of reading into the mailing list posts and responses from the mailing list members helped me with it. Here's my own notes on how to get Jetspeed 2 built. My environment was Win XP, Tomcat 5.0.28 and jdk1.4.2_06. I saw many questions on the mailing list on how to get the source from CVS. So I started out with answering that. 1. I need to use Jetspeed 2. Binaries are not available since it is not released yet. How can I get the source from CVS and build it? You need a CVS client to access the source code anonymously. Instructions on getting source with Eclipse is described here. http://wiki.apache.org/portals/Jetspeed2/DevelopingJetspeed2 You can use Cygwin CVS or any others for downloading the source. You can download Cygwin from http://www.cygwin.com/mirrors.html. Make sure you select CVS from the Devel on installation. You can now use the instructions at apache ( http://www.apache.org/dev/version-control.html )to get the source from CVS. The steps involved are Set the CVSROOT environment variable CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvspublic export CVSROOT Login to CVS cvs login password anoncvs Choose the module to download For jetspeed 2 cvs checkout Jakarta-jetspeed-2 2. OK, I have the source now, how do I build this? The instructions on building Jetspeed are at http://portals.apache.org/jetspeed-2/getting-started.html For step #1, I followed the instructions available here http://maven.apache.org/start/install.html For step # 2, I copied the build.properties.sample in the jetspeed2 directory to build.properties in the userhome directory( On my windows box, C:\Documents and settings\hmenon ) and then modified it as suggested for step 2 in http://portals.apache.org/jetspeed-2/getting-started.html Then continued with the further steps, at which case I run across the following problems which were resolved as described below. 3.The build started by ultimately failed due
Re: Getting Started
I am not sure since I am not using Eclipse. However, from what I read about from the wiki, it might be necessary to set the jave home path as a url (ie . file:/ ). Here's the excerpt from the wiki QUOTE Before we go any further, make sure that the Maven settings are correct in Eclipse. Open the Eclipse Preferences dialog and select the Maven Locations. In the author's experience on Mac OS X, it was neccessary to enter the Java Home path as a URL: file:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home /QUOTE Hema On Sat, 27 Nov 2004 17:00:46 -0500, Ron Wheeler [EMAIL PROTECTED] wrote: //It looks more like the c: given the unknown protocol message. //I do not know who has created this string. JAVA_HOME points to the bin directory so I am not sure if it is coming from //JAVA_HOME or from one of the Eclipse preferences. I think that I have found the source of this!!! What is the Maven Preference in Eclipse for tools.jar supposed to point to? Mine points to this nonexistant file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetspeed in Action
David Scott, When will your book, Jetspeed in Action be ready? Manning books are really good. Sure enough this would be a winner too. Good luck with the book and looking forward to it. Hema ~~ Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetspeed 2 Build Problem - Unsatisfied dependency
Hi, I have been trying to build Jetspeed 2 from the CVS code. The build runs but ultimately fails with the following . Attempting to download pluto-1.0.1-rc1.jar. WARNING: Failed to download pluto-1.0.1-rc1.jar. BUILD FAILED File.. C:\HMENON\jakarta-jetspeed-2\maven.xml Element... maven:reactor Line.. 133 Column 40 The build cannot continue because of the following unsatisfied dependency: pluto-1.0.1-rc1.jar Total time: 5 minutes 8 seconds Finished at: Mon Nov 22 21:20:03 CST 2004 --- Can someone please give me some directions on how to resolve this issue? Thanks in advance, Hema _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetspeed 2 - Deploying in Tomcat Error
Hi, After a couple of trials, I was able to build Jetspeed 2 successfully. The maven Quickstart also completed. However when I start Tomcat and go to http://localhost:8080/jetspeed, I find an empty page. Tomcat logs shows the following errors... Can someone give some pointers on what is causing this? Thanks in advance, Hema --- og4j:WARN Please initialize the log4j system properly. JNDI System Property flag null [BOOT] WARN: Could not load properties file 'OJB.properties'. Using default settings! C:\WINDOWS\system32\OJB.properties (The system cannot find the file specified) java.io.FileNotFoundException: C:\WINDOWS\system32\OJB.properties (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156) at java.net.URL.openStream(URL.java:913) at org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.load(ConfigurationAbstractImpl.java:429) at org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.load(OjbConfiguration.java:270) at org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.init(ConfigurationAbstractImpl.java:66) at org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.init(OjbConfiguration.java:107) at org.apache.ojb.broker.util.configuration.impl.OjbConfigurator.init(OjbConfigurator.java:55) ... futher errors [BOOT] ERROR: Creation of PersistenceBrokerFactory (PBF) instance failed, can't get PBF class object org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'java.util.prefs.PreferencesFactory' defined in URL [file:/D:/Tomcat5.0/webapps/jetspeed/WEB-INF/assembly/jetspeed-spring.xml]: Initialization of bean failed; nested exception is org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.ExceptionInInitializerError org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs api. java.lang.ExceptionInInitializerError at org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactoryImpl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Hema Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting the menu selection
Hi, Is it possible to set the menu selection programmatically? I am setting the template to a specific menu item when an action happens, however the menu selection still remains the same. For eg. There are 3 selections possible in my menu with corresponding jsp portlets as shown below. Menu A - Login. Menu B - SomethingtoDo Menu C - Verify When the used does some action on the SomethingtoDo portlet, which corresponds to menu selection B, I force the page to Verify by using the setTemplate() method. However the menu selection still remains at B. Will it be possible for me to set the menu selection to C too? I am not fully familiar with jetspeed API's( still learning :-) ) Any inputs are very well appreciated. Thanks, Hema