RE: Security on the Fly

2004-07-08 Thread Jeremy Ford
You can use maven to build Jetspeed.  Also, the .classpath and .project 
files are in CVS.  Just use eclipse to pull Jetspeed, and it should setup 
the project for you.  Please note:  you will need to build jetspeed from the 
command line to generate the torque files before the build in eclipse will 
work.

Jeremy Ford
[EMAIL PROTECTED]
From: "Sturtz, Andrew" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" 
<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: RE: Security on the Fly
Date: Thu, 8 Jul 2004 15:32:46 -0400

Jeremy,
Thanks for your help I pulled down the project and am trying to build
it.  Do I need to use Maven to do this.  At first I thought I did, but
then I noticed that there is already a project.xml and a maven.xml
files.  I guess I am just a little confused as to how to build the
project using Eclipse.
Thanks,
Andrew
-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 12:10 PM
To: Sturtz, Andrew; [EMAIL PROTECTED]
Subject: RE: Security on the Fly
Check out this link:
http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/j
etspeed/om/registry/base/
There are 2 files with a comment about fixing this bug.  Pull HEAD,
builder it, and grab those 2 files.
Jeremy Ford
[EMAIL PROTECTED]
>From: "Sturtz, Andrew" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List"
><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
>Subject: RE: Security on the Fly
>Date: Thu, 8 Jul 2004 11:56:21 -0400
>
>Thanks for your reply, but I looked high and low on the jetspeed CVS
>and found no such class file.  Did I miss something??? Where can I find
>this file.
>Thanks,
>Andrew
>
>-Original Message-
>From: Jeremy Ford [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 07, 2004 8:34 PM
>To: 'Jetspeed Users List'
>Subject: RE: Security on the Fly
>
>The was a caching issue in the security registry implementation.  This
>might resolve your issue.
>
>The bug is here:
>
>http://nagoya.apache.org/jira/browse/JS1-466
>
>You could possibly place a 1.6-dev BaseSecurityEntry.class file into
>your webapps WEB-INF classes directory to see if this resolves your
>issue.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: Sturtz, Andrew [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 07, 2004 4:20 PM
>To: [EMAIL PROTECTED]
>Subject: Security on the Fly
>
>Hi all,
>The problem that I am having is I am only able to add security
>constraints to portlets by restarting Tomcat after implementing the
>security that I need.  We are using Jetspeed 1.4 for our portal and we
>have some portlets that some users can access and others that only
>another group can access, and then some portlets that all users can
>access.  I have assigned roles to the users, and have configured
>security profiles based on those roles ie. user-view_admin-all, etc.
>If I try to apply one of my security profiles to a portlet through the
>admin account and then log back in as a user I get an error, "Error
>retreiving portal page: null"  but if I restart Tomcat I don't see the
>error anymore.  On the other hand, if I apply the security profiles
>through the xreg files before starting Tomcat the portal behavior is
>normal.  We need to be able to do this on the fly throught the admin
>account without having to restart Tomcat.  I tried to switch
>"services.JetspeedSecurity.caching.enable=false" in the
>JetspeedSecurity.properties file with no luck.  Is this a feature that
>is available in Jetspeed 1.5 or 2?  Is there a way to accomplish our
>goal in 1.4?  Please help.
>Thanks,
>-Andrew
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
_
Get tips for maintaining your PC, notebook accessories and reviews in
Technology 101. http://special.msn.com/tech/technology101.armx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
Get tips for maintaining your PC, notebook accessories and reviews in 
Technology 101. http://special.msn.com/tech/technology101.armx

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


Setting the menu selection

2004-07-08 Thread Hema Menon
Hi,

 

Is it possible to set the menu selection programmatically? I am setting
the template to a specific menu item when an action happens, however the
menu selection still remains the same.

 For eg. There are 3 selections possible in my menu with corresponding
jsp portlets as shown below.

 

Menu  A  - Login.

Menu B   - SomethingtoDo

Menu C - Verify

 

When the used does some action on the SomethingtoDo portlet, which
corresponds to menu selection B, I force the page to "Verify" by using
the setTemplate() method. However the menu selection still remains at B.
Will it be possible for me to set the menu selection to C too? I am not
fully familiar with jetspeed API's( still learning :-) ) Any inputs are
very well appreciated.

 

Thanks,

Hema

 



RE: Security on the Fly

2004-07-08 Thread Sturtz, Andrew
Jeremy,
Thanks for your help I pulled down the project and am trying to build
it.  Do I need to use Maven to do this.  At first I thought I did, but
then I noticed that there is already a project.xml and a maven.xml
files.  I guess I am just a little confused as to how to build the
project using Eclipse.
Thanks,
Andrew 

-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 12:10 PM
To: Sturtz, Andrew; [EMAIL PROTECTED]
Subject: RE: Security on the Fly

Check out this link:

http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/j
etspeed/om/registry/base/

There are 2 files with a comment about fixing this bug.  Pull HEAD,
builder it, and grab those 2 files.

Jeremy Ford
[EMAIL PROTECTED]


>From: "Sturtz, Andrew" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" 
><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
>Subject: RE: Security on the Fly
>Date: Thu, 8 Jul 2004 11:56:21 -0400
>
>Thanks for your reply, but I looked high and low on the jetspeed CVS 
>and found no such class file.  Did I miss something??? Where can I find

>this file.
>Thanks,
>Andrew
>
>-Original Message-
>From: Jeremy Ford [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 07, 2004 8:34 PM
>To: 'Jetspeed Users List'
>Subject: RE: Security on the Fly
>
>The was a caching issue in the security registry implementation.  This 
>might resolve your issue.
>
>The bug is here:
>
>http://nagoya.apache.org/jira/browse/JS1-466
>
>You could possibly place a 1.6-dev BaseSecurityEntry.class file into 
>your webapps WEB-INF classes directory to see if this resolves your 
>issue.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: Sturtz, Andrew [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 07, 2004 4:20 PM
>To: [EMAIL PROTECTED]
>Subject: Security on the Fly
>
>Hi all,
>The problem that I am having is I am only able to add security 
>constraints to portlets by restarting Tomcat after implementing the 
>security that I need.  We are using Jetspeed 1.4 for our portal and we 
>have some portlets that some users can access and others that only 
>another group can access, and then some portlets that all users can 
>access.  I have assigned roles to the users, and have configured 
>security profiles based on those roles ie. user-view_admin-all, etc.  
>If I try to apply one of my security profiles to a portlet through the 
>admin account and then log back in as a user I get an error, "Error 
>retreiving portal page: null"  but if I restart Tomcat I don't see the 
>error anymore.  On the other hand, if I apply the security profiles 
>through the xreg files before starting Tomcat the portal behavior is 
>normal.  We need to be able to do this on the fly throught the admin 
>account without having to restart Tomcat.  I tried to switch 
>"services.JetspeedSecurity.caching.enable=false" in the 
>JetspeedSecurity.properties file with no luck.  Is this a feature that 
>is available in Jetspeed 1.5 or 2?  Is there a way to accomplish our 
>goal in 1.4?  Please help.
>Thanks,
>-Andrew
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

_
Get tips for maintaining your PC, notebook accessories and reviews in
Technology 101. http://special.msn.com/tech/technology101.armx


-
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 session Vs tomcat session

2004-07-08 Thread Anand K Kalyanasundaram
Hi,
I want some objects to be stored as a part of the jetspeed user session. I tried using 
using the tomcat session, but I quickly learned that they are not the same. Can I use 
the use the jetspeed SessionState object 
(org.apache.jetspeed.services.statemanager.SessionState) for this ? If so, how do I 
get this from the tomcat session ? Should I be asking this question to the turbine 
group ?
Thanks.
Anand

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


How to reference each tab URL individually?

2004-07-08 Thread Jerry Lee
Hi,

I'm trying to re-work the jetspeed-tab.vm file and the shipped version
uses a foreach loop to generate the tabs.  This is great if I were
generating my tabs one at a time, however, due to the way my tabs are
layed out, there's no way to generate them programatically.  I need to
define the tabs in 1 pass.  How does one go about grabbing all of the
tab URLs individually?

I may be making this more complicated than I should but it's really
driving me crazy :)

Thanks for any help!

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



RE: Security on the Fly

2004-07-08 Thread Jeremy Ford
Check out this link:
http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/jetspeed/om/registry/base/
There are 2 files with a comment about fixing this bug.  Pull HEAD, builder 
it, and grab those 2 files.

Jeremy Ford
[EMAIL PROTECTED]

From: "Sturtz, Andrew" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" 
<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: RE: Security on the Fly
Date: Thu, 8 Jul 2004 11:56:21 -0400

Thanks for your reply, but I looked high and low on the jetspeed CVS and
found no such class file.  Did I miss something??? Where can I find this
file.
Thanks,
Andrew
-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 8:34 PM
To: 'Jetspeed Users List'
Subject: RE: Security on the Fly
The was a caching issue in the security registry implementation.  This
might resolve your issue.
The bug is here:
http://nagoya.apache.org/jira/browse/JS1-466
You could possibly place a 1.6-dev BaseSecurityEntry.class file into
your webapps WEB-INF classes directory to see if this resolves your
issue.
Jeremy Ford
[EMAIL PROTECTED]
-Original Message-
From: Sturtz, Andrew [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 4:20 PM
To: [EMAIL PROTECTED]
Subject: Security on the Fly
Hi all,
The problem that I am having is I am only able to add security
constraints to portlets by restarting Tomcat after implementing the
security that I need.  We are using Jetspeed 1.4 for our portal and we
have some portlets that some users can access and others that only
another group can access, and then some portlets that all users can
access.  I have assigned roles to the users, and have configured
security profiles based on those roles ie. user-view_admin-all, etc.  If
I try to apply one of my security profiles to a portlet through the
admin account and then log back in as a user I get an error, "Error
retreiving portal page: null"  but if I restart Tomcat I don't see the
error anymore.  On the other hand, if I apply the security profiles
through the xreg files before starting Tomcat the portal behavior is
normal.  We need to be able to do this on the fly throught the admin
account without having to restart Tomcat.  I tried to switch
"services.JetspeedSecurity.caching.enable=false" in the
JetspeedSecurity.properties file with no luck.  Is this a feature that
is available in Jetspeed 1.5 or 2?  Is there a way to accomplish our
goal in 1.4?  Please help.
Thanks,
-Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
Get tips for maintaining your PC, notebook accessories and reviews in 
Technology 101. http://special.msn.com/tech/technology101.armx

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


RE: Security on the Fly

2004-07-08 Thread Sturtz, Andrew
Thanks for your reply, but I looked high and low on the jetspeed CVS and
found no such class file.  Did I miss something??? Where can I find this
file.
Thanks,
Andrew 

-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 07, 2004 8:34 PM
To: 'Jetspeed Users List'
Subject: RE: Security on the Fly

The was a caching issue in the security registry implementation.  This
might resolve your issue.

The bug is here:

http://nagoya.apache.org/jira/browse/JS1-466

You could possibly place a 1.6-dev BaseSecurityEntry.class file into
your webapps WEB-INF classes directory to see if this resolves your
issue.

Jeremy Ford
[EMAIL PROTECTED]


-Original Message-
From: Sturtz, Andrew [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 4:20 PM
To: [EMAIL PROTECTED]
Subject: Security on the Fly

Hi all,
The problem that I am having is I am only able to add security
constraints to portlets by restarting Tomcat after implementing the
security that I need.  We are using Jetspeed 1.4 for our portal and we
have some portlets that some users can access and others that only
another group can access, and then some portlets that all users can
access.  I have assigned roles to the users, and have configured
security profiles based on those roles ie. user-view_admin-all, etc.  If
I try to apply one of my security profiles to a portlet through the
admin account and then log back in as a user I get an error, "Error
retreiving portal page: null"  but if I restart Tomcat I don't see the
error anymore.  On the other hand, if I apply the security profiles
through the xreg files before starting Tomcat the portal behavior is
normal.  We need to be able to do this on the fly throught the admin
account without having to restart Tomcat.  I tried to switch
"services.JetspeedSecurity.caching.enable=false" in the
JetspeedSecurity.properties file with no luck.  Is this a feature that
is available in Jetspeed 1.5 or 2?  Is there a way to accomplish our
goal in 1.4?  Please help. 
Thanks,
-Andrew

-
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: com.werken.werkz.NoSuchGoalException: No goal [import]

2004-07-08 Thread robin.antony
Hi,
Take a look at this thread
http://jira.codehaus.org/browse/MAVEN-1142
Looks like it was bug, and it seems it is resolved and it looks very much
like what you are getting ..

NoSuchGoalException

Or, maybe it is coz the Euro Cup is over! hehe
Cheers,
Robin Antony
OpenSI.Net
www.opensi.net


> Hi All
>
> I am following this
> http://portals.apache.org/jetspeed-1/psml_db.html
> to set up Jetspeed MySQL database for user management.
> I have changed my JetSpeedResource.properties to use the appropriate
> class for import.
>
> Now finally when I do
> maven import.
>
> It throws the following exception. I am using Jetspeed 1.5.
>
> com.werken.werkz.NoSuchGoalException: No goal [import]
> at
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:190)
> at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 531)
> at
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
> at org.apache.maven.cli.App.doMain(App.java:466)
> at org.apache.maven.cli.App.main(App.java:1117)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
> Total time: 1 seconds
> Finished at: Wed Jul 07 12:55:28 GMT+05:30 2004
>
> It seems as if I am using an older version. From where do I get the
> latest version of Jetspeed ?
>
> Thanks
> Khem
>
>
>
> - 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: Multiple portlet instances and action event execution order

2004-07-08 Thread Jeremy Ford
See below:

From: Bjorn Vidar Remme <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Subject: Multiple portlet instances and action event execution order
Date: Thu, 8 Jul 2004 09:49:32 +0200
Hi all,
i have a pane with multiple portlets of the same type added. Works
perfectly now, this was a issue before, but it is solved nicely. Thanks to
the individuals who made that possible :
The portlets are configured to behave differently, but the share some
common data. We store the common data in the RunData object. We can store
data on three different levels: UserSace (rundata.getUser.setTemp()) ,
PortletgroupSpace  (homebrewed) and PortletSpace (using the portlet id).
This also works perfectly.
My problem now is how to handle the action events fired from these
portlets.
If I do the following (velocity):



the doBrowse_refresh() method is called for all the portlets on the page
with the same input values. This of course overwrites all the portlet
unique values in rundata. The events look like this:
-   doBrowse_Refresh() for portlet 1
-   buildNormalContext() for portlet 1
-   doBrowse_Refresh() for portlet 2
-   buildNormalContext() for portlet 2
I then modified the code to use the portlet id. This is based on the HTML
source for the portlet controls. I manually add the portletid to the
context:



Is there a equivalent to $jslink that would automatically do this?

$jslink.getPortletById($portlet.ID)
The result was better but not as expected. Now it turned out that the
ordering on the pane was important. Lets say that we click on Portlet 2
which is the portlet on the left side of the pane.
The events then look like this:
-   buildNormalContext() for portlet 1
-   doBrowse_Refresh() for portlet 2
-   buildNormalContext() for portlet 2
Almost what I want! The problem now is that portlet 1 is displaying old
data, because the global/group entires in rundata was updated after the
buildNormalContext() method was executed. If we click on Portel 1
everything works perfectly, because the events now look like:
-   doBrowse_Refresh() for portlet 1
-   buildNormalContext() for portlet 1
-   buildNormalContext() for portlet 2
Is it possible to get the action event to always be handled first
regardless of which portlet the request was sent from, i.e. the events
after clicking on portlet 2 should be:
-doBrowse_Refresh() for portlet 2
-   buildNormalContext() for portlet 1
-   buildNormalContext() for portlet 2


If you want your action to fire first before any portlets are rendered, you 
will need to specify the action parameter in the url.  This will cause your 
event to fire first.



Med vennlig hilsen/Kind regards,
Bjorn Vidar Remme
Application Engineer

Jeremy Ford
[EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: AW: Portlet programming basic question

2004-07-08 Thread Scott T. Weaver
Oliver Pfau wrote:
is this jetspeed specific or possible in JSR 168 too ?
 

jspeid is specific to Jetspeed 1 and allows Jetspeed 1 to figure out 
which portlet should be the target of the action. 

In Jetspeed,  JSR-168 portlets function in a very similar way, currently 
you  have PorletURL object that is generated by the 
RenderResponse.createRenderURL() or RenderResponse.createActionURL() 
used to generate a URL that is unique to that portlet on that page 
either rendering or invoking actions repsectively. 

-Ursprüngliche Nachricht-
Von: Floßmann Christoph [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Juli 2004 08:55
An: Jetspeed Users List
Betreff: RE: Portlet programming basic question
What I understood, the jspeid is used to identify portlets on the same pane.
The code is in the tutorial, here again (for jsp):
=
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>
...
<%
   String jspeid = (String) request.getAttribute("js_peid");
%>



=
-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 8:48 AM
To: 'Jetspeed Users List'
Subject: AW: Portlet programming basic question
now I store all the user specific attributes in the PortletSession and it
seems that it works sorry for this question, but what is the jspeid ?
something Jetspeed specific ?
-Ursprüngliche Nachricht-
Von: Floßmann Christoph [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Juli 2004 08:37
An: Jetspeed Users List
Betreff: RE: Portlet programming basic question
And you are sure that you are using sessions and the jspeid?
-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 11:29 AM
To: Jetspeed Users List (E-Mail)
Subject: Portlet programming basic question
Hi,
I have the following problem...
I wrote a TreePortlet which is rendering a tree with the
javax.swing.DefaultMutalbeTreeNode data structure on init of the portlet
I retrieve the root node, which contains all child nodes, and I store it in
the portletin the doView() I dispatch the TreeNode structure to a jsp in
which the structure is renderednow I have the following problem: when
user X expands a node of the tree, user Y is concerned by the change too. So
all changes a user in the tree makes the other users are concerned... the
TreeNode data structure in the portlet seems to be globally for all users...
well I can use a hashmap with user-TreeNode pairs, but shouldn't the portlet
container handle this ??
By the way I tested it with exo beta 5 by now it would be very
interesting for me if this a problem of my design or a problem of the
portlet container.
Thanks,
Oliver
-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error "turbine_user is not a sequence" when adding user

2004-07-08 Thread GUY Laurent Ext OCISI
Hi, 

Any help would be fully appreciated on this problem.

I use Jetspeed 1.5 (with Torque 3.1) on my local host, and PostgreSQL 7.3.2, on a 
Linux server 
I try to add a new user :

 String username="foo";
 JetspeedUser jUser = new BaseJetspeedUser();
 jUser.setName(username);
 jUser.setUserName(username);
 jUser.setPassword(username);
 jUser.setFirstName(username);
 jUser.setLastName(username);
 jUser.setEmail(username+"@test.com");  
 jUser.setConfirmed(User.CONFIRM_DATA);
 
 try {
JetspeedSecurity.addUser(jUser);
 }
 catch (Exception e) {

logger.error("Error adding user in DB ["+e.toString()+"]");
 }

And I get this exception :
Error adding user in DB [org.apache.jetspeed.services.security.UserException: Failed 
to create account 'foo': ERROR: "turbine_user" is not a sequence

Although the exception is thrown, the new user is added in database.
(The TURBINE_USER table has a sequence named TURBINE_USER_SEQ on USER_ID field)

I get the same problem when Jetspeed tries to create the default.psml : 
turbine_user_profile is not a sequence.

Here has the logs in jetspeedservices.log :

org.postgresql.util.PSQLException: ERROR: "turbine_user" is not a sequence
at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
at 
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:517)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50)
at 
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:233)
at 
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:221)
at com.workingdogs.village.QueryDataSet.(Unknown Source)
at 
org.apache.torque.oid.AutoIncrementIdGenerator.getIdAsVillageValue(AutoIncrementIdGenerator.java:194)
at 
org.apache.torque.oid.AutoIncrementIdGenerator.getIdAsBigDecimal(AutoIncrementIdGenerator.java:127)
at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:771)
at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:639)
at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(BaseTurbineUserPeer.java:241)
at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(BaseTurbineUserPeer.java:214)
at 
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.addUser(TurbineUserManagement.java:283)
at 
org.apache.jetspeed.services.JetspeedUserManagement.addUser(JetspeedUserManagement.java:95)
at 
org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.java:213)
  [...]
rethrown as 
org.apache.torque.TorqueException: ERROR: "turbine_user" is not a sequence
at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:236)
at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:780)
at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:639)
at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(BaseTurbineUserPeer.java:241)
at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(BaseTurbineUserPeer.java:214)
at 
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.addUser(TurbineUserManagement.java:283)
at 
org.apache.jetspeed.services.JetspeedUserManagement.addUser(JetspeedUserManagement.java:95)
at 
org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.java:213)
  [...]
Caused by: org.postgresql.util.PSQLException: ERROR: "turbine_user" is not a sequence
at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
at 
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:517)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50)
at 
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:233)
at 
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:221)
at com.workingdogs.village.QueryDataSet.(Unknown Source)
at 
org.apache.torque.oid.AutoIncrementIdGenerator.getIdAsVillageValue(AutoIncrementIdGenerator.java:194)
at 
org.apache.torque.oid.AutoIncrementIdGenerator.getIdAsBigDecimal(AutoIncrementIdGenerator.java

Multiple portlet instances and action event execution order

2004-07-08 Thread Bjorn Vidar Remme
Hi all, 

i have a pane with multiple portlets of the same type added. Works 
perfectly now, this was a issue before, but it is solved nicely. Thanks to 
the individuals who made that possible : 

The portlets are configured to behave differently, but the share some 
common data. We store the common data in the RunData object. We can store 
data on three different levels: UserSace (rundata.getUser.setTemp()) , 
PortletgroupSpace  (homebrewed) and PortletSpace (using the portlet id). 
This also works perfectly.

My problem now is how to handle the action events fired from these 
portlets. 
If I do the following (velocity): 




the doBrowse_refresh() method is called for all the portlets on the page 
with the same input values. This of course overwrites all the portlet 
unique values in rundata. The events look like this:
-   doBrowse_Refresh() for portlet 1
-   buildNormalContext() for portlet 1
-   doBrowse_Refresh() for portlet 2
-   buildNormalContext() for portlet 2


I then modified the code to use the portlet id. This is based on the HTML 
source for the portlet controls. I manually add the portletid to the 
context:





Is there a equivalent to $jslink that would automatically do this?

The result was better but not as expected. Now it turned out that the 
ordering on the pane was important. Lets say that we click on Portlet 2 
which is the portlet on the left side of the pane. 
The events then look like this:
-   buildNormalContext() for portlet 1
-   doBrowse_Refresh() for portlet 2
-   buildNormalContext() for portlet 2


Almost what I want! The problem now is that portlet 1 is displaying old 
data, because the global/group entires in rundata was updated after the 
buildNormalContext() method was executed. If we click on Portel 1 
everything works perfectly, because the events now look like:
-   doBrowse_Refresh() for portlet 1
-   buildNormalContext() for portlet 1
-   buildNormalContext() for portlet 2


Is it possible to get the action event to always be handled first 
regardless of which portlet the request was sent from, i.e. the events 
after clicking on portlet 2 should be:
-doBrowse_Refresh() for portlet 2
-   buildNormalContext() for portlet 1
-   buildNormalContext() for portlet 2




Med vennlig hilsen/Kind regards,

Bjorn Vidar Remme
Application Engineer



RE: Portlet programming basic question

2004-07-08 Thread Floßmann Christoph
Well I'm using Version 1.4 - I don't think that this is JSR 168 conform but there 
should be something similar.

-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 8:57 AM
To: 'Jetspeed Users List'
Subject: AW: Portlet programming basic question


is this jetspeed specific or possible in JSR 168 too ?

-Ursprüngliche Nachricht-
Von: Floßmann Christoph [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Juli 2004 08:55
An: Jetspeed Users List
Betreff: RE: Portlet programming basic question


What I understood, the jspeid is used to identify portlets on the same pane.
The code is in the tutorial, here again (for jsp):

=
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>
...
<%
String jspeid = (String) request.getAttribute("js_peid");
%>



=


-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 8:48 AM
To: 'Jetspeed Users List'
Subject: AW: Portlet programming basic question


now I store all the user specific attributes in the PortletSession and it
seems that it works sorry for this question, but what is the jspeid ?
something Jetspeed specific ?

-Ursprüngliche Nachricht-
Von: Floßmann Christoph [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Juli 2004 08:37
An: Jetspeed Users List
Betreff: RE: Portlet programming basic question


And you are sure that you are using sessions and the jspeid?

-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 11:29 AM
To: Jetspeed Users List (E-Mail)
Subject: Portlet programming basic question


Hi,

I have the following problem...

I wrote a TreePortlet which is rendering a tree with the
javax.swing.DefaultMutalbeTreeNode data structure on init of the portlet
I retrieve the root node, which contains all child nodes, and I store it in
the portletin the doView() I dispatch the TreeNode structure to a jsp in
which the structure is renderednow I have the following problem: when
user X expands a node of the tree, user Y is concerned by the change too. So
all changes a user in the tree makes the other users are concerned... the
TreeNode data structure in the portlet seems to be globally for all users...
well I can use a hashmap with user-TreeNode pairs, but shouldn't the portlet
container handle this ??
By the way I tested it with exo beta 5 by now it would be very
interesting for me if this a problem of my design or a problem of the
portlet container.

Thanks,
Oliver


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

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