Calling jsp page from portlet
Team, Can u please let me know how to call jsp page from portlet and where I have to place jsp page in jetspeed Thanks in advance Srinivas - Do you Yahoo!? The all-new My Yahoo! What will yours do?
Problem installing J2M1
Hi all, I've just downloaded J2 from the link bellow and I was not able to start it. Im using Tomcat 5.0.30, as recomended, I start the database but at the tomcat log I get the following exception: 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 Does anybody knows what can be wrong?? []'s Loreno David Sean Taylor wrote: 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/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
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]
Jetspeed 1.5, LDAP, Active Directory
Hi, I'm looking to implement Jetspeed 1.5 in an internal portal environment - ie, all users are employees of my company. We use Active Directory as our internal authentication mechanism - this is accessible via LDAP, but obviously, I cannot influence the AD structure. We'd be using Oracle as our backend database, that's our standard. I see lots of questions regarding this, but I don't see any solutions - how can I provide authentication through AD/LDAP and still allow customizations? I wouldn't want the users to have to have to register or to have to use a different username/password combo. In otherwords, the first time a new user logged in, it'd have to set up default pages, etc. Is this possible with JetSpeed? We've got a reasonable amount of Java expertise available, but we'd prefer to keep things as standard as possible. Thanks very much -cdr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
more on the 'Unable to obtain goal [deploy-plugin]' problem
I read a thread on the mailing list that seemed to refer to this problem, but nothing that seemed like a resolution. I'm running the latest cvs (as of a couple hours ago anyway), java 1.5.0. The error occurs in the Build and deploy the Jetspeed 2 Maven plugin Jetspeed 2 Maven Plugin phase of the build. Here's where it blows: db.execute: [sql] Executing file: /home/shea/work/dev/itr-portal/jetspeed-2/maven-plugin/target/classes/plugin-resources/hsql/phase2-schema.sql [sql] [ERROR] Failed to execute: drop table PROFILING_RULE if exists BUILD FAILED File.. /home/shea/work/dev/itr-portal/jetspeed-2/maven.xml Element... maven:reactor Line.. 168 Column 40 Unable to obtain goal [deploy-plugin] -- /home/shea/work/dev/itr-portal/jetspeed-2/maven-plugin/maven.xml:110:39: sql java.sql.SQLException: Integrity constraint violation: SYS_REF_RULE_CRITERION_FK_1_4 table: RULE_CRITERION in statement [drop table PROFILING_RULE if exists] Total time: 7 minutes 7 seconds Finished at: Mon Dec 06 14:03:43 MST 2004 The sql in question seems inocuous enough; although I've never seen the 'if exists' before, it seemed to work in the previous 10 instances in that same file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using Oracle Jetspeed 1.5
I'm getting the following error when trying to create a new user account when running jetspeed 1.5 with Oracle. org.apache.jetspeed.services.security.UserException: Failed to create account 'a': ORA-04016: sequence TURBINE_USER no longer exists I created a database and ran the C:\jetspeed-1.5\src\sql\external\turbine-oracle.sql and C:\jetspeed-1.5\src\sql\external\populate-oracle.sql Sql scripts. Copied the oracle JDBC driver into lib directory. Made the following modifications to the Torque.properties file torque.database.default.adapter=oracle torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver torque.dsfactory.default.connection.url = jdbc:oracle:thin:@localhost:1521:orcl torque.dsfactory.default.connection.user = jetspeed torque.dsfactory.default.connection.password = jetspeed What else do I need to do? I'm working with a Jetspeed 1.5 source distribution, not pulled from the CVS tree. Seems like the code is somehow expecting a sequence called TURBINE_USER but it's called TURBINE_USER_SEQ in the sql file. Is there something that needs to be changed in the security-schema.xml file ? Thanks, Tom The stack trace : java.sql.SQLException: ORA-04016: sequence TURBINE_USER no longer exists at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:12 5) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112) at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:3 51) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatemen t.java:896) at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java :383) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement. java:986) at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:112 5) at com.workingdogs.village.QueryDataSet.(Unknown Source) at org.apache.torque.oid.SequenceIdGenerator.getIdAsVillageValue(SequenceId Generator.java:199) at org.apache.torque.oid.SequenceIdGenerator.getIdAsBigDecimal(SequenceIdGe nerator.java:133) at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:720) at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:639) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas eTurbineUserPeer.java:241) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas eTurbineUserPeer.java:214) at org.apache.jetspeed.services.security.turbine.TurbineUserManagement.addU ser(TurbineUserManagement.java:283) at org.apache.jetspeed.services.JetspeedUserManagement.addUser(JetspeedUser Management.java:95) at org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.j ava:213) at org.apache.jetspeed.modules.actions.CreateNewUserAndConfirm.doPerform(Cr eateNewUserAndConfirm.java:171) at org.apache.turbine.modules.Action.perform(Action.java:87) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:14 3) at org.apache.turbine.modules.Page.build(Page.java:90) at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123) at org.apache.turbine.Turbine.doGet(Turbine.java:563) at org.apache.turbine.Turbine.doPost(Turbine.java:658) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242 2) at
RE: Jetspeed2 M1 security setup (was: jetspeed-newbie Roles-Groups-Users)
Hi, I've successfully built and installed J2 M1 and was looking into the demo applications to figure out how to setup access control for portlets/pages. After checking out some example portlets , like RoleSecurityTest and Login, and their source code, I think I have some idea of how to approach the task but I would like to clarify some topics. First, I'll list my assumptions and then ask questions: 1. tomcat-5.0.30-j2-M1\webapps\jetspeed\WEB-INF\pages\page.security file specifies 'Edit'/'View' permissions for the default Portal's page, defined in default-page.psml Thus, this part : security-constraints-def name=admin security-constraint rolesadmin/roles permissionsview, edit/permissions /security-constraint /security-constraints-def means that only a user with the role 'admin' can edit the layout of the page. And this fragment: security-constraints-def name=manager security-constraint rolesmanager/roles permissionsview/permissions /security-constraint /security-constraints-def means that a user with the role 'manager' can view the page. However, anybody can view this default page in reality - even before a user logs in. You don't need any special privileges to access http://localhost:8080/jetspeed to see the page. My assumption is that it is because security constraints are overwritten in the pages/folder.metadata file (see below). Is that true? What is the scope of the page.security definitions and where are they used? 2. each folder under /pages directory (including /pages itself) has a folder.metadata file where more security-constraints are defined for that folder. For example, here is pages/folder.metadata: . security-constraints security-constraint rolesuser/roles permissionsview/permissions /security-constraint security-constraints-refmanager/security-constraints-ref /security-constraints security-constraints security-constraint users*/users permissionsview/permissions /security-constraint /security-constraints /folder And this is why all users can see the default page. (Is that true?) On the other hand, here is pages\Administrative\folder.metadata : folder titleJetspeed Administrative Portlets/title !-- allow only manager role -- security-constraints security-constraints-refmanager/security-constraints-ref /security-constraints /folder This folder corresponds to the Jetspeed Administrative Portlets menu item in the 'Folder and Pages' menu on the left side of the Portal window. However, it is displayed only when a user with the 'manager' role logged in. 3. There also are security-constraints in the .psml files themselves. For example, pages/default-page.psml has: security-constraints security-constraint users*/users permissionsview/permissions /security-constraint /security-constraints 4. Also, there are security-ref defined in the portlet.xml files of individual portlets. For example: portlet id=RoleSecurityTest . security-role-ref role-nameAdministrator/role-name role-linkadmin/role-link /security-role-ref security-role-ref role-nameManager/role-name role-linkmanager/role-link /security-role-ref security-role-ref role-nameUser/role-name role-linkuser/role-link /security-role-ref /portlet and corresponding security-roles are defined in the web.xml file of the portlet application: web-app security-role descriptionThe admin role/description role-nameadmin/role-name /security-role security-role descriptionThe manager role/description role-namemanager/role-name /security-role security-role descriptionThe user role/description role-nameuser/role-name /security-role /web-app Questions: -- How do all the security declarations in #1, 2, 3 and 4 relate to each other? -- What declarations take precedence? -- what declarations are mandatory for others to work? 5. By looking at the jakarta-jetspeed-2-M1\applications\demo\src\webapp\WEB-INF\web.xml file I noticed that there were two example SSO servlets registered - SSODemoServlet and SSOBasicDemoServlet, and they were mapped to /sso-demo and /sso-basic URLs respectively. Here is how /sso-basic is protected: security-constraint web-resource-collection web-resource-nameHTTPBasicDemo/web-resource-name url-pattern/sso-basic/*/url-pattern /web-resource-collection auth-constraint role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameJetspeed/realm-name /login-config When I access this servlet as http://localhost:8080/demo/sso-basic I am getting a login screen that prompts me to enter username and password, as expected. The /sso-demo is not protected in the web.xml and when accessing it as http://localhost:8080/demo/sso-demo you just get an authentication error. Source code of the
Re: Problem using Oracle Jetspeed 1.5
hello. seek answer on your Q. in this mail-list - my Jetspeed1.5 Oracle 9.2.xx - work excellent Hampton, Thomas wrote: I'm getting the following error when trying to create a new user account when running jetspeed 1.5 with Oracle. org.apache.jetspeed.services.security.UserException: Failed to create account 'a': ORA-04016: sequence TURBINE_USER no longer exists I created a database and ran the C:\jetspeed-1.5\src\sql\external\turbine-oracle.sql and C:\jetspeed-1.5\src\sql\external\populate-oracle.sql Sql scripts. Copied the oracle JDBC driver into lib directory. Made the following modifications to the Torque.properties file torque.database.default.adapter=oracle torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver torque.dsfactory.default.connection.url = jdbc:oracle:thin:@localhost:1521:orcl torque.dsfactory.default.connection.user = jetspeed torque.dsfactory.default.connection.password = jetspeed What else do I need to do? I'm working with a Jetspeed 1.5 source distribution, not pulled from the CVS tree. Seems like the code is somehow expecting a sequence called TURBINE_USER but it's called TURBINE_USER_SEQ in the sql file. Is there something that needs to be changed in the security-schema.xml file ? Thanks, Tom The stack trace : java.sql.SQLException: ORA-04016: sequence TURBINE_USER no longer exists at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:12 5) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112) at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:3 51) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatemen t.java:896) at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java :383) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement. java:986) at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:112 5) at com.workingdogs.village.QueryDataSet.(Unknown Source) at org.apache.torque.oid.SequenceIdGenerator.getIdAsVillageValue(SequenceId Generator.java:199) at org.apache.torque.oid.SequenceIdGenerator.getIdAsBigDecimal(SequenceIdGe nerator.java:133) at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:720) at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:639) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas eTurbineUserPeer.java:241) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas eTurbineUserPeer.java:214) at org.apache.jetspeed.services.security.turbine.TurbineUserManagement.addU ser(TurbineUserManagement.java:283) at org.apache.jetspeed.services.JetspeedUserManagement.addUser(JetspeedUser Management.java:95) at org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.j ava:213) at org.apache.jetspeed.modules.actions.CreateNewUserAndConfirm.doPerform(Cr eateNewUserAndConfirm.java:171) at org.apache.turbine.modules.Action.perform(Action.java:87) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:14 3) at org.apache.turbine.modules.Page.build(Page.java:90) at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123) at org.apache.turbine.Turbine.doGet(Turbine.java:563) at org.apache.turbine.Turbine.doPost(Turbine.java:658) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: Jetspeed2 M1 security setup (was: jetspeed-newbie Roles-Group s-Users)
Marina, Thanks for using the jetspeed user list! Comments below. Randy -Original Message- From: Marina To: 'Jetspeed Users List ' Sent: 12/6/04 5:06 PM Subject: RE: Jetspeed2 M1 security setup (was: jetspeed-newbie Roles-Groups-Users) Hi, I've successfully built and installed J2 M1 and was looking into the demo applications to figure out how to setup access control for portlets/pages. After checking out some example portlets , like RoleSecurityTest and Login, and their source code, I think I have some idea of how to approach the task but I would like to clarify some topics. First, I'll list my assumptions and then ask questions: 1. tomcat-5.0.30-j2-M1\webapps\jetspeed\WEB-INF\pages\page.security file specifies 'Edit'/'View' permissions for the default Portal's page, defined in default-page.psml The /page.security file defines named security constraints that can be referenced here or in individual page, folder meta data, link, or document set documents. The scope of this file is global across the entire site. References take the form of global-security-constraints-ref/, (which appear only in /page.security), or security-constraints-ref/. Thus, this part : security-constraints-def name=admin security-constraint rolesadmin/roles permissionsview, edit/permissions /security-constraint /security-constraints-def means that only a user with the role 'admin' can edit the layout of the page. Yes, since this fragment is referenced in a global-security-constraints-ref/, it applies to all documents in the site. And this fragment: security-constraints-def name=manager security-constraint rolesmanager/roles permissionsview/permissions /security-constraint /security-constraints-def means that a user with the role 'manager' can view the page. Yes, where used with a security-constraints-ref/. However, anybody can view this default page in reality - even before a user logs in. You don't need any special privileges to access http://localhost:8080/jetspeed to see the page. My assumption is that it is because security constraints are overwritten in the pages/folder.metadata file (see below). Is that true? Not exactly. The override is in the default-page.psml itself, (user=*, permission=view). What is the scope of the page.security definitions and where are they used? See above. 2. each folder under /pages directory (including /pages itself) has a folder.metadata file where more security-constraints are defined for that folder. For example, here is pages/folder.metadata: . security-constraints security-constraint rolesuser/roles permissionsview/permissions /security-constraint security-constraints-refmanager/security-constraints-ref /security-constraints This should be commented out in M1. security-constraints security-constraint users*/users permissionsview/permissions /security-constraint /security-constraints /folder And this is why all users can see the default page. (Is that true?) It would be the case if default-page.psml did not override on its own. To be exact, this allows all users to view the folder and any content within it that does not specify its own security constraints. In effect, this is the site default for global pages because it is defined at the root leve. On the other hand, here is pages\Administrative\folder.metadata : folder titleJetspeed Administrative Portlets/title !-- allow only manager role -- security-constraints security-constraints-refmanager/security-constraints-ref /security-constraints /folder This folder corresponds to the Jetspeed Administrative Portlets menu item in the 'Folder and Pages' menu on the left side of the Portal window. However, it is displayed only when a user with the 'manager' role logged in. Correct. It also requires that its contents only be visible in the manager role as well. 3. There also are security-constraints in the .psml files themselves. For example, pages/default-page.psml has: security-constraints security-constraint users*/users permissionsview/permissions /security-constraint /security-constraints Yes, and it is this that enables any user to view the default page, no matter what the folder that the page belongs to is permitted. 4. Also, there are security-ref defined in the portlet.xml files of individual portlets. For example: portlet id=RoleSecurityTest . security-role-ref role-nameAdministrator/role-name role-linkadmin/role-link /security-role-ref security-role-ref role-nameManager/role-name role-linkmanager/role-link /security-role-ref security-role-ref role-nameUser/role-name role-linkuser/role-link /security-role-ref /portlet and corresponding security-roles are defined in the web.xml file of the portlet application: web-app security-role descriptionThe admin role/description
Jetspeed 2 Release
Ist there a schedule for the Jetspeed 2 releases? Freundliche Grüße Franz OBERNDORFER Software Engineering GRZ IT Center Linz GmbH A-4021 Linz, Goethestraße 80 Tel: +43 732 6929 1607 Fax: +43 732 6929 1220 mailto:[EMAIL PROTECTED] http://www.grz.at Der Austausch von Nachrichten mit o.a. Absender via e-mail dient ausschließlich Informationszwecken. Rechtsgeschäftliche Erklärungen dürfen über dieses Medium nicht ausgetauscht werden. Correspondence with a.m. sender via e-mail is only for information purposes. This medium is not to be used for the exchange of legally-binding communications. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
exo-hibernate
I have developed my portlet on pluto with no error but whne I migrate to exo I have encountered an run time exception whose inner is... Caused by: java.lang.ClassCastException at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.hibernate.impl.SessionFactoryImpl.clinit(SessionFactoryImpl.java:236) form hibernate classes ... Anybody have any idea? PS: I am not using hibernate service jdk: 1.4.2_04 OS:win2000 locale:en_US - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]