FW: Proxy User implementation

2003-07-28 Thread Shan Gopalakrishnan
Wondering if anyone has a idea to achieve this?. Appreciate any inputs.

-Original Message-
From: Shan Gopalakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 10:04 AM
To: 'Jetspeed Users List'
Subject: Proxy User implementation



Hello All,

In our project, we need a proxy user functionality.  Below is the steps
I'm looking for to implement.

Portal Proxy
-  There will be a  "Grantor Pick List" portlet that will have a list of
Grantors user id for the Grantee's to choose.
-  All the Grantee users will fall under a role  "Proxy User"
-  The "Proxy User" role is entitled to access the "Grantor Pick List"
portlet.
-  Once the user selects a Grantor user Id from the pick list and click
submit, the action to render the portal page of the selected grantor's
id.

My question is more towards the last step.

1. If I tweak the authentication to check the grantee's user id to be
part of the proxy role and return a "true" value, and call the
JLoginUser action , will the above functionality can be achieved??. I'm
hoping ..yes. Appreciate your inputs on this.

Thank You

- Shan



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



Proxy User implementation

2003-07-25 Thread Shan Gopalakrishnan

Hello All,

In our project, we need a proxy user functionality.  Below is the steps
I'm looking for to implement.

Portal Proxy
-  There will be a  "Grantor Pick List" portlet that will have a list of
Grantors user id for the Grantee's to choose.
-  All the Grantee users will fall under a role  "Proxy User"
-  The "Proxy User" role is entitled to access the "Grantor Pick List"
portlet.
-  Once the user selects a Grantor user Id from the pick list and click
submit, the action to render the portal page of the selected grantor's
id.

My question is more towards the last step.

1. If I tweak the authentication to check the grantee's user id to be
part of the proxy role and return a "true" value, and call the
JLoginUser action , will the above functionality can be achieved??. I'm
hoping ..yes.
Appreciate your inputs on this.

Thank You

- Shan



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



Re: Jetspeed Performance tips

2003-03-24 Thread Shan Gopalakrishnan
Santiago


In all the experiments I have seen (always on 1GB dual PentiumIII 
machines), Jetspeed degrades sharply at about 50 concurrent requests, and 
this has not changed in the last year. You could be seeing the same 
behaviour, but scaled to your CPU, RAM and architecture. I would try to 
use less concurrent requests (at a sustained rate) to test the limits. Try 
several hours with 20, then 50, etc. Also, notice that the server hotspot 
VM needs time to see hotspots and optimize them, and during method 
compilation it actually slows down the whole system.
Yes, somewhat exact behavior I'm seeing. Below is the hardware config of 
our machine.  We ramped up 1user every 10sec up to 100 users
and the 100 users stayed 30 mts executing bunch of portal actions.  I see 
spikes at 28th minute with just a Hello World portlet. I'm also
investigating JDK1.4.x and Borland 5.x to see any cause. will post you with 
more information. thanks a lot

System Configuration:  Sun Microsystems  sun4u Sun Fire 280R (2 X 
UltraSPARC-III+)
System clock frequency: 150 MHz
Memory size: 4096 Megabytes

= CPUs ===

  RunE$CPU CPU
Brd  CPU  MHzMB   Impl.Mask
---  ---      ---  
 A0900   8.0  US-III+  2.2
 B1900   8.0  US-III+  2.2
= Memory Configuration ===

   Logical  Logical  Logical
  MC   Bank Bank Bank DIMMInterleave  Interleaved
 Brd  ID   num  size Status   SizeFactor  with
  ---   --   ---  --  --  ---
 CA0 0  2048MB   no_status1024MB 2-way0
 CA0 2  2048MB   no_status1024MB 2-way0


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


Re: Jetspeed Performance tips

2003-03-21 Thread Shan Gopalakrishnan
Santiago

Another useful information.  We set the heap size to 750meg.  The users 
load tested are 100 users with a think time of 30sec to 60secs
We see the major GC starts when the heap is full and clears  550meg of 
memory with live objects using 200meg. with in a span of another
5 secs , we see the remaining 550meg is again used and the major GC is 
triggered.  the response time suffers during the major GC running period.

Hope this helps

- Shan

At 07:38 PM 3/21/2003 +0100, Santiago Gala wrote:
Shan Gopalakrishnan wrote:
We observed few more things.  I'm posting this to the best interest to 
mature the framework further than what it is currently today.
Definitely this is not criticism.
Feel free to criticize. It is the only way we have to improve Jetspeed.

We are seeing the Garbage collector (Major GC) getting triggered 
frequently as I think huge set of objects are getting created.
Some profiling could be handy. AFAIK:

Wrappers for security are not recycled (they *must* be inmutable)
PortletSets are created new for every request, due to threading issues.
--> Both kinds of objects should be claimed from "young" space, unless we 
are missing some "nullification" in permanent objects.

The registries are reloaded every 5 minutes, meaning a whole set of Castor 
marshalling and new objects going on (and fading) happens. If you don't 
have registries that change a lot, you could make this interval greater.

Every time DiskCacheDaemon runs, it will call xerces and xalan to 
transform RSSPortlets.

Every 30m you will have tomcat sessions expiring. If your testing does not 
keeps the sessions, you will be filling a lot of memory with fake sessions 
which will never be reused. I imagine you are using a testing framework 
that keeps sessions for a number of hits per "user".

A lot of other objects could come from either Velocity ASTs, Torque peers 
or other places. Even from your portlets ;-)

About Spring 2001 some profiling and tuning was done, by the IBM team, 
David, Raphael and myself. I don't know of other such effort since then. 
This led to rundata and some other objects pooling in turbine, and some 
changes of String concatenation to StringBuffer.append(). We also 
discovered a lot of duplicated initializations and similar stuff. It is 
always funny to see how big bugs can hide in code.

But the behaviour you are seeing looks more like the bug I pointed below 
or a bug in the hotspot compiler. Could you switch temporarily to jdk 
1.3.1_07 or 1.4.0_XX and see if the same happens? (According to reports in 
cocoon-dev, 1.4.0 does not have the StringBuffer bug)

This could be inherited from Turbine implementation.  We are now playing 
with the various options in the Garbage Collector
part of the JDK 1.4.1, which is running the GC parallel, setting high 
heap size,  giving some % for young generation Vs old generation etc.
Most likely to my knowledge the minor GC looks only the younger 
generation area as we didn't see any benefits in increase the
% of younger generation.  Apparently the spike still remains and gives 
poor response time just that the symptom happens way early
or later during the tests depending on the heap size and GC configuration.
If the problem is that some "bunches" of objects get into "old" space 
because they are pointed by persistent objects, then a juditious ammount 
of "= null" on recycling can help a lot. I've just checked 
DefaultJetspeedRunData and it is disposed properly (unless something is 
broken down in Turbine and it is not really disposed).

- Shan
At 12:43 PM 3/21/2003 +0100, Santiago Gala wrote:
Santiago Gala wrote:

Shan Gopalakrishnan wrote:


(...)

Has any one done similar  tests, did you observe something like that?
Do you have any suggestions where to look further?  This is on Solaris 
8 with JDK 1.4.1_01, Tomcat 4.1.18 and Jetspeed 1.4b3.


http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

may well be related. A very scary bug, BTW, which can explain why I'm 
seeing ant or maven builds hung forever and claim all memory in my 
machine. Ans also server VM crashes with OutOfMemory after tomcat 
context reloading.


--
Santiago Gala
High Sierra Technology, S.L. (http://hisitech.com)
http://memojo.com?page=SantiagoGalaBlog


-
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 Performance tips

2003-03-21 Thread Shan Gopalakrishnan
Santiago,

Thanks a lot for all your information.  my comments in line

At 07:38 PM 3/21/2003 +0100, Santiago Gala wrote:
Shan Gopalakrishnan wrote:
We observed few more things.  I'm posting this to the best interest to 
mature the framework further than what it is currently today.
Definitely this is not criticism.
Feel free to criticize. It is the only way we have to improve Jetspeed.
->>Thanks and i will exchange whatever we learn part of our 
analysis and testing


We are seeing the Garbage collector (Major GC) getting triggered 
frequently as I think huge set of objects are getting created.
Some profiling could be handy. AFAIK:
->> We will be doing this with OptimizeIt. will share that with you.


Wrappers for security are not recycled (they *must* be inmutable)
PortletSets are created new for every request, due to threading issues.
--> Both kinds of objects should be claimed from "young" space, unless we 
are missing some "nullification" in permanent objects.
->>As we see the minor GC is not clearing up much objects, we still 
think there is some missing nullification in the permanent objects
   as we also notice the memory keeps growing.


Every 30m you will have tomcat sessions expiring. If your testing does not 
keeps the sessions, you will be filling a lot of memory with fake sessions 
which will never be reused. I imagine you are using a testing framework 
that keeps sessions for a number of hits per "user".
->>we ensured this . the session id is passed through a cookie and 
this is reused between requests from the same user

A lot of other objects could come from either Velocity ASTs, Torque peers 
or other places. Even from your portlets ;-)

About Spring 2001 some profiling and tuning was done, by the IBM team, 
David, Raphael and myself. I don't know of other such effort since then. 
This led to rundata and some other objects pooling in turbine, and some 
changes of String concatenation to StringBuffer.append(). We also 
discovered a lot of duplicated initializations and similar stuff. It is 
always funny to see how big bugs can hide in code.
->> This really makes us think twice whether we can use it for 
production. I would appreciate if profiling/tuning can be treated much 
frequently to develop a healthy framework.  Hopefully some of our results 
/analysis will help the development team.


But the behaviour you are seeing looks more like the bug I pointed below 
or a bug in the hotspot compiler. Could you switch temporarily to jdk 
1.3.1_07 or 1.4.0_XX and see if the same happens? (According to reports in 
cocoon-dev, 1.4.0 does not have the StringBuffer bug)
->>  I tried changing this. unfortunately changing it to 1.4.0.xx 
resulted in a slower performance which is substantial and noticeable. i 
couldn't believe. looked it and tried more than once to ensure it happens. 
and yes it happens.


This could be inherited from Turbine implementation.  We are now playing 
with the various options in the Garbage Collector
part of the JDK 1.4.1, which is running the GC parallel, setting high 
heap size,  giving some % for young generation Vs old generation etc.
Most likely to my knowledge the minor GC looks only the younger 
generation area as we didn't see any benefits in increase the
% of younger generation.  Apparently the spike still remains and gives 
poor response time just that the symptom happens way early
or later during the tests depending on the heap size and GC configuration.
If the problem is that some "bunches" of objects get into "old" space 
because they are pointed by persistent objects, then a juditious ammount 
of "= null" on recycling can help a lot. I've just checked 
DefaultJetspeedRunData and it is disposed properly (unless something is 
broken down in Turbine and it is not really disposed).
->>>Good point. I used to wonder how Jetspeed (team) will handle for 
the inherent problems of Turbine ??

Thanks a lot for all your information.

- Shan


Re: Jetspeed Performance tips

2003-03-21 Thread Shan Gopalakrishnan
We observed few more things.  I'm posting this to the best interest to 
mature the framework further than what it is currently today.
Definitely this is not criticism.

We are seeing the Garbage collector (Major GC) getting triggered frequently 
as I think huge set of objects are getting created.
This could be inherited from Turbine implementation.  We are now playing 
with the various options in the Garbage Collector
part of the JDK 1.4.1, which is running the GC parallel, setting high heap 
size,  giving some % for young generation Vs old generation etc.
Most likely to my knowledge the minor GC looks only the younger generation 
area as we didn't see any benefits in increase the
% of younger generation.  Apparently the spike still remains and gives poor 
response time just that the symptom happens way early
or later during the tests depending on the heap size and GC configuration.

- Shan
At 12:43 PM 3/21/2003 +0100, Santiago Gala wrote:
Santiago Gala wrote:
Shan Gopalakrishnan wrote:
(...)
Has any one done similar  tests, did you observe something like that?
Do you have any suggestions where to look further?  This is on Solaris 8 
with JDK 1.4.1_01, Tomcat 4.1.18 and Jetspeed 1.4b3.
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

may well be related. A very scary bug, BTW, which can explain why I'm 
seeing ant or maven builds hung forever and claim all memory in my 
machine. Ans also server VM crashes with OutOfMemory after tomcat context 
reloading.

--
Santiago Gala
High Sierra Technology, S.L. (http://hisitech.com)
http://memojo.com?page=SantiagoGalaBlog


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


Object model for jetspeed/ turbine

2003-03-19 Thread Shan Gopalakrishnan
Does anybody has the object model of jetspeed / turbine and the flow of 
execution for rending the portal page.
appreciate any help on this. thanks in advance.

- Shan

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


Jetspeed Performance tips

2003-03-19 Thread Shan Gopalakrishnan
Hello all,

Thanks for the great posting on Jetspeed mailing list.  We are evaluating 
Jetspeed for use in a project within Cisco.  I hope you can shed some light 
on some of the problems we are facing.

In a very simple test of one portlet that has fixed content (no business 
logic, no database access, etc.), we have observed some weired behavior and 
are suspecting Jetspeed is the cause.  We use LoadRunner to run 100 
concurrent users that pull the same page that has the one portlet of fixed 
content.  It runs smoothly for about 25 minutes (it takes about 16 minutes 
to ramp up the 100 users) and then the response time starts to climb quite 
sharply form < 1s to 8s and then to > 20s or higher while CPU goes from 75% 
to 45%.  We put the same logic in the plain JSP and ran it with the same 
load and response time was always flat under 1s. We put in the recommended 
Jetspeed settings.

Has any one done similar  tests, did you observe something like that?  Do 
you have any suggestions where to look further?  This is on Solaris 8 with 
JDK 1.4.1_01, Tomcat 4.1.18 and Jetspeed 1.4b3.

Thanks!

- Shan

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


Observed spikes

2003-03-19 Thread Shan Gopalakrishnan
Hello all

we are doing a load test of our portal application which is using jetspeed. 
We see some sudden spikes after 30mts of running time with 100 simultaneous 
users in the load.  We did similar tests in the same infrastructure with 
standard jsp/servlets and this doesn't occur there.  It seem to occur only 
with jetspeed application.  Anything specific that I should refer to or 
focus on in terms of configuration or tuning ??
appreciate any information .  Thanks in advance.

- Shan

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


PSML Manager

2003-03-05 Thread Shan Gopalakrishnan
Hello all

We see some performance issues during high load particularly in PSMLManager 
area.  We are thinking to remove the current implementation and  torque 
overhead and keep it simple with some standard JCS cache 
implementation.  Any inputs on where I should look for the PSML Manager 
implementation will help me.

thanks a lot in advance.

- Shan

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


information needed on performance/load testing (HELP..!)

2003-03-04 Thread Shan Gopalakrishnan
Hello all

I'm running a load test in a portal application that is using jetspeed 
framewrok.  The load test tool used is Load Runner from
mercury interactive.  I also used OptimizeIt during the load test sometimes 
to identify some hot spot areas.
We are trying to run 50concurrent users in a powerful solaris box with 2 
CPU's, heap size set to 500MB and the sleep time between the concurrent 
user requests are 30seconds and the users stay in the system doing 
activities for 10mts during the load.

I had two questions based on the symptoms I saw during the load test.

1)  In JetspeedResources.properties.

#The following property is used for DatabasePsmlManagerService? 
only. The default is false that is caching is
#not allowed with DatabasePsmlManagerService?, as the current 
implementation of caching does not work on a
#distributed environment. It works only in a single server 
environment.
services.PsmlManager?.caching-on=true
services.PsmlManager.cacheSize=50

When I turn on the above property, the performance increased drastically 
and the memory increased as well. But at some point when I hit the 20 users 
concurrent, it breaks the entire unix process that is running the 
application server and the whole application dies.  Not sure this is a bug 
and anyone encountered this.  If the value is set to false , then the test 
goes through fine, but the round trip performance is very slow.
Appreciate if there are any information on what is the implementation 
behind this.

2) what is the value to be set in the below properties for the above load 
test scenario.

In JetspeedResources?.properties
Everything under the ThreadPool? Service heading -- Setting these 
up to the default seemed to adversely affect performance.
services.ThreadPool?.init.count=5
services.ThreadPool?.max.count=20
services.ThreadPool?.minspare.count=5

Appreciate any information on the above questions and thanks a lot in advance.

- Shan


Torque Properties

2003-02-20 Thread Shan Gopalakrishnan
Hello folks


Is the below values are in Milliseconds ??  I hope so. just to confirm this.

torque.dsfactory.default.pool.maxExpiryTime=3600 

torque.dsfactory.default.pool.connectionWaitTimeout=10

Thanks

- Shan


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



Re: Regarding Portlet Cache for JSP Portlets

2003-02-19 Thread Shan Gopalakrishnan
David

Looks like it is in memory cache.  Is it possible to serialize cache to the 
disk?  Or do we have to do our own implementation.?

Thanks a lot

- Shan

At 11:46 PM 2/18/2003 -0800, David Sean Taylor wrote:

On Tuesday, February 18, 2003, at 05:59  PM, Shan Gopalakrishnan wrote:


Hello All,

I'm looking to get more information on caching portlets for JSP based 
portlets.
Is it possible to cache the content of the portlet in a disk or tmp folder??

Thanks in advance

- Shan

Look at the caching support in AbstractPortlet

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646




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




Regarding Portlet Cache for JSP Portlets

2003-02-18 Thread Shan Gopalakrishnan
Hello All,

I'm looking to get more information on caching portlets for JSP based portlets.
Is it possible to cache the content of the portlet in a disk or tmp folder??

Thanks in advance

- Shan


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




Re: StaticServlet's static method.

2003-02-08 Thread Shan Gopalakrishnan
Thank you Vijay. Will give it a try.
At 07:49 PM 2/7/2003 -0800, Vijay K wrote:

The easiest way that i can think of is to write a java class that has a non
static method that invokes the static servlet's method in turn. Now register
this new class in turbineresources.properties in application scope as a pull
service as documented in turbine
(tools.application.staticservletwrapper=wrapper).

Now you should be able to refer to the wrapper's method in any velocity 
page as
$wrapper.methodcall

vijay


--- Shan Gopalakrishnan <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> This is a velocity template question.
>
> I want to expose a StaticServlet object that I have in the velocity 
context
> and refer in the velocity templates.
> Also call its static method by passing the request object to it.
>
> The equivalent in JSP is
>
> <%= StaticServlet.getStaticPath(request, "/images/globe.gif")
>
> I'm still trying to understand velocity better.  Any help greatly
> appreciated .thanks
>
> - Shan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




StaticServlet's static method.

2003-02-07 Thread Shan Gopalakrishnan
Hello all,

This is a velocity template question.

I want to expose a StaticServlet object that I have in the velocity context 
and refer in the velocity templates.
Also call its static method by passing the request object to it.

The equivalent in JSP is

<%= StaticServlet.getStaticPath(request, "/images/globe.gif")

I'm still trying to understand velocity better.  Any help greatly 
appreciated .thanks

- Shan


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



Re: JSP vs Velocity

2003-01-29 Thread Shan Gopalakrishnan
But wondering the overall templates need to be still velocity in jetspeed 
framework.
the portlets can be jsp.  remember that context object is always null in 
jsp :-)

At 10:40 PM 1/29/2003 -0800, Michael Rothrock wrote:
I would say that it works perfectly well for my strategy, but I believe
there's still an issue over how JSPs handle actions.  I've been pushing that
one off, but I will eventually reach a point where I can't ignore it.

FWIW, my strategy is to prototype in JSP, then move the code into a class
that inherits from AbstractInstancePortlet.  For the most part, my approach
has been to have that class generate what amounts to a List of objects
which are placed into the request.  The JSP is then limited to iterating
through the list and simply displaying the getXXX attributes of each object.
My JSP files are nothing more than iterators, and this works pretty well for
me.  If this is a radically incorrect approach, I'd appreciate the feedback
now!!!

Once you reach this level of isolation, it really doesn't matter if you
choose JSP or Velocity.  My rational behind choosing JSPs is as follows:
1) Its faster (for me, but YMMV) to prototype my Java code in JSPs
2) Dreamweaver understands JSPs
3) If I need to contract out, JSP-savvy designers are far more common (and
hence cheaper) than Velocity-savvy ones
4) Thus far, I have the CPU cycles to spare on JSP, though this may change
once I go live

-- Michael


On 1/29/03 8:53 PM, "Mark Orciuch" <[EMAIL PROTECTED]> wrote:

>> Furthermore, you'll find that JSP's integration is largely a kludge.
>
> How so? No, I'm not trying to start a Velocity vs. JSP war but I'm
> interested in any shortcomings with the JSP integration.
>
> Best regards,
>
> Mark Orciuch - [EMAIL PROTECTED]
> Jakarta Jetspeed - Enterprise Portal in Java
> http://jakarta.apache.org/jetspeed/
>
>
>
> -
> 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]




Re: JSP vs Velocity

2003-01-29 Thread Shan Gopalakrishnan
I have one point to share.
I had a prototype created using 1.4a and trying to port to 1.4b3, but went 
through slightly tough time
in porting the code to 1.4b3 as I had done some good amount of 
customization changes to jetspeed 1.4a templates.

The velocity templates has a lot of macros coded in it and any changes to 
the templates for customization
heavily affects the upgrade to new version.  wondering what is the general 
opinion on this.

Another one , wondering how the content management tools will deal with 
Velocity templates now as it looks
not a clean tag oriented template.

Lastly we observed the velocity templates are consuming more time in some 
areas while rending the page.

- Shan

At 11:37 PM 1/29/2003 -0500, Andrew C. Oliver wrote:
I have been using Jetspeed since November.  I had no prior Turbine 
knowledge and Velocity knowledge was limited to editing a couple templates 
during contribution to site documentation.

The best way to do it is to just do it, dive in, make it work.  As you do 
it write documentation.  Submit it as patches.  You'll find others will 
correct them and expand upon them.  In the end, the documentation is 
improved and the project improves.  Your understanding improves and your 
time investment is limited due to the contribution of others.

Or at least that usually works for me.  (BTW, thats kinda part of how I 
got that @apache.org address)

-Andy


[EMAIL PROTECTED] wrote:
Lucky guy! Write a book about it and share your knowledge - struts books 
we have enough!
BTW, since your mail ends with apache.org - how much and how long are you 
involved in
jetspeed / turbine? I am since 4 days and don` t think jetspeed is one of the
"vanilla" frameworks to understand in a few days.



"Andrew C. Oliver" <[EMAIL PROTECTED]>
29.01.2003 14:33
Please respond to "Jetspeed Users List"
 To: Jetspeed Users List <[EMAIL PROTECTED]>
cc: Subject:Re: JSP vs Velocity

I found turbine pretty easy to deal with myself.
[EMAIL PROTECTED] wrote:

Hi,

I think the popularity could be much better if the underlying turbine

would


not be such a high learning curve. With turbine 3 it may be much better,
since then people can bet on horses, which they already know (especially
EJB). IMHO, What also could give jetspeed a real boost is if it would

rely


on struts(*) - but I guess that is impossible, since turbine has its own
mcv-model ...

(*) maybe struts does not have such a sophisticated mvc model as

turbine,


but it definitively has much more familiarity and pervasion (just look

at


all these struts books and articles). for me it is a quasi-standard for
web-based mvc.

Kris


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




Customizer problem

2002-12-25 Thread Shan Gopalakrishnan
Hi

I'm having one small problem.  When I invoke the customizer and choose the 
Add pane option, it should display the
Tab names in a table form but instead I get  " * "  .  i traced the code 
and saw the lines where it is populating " * ".
Before I try further, thought I could give it a try here.

The below lines are in  DefaultJetspeedRunData.java

   * last modified: 11/06/01
 * Andreas Kempf, Siemens ICM S CP PE, Munich
 */
if ((p != null) && (stack.size() > 1))
  customizationState.setAttribute ("customize-paneName", 
(String)p.getTitle());
else
  customizationState.setAttribute ("customize-paneName", "*");

can anyone let me know which property this code is looking for ? and in 
which config file??

Thanks a bunch

- Shan

Re: PSML Importer Service does not work

2002-12-19 Thread Shan Gopalakrishnan
Zak

Looks like there is a bug in 1.4b3 on this.  Several people are hitting 
this problem. I heard it works fine in 1.4b2 and i'm
yet to check this. But make sure you do the required changes in the 
Torque.properties.  Refer to jetspeed documentation
for changes.

At 07:47 PM 12/19/2002 -0800, Syed Zakir wrote:
Hi,

I was trying to use Database PSML Manager in Jetspeed 1.4b3. I modified 
the PSML Manager settings in the JetspeedResources.properties as follows.

#services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService

services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService

services.PsmlImportManager.classname=org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService

#services.PsmlImportManager.classname=org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService

Here is my environment: Windows 2000,Tomcat 4.1.12, JDK 1.4.1, 
Jetspeed1.4b3, mySQL

The importer service does not populate the data into database. I already 
created the jetspeed structure in mySQL.

Someone can help me to resolve this issue?

Thanks,

Zak









_
MSN 8: advanced junk mail protection and 3 months FREE*. 
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_3mf


--
To unsubscribe, 
e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




PSML to Oracle DB (Jetspeed 1.4b3 )

2002-12-18 Thread Shan Gopalakrishnan
Hi


I ran the PSML Importer using the

ant  import  command

but got the below information.  I have configured everything right in the 
Torque properties including the DataSourceFactory.
appreciate any pointers

thanks a lot

- Shan

import:
 [java] * PSML Importer *
 [java] [Fatal Error] :-1:-1: Premature end of file.
 [java] Exception in thread "main" java.lang.Error: Error in 
BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory 
configured for the connection default
 [java] at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTurbineUserPeer.java:154)
 [java] at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.(BaseTurbineUserPeer.java:128)
 [java] at 
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.getUser(TurbineUserManagement.java:166)
 [java] at 
org.apache.jetspeed.services.JetspeedUserManagement.getUser(JetspeedUserManagement.java:98)
 [java] at 
org.apache.jetspeed.services.JetspeedSecurity.getUser(JetspeedSecurity.java:265)
 [java] at 
org.apache.jetspeed.services.psmlmanager.PsmlImporter.alreadyImported(PsmlImporter.java:236)
 [java] at 
org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImporter.java:197)
 [java] at 
org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImporter.java:179)
 [java] Java Result:

I have already set the Torque Properties... as below

## Using Jdbc2Pool
torque.dsfactory.default.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSource
Factory
torque.dsfactory.default.pool.defaultMaxActive=10
torque.dsfactory.default.pool.testOnBorrow=true
torque.dsfactory.default.pool.validationQuery=SELECT 1 FROM DUAL
torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver
torque.dsfactory.default.connection.url = 
jdbc:oracle:thin:@jetsons:1521:GFOPROD
torque.dsfactory.default.connection.user =  OI_PROD
torque.dsfactory.default.connection.password = PROD_OI


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: high CPU utilization

2002-07-21 Thread Shan Gopalakrishnan

I ramp up the users by 25 users.  Started with 25 and increased 25 
gradually to reach 150 for simultaneous and started with 25 and 
increased  the same 25 to reach 75 for concurrent.

- Shan

At 10:31 AM 7/21/2002 -0400, Dominic Uliano wrote:
>When you observed the high CPU utilization and slow response time, what was
>the ratio of User to System time on the CPU?  Sun typically runs at a 2:1
>ratio under normal load and then will transition to 1:1 and then 1:2 under
>peaks of very high load.  When the switch in the ratio occurs it means that
>the machine is spending more cycles on system resources versus user
>(application) requests.  Depending upon when and what the ratio was it could
>either mean a server bottleneck or application code bottleneck.
>
>   Sounds like you are using Mercury LoadRunner -- did you ramp of the users
>or did you log them all on at the same time?
>
>Regards,
>Dominic Uliano
>
>-Original Message-
>From: Shan Gopalakrishnan [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, July 20, 2002 2:03 PM
>To: Jetspeed Users List
>Subject: high CPU utilization
>Importance: High
>
>
>Hello folks
>
>Our team did a quick poc application in jetspeed and did a load test thru'
>load runner.
>Below is the configuration of the Solaris box.   We had just that jetspeed
>application running in that box while
>doing the load test.  We used  Tomcat 4.0.3 as the servlet engine.
>
>System Configuration:  Sun Microsystems  sun4u Sun Enterprise 220R (2 X
>UltraSPARC-II 450MHz)
>System clock frequency: 113 MHz
>Memory size: 2048 Megabytes
>= CPUs =
>  Run   Ecache   CPUCPU
>Brd  CPU   Module   MHz MBImpl.   Mask
>---  ---  ---  -  --  --  
>   0 0 0  450 4.0   US-II10.0
>   0 2 2  450 4.0   US-II10.0
>= IO Cards =
>   Bus   Freq
>Brd  Type  MHz   SlotName  Model
>---      --  
>--
>   0   PCI33 On-Board  network-SUNW,hme
>   0   PCI33 On-Board  scsi-glm/disk (block)
>Symbios,53C875
>   0   PCI33 On-Board  scsi-glm/disk (block)
>Symbios,53C875
>
>
>The results came out to be as follows :
>
>For  80 concurrent users with  ( zero sleep time )  the % CPU utilization
>was  85% in the box where jetspeed was running
>For  150 simultaneous users ( with 30 seconds sleep time ) the % CPU
>utilization was around 78% or so in the box where jetspeed was running.  As
>we spiked the value the performance was going down . The initial response
>time is expected to return within 5 to 6 seconds .
>But during the peak load the response was going down enormously.
>
>We observed the middle-tier and the database back-end was stable and showed
>less than 10% CPU utilization.
>
>We also used  OptimizeIt to track down where the % CPU increases and
>observed some of the jetspeed framework calls
>are pretty high cpu intensive.   Any opinions on this.?
>
>- Shan
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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




Re: ClassNotFound exception

2002-06-14 Thread Shan Gopalakrishnan

I'm getting this problem just in Tomcat 4.x . Hopefully I can figure out.. 
still investigating.
At 11:34 AM 6/14/2002 -0700, Todd Kuebler wrote:

>In fact jar file loading requires the same directory structure you 
>describe, classloaders generally work on this principle and always 
>have.  Basic Java stuff.
>
>Since putting the classes in a correct directory structure is my default 
>behavior but I haven't gotten it to work,  I think it is at least 
>partially dependant on your JVM/Tomcat version or perhaps was a problem 
>with Jetspeed that is now fixed.  My comment was, Jar files always work, 
>so I use them.
>
>
>-tk
>
>At 12:53 PM 6/14/2002 -0500, you wrote:
>>I use the WEB-INF/classes pretty extensively for developing.  The trick I 
>>found that made it work for
>>me is that if you are going to compile a file with the name 
>>"yourfile.class" that has the package
>>name "com.cisco.esales.modules", your class file needs to be a directory 
>>structure similar to the
>>following example:  "WEB-INF/classes/com/cisco/esales/modules/yourfile.class"
>>
>>Brian
>>
>>Todd Kuebler wrote:
>>
>> > I've never gotten WEB-INF/classes to work, I have just jar'ed up the
>> > classes and put them in WEB-INF/lib, which works fine.  Don't know if this
>> > is a known bug or not.
>> >
>> > -tk
>> >
>> > At 09:33 AM 6/14/2002 -0700, Shan Gopalakrishnan wrote:
>> > >Hi
>> > >
>> > >I'm using Tomcat 4.0.3 and Jetspeed lastest nightly build.
>> > >
>> > >Although I deploy my actions in the WEB-INF/classes and have the module
>> > >package specified in the Turbine.properties,
>> > >it fails to load the action classes throwing ClassNotFoundException. 
>> below
>> > >is some of the stack error.   The package names everything
>> > >looks fine. do I miss anything.
>> > >
>> > >
>> > >java.lang.ClassNotFoundException:
>> > >
>> > > Requested Action not found: bookings.MySalesStatisticsAction
>> > > Turbine looked in the following modules.packages path:
>> > > [com.cisco.esales.modules, org.apache.jetspeed.modules,
>> > > org.apache.turbine.modules]
>> > >
>> > > at
>> > > 
>> org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
>> > > at
>> > > org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
>> > > at
>> > > 
>> com.cisco.esales.portlets.ESalesBasePortlet.buildContext(ESalesBasePortlet.java:456)
>> > > at
>> > > 
>> com.cisco.esales.portlets.ESalesBasePortlet.getContent(ESalesBasePortlet.java:538)
>> > > at
>> > > 
>> 
>org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:139)
>> > > at java.lang.reflect.Method.invoke(Native Method)
>> > > at
>> > > 
>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
>> > > 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)
>> > >
>> > >
>> > >--
>> > >To unsubscribe,
>> > >e-mail:   <mailto:[EMAIL PROTECTED]>
>> > >For additional commands, e-mail:
>> > ><mailto:[EMAIL PROTECTED]>
>> > >
>> >
>> > --
>> > To unsubscribe, 
>> e-mail:   <mailto:[EMAIL PROTECTED]>
>> > For additional commands, e-mail: 
>> <mailto:[EMAIL PROTECTED]>
>>
>>--
>>Questions?  You know what to do...
>>Brian J. Glas
>>GSP Technologies
>>[EMAIL PROTECTED]
>>(901)263-8542 (desk)
>>(901)674-8542 (cell)
>>
>>
>>
>>--
>>To unsubscribe, 
>>e-mail:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


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




ClassNotFound exception

2002-06-14 Thread Shan Gopalakrishnan

Hi

I'm using Tomcat 4.0.3 and Jetspeed lastest nightly build.

Although I deploy my actions in the WEB-INF/classes and have the module 
package specified in the Turbine.properties,
it fails to load the action classes throwing ClassNotFoundException. below 
is some of the stack error.   The package names everything
looks fine. do I miss anything.


java.lang.ClassNotFoundException:

 Requested Action not found: bookings.MySalesStatisticsAction
 Turbine looked in the following modules.packages path:
 [com.cisco.esales.modules, org.apache.jetspeed.modules, 
org.apache.turbine.modules]

 at 
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at 
com.cisco.esales.portlets.ESalesBasePortlet.buildContext(ESalesBasePortlet.java:456)
 at 
com.cisco.esales.portlets.ESalesBasePortlet.getContent(ESalesBasePortlet.java:538)
 at 
org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:139)
 at java.lang.reflect.Method.invoke(Native Method)
 at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
 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)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Customizer Action implementation.

2002-05-30 Thread Shan Gopalakrishnan

I want to know what are the classes involved for Customizer actions.  And 
where do I set the property
to change it to my own implementation?. appreciate all the help in advance.

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




edit preferences for JSP Portlet.

2002-05-29 Thread Shan Gopalakrishnan


>
>Hi
>
>I saw several code examples for managing edit prefrences page 
>for  Velocity Portlet.  But having hard time to
>find out how to do in JSP based Portlet.?   Is there any  JspPortletAction 
>like  VelocityPortletAction??
>How do I set the edit preferences jsp template page ?? and call the 
>appropriate action.
>
>How does the JSP Portlet know to differentiate the main portlet template 
>page Vs the edit preference template page?
>
>- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




edit preferences for JSP Portlet.

2002-05-28 Thread Shan Gopalakrishnan

Hi

I saw several code examples for managing edit prefrences page for  Velocity 
Portlet.  But having hard time to
find out how to do in JSP based Portlet.?   Is there any  JspPortletAction 
like  VelocityPortletAction??
How do I set the edit preferences jsp template page ?? and call the 
appropriate action.

How does the JSP Portlet know to differentiate the main portlet template 
page Vs the edit preference template page?

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: sub-tabs.

2002-05-16 Thread Shan Gopalakrishnan

Thank you Steve.

Appreciate all your help if you can send me the notes on how to do the 
changes for sub tabs that will be of great help to me

- Shan

At 08:59 AM 5/16/2002 -0700, sbelt wrote:
>Yes, you can add them using the Customization screens. However, there
>appears to be a bug when you do this. I will post the steps I followed
>which produce the error in a seperate email.
>
>Steve B.
>
>- Original Message -
>From: "Shan Gopalakrishnan" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, May 16, 2002 7:35 AM
>Subject: sub-tabs.
>
>
> > Hello
> >
> > Has anyone tried to provide sub tabs in the Tab page.  Again I wanted
>these
> > sub-tabs to show up only on certain Tab pages.
> > Any inputs where to start will be greatly appreciated..  Thanks a lot.
> >
> > - Shan
> >
> >
> > --
> > To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
> >
>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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




sub-tabs.

2002-05-16 Thread Shan Gopalakrishnan

Hello

Has anyone tried to provide sub tabs in the Tab page.  Again I wanted these 
sub-tabs to show up only on certain Tab pages.
Any inputs where to start will be greatly appreciated..  Thanks a lot.

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




$jetspeed error.

2002-05-13 Thread Shan Gopalakrishnan

I'm running  Tomcat 3.2.3 and Jetspeed 1.3a3 . I just created the same 
HelloWorld portlet and
when I'm adding it thru' the "Add Portlet" and click on Save, the following 
error occurs.
any help on this will be of great help.

Mon May 13 21:05:58 PDT 2002  [error] Method getPane threw exception for 
reference $jetspeed in template screens/html/Home.vm at  [2,1]
Mon May 13 21:05:58 PDT 2002  [error] ResourceManager : unable to find 
resource 'screens/Error' in any resource loader.

- Shan



error occured

2002-05-13 Thread Shan Gopalakrishnan



I'm trying to add a Hello World portlet ( again all these were working fine 
in Tomcat 4.x ),
the entry shows up in the Add portlet. but when i save it to the psml file, 
it breaks. below is the error

Tail of velocity.log
-

Mon May 13 19:44:41 PDT 2002  [error] Method getPane threw exception for 
reference $jetspeed in template screens/html/Home.vm at  [2,1]
Mon May 13 19:44:41 PDT 2002  [error] ResourceManager : unable to find 
resource 'screens/Error' in any resource loader.
Mon May 13 19:44:42 PDT 2002   [info] ResourceManager : found 
navigations/html/bottom.vm with loader 
org.apache.velocity.runtime.resource.loader.FileResourceLoader

JetSpeed.log

[Mon May 13 19:44:41 PDT 2002] -- DEBUG -- PortletFactory.getPortlet(): 
took a total of 0 millisecond(s) -> 
-1653569551|template-stock-quote|action-portlets.StockQuoteAction
[Mon May 13 19:44:41 PDT 2002] -- ERROR -- Error rendering Velocity 
template: screens/html/Home.vm: Invocation of method 'getPane' in  class 
org.apache.jetspeed.util.template.JetspeedTool threw exception class 
java.lang.NoClassDefFoundError
[Mon May 13 19:44:41 PDT 2002] -- ERROR -- Error rendering Velocity 
template: screens/Error: Unable to find resource 'screens/Error'
[Mon May 13 19:44:41 PDT 2002] -- ERROR --
 Exception:  org.apache.turbine.util.TurbineException: Error 
rendering Velocity template: screens/Error: Unable to find resource 
'screens/Error'
 Stack Trace follows:
 org.apache.velocity.exception.ResourceNotFoundException: Unable to 
find resource 'screens/Error'
 at 
org.apache.velocity.runtime.resource.ResourceManager.getResource(ResourceManager.java)
 at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
rethrown as org.apache.turbine.util.TurbineException: Error rendering 
Velocity template: screens/Error: Unable to find resource 'screens/Error'
 at 
org.apache.turbine.services.velocity.TurbineVelocityService.renderingError(TurbineVelocityService.java:511)
 at 
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:477)
 at 
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:314)
 at 
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:146)
 at 
org.apache.turbine.modules.screens.VelocityDirectScreen.buildTemplate(VelocityDirectScreen.java:142)
 at 
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.java:130)
 at org.apache.turbine.modules.Screen.build(Screen.java:99)
 at org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
 at 
org.apache.turbine.util.template.TemplateScreen.toString(TemplateScreen.java:126)
 at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java)
 at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java)
 at org.apache.velocity.Template.merge(Template.java)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
 at 
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:472)
 at 
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:314)
 at 
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:146)
 at 
org.apache.turbine.modules.layouts.VelocityDirectLayout.doBuild(VelocityDirectLayout.java:106)
 at org.apache.turbine.modules.Layout.build(Layout.java:91)
 at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
 at 
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:166)
 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:565)
 at org.apache.turbine.Turbine.doPost(Turbine.java:655)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
 at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandl

Re: xsl portlet.

2002-05-02 Thread Shan Gopalakrishnan

Anand

Good points.  I still didnt probably give you the right requirement.

I have a ejb in the app. server  which returns a xml string .  This ejb is 
called by rmi/iiop from the Portlet class.  Now I'm looking
at using this xml string as an input to the xsl.  If you see the portlet 
definition, it takes a vm uri.  I'm not sure why should I use
a vm ?  Appreciate any of your inputs on this.  Thanks

- Shan





At 01:05 PM 5/2/2002 +0530, anand wrote:
>What you are asking is what i think is being done.
>You saw how to configure your xsl portlet.Now
>see if you are using a portlet which uses xsl for outputing
>then it would be like this
>
>parent="XSL" application="false">
>
>Shan
>
>/shan/servlet/shan/template/shan.vm
>
>
>   If you not you are calling the parent as XSL and specifying
>that this should take input from the url.So the url will be outputing
>xml and that will serve as the input for xsl.I am sorry i missed this.
>Hope it is clear nowEnjoy
>
>-Anand
>
>Shan Gopalakrishnan wrote:
>
>>also Anand, where are u specifying the xml input to the xsl portlet.
>>I see the xsl file is mentioned.
>>  > hidden="false">  but how about the xml file?
>>probably i'm missing something.
>>
>>
>>At 12:27 PM 5/2/2002 +0530, anand wrote:
>>
>>>Hai Shan,
>>>1. This is how you you place your XSL in portels.xreg
>>>
>>>>>application="false">
>>>
>>>org.apache.jetspeed.portal.portlets.ShanXSLPortlet
>>>
>>>
>>>>> hidden="false">
>>>
>>>
>>>
>>>
>>>2.Say your vm/jsp will output a xml and this will be the input to
>>>   your xsl.This sample vm shows how to output the form.
>>>
>>>
>>>  
>>>/shan/portal/pane0/ShanPortal
>>>post
>>>return validate(this)
>>>
>>>
>>>
>>>
>>>  
>>>
>>>
>>>3.If your vm is outputing in such a way then you can
>>>   use the below sample of xsl.
>>>
>>>
>>>  >> onSubmit="{onsubmit}" enctype="{enctype}">
>>> 
>>>  
>>> 
>>>
>>>
>>> 
>>>>> select='@display' />
>>> 
>>> 
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>>> 
>>>   
>>>
>>>   
>>>
>>>   
>>> 
>>>   
>>> 
>>>   
>>>   
>>>  
>>>   
>>> 
>>>   
>>>
>>>
>>>   
>>>
>>>   
>>> 
>>>   
>>>   >> multiple="{@multiple}">
>>> 
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>>> 
>>>   
>>> 
>>>   
>>> 
>>> 
>>>   
>>>   
>>> 
>>>   
>>>
>>>
>>>   
>>>
>>>   
>>> 
>>>>> select='@display' />
>>> 
>>> 
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>

Re: xsl portlet.

2002-05-02 Thread Shan Gopalakrishnan

also Anand, where are u specifying the xml input to the xsl portlet.  I see 
the xsl file is mentioned.
but how about the xml file?
probably i'm missing something.


At 12:27 PM 5/2/2002 +0530, anand wrote:
>Hai Shan,
>1. This is how you you place your XSL in portels.xreg
>
>
>
>org.apache.jetspeed.portal.portlets.ShanXSLPortlet
>
>
> hidden="false">
>
>
>
>
>2.Say your vm/jsp will output a xml and this will be the input to
>   your xsl.This sample vm shows how to output the form.
>
>
>  
>/shan/portal/pane0/ShanPortal
>post
>return validate(this)
>
>
>
>
>  
>
>
>3.If your vm is outputing in such a way then you can
>   use the below sample of xsl.
>
>
>   onSubmit="{onsubmit}" enctype="{enctype}">
> 
>  
> 
>
>
> 
> />
> 
> 
>   
> 
>   
> 
>   
> 
> 
>   
>
>   
>
>   
> 
>   
> 
>   
>   
>  
>   
> 
>   
>
>
>   
>
>   
> 
>   
>multiple="{@multiple}">
> 
>   
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 
>   
>   
> 
>   
>
>
>   
>
>   
> 
> />
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>
>   
> 
> 
>   
>
>
>   
>
>
>   
>  
>  
>
>   
>   
> />
>  
> 
>   
>   
> 
>   
> 
>   
>   
>  maxlength='{@maxlength}' size='{@size}'/>
>   
> 
>   
>
>   
>
>   
> 
>   
> 
>   
>   
> 
> 
>value='{@value}' checked='{@checked}' />
> 
> 
>value='{@value}' />
>
> 
>   
>
>   
>
>   
> 
>   
>  />
>   
> 
>   
>
>   
>
>   
> 
>   
>  />
>
> 
>
>
>   
>  onClick='javascript:history.back(1)' 
> />   
> 
>   
>
>   
> 
>  
>
>
>These examples may not be perfect to your use but this is some kind
>of sample and i guess this will help you.All the Best.
>
>-Anand
>
>
>
>--
>To unsubscribe, 
>e-mail:   
>For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: xsl portlet.

2002-05-02 Thread Shan Gopalakrishnan

million thanks Anand.  made me curious to ask another question. what if my 
xml is returned by a object by a xml stream of string
how do i plug that.

At 12:27 PM 5/2/2002 +0530, anand wrote:
>Hai Shan,
>1. This is how you you place your XSL in portels.xreg
>
>
>
>org.apache.jetspeed.portal.portlets.ShanXSLPortlet
>
>
> hidden="false">
>
>
>
>
>2.Say your vm/jsp will output a xml and this will be the input to
>   your xsl.This sample vm shows how to output the form.
>
>
>  
>/shan/portal/pane0/ShanPortal
>post
>return validate(this)
>
>
>
>
>  
>
>
>3.If your vm is outputing in such a way then you can
>   use the below sample of xsl.
>
>
>   onSubmit="{onsubmit}" enctype="{enctype}">
> 
>  
> 
>
>
> 
> />
> 
> 
>   
> 
>   
> 
>   
> 
> 
>   
>
>   
>
>   
> 
>   
> 
>   
>   
>  
>   
> 
>   
>
>
>   
>
>   
> 
>   
>multiple="{@multiple}">
> 
>   
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 
>   
>   
> 
>   
>
>
>   
>
>   
> 
> />
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>
>   
> 
> 
>   
>
>
>   
>
>
>   
>  
>  
>
>   
>   
> />
>  
> 
>   
>   
> 
>   
> 
>   
>   
>  maxlength='{@maxlength}' size='{@size}'/>
>   
> 
>   
>
>   
>
>   
> 
>   
> 
>   
>   
> 
> 
>value='{@value}' checked='{@checked}' />
> 
> 
>value='{@value}' />
>
> 
>   
>
>   
>
>   
> 
>   
>  />
>   
> 
>   
>
>   
>
>   
> 
>   
>  />
>
> 
>
>
>   
>  onClick='javascript:history.back(1)' 
> />   
> 
>   
>
>   
> 
>  
>
>
>These examples may not be perfect to your use but this is some kind
>of sample and i guess this will help you.All the Best.
>
>-Anand
>
>
>
>--
>To unsubscribe, 
>e-mail:   
>For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




xsl portlet.

2002-05-01 Thread Shan Gopalakrishnan

folks

Any idea how to use xsl portlet. if someone has an example that would be 
great.  Also my xml input is in the form
of  string and how would I pass it the XSL Portlet as it expects xml data 
input in the form of  http. appreciate
any help on this.

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: portlet actions min/max/close/edit.

2002-05-01 Thread Shan Gopalakrishnan

Todd

In your answer I can see only the portlet action mapping to a java class . 
But what I'm looking for is where is the api for eg.
what to call for Edit,  what to call for Minimize etc is defined? .  How 
does it know which api to call from the class for different
events?
At 05:29 PM 5/1/2002 -0700, Todd Kuebler wrote:
>Ah, you are looking to provide your own Customizer for a portlet.  The 
>docs are unfortunately a little light on this.  For an example of how to 
>do this with Velocity, check out the customizer for the very cool 
>DatabaseBrowserPortlet and the entry in the demo-portlets.xreg the binds 
>the customizer to the DatabaseBrowserAction.
>
> From demo-portlets.xreg:
>
>  parent="DatabaseBrowserPortlet" application="false">
> 
> DatabaseBrowserTest
> Simple Test Database Browser Portlet 
> Example
> 
>  hidden="false"/>
>  value="database-browser-customize" hidden="false"/>
>  value="portlets.browser.DatabaseBrowserAction" hidden="false"/>
> 
> 
> 
> 
>
>Hope that points you in the right direction..  Anyone with a more concrete 
>answer feel free to chime in as I'm relatively new to this as well.
>
>
>-tk
>
>
>At 05:01 PM 5/1/2002 -0700, Shan Gopalakrishnan wrote:
>>I'm looking at where is the actions for each portlet is defined . For eg. 
>>the actions for Min, Max, Edit and Close.
>>I'm looking at to define a edit page and bind it to the edit action of my 
>>portlet .
>>
>>Thanks
>>
>>- Shan
>>
>>
>>--
>>To unsubscribe, 
>>e-mail:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


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




portlet actions min/max/close/edit.

2002-05-01 Thread Shan Gopalakrishnan

I'm looking at where is the actions for each portlet is defined . For eg. 
the actions for Min, Max, Edit and Close.
I'm looking at to define a edit page and bind it to the edit action of my 
portlet .

Thanks

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Réf. : manipulating skin look & feel.

2002-04-30 Thread Shan Gopalakrishnan

Pierre,

Is there a possibility to manage seperate skins from the customize window ( 
the little pencil icon next to the tab's..)
Right now it has drop downs which has themes which affects all the portlets 
in the tab.   Is it possible to customize
the themes for the selected portlets in the tab?


At 10:21 AM 4/26/2002 +0200, [EMAIL PROTECTED] wrote:

>You can add or modify  skins in the
>/WEB-INF/conf/skins.xreg 
>The properties you can manipulate are :
>- text-color
>- background-color
>- title-text-color
>- title-background-color
>- highlight-text-color
>-  highlight-background-color
>-controller-style-class
>- portlet-style-class
>- title-style-class
>- content-style-class
>- highlight-title-style-class
>- tab-style-class
>- tab-title-style-class
>- tab-content-style-class
>
>I have added a method in  org.apache.jetspeed.portal.BasePortletSkin to be
>able to manipulate in template whatever skin property you want, I can send
>you a copy if you want..
>
>Pierre
>
>
>
> 
>
>   Shan 
 >
>   Gopalakrishnan   Pour 
> :[EMAIL PROTECTED] 
 >
>   <[EMAIL PROTECTED]cc 
> : 
>
>   om>  Objet :   manipulating 
> skin look & feel.
> 
>
>   26/04/2002 
> 07:12 
>
>   Veuillez 
> répondre 
>
>   à "Jetspeed 
> Users 
>
>   List" 
 >
> 
>
> 
>
>
>
>
>
>Hello  all,
>
>Is there a way to manipulate the look and feel of the skin ?
>
>- Shan
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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




RE: output html

2002-04-26 Thread Shan Gopalakrishnan


Thank you David.  Appreciate all your information.  I will read thru' and 
check back with you if any questions.

- Shan

t 02:07 PM 4/26/2002 -0700, David Sean Taylor wrote:
>Shan,
>
> > where is the definition of  $screen_placeholder.?
>
>That's an object put into the 'context' for Velocity by Turbine when
>creating the layout.
>Not sure if you are aware of the Velocity context or not, if not
>recommend reading up on it, nice concept:
>
>http://jakarta.apache.org/turbine/turbine-2/howto/context-howto.html
>
>The context is used to pull Java objects into your velocity template.
>Also see:
>
>http://jakarta.apache.org/turbine/turbine-2/howto/pullmodel-howto.html
>
>Also reference any of the vm templates in Jetspeed.
>Lots of examples of pulling Java objects from the context, and using
>'Pull Tools'
>
> > If it is
> > request to send a custom screen thru' the request, how do we
> > do that?. any inputs on this will help me.  I will also go
>
>Check out the $jslink examples for how to do this from a .vm page
>
> > -Original Message-
> > From: Shan Gopalakrishnan [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 26, 2002 1:29 PM
> > To: Jetspeed Users List
> > Subject: RE: output html
> >
> >
> > David, this is a awesome explanation. Thanks a lot.
> >   But that made me curious to ask little more question.
> >
> > On the below description
> >
> >  >>The PSML is placed into a Turbine screen(template) by the
> > layout, with  >>optional navigations.
> >  >>  $screen_placeholder
> >  >>The screen placeholder calls the specified screen in the
> > request, or the  >>default screen setup in the TR.p  >>Our
> > default screen will display the requested portal page.
> >
> > where is the definition of  $screen_placeholder.?  If it is
> > request to send a custom screen thru' the request, how do we
> > do that?. any inputs on this will help me.  I will also go
> > thru' turbine docs.
> >
> > - Shan
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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




RE: output html

2002-04-26 Thread Shan Gopalakrishnan

David, this is a awesome explanation. Thanks a lot.
  But that made me curious to ask little more question.

On the below description

 >>The PSML is placed into a Turbine screen(template) by the layout, with
 >>optional navigations.
 >>  $screen_placeholder
 >>The screen placeholder calls the specified screen in the request, or the
 >>default screen setup in the TR.p
 >>Our default screen will display the requested portal page.

where is the definition of  $screen_placeholder.?  If it is request to send a
custom screen thru' the request, how do we do that?. any inputs on this
will help me.  I will also go thru' turbine docs.

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Réf. : manipulating skin look & feel.

2002-04-26 Thread Shan Gopalakrishnan

I have a clip corner requirement.  Is there a paramater definted for that ?.
The clip corner is a  image  corner.gif.

At 10:21 AM 4/26/2002 +0200, [EMAIL PROTECTED] wrote:

>You can add or modify  skins in the
>/WEB-INF/conf/skins.xreg 
>The properties you can manipulate are :
>- text-color
>- background-color
>- title-text-color
>- title-background-color
>- highlight-text-color
>-  highlight-background-color
>-controller-style-class
>- portlet-style-class
>- title-style-class
>- content-style-class
>- highlight-title-style-class
>- tab-style-class
>- tab-title-style-class
>- tab-content-style-class
>
>I have added a method in  org.apache.jetspeed.portal.BasePortletSkin to be
>able to manipulate in template whatever skin property you want, I can send
>you a copy if you want..
>
>Pierre
>
>
>
> 
>
>   Shan 
 >
>   Gopalakrishnan   Pour 
> :[EMAIL PROTECTED] 
 >
>   <[EMAIL PROTECTED]cc 
> : 
>
>   om>  Objet :   manipulating 
> skin look & feel.
> 
>
>   26/04/2002 
> 07:12 
>
>   Veuillez 
> répondre 
>
>   à "Jetspeed 
> Users 
>
>   List" 
 >
> 
>
> 
>
>
>
>
>
>Hello  all,
>
>Is there a way to manipulate the look and feel of the skin ?
>
>- Shan
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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




manipulating skin look & feel.

2002-04-25 Thread Shan Gopalakrishnan

Hello  all,

Is there a way to manipulate the look and feel of the skin ?

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




output html

2002-04-25 Thread Shan Gopalakrishnan

Hello team

Are there any templates assoicated to the overall PSML?.  How we control 
the html that is getting generated
for the overall PSML which includes all the portlets.  I understand there 
is a possibility to assign a template
for each portlet . but I'm looking to control the html page that is getting 
generated for the entire psml after
the portlets assembly?.

- Shan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Images for Tab

2002-04-25 Thread Shan Gopalakrishnan

Is it possible to use images for Tabs?. while using the TabController .

- Shan



Re: changing login page.

2002-04-24 Thread Shan Gopalakrishnan

Anand , thanks a lot.  Actually I'm going by the default.vm with velocity 
as by base template. I want to avoid
the top, left, bottom and  just use a login page in this.  right now the 
templates are set using  $jnavigation.setTemplate() method.
which calling top.vm , instead i want to change it to the login.vm in the 
screens folder which should then forward the action
to the portal page . appreciate if you throw me some light here.  thanks a 
bunch.

At 11:22 AM 4/25/2002 +0530, anand wrote:
>Hi,
>It is fairly straight forward to do thatyou would be having a 
> default directory
>where your Jetspeed will read the psml from.Usually it is anon dir inside 
>WEB-INF/psml.
>You can see default.psml, where you need to place only the necessary modules
>such as login...This default anon dir is also configuarble in 
>Jetspeed.properties see
>(PSML and Profiler support).You can also have a user registration page for 
>signing
>new users.If you have a user and psml for him then you can start your 
>servlet engine
>and login as the user to get his corresponding psml.Hope this helps
>
>-Anand
>
>Shan Gopalakrishnan wrote:
>
>>Hi
>>
>>i'm looking to do the following changes to the login process.
>>
>>1) user comes to portal page and gets login screen only
>>2) enters username and password
>>3) user gets portal page on success.
>>
>>any pointers appreciated.
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>
>--
>To unsubscribe, 
>e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


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




changing login page.

2002-04-24 Thread Shan Gopalakrishnan

Hi

i'm looking to do the following changes to the login process.

1) user comes to portal page and gets login screen only
2) enters username and password
3) user gets portal page on success.

any pointers appreciated.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: