HELP: Building custom portlet on PostgreSQL with Jetspeed-2-M1
Hi all, I've been figuring out how to use Jetspeed-2 for months now since it's too hard to get it working without any good documentation (I've looked at the wiki but it doesn't help). Now that I got Jetspeed-2 Binary working, I would like to ask a couple of questions, please help me out: 1. How do I configure Jetspeed-2 to use Postgres? (WEB-INF/conf/Torque.properties does not exist) 2. Can we register the portlets like how we did in Jetspeed-1 (as in the tutorial from apache.org)? 3. Can we deploy application on Jetspeed-2 + Torque with Ant instead of Maven (Maven is too complicated than the good-old-simple Ant)? If you could answer these questions, I'd be really appreciated. Thanks. -- Long Tran <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to create a custom profiling rule?
Marina, David is the Profiler Master, so he is much more qualified to explain its configuration and inner workings. The source is in components/profiler. See comments below... > It seems that profiling rules are assigned to the >users based on the user names. Yes. > At least this is what I >see in the PRINCIPAL_RULE_ASSOC table - I created a >new user, 'dce_admin', and assigned a 'security' >profiling rule to it, and the ("dce_admin", "page", >"security") values got inserted into the >PRINCIPAL_RULE_ASSOC table. Just FYI, the locator/rule name "security" has special meaning in J2... you might want to pick another name for your custom rule to avoid confusion. The "security" locator/rule is used when a user has an expired password and must select a new one. See details in the archives of the dev list. > Now my question: how could I assign a profiling rule >to a rolename, not a username? >For example, I might want all users with the >'dce_admin_role' role to use the 'security' rule. We have discussed this, but it is not been implemented yet. There is a global default mechanism in place: if you specify a PRINCIPAL_RULE_ASSOC entry with a username of '*", it will be used for all users. This feature may not be implemented in this way in the future, but there certainly will be some other way to do the same thing. Randy
Re: How to create a custom profiling rule?
One more related question: It seems that profiling rules are assigned to the users based on the user names. At least this is what I see in the PRINCIPAL_RULE_ASSOC table - I created a new user, 'dce_admin', and assigned a 'security' profiling rule to it, and the ("dce_admin", "page", "security") values got inserted into the PRINCIPAL_RULE_ASSOC table. So, I assumed that the 'PRINCIPAL_NAME' in this table is in fact a username. Now my question: how could I assign a profiling rule to a rolename, not a username? For example, I might want all users with the 'dce_admin_role' role to use the 'security' rule. Thanks! Marina --- Marina <[EMAIL PROTECTED]> wrote: > Hi! > > I'm trying to create a new profiling rule for a > user. > From looking at the examples and the DB tables it > seems that all I need to do is to add new entries to > the PRINCIPAL_RULE_ASSOC and RULE_CRITERION tables. > The first table's structure and purpose are quite > clear. If I want to create a new 'dce_rule'(for both > pages and docsets) for the 'dce_admin' user I think > I > should do the following: > > insert into PRINCIPAL_RULE_ASSOC values > ('dce_admin', > page, 'dce_rule'); > insert into PRINCIPAL_RULE_ASSOC values > ('dce_admin', > docset, 'dce_rule'); > > Then, I need to add new rule criteria for the new > rule > into the RULE_CRITERION table. I looked at the > current > values there and I am not sure how they are used to > define profiling rules. More specifically, I see, > for > example, the following entries for the 'role-group' > rule: > > > 11 > role-group > 0 > role > role > > 2 > > > 12 > role-group > 1 > navigation > navigation > / > 2 > > > 13 > role-group > 2 > group > group > > 2 > > > I aslo know (thanks to Randy's explanation) that the > search paths returned by this rule are: > /_role/rolename > /_group/groupname > / > > However, I am not sure how and what fields from the > RULE_CRITERION table are used to construct these > paths. Are 'Name' or 'Value' fields used ? They are > null's for group and role request_type , but '/' > for > the navigation one. What are the 'path.session', > 'navigation', and other REQUEST_TYPEs? And where > does > FALLBACK_TYPE come into play? > > Basically, my question is: what is the meaning of > the > fields of this table and how are they used? > > Thanks! > Marina > > P.S. I think I sent this e-mail to the development > list as well - sorry about that, it was done my > mistake > > > > __ > Do you Yahoo!? > Send holiday email and support a worthy cause. Do > good. > http://celebrity.mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to create a custom profiling rule?
Hi! I'm trying to create a new profiling rule for a user. >From looking at the examples and the DB tables it seems that all I need to do is to add new entries to the PRINCIPAL_RULE_ASSOC and RULE_CRITERION tables. The first table's structure and purpose are quite clear. If I want to create a new 'dce_rule'(for both pages and docsets) for the 'dce_admin' user I think I should do the following: insert into PRINCIPAL_RULE_ASSOC values ('dce_admin', page, 'dce_rule'); insert into PRINCIPAL_RULE_ASSOC values ('dce_admin', docset, 'dce_rule'); Then, I need to add new rule criteria for the new rule into the RULE_CRITERION table. I looked at the current values there and I am not sure how they are used to define profiling rules. More specifically, I see, for example, the following entries for the 'role-group' rule: 11 role-group 0 role role 2 12 role-group 1 navigation navigation / 2 13 role-group 2 group group 2 I aslo know (thanks to Randy's explanation) that the search paths returned by this rule are: /_role/rolename /_group/groupname / However, I am not sure how and what fields from the RULE_CRITERION table are used to construct these paths. Are 'Name' or 'Value' fields used ? They are null's for group and role request_type , but '/' for the navigation one. What are the 'path.session', 'navigation', and other REQUEST_TYPEs? And where does FALLBACK_TYPE come into play? Basically, my question is: what is the meaning of the fields of this table and how are they used? Thanks! Marina P.S. I think I sent this e-mail to the development list as well - sorry about that, it was done my mistake __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding back button & history
Hi All, When I navigate through few pages and then maximize one of the portlet and then click on the back button of the browser, it is not taking me to the history(the previous pages visted), but it is dispalying some junk like <>. In the normal portlets mode(i.e the default portlets when not maximized) is working fine. Can anyone tell me how should I handle this issue. Thanks in advance, Bhaskar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using JBoss Datasource
Hi all... i need to use Jetspeed 1.5 under JBoss 3.2.5/3.2.6; i'ld like to know if it's possible and how i can use the Datasource of JBoss defined, for example, in oracle-ds.xml or mysql-ds.xml. Thanks to all Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, video e sport. Abbonati subito senza costi di attivazione su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP......Requested Action not found: portlets.NikkoInfoBeanAction
Hi all; i have a problem with my generic mvc portlet; i have written an action called: NikkoInfoBeanAction. This action is in the package: it.eng.nikko.delivery.modules.actions.portlets; i have written my xreg file in this way: Nikko Portlet Visualizza il contenuto di Info Beans org.apache.jetspeed.portal.portlets.GenericMVCPortlet View View links in condensed, expanded or JavaScriptPowered view. example I have added to the file my.properties this: module.packages=it.eng.nikko.delivery.modules # # Filter OneStop Logging # log4j.category.it.eng.nikko = WARN, onestop, stdout log4j.additivity.it.eng.nikko = false # # onestop.log # log4j.appender.onestop = org.apache.log4j.FileAppender log4j.appender.onestop.file = ${webappRoot}/WEB-INF/log/onestop.log log4j.appender.onestop.layout = org.apache.log4j.PatternLayout log4j.appender.onestop.layout.conversionPattern = %d [%t] %-5p (%F:%L) - %m%n log4j.appender.onestop.append = false to the log4j.properties.merge i have added: # # Filter OneStop Logging # log4j.category.com.automateddocsys = DEBUG, nikko, stdout log4j.additivity.com.automateddocsys = false # # NikkoPortlet.log # log4j.appender.nikko = org.apache.log4j.FileAppender log4j.appender.nikko.file = ${webappRoot}/WEB-INF/log/NikkoPortlet.log log4j.appender.nikko.layout = org.apache.log4j.PatternLayout log4j.appender.nikko.layout.conversionPattern = %d [%t] %-5p (%F:%L) - %m%n log4j.appender.nikko.append = false Prima scrittura sulla console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern che deve avere loutput log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p (%F:%L) - %m%n to the TurbineResources i have added: module.packages=it.eng.nikko.delivery.modules Well i have added the portlet by using the PSML Browser but when i try to use it i have this error: Requested Action not found: portlets.NikkoInfoBeanAction Turbine looked in the following modules.packages path: [org.apache.jetspeed.modules, org.apache.turbine.modules, it.eng.portal.modules, it.eng.nikko.delivery.modules] at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(GenericMVCPortlet.java:276) at org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(GenericMVCPortlet.java:207) at org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:119) 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.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.Template.merge(Template.java:296) at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492) at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461) . . I have created a jar file and i have inserted it in the WEB-INF/lib directory, then i have restarted JBoss 3.2.5. but i'm not able to use this portlet. Any Idea?? Thanks Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, video e sport. Abbonati subito senza costi di attivazione su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]