Re: Jetspeed 2 - Postgresql connection Issue

2004-06-22 Thread David Sean Taylor
On Jun 22, 2004, at 2:40 PM, Nicholls, Ian wrote:
Hi,
  I am looking at developing a series of JSR 168 compliant portlets and
wanted to use the Jetspeed 2 code as a base to work from, I have a
number of databases setup using Postgresql and do not want to run yet
another database so I started to change the maven.xml to include a
Postgresql step, everything went fine (well mostly fine) until it came
to the portal_entity table. This table cannot be created in postgresql
because the column OID conflicts with a postgresql reserved word.
Submit it as a bug to JIRA
We will change the column name
 My question is, is there any way to do a mapping to change the actual
column name within the database but not change the Jetspeed 2 code? Or
is this going to require a code change to get working?
Ian Nicholls

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


Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1

2004-06-17 Thread David Sean Taylor
On Jun 17, 2004, at 4:33 PM, Bob Fleischman wrote:
I am trying to build Jetspeed 2 from source using the steps in
http://portals.apache.org/jetspeed-2/getting-started.html on a Window 
XP PC.

However it seems that the instructions differ slightly from the current
files. For example, they point at apache/tomcat5 in the 
project.properties
files; the paths are in 'Linux Speak' ${USER_HOME}/build.properties, 
which
turns out to be the build.properties file in the Jetspeed2 home dir; 
the
instructions say that catalina.home should point to $(CATALINA_HOME}/ 
and in
the existing properties file it points to tomcat/Jetspeed; and 
finally, the
build.properties files has references to Oracle. I found that I had to
remove those to get the project to build.

When I try to deploy I am being stopped with
BUILD FAILED
File.. C:\eclipse\workspace\jakarta-jetspeed-2\maven.xml
Element... maven:reactor
Line.. 485
Column 40
Unable to obtain goal [fullDeploy] --
C:\eclipse\workspace\jakarta-jetspeed-2\portal\maven.xml:250:41:
 No goal [jetspeed2:deploy]
Total time: 33 seconds
Finished at: Thu Jun 17 19:32:25 EDT 2004
I would be glad to write the Windows version if I could get everything 
to
work.
The document is not specific to any operating system
You can always specify forward slashes in your paths in property files, 
and they will be interpreted correctly
Make sure to edit your build.properties in your home directory
These props will override the settings in the J2 project
On Windows that can be found somewhere like c:\Documents and 
Settings\bob

The error you are getting means that the plugin didn't get installed
That was fixed recently. I built J2 yesterday on a clean system (empty 
local repo) and I didn't get that error


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


Re: Role Based User Management

2004-06-17 Thread David Sean Taylor
On Jun 16, 2004, at 3:07 AM, Stijn de Witt wrote:
Hi,
I have asked a few questions on the User List about role based PSML. I 
still
only half understand how it works, but I'm getting there... :)

Recently I checked out jetspeed-1.6-dev from the CVS and I noticed that
changes had been/are being made to the user/group/role structure. Can 
anyone
here tell me where you are going with it? I noticed that anon and admin
directories were created in the root psml folder.

They are deleted directories, and poor old CVS never really removes 
deleted directories
Try checking out like this

cvs co -P jakarta-jetspeed
or
cvs update -P -d
1.5 did make changes to group and role behavior
See
http://issues.apache.org/jira/browse/JS1-426

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


Re: How to get group name from portlet

2004-06-17 Thread David Sean Taylor
On Jun 15, 2004, at 8:37 AM, Assia Aouat wrote:
Hi

How can I get the group name of the user log in to my portlet?
Not sure what you mean by "user log"
But if you are trying to get the groups that a user is a member of, try
Iterator groups = JetspeedSecurity.getGroups(username);

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


Re: Maven Error Details

2004-06-15 Thread David Sean Taylor
On Jun 14, 2004, at 8:08 PM, Bob Fleischman wrote:
Also, can I run and debug one suite of tests?
maven 
-Dtest.case=org.apache.jetspeed.services.security.TestRoleManagement 
test:single

or you can define the test case as a property then run
maven test:single
-Original Message-
From: Bob Fleischman [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 10:54 PM
To: Jetspeed Users List (E-mail)
Subject: Maven Error Details
I'm sure the move to Maven is a good thing. It is just taking a bit of 
time
to get familiar with it.

i agree, maybe Maven 2 will make our lives easier
[junit] INFO - Finished initializing all services!
[junit] Tests run: 9, Failures: 2, Errors: 0, Time elapsed: 5.628 
sec
[junit] [ERROR] TEST
org.apache.jetspeed.services.security.TestGroupManagement FAILED

Is there a log that give me more detail so I can determine exactly 
which
test in the suite failed?

Check under the target/test-reports directory

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


Re: Problem with a tutorial's CoffeeBrowser portlet !

2004-06-09 Thread David Sean Taylor
On Jun 8, 2004, at 3:44 PM, Michael Muller wrote:
Hi Jetspeed Veterans,
I'm looking at the tutorial's portltets: the CoffeeBrowser portlet.
But once deployed the portlet is empty...
There was an error because in t9-portlets.xreg references the class  
portlets.CoffeesBrowserAction which dosn't exist, so I renamed it to  
portlets.CafeBrowserAction (which is the new name since JS-1.5).

But it still dosn't work, the error is described in jetspeed.log :
2004-06-08 23:21:52,216 [http8080-Processor23] ERROR  
GenericMVCPortlet - GenericMVCPortlet - error executing action
java.lang.ClassNotFoundException:
 Requested Action not found: portlets.CafeBrowserAction
 Turbine looked in the following modules.packages path:
 [org.apache.jetspeed.modules, org.apache.turbine.modules]
 at  
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java: 
174)

Turbine didn't look at the package  
org.apache.jetspeed.tutorial.modules.actions.portlets, where the class  
is located.
What should I modify so that the turbine looks at the  
jetspeed.tutorial classpath, or is there something else to do ?

Im working from the CVS head, and the tutorial isn't working for me  
either, the properties are not merged.
I'll look into to this and get a fix in as soon as I can


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


Re: ScheduledJob

2004-06-09 Thread David Sean Taylor
On Jun 9, 2004, at 12:30 PM, Al. Oupraxay wrote:
I still get an error message...
Any help would be greatly appreciated.
Thanks in advance,
Aloundeth,
2004-06-09 12:21:38 StandardContext[/jetspeed]StandardWrapper.Throwable
java.lang.NoSuchMethodError:
org.apache.torque.om.BaseObject.setPrimaryKey(I)V
	at
org.apache.turbine.services.schedule.JobEntryPeer.doSelect(JobEntryPeer 
.java
:143)
	at
org.apache.turbine.services.schedule.TurbineSchedulerService.init(Turbi 
neSch
edulerService.java:120)
	at
looks like you are still using the TurbineSchedulerService and not the  
TurbineNonPersistentScheduler
if you would like to use the TurbineSchedulerService you need to add  
then tables to a database

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


Re: ScheduledJob

2004-06-09 Thread David Sean Taylor
On Jun 8, 2004, at 12:04 PM, Al. Oupraxay wrote:
Hi,
How do you make jetspeed 1.5+ scheduledjob works?
Do you need to create ID_TABLE and TURBINE_SCHEDULED_JOB om classes?
You don't have to setup the jobs in the database.
Try the TurbineNonPersistentScheduler which runs off job configuration 
in the TurbineResources.properties
For example:

scheduler.jobs=Job1,Job2
scheduler.job.Job1.ID=1
scheduler.job.Job1.MINUTE=10
scheduler.job.Job1.SECOND=0
scheduler.job.Job2.ID=1
scheduler.job.Job2.MINUTE=20
scheduler.job.Job2.SECOND=0
Finally you need to have 2 classes called Job1 and Job2 extending 
ScheduledJob located under the scheduledjobs module


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


Re: http://portals.apache.org/jetspeed-2/tutorial/ ??

2004-06-09 Thread David Sean Taylor
On Jun 8, 2004, at 2:00 PM, Jeff Marin wrote:
Does anybody know where to find a tutorial for building portlets in 
jetspeed2?

There isn't a tutorial available for J2 yet
Here is a good article on general Portlet API development:
http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet.html


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


Re: PSML resolution, how does it work?

2004-06-05 Thread David Sean Taylor
On Jun 5, 2004, at 2:07 PM, Stijn de Witt wrote:
role
 |-- admin
 | \-- html
 |   \-- default.psml
 |-- guest
 | \-- html
 |   \-- default.psml
 |-- manager
 | \-- html
 |   \-- default.psml
 \-- user
   \-- html
 \-- default.psml
It keeps looking for directory user/anon/html  I think...
-Stijn
Did you delete the anon psml tree?
Role--based fallback only works for authenticated users, not the 
special case anonymous user, which is required


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


Re: PSML resolution, how does it work?

2004-06-05 Thread David Sean Taylor
On Jun 5, 2004, at 10:51 AM, Stijn de Witt wrote:
Can anyone point me to information on the algorith that determines 
which
.psml file jetspeed uses? Is it possible to completely remove the user 
dir
from webapp/WEB-INF/psml? I would like to have only the directory 
'role'
with subdirs 'guest', 'user', 'manager' and 'admin'. No 
per-user-specific
psml. How can this be done?
Use the "role-based psml" feature, setup in your 
JetspeedResources.property file:

 When a new user is created, this account's psml is cloned to the new 
account psml
# Setting this account to nothing configures role-based psml as the 
default method for new users
services.Profiler.newuser.template=

# Profiler Fallback options
#
# use Role-based PSML fallback
services.Profiler.rolefallback=true
Then you need to create a Role PSML page, assign your users this role 
and your ready
For ex, if you create a role called "employee" and then set in the 
JetspeedSecurity.properties:

# Role(s) to assign to new user.  Multiple Role must be comma separated.
services.JetspeedSecurity.newuser.roles=employee,user
The role-fallback algorithm isn't that sophisticated
It finds the first matching PSML file for any of the roles that a user 
is a member of

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


Re: How to change from hsqldb to mysql?

2004-06-05 Thread David Sean Taylor
On Jun 5, 2004, at 4:13 AM, Stijn de Witt wrote:
Looking at the SQL in turbine-mysql.sql, it seems to be for the wrong
database type. Maybe a mixup? It looks like this (just the first two
tables):
patch applied to CVS head, try again and let us know if that works for 
you

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


Re: How to change from hsqldb to mysql?

2004-06-05 Thread David Sean Taylor
On Jun 5, 2004, at 4:13 AM, Stijn de Witt wrote:
Looking at the SQL in turbine-mysql.sql, it seems to be for the wrong
database type. Maybe a mixup? It looks like this (just the first two
tables):
It appears that the patch to add the EMAIL table broke this script
That was my mistake, I didn't review the patch closely enough
Sorry about that, I'll get that fixed
In the meantime look at the turbine-mysql-4.sql script
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple devices and psml files

2004-06-04 Thread David Sean Taylor
On Jun 4, 2004, at 2:41 AM, Fabrice Mercier wrote:
Hi everybody !
Is it possible to adapt jetspeed (1.5) screens to the connected device 
(pda, pc, smartphone,...) without having to create a new media type 
for each client ?

Your portlets, and the portal, need to generate the correct markup. If 
your client devices share similar markup you can have them map to the 
same media type.
Details found here:

http://portals.apache.org/jetspeed-1/client-media.html

I would like to dynamically switch from one psml file to another 
according to the user agent of the device, i.e. the psml files would 
be :

user/anon/default.psml
user/anon/pda.psml   user/anon/smartphone.psml
You can setup your PSML based on media type either by hand or using the 
Administrative PSML Browser portlet
Example of subdirectories to achieve this already exist:

user/anon/html/default.psml
user/anon/wml/default.psml
...
Read about the PSML locator here:
http://portals.apache.org/jetspeed-1/psml.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 or more identical portlets on one page

2004-06-03 Thread David Sean Taylor
On Jun 3, 2004, at 4:18 AM, Vladimir Figurov wrote:
2 or more identical portlets on one page - how to do independent their 
condition?
Only through session.setAttribute()? Or in the object portlete it is 
possible to remember his current condition?
portlet.setAttribute("currPage",""+currPage, rundata);  - not working 
:-(

Recommend looking at o.a.j.util.PortletSessionState for managing 
session state on a per portlet instance basis

I originally misunderstood your question, and thought you were asking 
about portlet instances.
Here is my original response, which I was about to erase, then thought 
it might be useful to someone anyway:

Jetspeed-1 has the concept of a Portlet Instance (or entity).
// from a portlet
PortletInstance instance = this.getPortletInstance(rundata);
instance.getAttribute(name);
The portlet's getAttribute actually gets the instance, so amounts to 
the same as above

Finally,
Take a look at PortletSessionState.getAttributeWithFallback which 
attempts to find an attribute in the following:

- request param
- session attribute (from session per instance)
- instance attribute (psml 'instance')
- config param (registry)
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


Re: Portlet search engine: how to find a working URL to a portlet

2004-06-01 Thread David Sean Taylor
On Jun 1, 2004, at 6:32 AM, Sprang, Henning (Firma CS) wrote:
Hy,
I am working on a search engine for a jetspeed 1.5 Portal.
We have different types of content being displayed by different kinds 
of custom
Portlets we wrote, that are indexed by a search engine
we wrote for this task. The basic search algorithm used to find the 
content
items matching the users search criteria is already done.

The point now is, i need to find an URL to some portlet of the correct 
type
that is able to show the content element found by the search engine to 
present a list of links to found items to the user.

The first part, finding a portlet somewhere in the Portlet tree that 
matches my criteria,
is already done - even in two ways - i find a "good" portlet as well 
in the PsmlPortlets tree that starts with the profile i find in 
rundata, and i find a "good" portlet in the tree of portlets and 
portletsets that starts when i get my actual portlet by doing

Context ctx = getContext(rundata);
Portlet portlet = getPortlet(ctx);
An then iterating through the portletSets until i get a Portlet 
haveing the needed initParameters and stuff.

So far, everythings fine, but now, i can't find a reliable way to get 
an URL
to the portlet i finally find

Is there any "always-working" way to construct an URL to a Portlet 
when i have the full path to it in the mentioned PsmlProtlets and/or 
PortletSet tree, or even easiert with just knowing it's unique id?

Do you want to show the portlet standalone (without a page) or within 
the context of a page?
Look at JetspeedLink class.
You can create a link to any portlet in the system using a JetspeedLink 
by adding [user/role/group], page, portlet location on page


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


Re: Maximized Views in XSL/Velocity Portlets?

2004-06-01 Thread David Sean Taylor
On Jun 1, 2004, at 8:16 AM, [EMAIL PROTECTED] wrote:
I am writing an XSL document to transform an existing XML document to
XHTML, but I cannot find a way to specify a different "view" when the
portlet is maximized.  For example, in normal mode, I only want the
portlet to show summary information.  When maximized, I want to show 
much
more detailed info (i.e. point to a different XSL document for the
transformation.)  Is there a simple way to do this (ideally without
writing any code?)  I have looked around for the answer to this, but
haven't found anything.  I know I could write a new XSL ViewProcessor
which may also take a "maximized" init parameter - and point to a
different XSL document, but I am trying to avoid writing code if this
logic has already been done somewhere.

Not supported, have to write code, something like
if (jetspeedRunData.getMode() == JetspeedRunData.MAXIMIZE)
{
// use the maximized transform for this media type
}
While I'm at it, I have the same question for Velocity-based portlets. 
 Is
there an easy way to specify a different view of a maximized portlet 
here
(i.e. a "maximized" template which shows much more detailed information
than the "normal" template?)

again not supported
I think its a great enhancement.
The support for templates/transforms is based on media type only.
The portlet mode could be used to find the template
Please create an issue in JIRA.
Let us know if you are willing to supply to a patch
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: psml "test" in deployment war - what is it?

2004-06-01 Thread David Sean Taylor
On Jun 1, 2004, at 5:06 AM, Vladimir Figurov wrote:
WEB-INF/test - what is it?
Unit test data. IMO those files should not be a part of the deployment.
Please log a bug, and we will get around to removing it from the 
deployment.
Or better yet send a patch

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


Re: How To insert predefined roles

2004-06-01 Thread David Sean Taylor
On Jun 1, 2004, at 2:28 AM, Vladimir Figurov wrote:
How To insert predefined roles (myRole) in jetspeed1.5-src, what they 
would be then in result deployment war?
In \src\sql\external\populate-* ???
- But I not find populate-* for hypersonic DB ;(

With Hypersonic the database script is actually the database.
So you edit the the database scripts under 
webapp/WEB-INF/db/jetspeed.script
If you are doing anything more than a demo system, I don't recommend 
this approach.
Recommend:

1. Start a new project with the Jetspeed Plugin
2. Replace the Hypersonic database with MySQL

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


Re: Hangs during maven war command

2004-06-01 Thread David Sean Taylor
On May 31, 2004, at 6:05 PM, Bob Fleischman wrote:
I have maven 1.0rc3 and gotten the latest source code of Jetspeed 
1.6dev
from the CVS head.

When I run maven war it stops at
[junit] INFO - loading component: name=fulcrum
class=org.apache.fulcrum.Fulc
rum config=webapp\WEB-INF\conf\Fulcrum.properties
[junit] INFO - Finished initializing all services!
and just sits there doing nothing else.
Im also on maven 1.0 rc3, no problem
is it running a particular unit test?
I also get into situations with maven where I simply re-install because 
I don't know what else to do
Not that Im recommending that, not yet
All said though, I still think maven is a great tool

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


Re: What is the default Group Profile?

2004-05-27 Thread David Sean Taylor
On May 26, 2004, at 1:11 PM, Bob Fleischman wrote:
Sorry if this is repost. My email client hiccupped when I tried to  
send at
first and I am not sure if it went.

David
I retract my earlier statement. I was thinking too much . (Sorry I
thought I saw an I not a 1 and I was thinking of some Java Standards)
I read the JS1-480. That deals with my initial concerns.
Ideally I would like to create a series of Portlets for this template  
page
which share a common parameter 'Group'. This parameter would then be  
used to
limit the content of the portlet to data relevant to the group.
That shouldn't be a problem
Also, I would like to automatically create a new security role
'Admin+{group}member' so that we can restrict the content to group  
members
only and then apply that security to the group template
Something like:

   

   
   

   
Finally, since you asked, I would like to create a role called  
{group}Admin
so that individual users could be assigned the responsibility of
administering a group page, perhaps with public and private content.

Is that too much to ask for??
Not at all ;-)
Are you going to send the patch?
If not, as you can tell by late response, Im a bit swamped this week.
I can try to get to implementing JS1-480 by next week
Bob
-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 12:58 AM
To: Jetspeed Users List
Subject: Re: What is the default Group Profile?
On May 25, 2004, at 3:07 PM, Bob Fleischman wrote:
David:
I've looked this over. From what I can tell the Security constraint is
inherited from the default new user template.
Does that sound right to you??
Thats how it currently operates.
Did you read JS1-480?
Does that proposal better fit your requirements, or is the current
implementation fine?
-----Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 12:12 PM
To: Jetspeed Users List
Subject: Re: What is the default Group Profile?

On May 21, 2004, at 2:48 PM, Bob Fleischman wrote:
And where is it created?
I am familiar with services.Profiler.newuser.template for new users,
but I
did not see anything similar for groups.
I would like to intercept the process and customize the Profile/PSML
that is
created for each group so that I can quickly create team workspaces.
Has anyone else tried this??
Easy to change the default behavior, see
o.a.j.services.security.turbine.TurbineGroupManagement.addDefaultGroup 
P
S
ML, and then see the
o.a.j.services.profiler.JetspeedProfilerService.createProfile
You can extend these services, or better yet if we can come up with a
generic solution to your problem, commit it back to CVS head

I noticed 2 issues that can be improved on:
1. The Turbine User (the default User template) was copied over and
used as a default Group template.
2. The Security constraint applied (owner-only) makes this PSML
unaccessible
I propose
1. enhancing the TurbineGroupManagement : adding a default Group
template
2. changing the default security constraint to admin-all / owner-only
for user resources, and admin-all + particular role or group for new
group or role resources
This will require creating a new role or group constraint on template
creation
See JIRA issue:
http://nagoya.apache.org/jira/browse/JS1-480
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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

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

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

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


Re: What is the default Group Profile?

2004-05-25 Thread David Sean Taylor
On May 25, 2004, at 3:07 PM, Bob Fleischman wrote:
David:
I've looked this over. From what I can tell the Security constraint is
inherited from the default new user template.
Does that sound right to you??
Thats how it currently operates.
Did you read JS1-480?
Does that proposal better fit your requirements, or is the current  
implementation fine?

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 12:12 PM
To: Jetspeed Users List
Subject: Re: What is the default Group Profile?

On May 21, 2004, at 2:48 PM, Bob Fleischman wrote:
And where is it created?
I am familiar with services.Profiler.newuser.template for new users,
but I
did not see anything similar for groups.
I would like to intercept the process and customize the Profile/PSML
that is
created for each group so that I can quickly create team workspaces.
Has anyone else tried this??
Easy to change the default behavior, see
o.a.j.services.security.turbine.TurbineGroupManagement.addDefaultGroupP 
S
ML, and then see the
o.a.j.services.profiler.JetspeedProfilerService.createProfile
You can extend these services, or better yet if we can come up with a
generic solution to your problem, commit it back to CVS head

I noticed 2 issues that can be improved on:
1. The Turbine User (the default User template) was copied over and
used as a default Group template.
2. The Security constraint applied (owner-only) makes this PSML
unaccessible
I propose
1. enhancing the TurbineGroupManagement : adding a default Group
template
2. changing the default security constraint to admin-all / owner-only
for user resources, and admin-all + particular role or group for new
group or role resources
This will require creating a new role or group constraint on template
creation
See JIRA issue:
http://nagoya.apache.org/jira/browse/JS1-480
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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


Re: What is the default Group Profile?

2004-05-24 Thread David Sean Taylor
On May 21, 2004, at 2:48 PM, Bob Fleischman wrote:
And where is it created?
I am familiar with services.Profiler.newuser.template for new users,  
but I
did not see anything similar for groups.

I would like to intercept the process and customize the Profile/PSML  
that is
created for each group so that I can quickly create team workspaces.

Has anyone else tried this??
Easy to change the default behavior, see  
o.a.j.services.security.turbine.TurbineGroupManagement.addDefaultGroupPS 
ML, and then see the  
o.a.j.services.profiler.JetspeedProfilerService.createProfile
You can extend these services, or better yet if we can come up with a  
generic solution to your problem, commit it back to CVS head

I noticed 2 issues that can be improved on:
1. The Turbine User (the default User template) was copied over and  
used as a default Group template.
2. The Security constraint applied (owner-only) makes this PSML  
unaccessible

I propose
1. enhancing the TurbineGroupManagement : adding a default Group  
template
2. changing the default security constraint to admin-all / owner-only  
for user resources, and admin-all + particular role or group for new  
group or role resources
This will require creating a new role or group constraint on template  
creation

See JIRA issue:
http://nagoya.apache.org/jira/browse/JS1-480
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Anonymous User

2004-05-17 Thread David Sean Taylor
On May 17, 2004, at 1:17 PM, Anthony Smith wrote:
I tried that but I think the problem is in my session validator.
This little bugger right here.
data.getUser().setTemp("locale", locale);
I had it where it never got set but then my pageloader blew up. I guess
because every page looks for a locale?

Why not override the session validator, make your check first
If there isn't a logged on user, then redirect and don't ever call 
super.doPerform

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


Re: Anonymous User

2004-05-17 Thread David Sean Taylor
On May 17, 2004, at 12:58 PM, Anthony Smith wrote:
Has anyone found a way or implementing the portal in such a way where 
you do
not have to worry baout the naonymous user? I can put some stuff in 
the code
to fake an anonymous users, but in actuality I di not even want to 
fake it.
I defintely do not need it in my database.

I have found a way to get to a full blown Login page minus any 
portlets, but
changing where my index page points to. However, I still see in the 
console
where it tries to get an anonymous user.


I believe the anonymous user isn't required.
Just make sure you intercept any attempts to hit the portal in your 
Access Controller action, and redirect at that point before the 
profiler kicks in


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


Re: Is it hard to migrate from jetspeed 1.4 --> 1.5

2004-05-14 Thread David Sean Taylor
On May 14, 2004, at 4:51 PM, Frédéric FACHINETTI wrote:
Hello,
I plan to migrate from jetspeed 1.4 to 1.5, and I'm trying to
evaluate the time it will take me to do so.
I would like some advice before proceeding as I've seen many jetspeed
1.5 issues lately.
1/ Is it worth migrating from 1.4 to 1.5 ?
Look at the feature list and bug fixes in the release notes and decide 
from there

2/ Wouldn't it be better to mmigrate from 1.4 to jetspeed2 ?
not yet
3/ What would be the main steps to go from 1.4 to 1.5 ?
I recommend switching to try switching to the Jetspeed plugin
http://portals.apache.org/jetspeed-1/plugin
although it does have a few issues to iron out
I mean I have a few portlets, a few java class. I have customized some
.properties file in WEB-INF/conf.
Would it be "enought" to copy these files from 1.4 directories to 1.5
directories ?
Don't recommend storing your code in the Jetspeed tree
Keep a separate project as done in the tutorial with the plugin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ldap patch

2004-05-13 Thread David Sean Taylor
On May 12, 2004, at 8:25 AM, Ender Hikmet KILIÇOÐLU wrote:

I have opened an issue for ldap update. I will be happy If somebody 
commit
my patch
also I seen that sami has already submitted a schema patch for 
openldap. It
will nice also

Hi Ender,

I will review your patch (and Sami's) today.
Sorry, been very busy lately
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194


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


Re: Re-creating om source code

2004-05-11 Thread David Sean Taylor
On May 11, 2004, at 2:08 PM, Anthony Smith wrote:

I ran the command maven clean in order to get rid of my om source so 
that I
could modify the security-schema and have my classes generated.
Unfortnately, I do nto know how to re-generate them.

These commands do not seem to recreate the source:
maven -Dmaven.test.skip=true dist:install
maven -Dmaven.test.skip=true java:jar
I thought maybe this did it, but it does not seem to:
maven torque:om
maven java:compile  attains the torque:om goal

It must be logging an error or something...
From what Im seeing on the list, maven has introduced some complexities 
to building Jetspeed for the end user
I apologize for that, but we really believe that in the long run, 
managing the Jetspeed projects with Maven was the best choice

One thing I've noticed, is that different release candidates and beta 
versions behave differently

Recommend using the latest version of Maven 1.0 rc2
At least then we are both on the same version, and I can better help 
find the problems

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


Re: Localisation in Panenames

2004-05-05 Thread David Sean Taylor
On May 5, 2004, at 4:45 AM, [EMAIL PROTECTED] wrote:

Hi,

it is possible to use the localisation ( l10n ) for the names of the 
panes
and/or the portlettitles ?
I think this one was answered before, search the archives, but again, 
yes, change the controller layouts
Jetspeed does not fully support localization of the portlet registry
So yes it is possible, but not correctly supported

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


Re: using jsptag portletlink without loosing the tabbed panes?

2004-05-05 Thread David Sean Taylor
On May 5, 2004, at 5:14 AM, Gregory Joseph wrote:

I can't seem to make any sense of these forwards, so if someone feels 
like
helping or giving examples. (reminder of my context: i need to create 
html
links between portlets, and keep the "tabs" (tabbed panes) in their 
right
state)

Forwards are simply an abstraction over Jetspeed Links.
The idea is to centralize all changes to site navigation.
For example, say you have a portal site that has your Employee Benefits 
portlet on the Employee role page, Benefits tab.
Then management decides they don't like the portal site layout.
They want to re-organize the structure of your site.
You need to move the Employee Benefits portlet to the Benefits group 
page, Employee tab.

Now say you have Java code and velocity templates that reference this 
portlet with Jetspeed Links.
You would need the Jetspeed Links on to update all the Java code and 
all the velocity (or JSP) templates to point to the new location.

But if you used forwards to begin with in your Java and template code, 
then you would only have to change the forward file, and nothing else.

As for examples, see the example portlets:

ForwardDemo portlet - example of using forwards
JSLinks portlet - lots of examples of Jetspeed Links
 JSP1_1andJetspeedTagLib

 JSP1_2andJetspeedTagLib

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


Re: Confused with security and Turbine

2004-05-05 Thread David Sean Taylor
On May 5, 2004, at 6:51 AM, [EMAIL PROTECTED] wrote:

Hi.
In spite of having a recently support in the subject, I'm still not  
really
clear about where is the frontier between Turbine user management, and  
a
particular User Management implementation. Exactly, what I want to do,  
is
to implement my own persistent layer using hibernate (not Torque),  
using a
different (maybe) DB Schema. I understand that the first step is  
implement
the same classes within the  
org.apache.jetspeed.services.security.turbine
package, but,
Is this the only implementation that I have to do??
Can anybody tell me any other consideration that should I take??

You will need to replace the Jetspeed Security Services with your own  
Hibernate -based implementations.
You do not need to replace all of the security services, just the ones  
you need, since they are coupled only by the security interfaces  
described below:

Portal Authentication
Defines the contract between the portal and security provider required  
for authentication a Jetspeed User.

PortalAccessController
Defines the contract between the portal and security provider required  
for authorized access control for priveleged portal actions.

UserManagement
Defines the contract between the portal and security provider required  
for managing users.

RoleManagement
Defines the contract between the portal and security provider required  
for managing roles.

GroupManagement
Defines the contract between the portal and security provider required  
for managing groups.

PermissionManagement
Defines the contract between the portal and security provider required  
for managing permissions.

CredentialsManagement
Defines the contract between the portal and security provider required  
for managing credentials.

 Each of these component interfaces are pluggable. Jetspeed provides  
one or more default implementations.

The security service works with a set of interfaces to define the  
standard, base security object model in a portal server.
Depending on which security services you implement, you will need to  
replace the default implementations of these objects with your own.
These objects are:

 Interface
Description
JetspeedUser
Defines the minimal attributes of a user in the portal system.
Role
Defines the minimal attributes of a role in the portal system.
Group
Defines the minimal attributes of a group in the portal system.
Permission
Defines the minimal attributes of a permission in the portal system.
Finally, to "plugin" your services to Jetspeed, simply change the  
JetspeedSecurity property file to point to your implementation:


# Authentication Service#
#
services.PortalAuthentication.classname=org.apache.jetspeed.services.sec 
urity.turbine.TurbineAuthentication

#
# Authorization Service #
#
services.PortalAccessController.classname=org.apache.jetspeed.services.s 
ecurity.registry.RegistryAccessController
#services.PortalAccessController.classname=org.apache.jetspeed.services. 
security.turbine.TurbineAccessController
#services.PortalAccessController.classname=org.apache.jetspeed.services. 
security.nosecurity.NoSecurityAccessController

#
# User Management Service   #
#
services.UserManagement.classname=org.apache.jetspeed.services.security. 
turbine.TurbineUserManagement

#
# Role Management Service   #
#
services.RoleManagement.classname=org.apache.jetspeed.services.security. 
turbine.TurbineRoleManagement

#
# Group Management Service  #
#
services.GroupManagement.classname=org.apache.jetspeed.services.security 
.turbine.TurbineGroupManagement

#
# Security Cache Service#
#
services.SecurityCache.classname=org.apache.jetspeed.services.security.S 
ecurityCacheImpl



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


Re: Jetspeed Performance

2004-05-04 Thread David Sean Taylor
On May 4, 2004, at 4:01 PM, [EMAIL PROTECTED] wrote:





Hi,

The performance of the portal that we have developed using Jetspeed is
not acceptable to our users.  I have noticed that the more roles a user
have, the slower the performance of the application.  We are
using the menu pane for each tab, and when  I am clicking a new tab
or an option in the tab, it is so slow loading the information inside  
the
portlet.

We have run the same application not using jetspeed or not inside the
portal
and it runs pretty fast.
I am suspecting that every option I am clicking, it is trying to check  
all
the roles and making sure that the user is authorize or something.
I have read the documentation on Jetspeed Performance Tip in
http://nagoya.apache.org/wiki/apachewiki.cgi?JetspeedPerformanceTips

tried to change all the properties that it says needs to be changed to  
help
but the performance was still slow.  It did talk about turbine  
permission,
where is this???

I would truly appreciate any help anyone can provide...Thank you!

'
Try replacing the default RegistryAccessController with the  
NoSecurityAccessController, just to see if the performance is related  
to the security checks

http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/ 
services/security/nosecurity/NoSecurityAccessController.html



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


Re: creating links to portlets using JSP

2004-05-04 Thread David Sean Taylor
On May 4, 2004, at 7:22 AM, Stefan Rennick Egglestone wrote:

Can anyone point me in the direction of some example portlets /  
documentation describing how to create links when using a JSP portlet?

There's nothing in the tutorial, and I've tried searchijng the mailing  
list and not found anything definitive. I can try and hard code a link

eg something like

http://localhost:8080/WorkflowPortal/portal/media-type/html/user/ 
admin/page/default.psml/js_panename/UserForm



but there are some things which I don't know about - eg I can see this  
is a link to a portlet defined in default.psml in directory  
psml/user/admin/html/default.psml, but what does js_panename mean?  
Does it mean " a portal on the same pane in default.psml as the one  
displaying this link" ?
I've noticed that Jsp portlets are passed an instance of  
org.apache.turbine.services.jsp.util.JspLink which I'm guessing is  
goig to be used to make link creation easier, but unfortunately I  
couldn't really work out how to to use this object (or  
org.apache.turbine.util.DynamicURI which it extends). Any extra  
information about any of the stuff that might help me work out how to  
make links between portlets would be appreciated.

I agree the docs are lacking here

There are examples in the distribution, see JSP1_1andJetspeedTagLibrary  
and JSP1_2andJetspeedTagLibrary portlets



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


Re: Are the jetspeed user limited ???

2004-05-04 Thread David Sean Taylor
On May 4, 2004, at 3:38 AM, Stefan Rennick Egglestone wrote:

I'm having a similar problem.

I've tried adding a new user using the admin servlet, and no error 
messages are given, but the user isn't added.

Am using mySQL 5/ Tomcat 5.

I've seen previous emails on the mailing list which indicate that you 
get problems if you delete the Tommy Turbine user, but I haven't done 
that. What I have done is play around with the 
JetspeedSecurity.properties file, which does specify some parameters 
for security, but I've tried changing everything back to how it was, 
and this hasn't helped.

I've actually got 7 users in my database, along with 5 roles and 3 
groups, so it may not be an identical problem.

Any ideas?

Strange that its not logging errors. Have you checked all the log files?

Also, did you follow these steps:

http://portals.apache.org/jetspeed-1/database.html

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


Re: Customizer problem

2004-05-04 Thread David Sean Taylor
On May 4, 2004, at 2:29 AM, Guillaume Lasnier wrote:

It seems like the error is due to custom localization settings in the  
TurbineResources.properties.merge. When I removed the property  
locale.default.bundles it worked but I loose the capablity of  
customizing messages and labels. I have copied the content of the   
TurbineResources.properties.merge file below :
==
module.packages=com.noga.starterkit.jetspeed.modules

# l10n settings
# The line below must be commented to make customizer work
locale.default.bundles=com.noga.starterkit.jetspeed.modules.localizatio 
n.PortalLocalization,org.apache.jetspeed.modules.localization.JetspeedL 
ocalization
locale.default.language=fr
locale.default.country=FR
==
Has anyone managed to have the customizer work with custom  
localization settings?

Yes, I have tested this with the tutorial and it works here.
That said, Its been a hard road getting there.
Support for 2 or more bundles was working for a long time, and then it  
was broken in the 1.4 release by another feature.
I fixed this for 1.5, but you have to make sure you get everything  
configured correctly, which is not always easy.
In looking at your settings above, everything looks fine
Do you have the bundle files located under  
com.noga.starterkit.jetspeed.modules.localization.PortalLocalization_fr. 
properties ?

Also make sure that your locale.default.bundle is set to (in TR.p):

locale.default.bundle=

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


Re: PSML and roles

2004-05-04 Thread David Sean Taylor
On May 3, 2004, at 10:10 PM, Cyrille GACHOT wrote:

On Mon, 2004-05-03 at 18:20, David Sean Taylor wrote:
On May 2, 2004, at 10:41 PM, Cyrille GACHOT wrote:

Hi,

If you don't specify a psml file for a user and
services.Profiler.rolefallbask is set to 'true' in the porperty file,
this user gets the role psml file. But if he/she modifies the layout 
of
his/her portal, the psml file of the role is modified.

Im working on an enhancement to optionally disable saving role-based
PSML settings.
This enhancement was checked in yesterday.
Im now considering storing PSML attributes in a different store than 
the PSML file
hi,

Just to be sure : if a user has his/her own psml file and
services.Profiler.rolemerge=true, the role user psml will be copied in
the psml file of the user and any changes on this role psml part by the
user will not affect other user view.
Is it correct ?
Once the roles are merged into the user's PSML, changes to the source 
role(s) PSML no longer affect the user's.
Its a copy operation.

And what about references? Is there any solution to let users share a
psml resource, but to le them customize it (change the value of a
parameter of one of the portlets for example) without affecting the
other users.
The user cannot customize the content of the reference directly (from 
his/her PSML page).
However, the admin, or anyone with sufficient privilege, can modify the 
reference with the customizer since the reference is really just 
another PSML page.
These modifications to the PSML 'fragment' will be propagated 
(eventually) to all referencing PSML pages.

I know this kind of strange for a shared resource.
for an example of use, i want to have a common part for every users
portals. For example, a want everybody to have a portlet showing the 
new
documents in a rep. But i want to let them customize a much document
they want to see, that mean how much lines.
Any idea?

I think I understand, and it sounds like you need exactly what I am 
describing above: the (considered) new feature of storing PSML 
attributes in a different store than the PSML file.
Take for example, you have these pages:

/group/documents/page/reports

It contains two portlets, ReportPortletA, ReportPortletB
ReportPortletA and ReportPortletB both have the preference (attribute): 
linesPerPage

Then you have 2 users with home pages:

/user/Joey/page/default
/user/Johnny/page/default
They both reference /group/documents/page/reports
Joey wants 20 lines per page, Johnny wants 30
Is that an example of what you need?
Currently you can achieve this with role merge, and then the portlets 
will naturally be separate, and have separate preferences (attributes)

However if you want centralized control of the layout and content of 
these pages, but still customization on a per page level, then 
role-merge won't work

Anyway I hope my use case is inline with yours...





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


Re: Getting users and roles from external DB

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 11:23 AM, Carlos Yaconi Hitschfeld wrote:
object model classes.
Also, you can level your implementation, meaning that you can 
implement
the User interfaces, but leave the default Group and Role
implementations.
Thank you very much... and the last (I hope) question, Does all the 
classes(interfaces) needed to be overriden(implemented) are listed in 
that doc??

Only the ones you want to override.
For example, you could override the UserManagement and 
PortalAuthentication implementations, and leave the others to the 
default implementations



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


Re: Getting users and roles from external DB

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 10:28 AM, Carlos Yaconi Hitschfeld wrote:

Of course I read it!!
Sorry, no need to yell at the support guy ;-) Im just trying to help

But I'm getting a little confused with that article because it says:
"...  However Jetspeed is no longer coupled to the Turbine Security 
service"
And below in that document, all the default security implementations 
are "Turbine" ones (which uses Torque), and the extending user Howto 
is Torque oriented too...


The database model is based on the Torque model, however it does not 
use any Torque classes to implement it.
If you want to implement your own User or Group or Role Management 
implementation, it does not have to be based on the default 
implementation.
However you do need to meet the required interfaces for services and 
object model classes.
Also, you can level your implementation, meaning that you can implement 
the User interfaces, but leave the default Group and Role 
implementations.



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


Re: Getting users and roles from external DB

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 10:03 AM, Carlos Yaconi Hitschfeld wrote:

Hi!
I'm implementing a portal that need to use the existent human 
resources DB (highly populated) to get the users and "maybe" the roles 
(this last thing depends on the information stored, because they don't 
want to re-write the user database nor the user-rol map, but if there 
is not enough information to map the roles, we must need to create 
that map).

As I saw in the documentation, all the information on this topic is 
Torque DB oriented, and I think isn't suitable for my requirements.

Wich could be the best strategy to manage the existing users and 
roles???
What class(es) should I override to implement my own "users logic"?
Must I have any other consideration about this topic??

Read this first:
http://portals.apache.org/jetspeed-1/security.html


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


Re: localization - wrong characters 8(

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 4:56 AM, Vladimir wrote:

Hello!
Help me, please... 8(
I use Jetspeed 1.5 release
I try localize TOP_TITLE in russian:
1)-create file (utf-8)  
"AsiaSoft.apache.jetspeed.localization.JetspeedLocalization.properties" 
 in /src/java folder

Try naming your Russian resource file:

JetspeedLocalization_ru.properties

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


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


Re: getting portlet state in a velocity template

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 1:44 AM, David Cornide Albo wrote:

Hello.

This is my question.

I'm working with JetSpeed 1.5.

I have a velocity template and I want to know if the portlet's  state 
is normal or maximized to make a link between two portlets.

If portlet is in normal state I make 
$jslink.getPaneByName("myPortlet"), but if the state is maximized this 
sentence does not work, because "myPortlet" is not a pane.  I want to 
try with $jslink.getPortletByName("myPortlet"), but first I must know 
the portlet's state.

Any idea?.

Thank in advance, I want your answers.

See JetspeedRunData interface. From vm:

$data.getMode()
$data.Mode
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194


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


Re: retrieve jetspeed session from servlet

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 1:16 AM, Anand Kumar Kalyanasundaram wrote:

Hi,
I have an applet in a velocity portlet that needs
to talk back to a servlet for additional processing. When
the applet does a HttpURLConnection to the servlet, the
servlet somehow seems to pickup the correct session (tomcat
version 4.1). I.e. The session id got by
"$data.getSession().getId()" in the velocity template is
the same as "request.getSession().getId()" in the servlet.
Please correct me if I am wrong here.

My problem is, I am unable to retrieve the JetspeedUser
in the servlet.
The following code in the servlet returns null for
JetspeedUser :
HttpSession session=request.getSession();
System.out.println("\n SessionId="+session.getId());
RunData data = RunDataFactory.getRunData(request,
  response,
  getServletConfig());
JetspeedUser user =
   ((JetspeedRunData)data).getJetspeedUser();
// user is null

How are you going to get RunData from a non-Turbine servlet.
Think about it. That makes absolutely no sense.
RunData is created by Turbine for each request invocation and is only 
valid for the duration of that request.

Is there another way to retrieve JetspeedUser ? Thanks in
advance for any possible help.
If you want to get the current logged on user, go to the session.

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


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


Re: PSML and roles

2004-05-03 Thread David Sean Taylor
On May 2, 2004, at 10:41 PM, Cyrille GACHOT wrote:

Hi,

If you don't specify a psml file for a user and
services.Profiler.rolefallbask is set to 'true' in the porperty file,
this user gets the role psml file. But if he/she modifies the layout of
his/her portal, the psml file of the role is modified.
Im working on an enhancement to optionally disable saving role-based 
PSML settings.

Does anyone know if it is possible to automatically have a copy of the
role psml file in the user directory with the new changes so that the
user will have his customized portal page, and the user psml file will
not be modified?
There is also the role merge feature. It makes a copy of the role PSML 
into the user's PSML as soon as the user is created.

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


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


Re: Cannot have more than 4 users account

2004-05-03 Thread David Sean Taylor
On May 3, 2004, at 2:27 AM, Michael Muller wrote:



Hi all,

I've just installed jetspeed-1.5 and it works quite well!

But I've a problem:
I cannot have more than 4 users.
When I add the add user form it seems as it would have added it, but 
the
new user is not in the database!!!
(I'm using MySql to store the user.)
Same thing for the group browser and roles: I cannot have more than 3
groups and 4 roles,
But then a message error appears:
"Entity Name Already Exists. Please choose another unique, identifying
name."

I watched at the logs, nothing abnormal ...

Does someone have an idea where the problem comes from?
Is there any parameter to change?
Whenever I change Jetspeed to use another database, I follow these 
steps:

1. Edit project.properties (or your $HOME build.properties), change 
these properties:

database
torque.database.url
torque.database.driver
torque.database.user
2. Edit webapp/WEB-INF/conf/Torque.properties

torque.database.default=
torque.dsfactory.default.connection.driver
torque.dsfactory.default.connection.url
torque.dsfactory.default.connection.user
torque.dsfactory.default.connection.password
3. Rebuild the WAR (or distribution) -- REQUIRES downloading the source

4. When distributing, make sure you have the new database driver in the 
App Server's class loader path

I know it seems like a major PITA to download and build the portal just 
to change database drivers.
In fact there is some disagreement as to whether this is necessary or 
not for all databases.
From my experience, it is required with Oracle. The default system's 
Torque bindings are generated for  Hypersonic SQL.
Torque generates binding files (the Peer files) specific to a database 
backend implementation, which I find to be generally problematic.
In contrast OJB does not require recompile when you change the target 
database.

Noticed that the documentation doesn't really cover changing to another 
database very well.
The FAQ briefly covers it, but I believe it is misleading in that it 
doesn't inform the user to rebuild the source.
I will update the documentation to require the steps above; unless 
someone disagrees with these requirements 

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


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


Re: Jetspeed 1.5 Final Release available for download

2004-04-24 Thread David Sean Taylor
On Apr 23, 2004, at 11:44 PM, Mark Divitt wrote:

Hi Folks,

   Is there a property that controls executing the
junit tests?
maven -Dmaven.test.skip war

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


Jetspeed 1.5 Final Release available for download

2004-04-23 Thread David Sean Taylor
The Apache Portals Jetspeed development team has released the final 
version 1.5 of the Jetspeed Portal Server.

Jetspeed is now a part of the Apache Portals project: 
http://portals.apache.org/
The Jetspeed 1.x project is now hosted here:

http://portals.apache.org/jetspeed-1/

The binary release can be downloaded from an Apache mirror here:

http://jakarta.apache.org/site/binindex.cgi

The source release can be downloaded from an Apache mirror here:

http://jakarta.apache.org/site/sourceindex.cgi

*** New Features ***

 1. Security refactored to allow assigning roles within groups
 2. Jetspeed 1.5 Tutorial moved off of Bluesunrise and converted to 
Maven documentation format.
 3. Jetspeed Maven Plugin for creating and working with Jetspeed-based 
projects
 4. Build converted to Maven. Ant build deprecated.
 5. Jetspeed site converted to use Maven, and moved to 
http://portals.apache.org/jetspeed-1
 6. Jetspeed becomes a part of the Apache Portals project 
http://portals.apache.org
 7. Email Portlet
 8. Redirect Portlet
 9. Enhanced portlet filtering on the layout customizer
10. New skins and updated look and feel of the default portal
11. Portlets and decorators (controls) can now be completely hidden if 
user doesn't have secure access to the portlet.
12. GenericMVC portlet now can render in parallel with other portlets 
on the page
13. Added filtering on portlet registry browser
14. Drag and drop controller for the layout designer
15. Upgrade to Torque 3.1 and Torque Plugin

 Bug Fixes ***

- See FIXES.html (included in the distributions) for a full list of 
fixes in this release



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


Re: turbine_user MODIFIED / CREATED columns are NULL (MSSQL)

2004-04-21 Thread David Sean Taylor
On Apr 21, 2004, at 11:42 AM, Dalton, Michael D wrote:

Configuration:
Using Microsoft SQL (MSSQL) database for users "and" PSML.
Jetspeed 1.4 release with a few custom modules being used.
Turbine 2.2 release jar.
Tomcat 5.
Microsoft IIS 4 w/Tomcat JK2.0.2 Web Server Connector  (IIS, Tomcat and
MSSQL on same machine).
We recently upgraded from mySQL to MSSQL.
Problem (Maybe ???):
Ever since I moved from mySQL to MSSQL the turbine_user table's 
MODIFIED
and CREATED columns have become NULL.  They do not appear to update 
even
after a user modifies his layout (PSML).  I've even tried restarting
Tomcat and still these columns do not update with anything.

Sounds like the DATE or TIMESTAMP mappings are wrong in Torque.
Did you use the src/sql/external script or did you generate the script 
yourself?

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


Re: PSML References Can't Be Removed or Deleted - MSSQL

2004-04-21 Thread David Sean Taylor
On Apr 21, 2004, at 12:02 PM, Dalton, Michael D wrote:

See below for comments:
[snip]
Referencing appears much more buggy when a database is used to store
PSML.  A file based PSML system seemed to work for us for several 
months
with no real problems.

We really need referencing to work, otherwise, the usefulness of the
application is very limited -- since we are going to need to use a
database to store PSML.
Does anyone know the specific java class files to look at that affect
referencing behavior.  I'll try to poke around there and see if I can
fix it.
Sure look at the reference implementation for starters:

o.a.j.om.profile.psml.PsmlReference

and the DB PSML service

o.a.j.services.psmlmanager.db.*

I'll try it out here possibly tomorrow.
Its been a while since I implemented references. I never tested it with 
DB PSML.

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


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


Re: Install Jetspeed 1.5

2004-04-21 Thread David Sean Taylor
On Apr 21, 2004, at 7:28 AM, Setti Matteo wrote:

In
<http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html>
I see:
...
5. Install the Torque Maven Plugin 3.2 or higher
...
How can I do this ? Can I have more details about that
?
Im just working on updating this section of the docs.
Thanks for pointing that out.
The Torque Maven Plugin should download automatically
Let me know if it doesn't
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194


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


Re: PSML References Can't Be Removed or Deleted - MSSQL

2004-04-21 Thread David Sean Taylor
On Apr 21, 2004, at 8:19 AM, Dalton, Michael D wrote:

We have a show stopper here that I hope one of you guys can help me on.

Configuration:
Using Microsoft SQL (MSSQL) database for users "and" PSML.
Jetspeed 1.4 release with a few custom modules being used.
Tomcat 5
Microsoft IIS 4 w/Tomcat JK2.0.2 Web Server Connector  (IIS, Tomcat and
MSSQL on same machine)
We recently upgraded from mySQL.
Scenario:
We are using some special accounts such as "_help" to reference from
other accounts.  We configured this based on a post by Boyd Fletcher
(see posts titled Mandatory Tab / Portlets).  This worked under a "file
based" PSML system.
Once we upgraded to a database PSML system we started running into
problems.  Here is an example of one big problem.  We have a _newuser
account which has several referenced tabs that look like the following
in the framework:

Home News Headlines Search ... Help

Each of the tabs above have their own user account.

The problem we are running into now with the MSSQL database is that
"once a reference" is made it "cannot" be removed or deleted.  For
example, if I try to delete the Search tab above under the "Customize:
HTML" link it appears to get removed until I apply the changes.  It 
just
continues to show up.  Very weird.

Are you saying that this bug only happens with DBPSML, and not with 
PSML on the file system?
I know there is an issue with deleting references and caching.
Try restarting the server.
When you restart the server, does the reference still appear?

I thought it might have something to do with MSSQL setting so I set 
each
table to have all permission (e.g., read, write, delete, etc) but that
didn't work.

Also, the other problem we are experiencing is that the "Customize:
HTML" page does not always have all of the items it should.  Clicking 
on
the X or up/down buttoms produces strange results.

Any ideas??  All help appreciated.
Customizing with references is known to be buggy.
I think Mark Orciuch has also experienced problems with customizing 
references.
Suggest logging an issue in JIRA and hopefully someone will look into 
it.
If you guys can clearly identify the problem I may have time to look at 
it later this week, although I wanted to release 1.5 on Thursday or 
Friday.
We need to decide if this bug should stop the release or not.
Be interested to hear Mark's opinion on this since he is more involved 
in 1.x that I am these days

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


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


Re: [J2] forcast: first 'stable release'?

2004-04-20 Thread David Sean Taylor
On Apr 15, 2004, at 5:15 PM, [EMAIL PROTECTED] wrote:

can somebody dare a forcast: when will J2 comes with a first 'stable 
release'?
thanks in advance,
I've tried that a few times and been way off.
Things have gone slower than expected. We had some problems with OJB.
Then we spent a lot of time evaluating and learning IoC and COP.
I feel like things are stabilizing now and we will begin to do more 
feature work.
I'd really like to see an alpha release out in this summer.

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


Re: create new user

2004-04-20 Thread David Sean Taylor
On Apr 17, 2004, at 4:01 AM, antony saviour wrote:

hello friends,

How can we create new user in jetspeed,without using jetspeed  
NewAccount form.

I need to have a New Registeration form, currently jetspeed supports  
only 6 fields like firstname, lastname... If I need to add more feilds  
How can we do that.

You will need to write your own new user registration form and replace  
Jetspeed's.
When it comes to storing new fields, you have several options.

1. store the fields in permanent line of business fields, see the  
setPerm method:

http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/om/ 
security/JetspeedUser.html

2. extend Jetspeed User

http://portals.apache.org/jetspeed-1/ 
security.html#Extending_Jetspeed_User

3. write your own User Management implementation

http://portals.apache.org/jetspeed-1/security.html#Security_Overview

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


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


Re: Cannot build CVS

2004-04-20 Thread David Sean Taylor
On Apr 20, 2004, at 11:42 AM, steve wrote:

So it seems that now, from the [jakarta-jetspeed] directory I simply 
type
maven(?). I am trying it now and I see it is downloading a bunch of
dependencies...fingers crossed! :)  Otherwise, I will wait for your
instructions later this week.

The Page which shows the cvs instructions is:

http://portals.apache.org/cvs-usage.html

Thanks I'll update the page



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


Re: 2 little problems

2004-04-20 Thread David Sean Taylor
On Apr 20, 2004, at 4:56 AM, [EMAIL PROTECTED] wrote:

Hi to everyone!
   First one: I have a problem regarding some application related to 
jetspeed
but not to the portlet; I need to know when an user logout or simply 
disconnect
from the portlet to change some data of java entities on the JVM (the 
extern
entity have to control if an user is logged in to know if the services 
it
gives are necessary or not). How can i know about logout or 
disconnection
of users?
You could override the default security actions or services
For actions see TurbineResources.properties, action.login and 
action.logout properties

To override the security services see

http://portals.apache.org/jetspeed-1/security.html

   Second one: how can i force an event of a portlet? I mean, if i need
that a particula portlet do a reload, can i force it from another 
portlet
or entity that have the reference to the portlet i need to update?

There is no standard way to do this in Jetspeed at this time

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


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


Re: Cannot build CVS

2004-04-20 Thread David Sean Taylor
On Apr 20, 2004, at 8:06 AM, steve wrote:

Is the version of Jetspeed-1 in CVS "working"?
Yes of course

If not, where should I
download the most current, working versions? Or perhaps there are 
several
steps not in the INSTALL I must follow to obtain additional .jar's, 
etc.; if
so, what are these steps?

In the portals.apache.org website, it says (after login) download from 
cvs
using "cvs -z3 -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co
portals-site". This project does not exist.

Im sorry about that it should say "jakarta-jetspeed"
Could you send the link, I couldn't find the error
This leads me to assume that the "portals-site" is a place-holder, so 
I use
"cvs -z3 -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co
jakarta-jetspeed"
Its not a place holder
Its the parent project of Jetspeed-1, Jetspeed-2, Pluto and WSRP4J
. This downloads, but, following the INSTALL instructions,
I change to the build directory and type ./build.sh war. This produces 
the
errors below. What jumps out for me are:

You now have to build with Maven
We are in the process of putting out a new release this week with new 
instructions
I apologize for the confusion and inconvenience
From the root jakarta-jetspeed dircectory, type

maven

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


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


Re: Bluesunrise portlet / jetspeed tutorial + jetspeed2

2004-04-02 Thread David Sean Taylor
On Friday, April 2, 2004, at 02:11  AM, zze-MORON François FTRD/DMI/REN 
wrote:

I didn''t managed to build jportal examples.
I dowloaded torque 3.0 and uziped lib directory in my 
jetspeed2-home\lib
Directory.
Then when i build examples with
Ant tutorial-all
I have more than 100 java compil error.
Can someone help me ?

François

Why did you download Torque?
Jetspeed comes with Torque.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JetSpeed 1.4 OR 2.0 choice

2004-04-02 Thread David Sean Taylor
On Friday, April 2, 2004, at 08:24  AM, Aly, Mohamed wrote:

Hi,

We are currently considering a web portal interface to our application.
JetSpeed is one of the first candidates, but I have some questions;
-How far away is JetSpeed 2.0 the JSR168 compliant portal? Can I get 
it from
CVS? Is it stable? If not, I can consider developing for JetSpeed 1.4.

Its got a ways to go, but IMO we are now making progress.
I will be concentrating on compliance issues as a priority.
2.0 is not stable nor is it ready to be used at this time
-Does either 1.4 or 2.0 support inter-portlet communication? Any idea 
on
when it will become part of the JSR168 standard?
1.1 of the portlet spec will cover that
a release date of the spec is not available at this time
-Does either support iframe portlets?

the spec doesn't keep you from writing iframe portlets

-Can I use some sort of auto refresh mechanism with either? (like, 

HTTP-EQUIV="Refresh"..)

Appreciate your help getting me some answers to make such a decision.

-
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: Hide Categories of Portlets from Groups of Users

2004-04-01 Thread David Sean Taylor
On Thursday, April 1, 2004, at 11:19  AM, Bob Fleischman wrote:

I've had to modify this unit for some other items (We wanted a 
different
default for the group selection instead of 'All Portlets')

Is there a way I can submit a patch for just the change I made? I've 
never
submitted a patch before.

Do you use Eclipse? It can generate a patch for you.
Thats probably the easiest way
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hide Categories of Portlets from Groups of Users

2004-03-31 Thread David Sean Taylor
On Wednesday, March 31, 2004, at 04:35  PM, Bob Fleischman wrote:

David:

I modified the code to check for PERMISSION_PERSONIZE and added a new
security constraint "user-select_admin-all"
If a portlet is marked "user-view_admin-all" they can not select it 
but they
can view it. If I set it to "user-select_admin_all" they can do both.

Nice 
Did you want to send a patch :-)


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


Re: Jetpeed-cms or integration of any free cms into jetspeed

2004-03-31 Thread David Sean Taylor
On Wednesday, March 31, 2004, at 02:29  AM, Sprang, Henning (Firma CS) 
wrote:

Hy,

I have to build a small (but possibly growing) cms portlet upon 
jetspeed.
It doesn't need to have lots of features in the first version, just
some editor (can edit and add new pages) / chief editor ( must give 
release
permission for new and changed pages) user roles for editing pages in a
browser-based form editor, plus some versioning.
Plus a portlet that outputs the managed content, which naturally makes 
the thing
usefull in the first place.

As i saw, there is something called jetspeed-cms in the jetspeed 
sources,
which i eventually got "running" in the sense that i could place the 
admin
and the content ouput portlet on my workspace, but they don't seem to 
"do much".
I hadn't the time to figure out how much i'd have to do to make
this thing more or less functional.

We (Christophe Lombart and I) on a second generation of the Jetspeed 
CMS (JCMS).
We hope to donate it to Apache Portals some time soon.
It works with Slide foremost, which is Christophe's main area of 
concern.
However the API is not tied to Slide.
 I also have a branch that works with the file system and a proprietary 
CMS (Dynabase).

I saw there once (sometime last year) was a short thread of some people
talking about that issue on the list, but the conversation didn't go 
pretty
far, at least not on the public list, and it's long ago.

And i found some hints that somebody integrated
a cms into jahia, which seems to be some commercial portal based on 
jetspeed,
(but it has a non-free source license which i can't work with)
and i read that somebody integrated the mmbase cms into jetspeed.

But finally, besides of those very small pieces of information, that
eventually somebody might have done something like this, or somebody 
wanted
sometimes to start working on this topic, I could not find any really 
useful
information or documentation on how those things where really done and 
how
I could do it for myself, even after about a day of searches and 
reading.

So, I am prepared to find out the whole thing on my own, develop a
cms portlet from ground up, and put a lot of work into it,
but before reinventing the wheel completely, I want to ask here again:
Did somebody ever intergrated some kind of cms into jetspeed, may it 
be slide,
as it seems to be used in the thing in the jetspeed-cvs, or any other 
one, and
has some hints on how to do it?
We are working on it
Be great if we can all collaborate and start a new project team at 
portals

ps: I want to use "real" open source free software, no commercial 
things at all for the
thing.


:-) good!

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


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


Re: psml updates?

2004-03-31 Thread David Sean Taylor
On Wednesday, March 31, 2004, at 11:05  AM, Sturtz, Andrew wrote:

Does anyone have a solution or work around for updating psml files
without totally overwriting them.  I need to update a user's role psml
but still leave their customizations in their user psml.  Any help 
would
be greatly appreciated.

Not sure if that question is clear.
When you store PSML, whether to the DB as a blob, or XML file, it is 
marshaled out from Java to XML.
Role PSML exists in a different file (blob) than the User's PSML.
Are you speaking about references?

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


Re: jetspeed production?

2004-03-31 Thread David Sean Taylor
On Wednesday, March 31, 2004, at 11:13  AM, Sturtz, Andrew wrote:

I need to know how developers manage updates from development to
production without affecting current production user database and
configurations already in place.  Does anyone have any recommendations
as to how this works aside from manual entry Any help would be a great
help.
I don't use HSQL in anything serious
Usually I setup as part of my build environment, Torque configurations 
for production, test and dev
THis can be configured via build scripts, or at runtime, I have also 
overrode the Torque.properties from a subset of properties available to 
the sysadmin



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


Re: RE : RE : TR : Problem during jetspeed2 compil

2004-03-31 Thread David Sean Taylor
On Wednesday, March 31, 2004, at 07:28  AM, zze-MORON François 
FTRD/DMI/REN wrote:

And when I try a fullDeploy, it fails :


C:\Apps\jetspeed-2\portal>maven fullDeploy

[snip]
[java] Calling FileSystemPAM...
[java]  INFO: deploying WAR file'pam.war' to WEB-INF/...
[java] ERROR: Unexpected exception deploying portlet application: 
java.io.IO
Exception: The portlet application archive target, 
C:/Apps/tomcat/webapps//PAM,
already exists.  Please remove it before attempting to deploy. 
attempting rollba
ck...
[java] java.io.IOException: The portlet application archive 
target, C:/Apps/
tomcat/webapps//PAM, already exists.  Please remove it before 
attempting to depl

The PAM directory exists in the webapps  directory
You need to delete it before redeploying
try this:

cd \apps\tomcat\webapps

rd /s PAM
rd /s jetspeed
rd /s HW_App
cd \apps\jetspeed-2
maven db.create
cd portal
maven fullDeploy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hide Categories of Portlets from Groups of Users

2004-03-30 Thread David Sean Taylor
On Tuesday, March 30, 2004, at 04:00  PM, Bob Fleischman wrote:

I've traced into this. In CustomSetAction the permission that is being
checked is 'View' access. Therefore the "user-view_admin-all" does not
prevent them from selecting the portlet for their home page.
if (JetspeedSecurity.checkPermission((JetspeedUser) data.getUser(),
new PortalResource(entry),
JetspeedSecurity.PERMISSION_VIEW)
I've been looking at some of the other permissions. What is the 
difference
between 'personalize' and 'customize'?

Personalize is not used, but you may be on to something there
If we check the personalize permission when listing portlets, this 
could work as a special permission to list portlets in the customizer's 
portlet list

Bob

Ps. I've got a feeling I'm going to need to create my own custom
CustomSetAction.
-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 8:28 PM
To: Jetspeed Users List
Subject: Re: Hide Categories of Portlets from Groups of Users
On Monday, March 29, 2004, at 05:39  PM, Bob Fleischman wrote:

On a related note. . .

Is there a security setting on a given portlet so that only an admin
can add
it to a page?
Sure, just setup a security constraint using the Security Browser (from
the Admin UI)
There is one already deployed with the default deployment called
"user-view_admin-all" that may work for you
If you want to use that constraint for all portlet instances in the
system, go to the Portlet Browser,
find your portlet, edit it, go to the first tab (Information) and set
the Security Reference there.
You can also override the constraint on a per portlet instance basis
with the portlet customizer
We have some portlets we only want on public pages and we do not want
users
to be able to put them on their home pages.
Thanks

Bob
-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 5:38 PM
To: Jetspeed Users List
Subject: Re: Hide Categories of Portlets from Groups of Users
On Sunday, March 28, 2004, at 04:19  PM, Bob Fleischman wrote:

I know I can prevent users from seeing individual portlets in the 
PSML
Customizer by setting security on the portlet accordingly.



Is it possible to set security on an entire category of portlets so
that it
does not show up in the drop down list?
That would take some custom code.
Currently there are no security constraints associations on categories


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


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

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


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


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

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


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


Re: Hide Categories of Portlets from Groups of Users

2004-03-29 Thread David Sean Taylor
On Monday, March 29, 2004, at 05:39  PM, Bob Fleischman wrote:

On a related note. . .

Is there a security setting on a given portlet so that only an admin 
can add
it to a page?

Sure, just setup a security constraint using the Security Browser (from 
the Admin UI)
There is one already deployed with the default deployment called 
"user-view_admin-all" that may work for you

If you want to use that constraint for all portlet instances in the 
system, go to the Portlet Browser,
find your portlet, edit it, go to the first tab (Information) and set 
the Security Reference there.

You can also override the constraint on a per portlet instance basis 
with the portlet customizer

We have some portlets we only want on public pages and we do not want 
users
to be able to put them on their home pages.

Thanks

Bob
-Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 5:38 PM
To: Jetspeed Users List
Subject: Re: Hide Categories of Portlets from Groups of Users
On Sunday, March 28, 2004, at 04:19  PM, Bob Fleischman wrote:

I know I can prevent users from seeing individual portlets in the PSML
Customizer by setting security on the portlet accordingly.


Is it possible to set security on an entire category of portlets so
that it
does not show up in the drop down list?
That would take some custom code.
Currently there are no security constraints associations on categories


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


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

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


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


Re: 2 fast questions ...

2004-03-29 Thread David Sean Taylor
On Monday, March 29, 2004, at 10:51  AM, Yuri Huitron Alvarado wrote:

1.- Can Jetspeed be installed on SunONE WebServer ?

Sure why not? give it a try
Let us know how it works for you
2.- What must be done to install Jetspeed on a cluster of MacOS X ?

I run Jetspeed on Tomcat under MacOS X,
Clustering Jetspeed can be configured with Tomcat (and Apache server)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: looking for latest Village package source

2004-03-29 Thread David Sean Taylor
On Monday, March 29, 2004, at 10:45  AM, Reid Thompson wrote:

Could someone point me to a tar/zip/cvs repository of the latest 
village source( it appears that share.whichever.com is not 
responding)?  I'm trying to get jetspeed to work with postgresql and 
am hitting the 
com.workingdogs.village.DataSetException: Bad conversion: 
java.lang.NumberFormatException: For input string: 
"¬ísrjava.util.Hashtable»%!Jä¸F
loadFactorI	[EMAIL PROTECTED] USER_IDt1x"
...
rethrown as org.apache.torque.TorqueException: Bad conversion: 
java.lang.NumberFormatException: For input string: 
"¬ísrjava.util.Hashtable»%!Jä¸F
loadFactorI	[EMAIL PROTECTED] USER_IDt1x"

I keep a copy of the Village source here on my network
Figured that if Village goes away, I'd have a backup plan
You are welcome to it if you want it
You may want to contact the author, Jon Stevens, and see where the 
source is housed now
Perhaps the website is just down today

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


Re: Another problem building Jetspeed 2

2004-03-29 Thread David Sean Taylor
On Monday, March 29, 2004, at 09:32  AM, Jorge D'Alessandro wrote:

Hi all!

I'm new to jetspeed-2 and I have just downloaded jetspeed-2 from the 
cvs
repository.

Please read the GETTING-STARTED.html

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


Re: Hide Categories of Portlets from Groups of Users

2004-03-28 Thread David Sean Taylor
On Sunday, March 28, 2004, at 04:19  PM, Bob Fleischman wrote:

I know I can prevent users from seeing individual portlets in the PSML
Customizer by setting security on the portlet accordingly.


Is it possible to set security on an entire category of portlets so 
that it
does not show up in the drop down list?

That would take some custom code.
Currently there are no security constraints associations on categories


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


Re: Adding myHelloWorld portlet

2004-03-28 Thread David Sean Taylor
On Sunday, March 28, 2004, at 02:58  PM, sinda hauser wrote:

 From the tutorial the steps are:

1. Create your HelloWorld Portlet.  Compile it and make sure it
is in the classpath, ie WEB-INF/classes/.  Packaged classes
should have the directories under this.
2. Add a reference for your portlet to Jetspeed's Portlet
Registry. ie create the yourfragment.xreg  which I assume you
have and using local-portlets.xreg
3. From the menu customizer it should list the new portlet,
check the box so that it gets included. Next, Save and apply and
apply.
4. Restart tomcat (assuming you're using tomcat). Log on and it
should display.
Brilliant:
3.  Customize your portal
4. Restart, Login
Honestly, I find the tutorial difficult to follow as it does not
show the cause and effect.  Good Luck.
How is this for cause and effect: The tutorial has been removed from 
the web.
If anyone needs a tutorial in the future, please reference the 4 step 
tutorial above



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


Re: PSML on the fly? (new to jestspeed)

2004-03-25 Thread David Sean Taylor
On Thursday, March 25, 2004, at 12:12  PM, Nehemia Litterat wrote:

Hi
I would like to know if there is a way to create a psml document and  
feed it to Jetspeed on the fly

If I understand it right the psml documetn determine Jetspeed's way to  
present a page  to the user.
If insteed of one main Protal page I would like to be able to define  
many portal pages I get the feeling that the PSML files will start to  
get very very big

There is an generalized API for all access to PSML:

http://jakarta.apache.org/jetspeed/api/org/apache/jetspeed/services/ 
psmlmanager/PsmlManagerService.html

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


Re: jetspeed 2 blank screen

2004-03-25 Thread David Sean Taylor
Hi Ender,

No idea where the problem is. What do the log files say?

On Thursday, March 25, 2004, at 12:40  AM, Ender Hikmet KILIÇOÐLU wrote:

Hi
I tried cvs build of jetspeed 2. Everything was successfull but with 
demoapp
or without it I am seesing only a blank page with titlw `welcome to
jetspeed2`
Where is the problem

Thanks
Ender


content of blank page





Welcome to Jetspeed 2

http://localhost:8080/jetspeed/"; />










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

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


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


Re: Is there a Login Portlet in Jetspeed 1.4?

2004-03-23 Thread David Sean Taylor
On Wednesday, March 17, 2004, at 02:02  PM, Glen Carl wrote:

You need to build your own Login in modules to use instead of the 
Jetspeed modules in
src/java/org/apache/jetspeed/modules/actions
The CreateNewUserAndConfirm, JLoginUser, JLogoutUser, 
SendConfirmationEmail and SendNewUserNotificationEmail were the 
modules I modified to interface with our SSO solution that have HTTP 
headers.

Sounds cool. Anything to contribute back?



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


Re: Browsing static pages within a portlet

2004-03-23 Thread David Sean Taylor
On Wednesday, March 17, 2004, at 01:35  PM, Glen Carl wrote:

Consider implementing the NekoHTML technology for portlets that do 
rewriting.
http://www.apache.org/~andyc/neko/doc/html/

We recently discovered Neko, and implemented it for rewriting. It 
eliminated many of the rewriting problems we were having.

Do you have a patch for the Jetspeed Rewriter framework to implement a 
NekoHTML plugin?

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


Re: maximized question

2004-03-10 Thread David Sean Taylor
On Tuesday, March 9, 2004, at 10:29  AM, Jason Trust wrote:

I have a situation that involves a search and results type action, and 
I
want the available search options and returned data set to be shown
differently based on when the user is normal or maximized mode.



search_form.vm  -> search_results.vm

search_max_form.vm -> search_max_results.vm



Is there an attribute or method that represents the maximized state of
the portlet?
Given JetspeedRunData jrd

if (jrd.getMode() == JetspeeedRunData.MAXIMIZE)

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


Re: Redirection with DynamicURI, what is $jslink?

2004-03-10 Thread David Sean Taylor
On Tuesday, March 9, 2004, at 01:23  PM, Stijn de Witt wrote:

Can anyone point me in the right direction?
I have attempted to get the $jslink in JSP myself, but I can't find 
it. If I
dump my request attributes in my template, I see a 'link' attribute, 
but
that is a JspLink or something, and I see a 'context', which is of 
class
GenericMVCContext. I tried calling getKeys() on that, but that causes
errors-a-plenty:
Have you tried the jetspeed:portletlink tag?
See examples under the JSP1_1andJetspeedTagLib and 
JSP1_2andJetspeedTagLib portlets

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


Re: Security questions

2004-02-17 Thread David Sean Taylor
On Tuesday, February 17, 2004, at 11:42  AM, Archana Turaga wrote:

Thanks for the info. Although i think this is not valid in 1.4b4 which 
is what i'm using. Based on the e-mail that you sent today it seems as 
if this information is incorporated into 1.5. But 1.5 is not a 
official release yet...i hope it becomes official pretty soon.

Yes, within the next month or so.

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


Re: Headache with the Tutorial

2004-02-17 Thread David Sean Taylor
On Tuesday, February 17, 2004, at 06:09  PM, scott wrote:

I am new to Jetspeed.  I am trying to run the tutorials from the 
JPortal.jar.
The issue I am having is as follows:
I changed the build.properties to point to my catalina home and 
jetspeed home.
My jetspeed home is in tomcat/webapps/jetspeed.  I copied the 
jetspeed.war to
Put the Jetspeed source (or binary release) anywhere but there ! :)
Seriously, that is the last place you want to put it.
Because the tutorial is setup to deploy to your Jetspeed distribution 
to that directory.
It expects that you will separate your source from your deployment



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


Re: Security questions

2004-02-17 Thread David Sean Taylor
On Tuesday, February 17, 2004, at 06:48  AM, Mikhail Garber wrote:

Thus you can 'group' collections of users together in order to apply
security constraints to those users. For example, you could create a
constraint that granted view and
customize access to all users in group 'A', but only view access to
group 'B'
how to accomplish just that has been a source of constant confusion 
for me.
At least in jetspeed 1.4 (which we are using here), I could not find a 
way
to apply permissions to a group.
The security browser / editor only allows granting "permissions" to 
"user",
"role" and "owner" objects.
No groups.
Sometimes it feels like the whole "group" concept is not really used in
jetspeed and it is just a leftover of the Turbine heritage.
Please correct me if I am wrong.
I was speaking in reference to the CVS head and version 1.5, where 
Jetspeed was enabled to support groups in the security api and UI.

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


Re: trouble with MySql

2004-02-16 Thread David Sean Taylor
On Monday, February 16, 2004, at 11:39  AM, Bryan K. Cantwell wrote:

I get my JS portal 1.4 running fine on 2000 using jdk 1.4.2 and tomcat
4.1.29 and the initial HSQL db. Yet, when I switch to MySql 4.0.17, I
get the portal to load, I can go to most default pages and even make
SOME changes to users, etc. BUT more often than not, when I click on a
link in a portlet or use one of the admin portlets, nothing happens or 
I
get sent to some random page somewhere else in the portal.

Is this common? I have the JDBC drivers in and the Torque.properties
configged and some things work... but still intermittent issues...
Yes it is. I never get it right the first time either ;)
You have to populate the database. Follow the instructions in the 
online docs
Also check your log files, they should give a hint as to what is going 
wrong.
Jetspeed does run fine with MySQL 4



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


Re: Regarding login IT's URGENT

2004-02-16 Thread David Sean Taylor
On Monday, February 16, 2004, at 09:05  PM, S, VENKATESH wrote:

Hi,
  After clicking login button which class will execute,I know that 
JLoginUSer class is executing but what i have to know is
  whenever i am giving username as admin how it goes to respective 
page of admin,whenever i am giving as Turbine how it is going to 
Turbines page,I wnat to know whether it is executed by java file or by 
some other files.

To be honest I do not completely understand the question, nor why it is 
URGENT, but i will try to answer it
Turbine treats the login action as a special case.
Unlike other actions, it will get executed before both your session 
validator action and access controller actions.
As for locating PSML pages, thats done by the profiler which kicks in 
the access controller action
The profiler will look at the authenticated user in RunData and try to 
find a PSML page for that user based on the username and other runtime 
parameters such as mediatype, language, page name.





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


Re: Security questions

2004-02-15 Thread David Sean Taylor
On Saturday, February 14, 2004, at 05:44  PM, Archana Turaga wrote:

Hi,
 The following questions:
1. What is the purpose of groups in jetspeed? Just like Role-based 
PSML is there group-based PSML?

Groups represent a collection of users much in the same way groups are 
used in operating systems.
Thus you can 'group' collections of users together in order to apply 
security constraints to those users.
For example, you could create a constraint that granted view and 
customize access to all users in group 'A', but only view access to 
group 'B'
Try playing around with the Security Browser portlet to get a feel for 
how security constraints apply to groups, users and rules.

Also take a look at the authorization (AccessControl) API in Jetspeed 
Security.
There are APIs for granting and revoking roles to users, and for users 
joining and removing from groups.
Also, there are APIs fro granting and revoking roles in the context of 
a group.
This is because Jetspeed tries to be flexible in its security model.
We support a user having different roles when they are in a different 
groups.
A use case would be "Anne is the Project manager in Group A (which 
could be a project), but she is Chief Engineer in Group B (another 
project)
Thus groups could abstractly represent "projects" or "domains", or just 
organizational groups.
Speaking of organizations, in J2 we plan to support hierarchies of 
roles and groups.

If you don't need roles inside of groups, we have the global group 
concept.
The 'Jetspeed' is the global group, as reflected in the API.
This gives the possibility of organizing your security model with 
disjoint (no) associations between roles and groups.


2. What is really the meaning of owner-only security permission?

This means that only the owner is granted access to a resource.
For example, a portlet on a page could be restricted to only the owner 
customizing the portlet.

3. Is it possible to do Role-based PSML for a particular role? Suppose 
i want to have a set of users under the Role "Operator" to have 
role-based PSML and the users under "Admin" user-based PSML (if this 
is a vaild term)?
Yes, your scenario is possible.
Jetspeed first looks under the user-based PSML, if it fails to find a 
PSML page for the user, it when then look under the (first) role.

Trying to get these terms cleared so that i can come up with a clear 
security model for a project.

Thanks for your time and patience.

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

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


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


Re: Self-register feature turned off by default in 1.4dev5, what parameter controls this?

2004-02-04 Thread David Sean Taylor
On Wednesday, February 4, 2004, at 12:52  PM, Mark Divitt wrote:

Hi David,

That's just what I needed.

Thank you very much.

I did find the first parameter after more digging,
however the reason the second parameter must also be
true is indeed unclear...
Yes, I don't understand it.
I'll propose changing it on the jetspeed-dev list


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


Re: How do I set $clink.External?

2004-02-04 Thread David Sean Taylor
On Wednesday, February 4, 2004, at 12:29  PM, Smith, Fred wrote:

I need to deploy Jetspeed behind a reverse proxy.   
templates\vm\layouts\html\*.vm get the base URL from $clink.External.   
It is defaulting to the private system name.  I need to set it to the  
public system name.

But I cannot find where it is set.


check the mailing list archives

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=jetspeed- 
[EMAIL PROTECTED]&msgId=102947

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


Re: Self-register feature turned off by default in 1.4dev5, what parameter controls this?

2004-02-04 Thread David Sean Taylor
On Wednesday, February 4, 2004, at 12:17  PM, Mark Divitt wrote:

Hi,
   I just pulled down 1.4dev5 from CVS and started it
up.  It appears that the self register (new user)
feature is turn off by default.  What parameter (in
what file) controls this?  I looked in the usual
places and I couldn't find it.  I also did a quick
scan of the mail archive and couldn't seem to find it
there either.  To be extra clear, I am refering to the
ability for a guest to register themselves (create
login, provide password, etc.)and thus (later) be able
to login.  In previous versions, this feature was on
by default.
Thanks...

JetspeedResources.properties

topnav.user_creation.enable = true

it appears this is required too, although its not apparent why

newuser.confirm.enable = true



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


Re: Security Message

2004-02-03 Thread David Sean Taylor
On Tuesday, February 3, 2004, at 09:59  AM, Liu, Richard wrote:

Hi All,

I installed the tutorial portal JPortal. However, the "Stock 
Portfolio" Portlet only displays the header bar without any content. I 
see a message in red "The security for this portlet is currently 
defined as system default" when I choose to customize the portlet. 
What does this mean? Does a message in red imply an error?

What version of Jetspeed are you using?
Did you checkout from CVS?
I just tried:
1. downloading and extracting jportal
2. building Jetspeed from CVS head
3. from jportal directory
ant clean tutorial-all
 ant deploy
4. goto http://localhost:8080/jportal
the stock portlet displays there
Are you building a specific tutorial?


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


Re: AW: Forward to portlet with specified action

2004-02-03 Thread David Sean Taylor
On Tuesday, February 3, 2004, at 06:08  AM, Swientek, Jens-Martin wrote:
[snip]
Thanks for your reply.
For some reasons this does not work as intended.
I have to portlets on a pane. portlet1 displays a Velocity-Template  
with a link to portlet2. This link should also call a specified  
action-method.

The link
"Portlet Forward"
results in
"...default.psml/js_peid/P-fa76ed989d- 
1?action=portlets.ForwardTargetAction"
but nothing happens.

I've changed my forward to:
--- 
---
   
	
   
--- 
---
I've got the portlet id from the users default.psml file.


The ForwardTargetAction should simply change the displayed Template of  
portlet2:
--- 
-
	protected void buildNormalContext(VelocityPortlet portlet,
	  Context context,
	  RunData rundata) {
		setTemplate(rundata, "ForwardTarget2.vm");
	}
--- 
-

But nothing happens. What's going wrong?

You should change a portlet's template in the action phase, not the  
render (buildNormalContext) phase.

Here is an example of saving an employee record that may be useful:

In your vm file:




border="0" alt="Save" value="Save"  
name="eventSubmit_doSave"/>

This will call the doSave event on your action.

Then in your forwards xml, one way to do this is with a portlet forward  
as:

   





I'll update the tutorial to demonstrate forwards in actions as examples.
Let you know when its ready
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JPortal Tutorial 3

2004-02-02 Thread David Sean Taylor
On Friday, January 30, 2004, at 03:33  PM, Liu, Richard wrote:

Hi all,

I am looking into JPortal Tutorial 3 to customize menus with the
customizer. After I clicked the pen-like button to customize, I do not
see the menu name list (such as Basic Tutorials, Advanced  
Tutorials,...)
I only see number 1 to 4 listed. If I click the number othe icon before
the number, I got HTTP 404 error.

	HTTP Status 404 - /jportal/$jslink.getAction(
	
--- 
-

	type Status report
	message /jportal/$jslink.getAction(
	description The requested resource (/jportal/$jslink.getAction()
is not available.

Any clue what is missing in my configuration? Thanks a lot in advance.

I just uploaded a new tutorial to

http://www.bluesunrise.com/jetspeed-docs/jportal.jar

New documentation:

http://www.bluesunrise.com/jetspeed-docs/JetspeedTutorial.htm

I committed a bug fix in Custom Localization in the Jetspeed CVS head  
that was causing problems with loading localized strings from 2 or more  
resources bundles
(The tutorial has 2 resource bundles, jetspeed's and its own - a patch  
a while back broke working with 2 or more resource bundles)
Recommend using the tutorial along with Feb 2 nightly build or greater,  
or directly from CVS

I specifically tested the $jslink.getAction problem described above and  
it appears to be fixed
Let me know if that works for you

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


Re: Forward to portlet with specified action

2004-02-02 Thread David Sean Taylor
On Monday, February 2, 2004, at 03:46  AM, Swientek, Jens-Martin wrote:

Hallo.

Is it possible to forward to a portlet and automatically perform a  
specified action?
When I forward to a portlet the 'buildNormalContext'-Method of the  
appropiate action-class is always called.
But I need to invoke another action-method, e.g. 'doSomething(Rundata  
rundata, Context context)'.

My forward looks like this:
--- 


ForwardService forward =  
(ForwardService)ServiceUtil.getServiceByName(ForwardService.SERVICE_NAM 
E);
forward.forward(rundata, "PersonPane");
--- 


Yes, try something like this:




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


Re: Security in IFRAME PORTLET

2004-01-13 Thread David Sean Taylor
On Tuesday, January 13, 2004, at 03:57  AM, Peter Andersén wrote:

Im buildnig an IFRAMEPORLET that can pass configurable parameters and 
also
username and password like the BASIC Auth IFrame Portlet.
But it will take a while brefore im done, you can have it if you want 
when i
have completed it !

/Peter
Take a look at org.apache.jetspeed.services.webpage

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


Re: IRC channel for jetspeed users?

2004-01-09 Thread David Sean Taylor
On Friday, January 9, 2004, at 05:36  PM, Suchisubhra Sinha (susinha) 
wrote:

Hi,
  I am  trying to  join  this couple but still  not successful. Can  
you
give a hint
How I can join  IRC chat?

Its irc.codehaus.org:6667
#jetspeed
there was a typo in the last msg



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


Re: Does logon.auto.disable=true work in jetspeed 1.4?

2004-01-07 Thread David Sean Taylor
On Wednesday, January 7, 2004, at 10:54  AM, Jeff Marshall wrote:

David,
I must be missing something.
In JloginUser the doPerform method catches LoginException doPerform(*)  
returns in the Exception block. I do not see how the code at the  
bottom of the doPerform method is executed. It looks like if the user  
is not logged in, the code:
if (JetspeedSecurity.isDisableAccountCheckEnabled())
{
boolean disabled =  
JetspeedSecurity.checkDisableAccount(data.getParameters().getString("us 
ername", ""));

is not called
Jeff
===
I've tested it here and you're right it don't work
I submitted a patch, give it a try
David

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


Re: Does logon.auto.disable=true work in jetspeed 1.4?

2004-01-07 Thread David Sean Taylor
On Wednesday, January 7, 2004, at 07:00  AM, Jeff Marshall wrote:

Hi,
I have tried multiple installs of jetspeed 1.4 and I cannot get the 
logon disable function to work.
We are using tomcat 4.1.24 and tomcat 5 with Jetspeed 1.4

JetspeedSecurity.properties looks like this:

# Auto-Account-Disable Feature
services.JetspeedSecurity.logon.auto.disable = true
# 3 logon strikes per 300 seconds and your out
services.JetspeedSecurity.logon.strike.count=3
services.JetspeedSecurity.logon.strike.interval=300
# dont allow more than 10 over any time period
services.JetspeedSecurity.logon.strike.max=10
Anyone have any ideas?

I know this feature worked last time I checked.

Which file did you edit?
Did you edit the file directly in your deployment?
I've had problems with that because of all the crazy merging going on


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


Re: JloginUser-JetspeedSecurity.login-JetspeedAuthentication.login-getServices.login

2004-01-07 Thread David Sean Taylor
On Wednesday, January 7, 2004, at 08:04  AM, Paul Mansfield wrote:

On Fri, 2004-01-02 at 14:58, Paul Mansfield wrote:
Platform:   redhat7.3 on intel
Software:   jetspeed1.4 release
JDK:j2sdk 1.4.2_01
Hi,
I'm sorry if this is a dumb question, but I am trying to figure out  
how
JLoginUser works; I have an external user database from which I want  
to
pull passwords, but keep the rest of the jetspeed authentication
database the same (long story :-(

so, I have copied and extended JLoginUser, and note that it calls
JetspeedSecurity.login
which is a wrapper round
JetspeedAuthentication.login
which is a wrapper round
getService().login
I am wondering which getService() it is calling? I have tried to  
follow
various classpaths and not struck gold - there are many places where
getService function is provided.
I got an answer, but I think I didn't explain myself properly (I  
realise
getService is a function in the same file), what I meant was where does
getService get the service from?

(getService -> TurbineAuthentication -> JetspeedUserManagement ->
getService -> getUser -> TurbineUserManagement->
TurbineUserPeer.doSelectusers)
the javadoc for JetspeedAuthentication is pointless
http://jakarta.apache.org/jetspeed/api/org/apache/jetspeed/services/ 
JetspeedAuthentication.html#getService()

I've achieved what I want to, i.e. tapping in to the login scheme, but
I'd still like to understand the program flow... arcane as it is.
Seems to me that it'd be hard to make it more complicated,
considering all it really does it check user/pass against the DB, then
populate a User object and store it in the session. I counted at least
12 levels of function calling, easy!
Jetspeed security is meant to be pluggable.
There are interfaces defined, and pluggable implementations.
The JetspeedAuthentication class is a static accessor.
Its a little abstraction to save you from using factories or service  
managers.
I've never liked static accessors since they don't implement an  
interface, but just mirror and wrapper it.
But they are commonly used in Java, especially at Jetspeed.

Jetspeed is an open source project that is used by lots of people.
If we just had one security service, then it wouldn't accomodate all  
the users who have their own security back ends.
So this is an abstraction to keep people from hacking away at the code  
and coupling security details to the portal implementation.
It also has some history in that Jetspeed was coupled to Turbine in  
previous versions.

In Jetspeed-2 I believe we are doing a better job of separating user  
preferences and security, although it remains to be seen

And then there's the matter of the code in the package
com.workingdogs.village which just magically appears and seems
unreferenced in any of the main jetspeed documentation!

I feel better for that :-)
:-)



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


Re: UnsatisfiedLinkError - dll problem

2004-01-07 Thread David Sean Taylor
On Wednesday, January 7, 2004, at 09:02  AM, yael malka wrote:

Hello,

I have a problem trying to open a dll by the code :
System.loadLibrary("mylib");
 I get the following error :
org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWr 
apper threw exception class java.lang.UnsatisfiedLinkError :  
getDNSHostNames

Does someone know why ?
Where must be the dll ?
Its not really a Jetspeed issue.
You didn't specify which app server you are using, see its  
documentation, for example:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES.txt





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


Re: Integration into a Single Sign on Solution

2003-12-15 Thread David Sean Taylor
On Monday, December 15, 2003, at 12:18  PM, Weaver, Scott wrote:

Hi Mark,

Jetspeed 2 is actually using both JAAS and the java.util.prefs apis.

With JAAS, we are just getting started coding.
 For now Im putting a Subject and its principals in the request based 
on the authenticated credentials from the servlet api.
See o.a.j.security

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


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


Re: Problem in Registering the Portlet

2003-12-03 Thread David Sean Taylor
On Tuesday, December 2, 2003, at 10:45  AM, Suchisubhra Sinha (susinha) 
wrote:

Hi David,
 this is for you.  I am  looking at  the code and what  I get
In package org.apache.jetspeed.modules.actions.portlets we have  class
CustomizeSetAction.
There in buildPortletList  method, you  are checking for portlet  has
media or not.
Is there any  chance we can  make html  default.  What I am  asking,
can  we make html  as default media type if media for a portlet  is
null?
Hi Suchi,

Best to send these questions to Jetspeed-dev since it could involve a 
patch.
I don't check Jetspeed User much when Im deep in development...

Anyway could you send a patch to the jetspeed-user list and I'll review 
it

David

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


Re: Struts 1.1 with jetspeed-2

2003-12-03 Thread David Sean Taylor
On Wednesday, December 3, 2003, at 04:48  AM, vasant wrote:

can I used  jetspeed-2 with struts 1.1  for portal development .which 
site provide  simple example of this two technology

that would be nice but its not currently possible
j2 + struts (as a portlet application) is high on my list
we are still developing the j2 engine and PAs and PA frameworks will be 
developed once the j2 engine stabilizes





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


Re: pb on install with jetspeed and mysql

2003-11-26 Thread David Sean Taylor
On Wednesday, November 26, 2003, at 05:51  AM, jla159753 wrote:

Ok, thank for your help. I send you my zipped Torque.properties files.


It looks fine.
Are you storing your PSML in the database?
Im not clear on this.
Seems like we should first ensure that you can connect to the database.
Do you have the source code from the CVS head or are you working off a 
binary distribution?
If you are working off the source code, try running from the build 
directory: "ant unittest-security"
and see if you can connect to the database and run the unit tests



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


Re: Default Language in Portal Jetspeed

2003-11-25 Thread David Sean Taylor
On Tuesday, November 25, 2003, at 09:02  AM, Robson Borges wrote:

But I created a "JetspeedLocalization_pt.properties" and translated 
the main
properties. I'd like this properties file could be used by the default
language. Remember that this file is used normally when I set PT in my
"Change Language Portlet Example".
Is it possible to configure Jetspeed to use this properties file for
anonymous users ?

Check the settings on your browser.
Is your browser setup for Portuguese as the default language?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<    1   2   3   4   5   6   7   8   9   10   >