jetspeed-newbie Roles-Groups-Users

2004-11-16 Thread Thilina
Hi,
I need to do following thing using the jetspeed,

Creating..
3 roles - Admin, Executive, Developer
2 Groups - Administration, Users
100 of users - CEO,CFO,admin, aaa, bbb, ccc, etc

Setting
Admin and Executive belongs to Administrative Group
Developer belongs to Users Group

CEO and CFO are Executive Roles
admin user is belongs to Admin role
aaa, bbb, ccc, etc belongs to Developer role

Users group only have rights to view the information.
Admin role have all the control except viewing some confidential
information such as Banking and Finance information. Only CEO and CFO
have rights to access those information.

Admin could lock and unlock account except CEO and CFO.

Is this kind of activity achieve using jetspeed 1.5?

Thank you
Thilina






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem when displaying images on j1.5

2004-11-16 Thread Loreno F. de Oliveira / Grad. DSC
Hi all,

I´m faced to an estrange problem on J1.5. When I first display the portal´s
initial page (where we perform login) all the images are correctly displayed.
But, if I press my browser´s reload buttom, the images desapear! :-O

If I press some more times the reload buttom, the images, magicaly, cames back.

Does anyone knows what is it??

[]´s

Loreno

--
Loreno Feitosa de Oliveira
Graduação - CCC
UFCG / CCT / Depto. de Sistemas e Computação - http://www.dsc.ufcg.edu.br


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Web Services Portlet

2004-11-16 Thread orchard
Hi,

Well, I simply typed off the code and included the portlet into the
portlet.xreg
I also copied the soap.jar into jetspeeds lib and included it in Tomcat's
common/endorsed file. It complied without problem.
I included the portlet in a test page logged in as admin. The portlet
simply doesn't appear though.

I thought of changing the tomcat.bat, but Tomcat 5 doesn't seem to have
any such file anymore, and I couldn't find the class path you mentioned in
any of the other bat files.

Hope you can help

Cheers
Greg

PS: You don't know how to make a RSS Portlet work by any chance? Having
some problems with that too.

 Hi,

 That's my article, and it's really old and outdated at this point.
 Which part didn't work?

 You should be able to call a web service from a portlet just like anything
 else.

 Jeff


 On Mon, 15 Nov 2004 16:41:23 +0100 (CET), [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 Hi

 I just tried the Web Service Portlet Tutorial from :
 http://www.javaworld.com/javaworld/jw-07-2001/jw-0727-jetspeed-p3.html

 Well, it doesn't seem to work. Anybody got any hints or could someone
 show/send me a working Web Service Portlet with Source? It doesn't
 matter
 which Web Service is used.

 I'm using Jetspeed 1.4 with Tomcat 5.0.

 Cheers,

 Greg

 -
 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]



Fusion Struts Demo

2004-11-16 Thread Jeff Sheets
I'm trying get the struts-demo app working in Fusion.  I have the
other JSR-168 sample apps working, like the demo.war number guessing
game, however the struts-demo.war is giving me some problems.  I built
from CVS head just two days ago.  Here is the only exception trace
that I can find (as generic as it might be), and any help would be
greatly appreciated:

2004-11-16 10:47:47,718 [ExecuteThread: '11' for queue:
'weblogic.kernel.Default'] ERROR
org.apache.portals.bridges.struts.StrutsPortlet - Include exception
javax.servlet.ServletException: Original response not available
at 
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:470)
at 
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:400)
at 
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:274)
at 
org.apache.portals.bridges.struts.StrutsPortlet.processAction(StrutsPortlet.java:218)
at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:228)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:607)
at 
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:400)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:213)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.action(ServletPortletInvoker.java:132)
at 
org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:148)
at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.processPortletAction(JetspeedPortletContainerWrapper.java:100)
at 
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:75)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.fusion.security.impl.FusionSecurityValveImpl.invoke(FusionSecurityValveImpl.java:73)
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.fusion.profiler.impl.FusionProfilerValveImpl.invoke(FusionProfilerValveImpl.java:52)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:137)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:73)
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:251)
at 
org.apache.jetspeed.fusion.modules.actions.FusionAccessController.doPerform(FusionAccessController.java:114)
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:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at 

Default/Anon Screen ?

2004-11-16 Thread Hampton, Thomas
Jetspeed seems to come up for the Anon user to a screen that is some
kind of portlet container.  Is it possible to change that default
screen to not be the a portlet container but some other screen ?

What I'd like to do is have a regular screen be the default, and use the
portal container when a user has logged in and selected some portlets.

Tom Hampton
Sr. Software Engineer / Architect
SRA International, Inc.
[EMAIL PROTECTED]
Phone 240-221-2012
Fax 240-221-2001




Want make a tree menu in jetspeed 1.5

2004-11-16 Thread James Wang
Dear all,
 
I wanna define a TreeMenu Controller in Jetspeed 1.5.
when i define a pane's layout is treemenu,all the
portlets in this pane
and its sub pane should be displayed in 
the left menu navigation tree,and i can click one
pane,then collapse
this pane and show its portlet ,if there is a sub-pane
in this pane
and then i can  collapse this sub-pane too,until i
click one portlet
and in the right screen show this portlet content.
 
one word,i wanna show all childs of a pane with a
navigation tree.
how to do i got this?
 
i researched the source file:
  
org\apache\jetspeed\portal\controls\VelocityPortletSetControl.java
 
  ..
private Collection getTabs(PortletSet portlets,
RunData rundata, Context context)
for (Enumeration en = portlets.getPortlets();
en.hasMoreElements(); count++)
{
Portlet p = (Portlet) en.nextElement();
.
}
 
i wanna get some information of the 'Portlet'
interface,but when i 
tried some method, p.getName(),p.getTitle(),it cant
identify it is a portlet
or is a pane.it seems that all of those are portlet.so
i cant know when and how
to get it's child information.
 
 
 
 
 
 
 
 



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default/Anon Screen ?

2004-11-16 Thread Dan Moore
I do something similar.  In
WEB-INF/templates/vm/layouts/html/default.vm, the very first line is:

#if ($data.user.userName == 'anon')
 $data.response.sendRedirect($config.getString(nologin.cookie.url))
#end

The other option (probably better) is to edit the PSML of the anon user
to have no portlets.  Of course, then you're limited in terms of what
you have there, since the header and footer are common to all users. 
(But, you could wrap if statements similar to what I have above to only
show some content to the anon user.)

Dan

--- Hampton, Thomas [EMAIL PROTECTED] wrote:

 Jetspeed seems to come up for the Anon user to a screen that is some
 kind of portlet container.  Is it possible to change that default
 screen to not be the a portlet container but some other screen ?
 
 What I'd like to do is have a regular screen be the default, and use
 the
 portal container when a user has logged in and selected some
 portlets.
 
 Tom Hampton
 Sr. Software Engineer / Architect
 SRA International, Inc.
 [EMAIL PROTECTED]
 Phone 240-221-2012
 Fax 240-221-2001
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What do you need to do to add a new screen ?

2004-11-16 Thread Hampton, Thomas
I created a new screen template in the
webapp\WEB-INF\templates\vm\screens\html directory.  Then I modified the
left.vm file as follows.

td
  a href=$jslink.getPage(Page2)
img src=images/leftnav_api.gif border=0
  /a
/td
  /tr
  tr
td
  a href=$jslink.getTemplate(EditAccount)
img src=images/leftnav_api.gif border=0
  /a
/td
  /tr

What I want to happen is for the Page2 screen to come up the same way
the EditAccount screen does.  But I just get a blank page.  The
EditAccount screen comes up ok.  So I'm sure that I have not done
something that is needed to register the Page2 screen template, but
I don't know what I'm missing.  The Page2 template just has static
text in it right now.

What am I missing ?




Tom Hampton
Sr. Software Engineer / Architect
SRA International, Inc.
[EMAIL PROTECTED]
Phone 240-221-2012
Fax 240-221-2001




Problem installing jetspeed

2004-11-16 Thread Mark Miller
I am running into a problem with downloading jar files during the 
install of jetspeed. From the Getting Started page at
   http://portals.apache.org/jetspeed-2/getting-started.html
I am running the command:   
   maven --debug allClean allBuild
and in the output, I can see that maven is trying to download jetspeed 
files from www.ibiblio.org, which appears to be invalid:
   Attempting to download spring-core-1.1.1.jar.
   Getting URL: 
http://www.ibiblio.org/maven/springframework/jars/spring-core-1.1.1.jar
   Received status code: 404
   File not found on one of the repos

This error is displayed for each of the files that is attempted to be 
downloaded. Is this a known issue, or has something changed recently on 
ibibilio? Is there a known work-around?

Thanks,
Mark.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JetSpeed and TOMCAT

2004-11-16 Thread Carlos Torres

Hello people,

I'm using jetspeed running in tomcat on windows platform. When I execute in my 
desktop, using the startup.bat and shudown.bat commands, to start and stop the 
tomcat server no problem. But, when i start and stop the tomcat as a windows 
service my configuration changes in jetspeed are lost.
Anybody got this problem? Please, help me.

Thanks a lot

Regards,
 
   Carlos Alberto Torres
Web Solutions Consultant
MCN Technology  Consulting
  São Paulo - SP - Brasil
  www.mcn.com.br
Phone: +55 11  5561-1044
Fax: +55 11  5561-3752

Re: Problem installing jetspeed

2004-11-16 Thread David Sean Taylor
Mark Miller wrote:
I am running into a problem with downloading jar files during the 
install of jetspeed. From the Getting Started page at
   http://portals.apache.org/jetspeed-2/getting-started.html
I am running the command:  maven --debug allClean allBuild
and in the output, I can see that maven is trying to download jetspeed 
files from www.ibiblio.org, which appears to be invalid:
   Attempting to download spring-core-1.1.1.jar.
   Getting URL: 
http://www.ibiblio.org/maven/springframework/jars/spring-core-1.1.1.jar
   Received status code: 404
   File not found on one of the repos

This error is displayed for each of the files that is attempted to be 
downloaded. Is this a known issue, or has something changed recently on 
ibibilio? Is there a known work-around?

The IBiblio maven site is occasionally down
It seems to be up now, but very slow
Try commenting out ibiblio since most of the jars should be mirrored in 
the other repos. If you have any failures, let me know which jar files 
you are missing and I will upload them to one of the maven remote repos


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: What do you need to do to add a new screen ?

2004-11-16 Thread David Sean Taylor
Hampton, Thomas wrote:
I created a new screen template in the
webapp\WEB-INF\templates\vm\screens\html directory.  Then I modified the
left.vm file as follows.
td
  a href=$jslink.getPage(Page2)
img src=images/leftnav_api.gif border=0
  /a
/td
  /tr
  tr
td
  a href=$jslink.getTemplate(EditAccount)
img src=images/leftnav_api.gif border=0
  /a
/td
  /tr
What I want to happen is for the Page2 screen to come up the same way
the EditAccount screen does.  But I just get a blank page.  The
EditAccount screen comes up ok.  So I'm sure that I have not done
something that is needed to register the Page2 screen template, but
I don't know what I'm missing.  The Page2 template just has static
text in it right now.
What am I missing ?

$jslink.getPage gets a PSML page, not a turbine template
I think you may be confusing it with $link.getPage
Why not use $jslink.getTemplate here too
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jetspeed-newbie Roles-Groups-Users

2004-11-16 Thread David Sean Taylor
Thilina wrote:
Hi,
I need to do following thing using the jetspeed,
Creating..
3 roles - Admin, Executive, Developer
2 Groups - Administration, Users
100 of users - CEO,CFO,admin, aaa, bbb, ccc, etc
Setting
Admin and Executive belongs to Administrative Group
Developer belongs to Users Group
CEO and CFO are Executive Roles
admin user is belongs to Admin role
aaa, bbb, ccc, etc belongs to Developer role
Users group only have rights to view the information.
Admin role have all the control except viewing some confidential
information such as Banking and Finance information. Only CEO and CFO
have rights to access those information.
Admin could lock and unlock account except CEO and CFO.
Is this kind of activity achieve using jetspeed 1.5?
Yes.
To see the User Admin, go here:
http://.bluesunrise.com/jetspeed
login as user = admin, pw = (sendme an email personally to get it)
Go to the security tab, and then Security Browser
Here you can see how to setup security constraints
You will also see how to administer roles, groups and users here.
Also, docs are here:
http://portals.apache.org/jetspeed-1/security.html#Registry_Access_Control
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Want make a tree menu in jetspeed 1.5

2004-11-16 Thread David Sean Taylor
James Wang wrote:
Dear all,
 
I wanna define a TreeMenu Controller in Jetspeed 1.5.
when i define a pane's layout is treemenu,all the
portlets in this pane
and its sub pane should be displayed in 
the left menu navigation tree,and i can click one
pane,then collapse
this pane and show its portlet ,if there is a sub-pane
in this pane
and then i can  collapse this sub-pane too,until i
click one portlet
and in the right screen show this portlet content.
 
one word,i wanna show all childs of a pane with a
navigation tree.
how to do i got this?
 
i researched the source file:
  
org\apache\jetspeed\portal\controls\VelocityPortletSetControl.java
 
  ..
private Collection getTabs(PortletSet portlets,
RunData rundata, Context context)
for (Enumeration en = portlets.getPortlets();
en.hasMoreElements(); count++)
{
Portlet p = (Portlet) en.nextElement();
.
}
 
i wanna get some information of the 'Portlet'
interface,but when i 
tried some method, p.getName(),p.getTitle(),it cant
identify it is a portlet
or is a pane.it seems that all of those are portlet.so
i cant know when and how
to get it's child information.
 
 
No one has ever contributed a Javascript menu to J1.
Recommend writing a layout with javascript and please :), sending us a 
patch when you have it

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem installing jetspeed

2004-11-16 Thread Mark Miller
Thanks David, it actually looks like some of the files have been moved 
around on Ibiblio - for example:
   http://www.ibiblio.org/maven/pluto/jars/pluto-1.0.1-rc1.jar
The server is responding to me - but the file does not exist at this 
location. I checked for this file on the bluesunrise.com server  it 
does exist there, but I am having trouble convincing maven to use the 
bluesunrise.com server.

I updated the project.properties file and made the following change:
   # maven.repo.remote = http://www.bluesunrise.com/maven/, 
http://www.ibiblio.org/maven/, http://dist.codehaus.org/,  ...
   maven.repo.remote = http://www.bluesunrise.com/maven/
and restarted the test server (maven start.test.server) but maven is 
still trying to download packages from ibiblio. Where should I make the 
change to have it look for the packages on bluesunrise.com?

David Sean Taylor wrote:
Mark Miller wrote:
I am running into a problem with downloading jar files during the 
install of jetspeed. From the Getting Started page at
   http://portals.apache.org/jetspeed-2/getting-started.html
I am running the command:  maven --debug allClean allBuild
and in the output, I can see that maven is trying to download 
jetspeed files from www.ibiblio.org, which appears to be invalid:
   Attempting to download spring-core-1.1.1.jar.
   Getting URL: 
http://www.ibiblio.org/maven/springframework/jars/spring-core-1.1.1.jar
   Received status code: 404
   File not found on one of the repos

This error is displayed for each of the files that is attempted to be 
downloaded. Is this a known issue, or has something changed recently 
on ibibilio? Is there a known work-around?

The IBiblio maven site is occasionally down
It seems to be up now, but very slow
Try commenting out ibiblio since most of the jars should be mirrored 
in the other repos. If you have any failures, let me know which jar 
files you are missing and I will upload them to one of the maven 
remote repos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: performance slowdown for 100,000 users, all with same PSML

2004-11-16 Thread David Sean Taylor
Youssef Mohammed wrote:
I think it has nothing to do with the portlets since the only changes
he (Dan) made was the number of users.
I suggest to do some profiling (both IBM and Oracle stuff can help )
to the jetspped instance to see what is going on.
I used to work on J1 last year and I did found some scalability issues on it. 
I donno if they still exist on not. 

If our resident performance expert doesn't mind, could I also recommend 
trying the delay rendering feature, which allows for J1 to render 
portlets in parallel.
By default, J1 will render portlet sequentially, meaning that portlet 2 
doesnt start rendering until portet 1 completes and so on.

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem installing jetspeed

2004-11-16 Thread David Sean Taylor
Mark Miller wrote:
Thanks David, it actually looks like some of the files have been moved 
around on Ibiblio - for example:
   http://www.ibiblio.org/maven/pluto/jars/pluto-1.0.1-rc1.jar
The server is responding to me - but the file does not exist at this 
location. I checked for this file on the bluesunrise.com server  it 
does exist there, but I am having trouble convincing maven to use the 
bluesunrise.com server.

I updated the project.properties file and made the following change:
   # maven.repo.remote = http://www.bluesunrise.com/maven/, 
http://www.ibiblio.org/maven/, http://dist.codehaus.org/,  ...
   maven.repo.remote = http://www.bluesunrise.com/maven/
and restarted the test server (maven start.test.server) but maven is 
still trying to download packages from ibiblio. Where should I make the 
change to have it look for the packages on bluesunrise.com?

Look at your $HOME/build.properties, it overrides project.properties
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: performance slowdown for 100,000 users, all with same PSML

2004-11-16 Thread Jun Yang
David Sean Taylor wrote:
Youssef Mohammed wrote:
I think it has nothing to do with the portlets since the only changes
he (Dan) made was the number of users.
I suggest to do some profiling (both IBM and Oracle stuff can help )
to the jetspped instance to see what is going on.
I used to work on J1 last year and I did found some scalability 
issues on it. I donno if they still exist on not.

If our resident performance expert doesn't mind, could I also 
recommend trying the delay rendering feature, which allows for J1 to 
render portlets in parallel.
By default, J1 will render portlet sequentially, meaning that portlet 
2 doesnt start rendering until portet 1 completes and so on.
The delayed-rendering feature works the best in the situation when you 
have many portlets on your page and some of which are much slower than 
others.  Then you can set those slow ones to be delay-rendered.  The 
effect is your page appear when all the fast portlets are finished 
rendering and then the slow ones will be requested from the server and 
rendered.  Users get better perceived performance.  Notice this feature 
actually increases the total number of requests going into the server.

Jun
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Want make a tree menu in jetspeed 1.5

2004-11-16 Thread Pe, Win {PI}
Hi All,

I have used JavaScript 'Tigra' tree menu from SoftComplex. They have various 
versions and basic version is free. You can find the script at 
http://www.softcomplex.com/products/tigra_tree_menu/. They also have drop down 
menu and again basic version is free. 
http://www.softcomplex.com/products/tigra_menu/. I found it quite easy to set 
up. 

I use the drop down menu across the top to tie all intranet sites together and 
tree menu in left navigational bar.

Hope it helps.

Regards,

Win Pe



-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 November 2004 10:55
To: Jetspeed Users List
Subject: Re: Want make a tree menu in jetspeed 1.5


James Wang wrote:

 Dear all,
  
 I wanna define a TreeMenu Controller in Jetspeed 1.5.
 when i define a pane's layout is treemenu,all the
 portlets in this pane
 and its sub pane should be displayed in 
 the left menu navigation tree,and i can click one
 pane,then collapse
 this pane and show its portlet ,if there is a sub-pane
 in this pane
 and then i can  collapse this sub-pane too,until i
 click one portlet
 and in the right screen show this portlet content.
  
 one word,i wanna show all childs of a pane with a
 navigation tree.
 how to do i got this?
  
 i researched the source file:
   
 org\apache\jetspeed\portal\controls\VelocityPortletSetControl.java
  
   ..
 private Collection getTabs(PortletSet portlets,
 RunData rundata, Context context)
 for (Enumeration en = portlets.getPortlets();
 en.hasMoreElements(); count++)
 {
 Portlet p = (Portlet) en.nextElement();
 .
 }
  
 i wanna get some information of the 'Portlet'
 interface,but when i 
 tried some method, p.getName(),p.getTitle(),it cant
 identify it is a portlet
 or is a pane.it seems that all of those are portlet.so
 i cant know when and how
 to get it's child information.
  
  
No one has ever contributed a Javascript menu to J1.
Recommend writing a layout with javascript and please :), sending us a 
patch when you have it

-- 
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JetSpeed and TOMCAT

2004-11-16 Thread David Sean Taylor
Carlos Torres wrote:
Hello people,
I'm using jetspeed running in tomcat on windows platform. When I execute in my 
desktop, using the startup.bat and shudown.bat commands, to start and stop the 
tomcat server no problem. But, when i start and stop the tomcat as a windows 
service my configuration changes in jetspeed are lost.
Anybody got this problem? Please, help me.
Thanks a lot
please do not cross post.
Try installing it something like this:
cd %TOMCAT_HOME%\bin
call tomcat -install Jetspeed-Tomcat 
%JAVA_HOME%\jre\bin\server\jvm.dll -Xmx512m -Xms128m 
-Djava.class.path=%TOMCAT_HOME%\bin\bootstrap.jar 
-Dcatalina.home=%TOMCAT_HOME -start 
org.apache.catalina.startup.BootstrapService -params start -stop 
org.apache.catalina.startup.BootstrapService -params stop -out 
%TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log

Then start the service
NET START Jetspeed-Tomcat
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: performance slowdown for 100,000 users, all with same PSML

2004-11-16 Thread Antonio Saade Hazin
Hi:

I don't know about J1 scalability issues, but HSQL does. Could the 
DB (in a slow computer and a JVM not optimized for memory) 
be the problem in this case?


HyperSonic (HSQLDB): (...) Hypersonic was originally designed as 
an in-memory database; as a result, operations performed on 
tables that are larger than available memory tend to run very 
slowly. This scalability issue relegates Hypersonic to the 
requirements of small applications.  
http://www.devx.com/IBMCloudscape/Article/21773/4165?pf=true

Hypersonic works a client at a time: 
With other database engines, connection pools are used for 
reasons that may not apply to HSQLDB. 
* To allow new queries to be performed while a time-consuming 
query is being performed in the background. This is not 
possible with HSQLDB as it blocks while performing the first 
query and deals with the next query once it has finished it.  
http://hsqldb.sourceforge.net/doc/guide/ch04.html



 -Original Message-
 From: Dan Moore [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 7:04 PM
 To: [EMAIL PROTECTED]
 Subject: performance slowdown for 100,000 users, all with same PSML
 
 
 Hi folks,
 
 I have an application I'm building on top of Jetspeed 1.5--I just
 grabbed the WAR from portals.apache.org.  The back end is an Oracle
 database.
 
 I end up having around 100,000 users in the turbine_user table.  All of
 these users have the same PSML and they all have the same role; we're
 using the role fallback mechanism.  The PSML is stored on the
 filesystem, under role/user/language/country; right now I'm only
 using English and the US.
 
 I was seeing a massive slowdown in our application when we went from
 the 3 sample users to the full 100,000, so I'm trouble shooting that. 
 The average page draw went from 4 seconds to 18 seconds (this is with 4
 simulated users hitting the home page at once).  I was able to get
 response times of around 4 seconds on my box (it's old and slow) with
 the default jetspeed setup (just as downloaded from the site:
 hypersonic db, only logging in as an anonymous user).
 
 I modified the JetspeedSessionValidator to log folks in with a cookie,
 but that's the only code change I've made to the vanilla jetspeed war
 I'm benchmarking (I profiled it and that method only adds 300
 milliseconds or so).  I did make two configuration changes:
 
 automatic.logon.enable=true
 
 database.default.maxConnections=20
 
 I took a look at this page:
 http://nagoya.apache.org/wiki/apachewiki.cgi?JetspeedPerformanceTips
 but didn't really notice any huge gains (I did up the number of
 connections allowed in TurbineResources.properties and
 Torque.properties).  In addition, it seems that many of the suggestions
 have been incorporated into the defaults.
 
 The turbine_user and turbine_user_group_role tables have their standard
 indices.
 
 I'm trying to figure out where the extra 15 seconds comes from.  I
 guess I'm not so concerned about the absolute time it takes (we're
 going to deploy on much faster hardware), but I do want to get the
 ratio down. 
 
 From just watching the page draw, it seems that the top gets drawn
 quickly, then the actual portlets themselves are slow.  I see warnings
 in the logs about the specific psml files not being found for a given
 user--are these a significant slowdown?  Should I change
 services.Profiler.fallback.country
 and 
 services.Profiler.fallback.language 
 to be false?
 
 For one PSML file, is db based PSML a better choice?  Is there some
 caching that I can turn on that isn't on by default?  Is simpler PSML
 going to cause any kind of speed up?
 
 I also searched the mailing list for performance related issues.  I saw
 this
 (http://nagoya.apache.org/eyebrowse/ReadMsg?listName=jetspeed-user
@jakarta.apache.orgmsgId=1640251)
which I plan to try tomorrow morning, but didn't see any other things I
should be doing. 

Any help would be most appreciated.

Thanks,
Dan

-
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]



Jetspeed installing problem

2004-11-16 Thread Thilina
While installing the jetspeed source, I got the following error message
for maven war target.


[junit] Running org.apache.jetspeed.util.TestOverwriteProperties
[junit] Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 1.098
sec
[junit] [ERROR] TEST
org.apache.jetspeed.util.TestOverwriteProperties FAILED
[junit] Running org.apache.jetspeed.util.TestValidation
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 1.052
sec
[junit] Running
org.apache.jetspeed.util.TestValidationParameterParser
[junit] INFO - loading component: name=torque
class=org.apache.torque.Torque
config=webapp/WEB-INF/conf/Torque.properties
[junit] INFO - loading component: name=fulcrum
class=org.apache.fulcrum.Fulcrum
config=webapp/WEB-INF/conf/Fulcrum.properties
[junit] INFO - Finished initializing all services!
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 7.161
sec

BUILD FAILED
File..
/home/thilina/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly
Element... fail
Line.. 181
Column 54
There were test failures.
Total time: 320 minutes 20 seconds
Finished at: Tue Nov 16 22:26:57 LKT 2004


So can somebody clarify this issue?

Thank you.
Thilina


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What do you need to do to add a new screen ?

2004-11-16 Thread Hampton, Thomas
Right, so I changed it to $jslink.getTemplate() but it still does not bring up 
my screen.  Still a blank screen.
Is there anything else that needs to be done besides creating the Page2.vm file 
and putting it in the correct directory and then calling 
$jslink.getTemplate(Page2) from the Left.vm file ?

Where are things like jslink, link, jlink, and clink documented, I've looked 
around but am not finding where these things are documented.  How do I know 
what these references are and what methods are available on them ?
 
Thanks for your help.
Tom



From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Tue 11/16/2004 6:38 PM
To: Jetspeed Users List
Subject: Re: What do you need to do to add a new screen ?



Hampton, Thomas wrote:

 I created a new screen template in the
 webapp\WEB-INF\templates\vm\screens\html directory.  Then I modified the
 left.vm file as follows.

 td
   a href=$jslink.getPage(Page2)
 img src=images/leftnav_api.gif border=0
   /a
 /td
   /tr
   tr
 td
   a href=$jslink.getTemplate(EditAccount)
 img src=images/leftnav_api.gif border=0
   /a
 /td
   /tr

 What I want to happen is for the Page2 screen to come up the same way
 the EditAccount screen does.  But I just get a blank page.  The
 EditAccount screen comes up ok.  So I'm sure that I have not done
 something that is needed to register the Page2 screen template, but
 I don't know what I'm missing.  The Page2 template just has static
 text in it right now.

 What am I missing ?


$jslink.getPage gets a PSML page, not a turbine template
I think you may be confusing it with $link.getPage
Why not use $jslink.getTemplate here too

--
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]

Checking custom user permissions

2004-11-16 Thread Ruy Diaz Jara

This may be a pretty stupid question but I can't figure it out:

Is there some 'simple' way to check if a user has a custom permission without
having to make an elaborate query to TurbineUser, TurbineUserGroupRolePeer,
etc.?

I was guessing something like rundata.getUser().getPermissions() or
rundata.getUser().getPermission(myCustomPermission) would be available, but
if it is I just can't find where...

Thanks
Ruy




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jetspeed installing problem

2004-11-16 Thread David Sean Taylor
Thilina wrote:
While installing the jetspeed source, I got the following error message
for maven war target.

Try building with this option command line option:
maven -o -Dmaven.test.skip=true war

[junit] Running org.apache.jetspeed.util.TestOverwriteProperties
[junit] Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 1.098
sec
[junit] [ERROR] TEST
org.apache.jetspeed.util.TestOverwriteProperties FAILED
[junit] Running org.apache.jetspeed.util.TestValidation
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 1.052
sec
[junit] Running
org.apache.jetspeed.util.TestValidationParameterParser
[junit] INFO - loading component: name=torque
class=org.apache.torque.Torque
config=webapp/WEB-INF/conf/Torque.properties
[junit] INFO - loading component: name=fulcrum
class=org.apache.fulcrum.Fulcrum
config=webapp/WEB-INF/conf/Fulcrum.properties
[junit] INFO - Finished initializing all services!
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 7.161
sec
BUILD FAILED
File..
/home/thilina/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly
Element... fail
Line.. 181
Column 54
There were test failures.
Total time: 320 minutes 20 seconds
Finished at: Tue Nov 16 22:26:57 LKT 2004
So can somebody clarify this issue?
Thank you.
Thilina
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: What do you need to do to add a new screen ?

2004-11-16 Thread David Sean Taylor
Hampton, Thomas wrote:
Right, so I changed it to $jslink.getTemplate() but it still does not bring up 
my screen.  Still a blank screen.
Is there anything else that needs to be done besides creating the Page2.vm file and 
putting it in the correct directory and then calling 
$jslink.getTemplate(Page2) from the Left.vm file ?
Where are things like jslink, link, jlink, and clink documented, I've looked around but am not finding where these things are documented.  How do I know what these references are and what methods are available on them ?
 
Its documented in the JetspeedLink.java interface
http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedLink.java?rev=1.15view=markup
The $jslink is self-documented with examples in the JSLink Examples 
portlet.
Add this portlet to your page with the customizer and you will see
The other variations ($clink, $link, $jlink) we tried to deprecate.

Thanks for your help.
Tom

From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Tue 11/16/2004 6:38 PM
To: Jetspeed Users List
Subject: Re: What do you need to do to add a new screen ?

Hampton, Thomas wrote:

I created a new screen template in the
webapp\WEB-INF\templates\vm\screens\html directory.  Then I modified the
left.vm file as follows.
   td
 a href=$jslink.getPage(Page2)
   img src=images/leftnav_api.gif border=0
 /a
   /td
 /tr
 tr
   td
 a href=$jslink.getTemplate(EditAccount)
   img src=images/leftnav_api.gif border=0
 /a
   /td
 /tr
What I want to happen is for the Page2 screen to come up the same way
the EditAccount screen does.  But I just get a blank page.  The
EditAccount screen comes up ok.  So I'm sure that I have not done
something that is needed to register the Page2 screen template, but
I don't know what I'm missing.  The Page2 template just has static
text in it right now.
What am I missing ?

$jslink.getPage gets a PSML page, not a turbine template
I think you may be confusing it with $link.getPage
Why not use $jslink.getTemplate here too
--
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]

--
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]