Re: J2 Security Customization

2005-04-21 Thread David Sean Taylor
Scott T Weaver wrote:
Our registration process is very controlled and goes through a work flow and
verification process.  The process is handled by an entirely different
department.
Ive got the same kind of situation on a Jetspeed-2 portal deployment.
The login is actually done by a federated authentication server, and 
then redirected to Jetspeed.

--
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: Jetspeed2: Portal Site Detail

2005-04-14 Thread David Sean Taylor
Thang H. Lai wrote:
Hello, I am trying to use/understand the Portal Site Manager. If I select a 
folder, the Portal Site Detail portlet shows a few options, one of which is 
Add Page and the URL under that link is: 
http://localhost:8080/jetspeed/portal/Administrative/%3Cbf:forward%20view='add-page'/%3E

How does this work and if it is not implemented yet, how do I proceed? Where 
can I find more info about this feature?

Thank you for any help you could give,
Thang Lai
The feature is not yet implemented.
The goals of the Portal Site Manager is to:
- allow an administrator to maintain folders and pages (add/edit/delete)
- define security constraints and other attributes to the folders and pages
If you'd like to work on it, please send a proposal to the jetspeed-dev 
list and we can continue the discussion there. I'd be glad to help you 
work on it as this has been sitting on the back burner for a while now. 
Just want to make sure that we all use the same style in the admin 
portlets as I'll be cleaning up the admin portlets next week

--
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: Jetspeed2: Portal Site Detail

2005-04-14 Thread David Sean Taylor
Thang H. Lai wrote:

I am willing to do this, but I need a little hand-holding until I am more 
familiar with the procedures. I am thinking about how to propose. Is there 
any document, discussion about this?

Not really. Lets start a discussion on jetspeed-dev
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Jetspeed2-M2 genapp

2005-04-14 Thread David Sean Taylor
Rene Medellin wrote:
Yup. Could really use some guidance on that. (Have not
heard anything on this since the original post)
I think if someone could outline what all the minimal
pieces are then maybe some of us could take a shot at
writing the jetspeed2:genapp Maven goal. But the new
distribution structure is so complex, it's hard to
know where to begin.
A jetspeed2:genapp goal would be great!
For custom builds, take the following steps:
1. Start with a basic Jetspeed 2 deployment, such as the M2 distributable
2. create a new project with maven's genapp or eclipse
3. add some goals to this project to:
   - build and deploy my portlet app(s)
   - deploy my custom decorators and layouts
   - replace the default PSML with custom PSML
   - replace the jetspeed assembled components with my own
I think that incorporating these kinds of goals into a standard plugin 
would be very useful.

Note, there are now a number of goals in the base build that we can 
leverage:

goal name=quickStart
description=Creates the production DB and calls portal/maven 
fullDeploy
j:set var=deployType value=fullDeploy/
attainGoal name=doStart/
/goal

goal name=nodbQuickStart
description=Don't create a new production DB but call 
portal/maven fullDeploy
j:set var=deployType value=nodbfullDeploy/
j:set var=recreateDB value=false/
attainGoal name=doStart/
/goal

goal name=minStart
description=Creates the production DB and calls portal/maven 
minDeploy
j:set var=deployType value=minDeploy/
attainGoal name=doStart/
/goal

goal name=nodbMinStart
description=Don't create a new production DB but call 
portal/maven minDeploy
j:set var=deployType value=nodbMinDeploy/
j:set var=recreateDB value=false/
attainGoal name=doStart/
/goal

goal name=basicStart
description=Creates the production DB and calls portal/maven 
basicDeploy
j:set var=deployType value=minDeploy/
attainGoal name=doStart/
/goal

goal name=nodbBasicStart
description=Don't create a new production DB but call 
portal/maven nodbBasicDeploy
j:set var=deployType value=nodbBasicDeploy/
j:set var=recreateDB value=false/
attainGoal name=doStart/
/goal

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


Re: Jetspeed2-M2 genapp

2005-04-14 Thread David Sean Taylor
Robert Young wrote:
So what is the difference in the following goals?
I am making a guess here.
QuickStart: Build with demo portlets and layouts?
builds everything. standard jetspeed demo release
MiniStart:  Build without demo portlets, but with layouts and all
necessary database data to deploy your own portlets?
minStart
Just the portal and security
You need to create your own PSML tree with this one
There are nodb variants that dont populate the database if your project 
needs to do that itself


--
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: [Fwd: Re: found fusion/pluto interaction bug]

2005-04-12 Thread David Sean Taylor
I was planning on release 1.6 today and getting it over with.
I'll look into once  I get started here.
join me out on irc if you get a chance (i'll be starting here in 30 min 
or so)

how bad is the hard drive situation?
Ate Douma wrote:
Sorry, didn't notice at first I responded to Fabrice directly and not to
the list.
 Original Message 
Subject: Re: found fusion/pluto interaction bug
From:Ate Douma [EMAIL PROTECTED]
Date:Tue, April 12, 2005 17:44
To:  Fabrice Dewasmes [EMAIL PROTECTED]
--
Fabrice Dewasmes said:
Hi,

I think for just testing out your solution, the last option is the easiest
and quickest to realize and test (in the end, the first might be the
better solution or maybe even another, but for that I'll have to
investigate this first).
Using the QueryStringEncodingPortalURL is configured against Jetspeed, not
Pluto.
You should be able to do so in the jetspeed-spring.xml under
WEB-INF/assembly. Lookup the NavigationalStateComponent bean
definition. One of the constructor arguments (I think the second)
defined the PortalURL implementation to use.
yes I found this parameter just after having sent my email.

Just try it out. If it solves your problem we will try to define the real
solution after that.
Changing navaigational state component strategy works like a charm.
Great!

The only thing I'm unsure is (but I will have to double check
QueryStringEncodingPortalURL) how this class handles previously existing
parameter in the URL: are they preserved ?
Yes. No difference there.
Anyway, maybe that we should look for a better way to circumvent the
problem.
I agree.

What's your opinion ?
I don't have any at the moment. I would need time to investigate this
more, but I won't have time for that before the end of this week.
I expect that David will be able to give a better response (if he reads
the mailing list today, I know he too is covered in work till at least
Thursday).
Regards,
Ate
regards
Fabrice

Regards, Ate

Question is : Ate and David what do you think about the best way to
circumvent
this? Do you think it's possible to tell pluto not to add the ns
element
at all
?
Thanks for your help
Fabrice
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

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

--


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


--
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: found fusion/pluto interaction bug

2005-04-12 Thread David Sean Taylor
Raphaël Luta wrote:

I would personnally say that the best way would be to define a new 
FusionEncodingPortalURL that behaves just like PathInfoEncoding except 
that it adds the follwoing string : _ns/_ns: instead of simply _ns:

It would change anything for j2 since it specically looks for '_ns:' as 
an identifier and will allow Turbine to recognize a new _ns parameter 
which it would care about but at least will not break the othher parts 
of the URL.

The Fusion assembly script needs to use the FusionPortalURL instead of 
any of the regular ones.

What do you think ?
Looks Turbine friendly to me.
Are you going to write it ?
Im going to try releasing 1.6 today.
If we could get the fix in now I'd be glad to incorporate it in the release
--
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: possibility to have jslink give relative URIs ?

2005-04-12 Thread David Sean Taylor
Fabrice Dewasmes wrote:
Hi,
Another question : when using velocity, URIs are rendered using $jslink 
variable. In fact This URI is rendered by the toString Method of a 
DynamicURI object coming from Turbine. But this gives absolute URI and 
not relative ones.

For me this is problematic especially when you sit behind a reverse 
proxy as this is our case, or even when you have custering problematics 
in mind.

Is there a simple way to change this behaviour or do I have to rewrite 
DynamicURI class and simply replace it within turbine jar ? (kind of 
brute force patch isn't it ;) ?)

$jslink works fine behind a proxy
configure your jvm to use the proxy
--
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 Jars are *failing* to Download.

2005-04-04 Thread David Sean Taylor
Elam Daly wrote:
Howdy all,
Yesterday and today I've checked out the latest cvs tree for jetspeed to 
and ran a 'maven allClean allBuild' and am getting many 'failed to 
Download' errors:

You are a little ahead of me.
Just finished the M2 release (announcements coming shortly)
Going to start uploading the M3-dev jars to the remote maven repo in a 
few minutes.

In the meantime try building without -o, and the jars should be created 
automatically into your Maven repository


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


Jetspeed 2.0 M2 Released

2005-04-04 Thread David Sean Taylor
The Apache Portals Jetspeed Team is pleased to announce the second 
milestone release of Jetspeed-2.

The release is available for download from the Apache Download Mirrors:
http://www.apache.org/dyn/closer.cgi
Follow the links to portals/jetspeed-2
Two binary releases are provided.
1. Jetspeed-2 + Tomcat 5.0.30 distribution.
2. Jetspeed-2 + Tomcat 5.5.8 distribution.
With this second milestone of Jetspeed-2, new versions of the
Portals Bridges components are released as well. These components are 
now all upgraded to version 0.2. Portals Bridges can be used 
independently of Jetspeed-2 and will eventually migrate to its own 
Portals Bridges project.

Bridges released with M2:
* Struts Bridge 0.2
* Velocity Bridge 0.2
* JSF Bridge 0.2
* Perl Bridge 0.2
* PHP Bridge 0.2
* Portlet Framework 0.2
--
 Jetspeed 2.0-M2 Release
   April 4, 2005
--
* PALM - Portlet Application Lifecycle Manager
  A new administrative portlet for managing the lifecycle of portlet
  applications. Supports start, stop, undeploy and delete operations.
* JBoss Support
   Jetspeed tested and running on JBoss versions 3.2.7 and 4.0.1sp1
* New Improved Deployment
   Deployment overhauled to support application server
   controlled deployment. Class loader and cross-context session control
   issues resolved.
* Struts Bridge Enhancements
* Navigations Refactoring
* Enhanced credential security and validation,
  Login/Password Enhancements
* LDAP Authentication support added.
* Secure Access to Site Resources (Pages, Folders)
* Profiler, Layout, PSML Security Documentation
* SSO Enhancements
* Improved JSF Support
* Finer grain Spring configuration
* Main Jetspeed context no longer requires /jetspeed
---
Bug fixes
---
see M2-bugfixes.html
-
 Tested App Servers:
-
 * Tomcat 5.0.30
 * Tomcat 5.5.8
 * JBoss 3.2.7
 * JBoss 4.0.1sp1
 (Tomcat 5.5 requires a different jetspeed.xml found in the source tree 
under src/resources/jetspeed-tomcat-5.5.xml)

 Check out our wiki page for details: 
http://wiki.apache.org/portals/Jetspeed2

-
 NO Longer Supported:
-
 * Tomcat 4.1.x
Support for Tomcat 4.1.x has been dropped.
---
 Installation Instructions
---
1. Download jetspeed-2.0-M2-Tomcat-5.0.30.tar.gz, or
   Download jetspeed-2.0-M2-Tomcat-5.0.30.zip (windows), or
   Download jetspeed-2.0-M2-Tomcat-5.5.8.tar.gz, or
   Download jetspeed-2.0-M2-Tomcat-5.5.8.zip (windows)
2. Expand jetspeed-2.0-M2-Tomcat-version.tar.gz into a clean directory 
(as example we will use 'jetspeed')

   cd /jetspeed
   tar xfz jetspeed-2.0-M2-Tomcat-version.tar.gz
   For Windows:
   cd c:\jetspeed
   unzip jetspeed-2.0-M2-Tomcat-version.zip
3. start the database
   cd /jetspeed/jetspeed-database
   start-database.sh
   For Windows:
   cd c:\jetspeed\jetspeed-database
   start-database.bat
4. startup Tomcat
   execute /jetspeed/jakarta-tomcat-version/bin/startup.sh
   For Windows:
   execute c:\jetspeed\jakarta-tomcat-version\bin\startup.bat
5. start up a web browser and navigate to 
http://localhost:8080/jetspeed/portal

--
 Configuring Another Database
--
1. cd $TOMCAT_HOME/jetspeed-database/scripts
2. edit the build.properties, set the properties for your database 
connection, save.
3. create a database schema/catalog to hold your database tables
4. type 'ant' to run the database population scripts
5. edit the jetspeed.xml properties
- $TOMCAT_HOME/conf/Catalina/localhost/jetspeed.xml

and set your database connection
6. copy your database driver into Tomcat's common/endorsed directory
7. start up a web browser, navigate to http://localhost:8080/jetspeed/portal
 Sample accounts to login as:
 admin/admin
 manager/manager
 user/user

 Upgrading from Jetspeed 2.0 M1

If you are upgrading an installation from Jetspeed 2.0 M1,
remember to delete the M1 jar files found under Tomcat's shared/lib 
directory. The following files should be deleted:

jetspeed-api-2.0-M1.jar
jetspeed-commons-2.0-M1.jar
pluto-1.0.1-rc1.jar
portals-bridges-common-0.1.jar

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


Re: Something weird happening with fusion/pluto

2005-03-30 Thread David Sean Taylor
Fabrice Dewasmes wrote:
Hi all !
I'm using JS1 + fusion (without the latest deployment model)
1. The user logs in (let's say he's in role 'dummy')
2. the default dummy psml page is rendered
3. the user chooses another PSML Page using the drop down menu at
the top right of the page and is now on a psml page from anon user.
4. User clicks on a link which has been rendered by a
renderResponse.createActionURL().toString() on a JSR168 portlet. And that's
where the trick happens... He's redirected on the default user's psml page
('dummy' psml page).
(Which of course is not what we want : the previously clicked portlet is even
not displayed). So the problem won't occur if the JSR168 porlet is in the
'dummy' psml page.
After investigating it seems that the rendered URL is something like
/jetspeed/portal/_ns:XXX/media-type/html/language/-1/user/anon/Accueil.psml/js_pane/P-XX-10003
(XXXs are to be replaced with a alphanumeric sequence)
and if I remove the _ns: part everything works fine !
Am I wrong ? What is this mysterious _ns:part ?
Thats the navigational state for JSR 168 portlets.
I tried your case against a running version of Fusion here, and it works 
fine (it stays on the same page and tab). Unfortunately all of my work 
(and installed applications) with Fusion was before the new navigational 
state implementation in Jetspeed-2.

I will need to upgrade my Fusion installs soon.
Hope to get some time to work on this over the next week.
Will look out for this bug, thanks
--
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 Configuration

2005-03-30 Thread David Sean Taylor
Mike R. wrote:
I am documenting the Jetspeed 2.0 configuration (as documentation 
is sparse...) 

Can anyone give me a quick overview of the config files currently in use
for JetSpeed 2.0?  

For example, I have the following questions after having investigated 
the config, starting from the web.xml:

1.  The web.xml references jetspeed-configuration.xml.  Is this
the location of a XML config database that will be created?
Or is this a leftover config item that is no longer being used?

Not used. The ideas was that you could bootstrap Jetspeed with a 
properties file or XML configuration. Only the properties file was 
actually put into use. We've moved almost all configuration already from 
commons configuration to Spring, but there are still a few configuration 
settings in jetspeed.properties


I see no jetspeed-configuration.xml in either the binary or source 
distributions.
2.  In the jetspeed.properties file, there is an entry:
   deployment.descriptor.mapping.xml=
/WEB-INF/conf/portletdefinitionmapping.xml

The portletdefinitionmapping.xml only appears in the archives castor directory;
is it obsolete?
again, thats left over from the days when we used commons configuration.
Look to the spring configurations under WEB-INF/assembly for component 
configuration


Thanks, need help fast!
Mike R.


-
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: Jetspeed In Action

2005-03-30 Thread David Sean Taylor
Vladimir Simjanoski wrote:
Hi!
I've read somewhere that Jetspeed In Action is in the writing process.
Can anyone (the author?) tell me when it's going to be printed?
Are there any plans for making some chapters available earlier
(chapter on layouts/decorators and security/sso will be very
valuable)?
Recently completed Portlets In Action (the title may change slightly) 
for Manning. I don't know when it will be available, I'd guess some time 
this summer. Im going to take a break from Jetspeed In Action, and 
hopefully get back to writing it soon after the final 2.0 release.

As far as making chapters available early, no I can't do that.
But you can sign up with Manning to become a reviewer.
I find the documentation on the website obscure in many areas (too
many TODOs)...
Yes, sorry. We are working on it

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


Re: J2 Tomcat JAAS

2005-03-30 Thread David Sean Taylor
Dworkin, Marc wrote:
Hi,
I am trying to install Jetspeed2 on top of tomcat 5.0.  I have a JAAS
Realm set up in tomcat which authenticates users and populates roles off
an LDAP directory.  I am using the SingleSignOn Valve so this
authentication works across webapps.  I would like this to work for
jetspeed as well.  Query: Can it?
When I try having jetspeed use my JAAS Login Module I get the following
error:
type Status report

message SecurityConstraintsImpl.checkConstraints(): Access for
view not permitted.

description Access to the specified resource
(SecurityConstraintsImpl.checkConstraints(): Access for view not
permitted.) has been forbidden.
see
http://issues.apache.org/jira/browse/JS2-205
Did you try removing Jetspeed's JAAS component?
 !-- Security: Authorization Provider --
   !--
   bean id=org.apache.jetspeed.security.AuthorizationProvider
   	   class=org.apache.jetspeed.security.impl.AuthorizationProviderImpl
  	
   	   constructor-arg ref 
bean=org.apache.jetspeed.security.impl.RdbmsPolicy//constructor-arg
   /bean
   --

--
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: No requests, just a remark

2005-03-30 Thread David Sean Taylor
Stefano Bianchi wrote:
Dear ALL (and mainly J12 developers),
no requests in this mail, just my 2 cents to the Jetspeed case.
I have noticed that the nature of the mails circulating in the Jetspeed User
List is becoming more  more technical day by day.
People asks about classes, interfaces etc., i.e. code, and have to cope with
Maven, Ant, builds and so on even to get started (both for J1 and J2).
This is indeed a good fact: the community is alive, good exchange of ideas,
collaboration, skilled people etc.
BUT:
if you (J developers) really want Jetspeed to become a reference, you should
also think of the good guy who wants something that is easy to work with,
easy to start, easy to configure etc.
Your approach is open to several architecture (DBMS, other tools etc.), but
please take a few seconds thinking about the classes of users that could be
interested in using Jetspeed.
I DO appreciate your work and effort (I would never be able to do such
work!), but I think that an easier approach for e.g. deploy and set up (for
dummies, let's say) would be better.
I think you are have a great point here.
Jetspeed-2 really needs better docs and installers.
Personally, I think it needs to install with little or no configuration.
Jetspeed-2 has so much configuration and possibilities that we sometimes 
lose sight of the class of user who just needs something working 'out of 
the box'.

We understand your needs, and we are working towards this goal.
Your input is valued and helps us all define the goals of the community
--
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: AW: PSML Import Problem with MySQL

2005-03-30 Thread David Sean Taylor
Daniel Brose wrote:
Hi Dmitriy!

Attempts to import PSML into DB keeps causing errors, even though I
modified properties files (attached) to use MySQL settings instead of
HSQL. I tried both MySQL drivers and ensured that they are in the
CLASSPATH. Still I get the problem that you can see in attached stdout
log.
AbstractDataSourceFactory says that the driver is not supported, and its
code seems to hide the real source / line of the exception. What could
be causing this problem?
http://db.apache.org/torque/xref/org/apache/torque/dsfactory/AbstractDat
aSourceFactory.html

Im seeing a lot of PSML import failures.
I guess its not a trivial process. Im sorry.
Before even importing, can you get Jetspeed to run with MySQL?
Can you create new users from the User Admin portlet?
Often the importer fails because Jetspeed is compiled with HSQL parameters
--
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: AW: PSML Import Problem with MySQL

2005-03-30 Thread David Sean Taylor
OK, Im going to try real quick to summarize MySQL and PSML importing.
I sent these instructions to Sven, and they really need to go out to 
everyone on the list:

I am speaking here about version 1.6(-dev)
You need to generate the DDL for the PSML.
As described on the online docs, you need to:
1. change the project.properties
database = mysql
2. run torque to gen the schema
maven torque:sql
It will generate a file named
target/classes/sql/dbpmsl-schema.sql
3. run this script in MySQL
4. follow the instructions for making a specific build of Jetspeed, 
generating the torque bindings for MySQL.

http://portals.apache.org/jetspeed-1/psml_db.html
specifically, set your Torque.properties to MySQL and rebuild:
	
torque.database.default.adapter=mysql
torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.default.connection.url = 
jdbc:mysql://localhost:3306/jetspeed
torque.dsfactory.default.connection.user =  root
torque.dsfactory.default.connection.password =
		

5. then and only then you can run the importer
I hate this, but you must RECOMPILE the source to run against any 
database except Hypersonic. These are all good reasons to NOT use 
Jetspeed-1 and instead use Jetspeed-2. (sigh)

For the final 1.6 release, I will try to solve the compile/binding problem.
--
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 Configuration

2005-03-30 Thread David Sean Taylor
Mike R. wrote:
Thanks David - that clears up a lot of questions!  
Could you tell me which items are still being configured
via the jetspeed.properties?

thats a documentation task in itself and im sure it will lead to more 
questions

these are still used:
* log4j properties location
* default pipeline
* autodeployment substitution
* jndi flag
* supported portletmodes, windowsstates
* navigation state prefix
* location of assembly directory for Spring
--
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: Action Processing of JSR168 portlets within Fusion

2005-03-30 Thread David Sean Taylor
Hema Menon wrote:
David, 

I am running into a strange problem with Jetspeed 1.6 w/Fusion, where
our struts application does not seem to set the input parameters from
the form. The same application without any change runs fine on
Jetspeed 2. I am trying to figure out what is it that could cause the
bean properties to be not populated while running on Jetspeed 1.6. Can
you just give an idea on how the action handling for jsr168 portlets
are handled in fusion? Any pointers to any specific suspect in code
would be great.
The input parameters should be passed to the portlet.
Nothing different goes on there afaik
I'll look at this before releasing 1.6, not today though
--
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: new portal deployment problems

2005-03-30 Thread David Sean Taylor
Michael Neilly wrote:
I have the same problem if I go into /portal and build and deploy the
same way. I've tried looking at the quickStart goal in maven.xml but
since I'm not familiar with Maven I'm still at a loss.
How should I deploy these properly?
I usually build a base system from the source and then add portlet 
applications as needed. Minimally I always need the security app.

For PSML, just copy over your PSML replacing the Jetspeed default PSML 
directory

I'm also attempting to use PERL portlets and so far have just been
making modifications in applications/perl/src directly to portlet.xml,
jetspeed-portlet.xml and cgi-bin/*. Is this the correct approach?
Recommend making your own project, and extending the Perl portlets.
I hesitate to recommend using Maven to create a new project (since you 
dont operate maven), but you can do so easily with 'maven genapp'

As a rule I modify the Jetspeed source code when working on my own 
applications


--
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: Something weird happening with fusion/pluto

2005-03-30 Thread David Sean Taylor
Fabrice Dewasmes wrote:
Le 30 mars 05, à 18:45, David Sean Taylor a écrit :
Fabrice Dewasmes wrote:
Thats the navigational state for JSR 168 portlets.
I tried your case against a running version of Fusion here, and it  
works fine (it stays on the same page and tab). Unfortunately all of  
my work (and installed applications) with Fusion was before the new  
navigational state implementation in Jetspeed-2.

Thanks for your reply and interest David. In fact I'm using Jetspeed  
1/fusion that depends on the M1 release of J2. Is it your case ?

No, all my Fusion builds here are from September 2004
Slippery slope since then
Be careful that everything works pretty fine when you're on the user  
default psml page. Did you use another psml page in which is the JSR168  
portlet ?
yes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Action Processing of JSR168 portlets within Fusion

2005-03-30 Thread David Sean Taylor
Hema Menon wrote:
David,
First of all, thanks very much for taking time to respond. I have been
struggling with this for quite a while. But I guess I might have got
to something. The struts demo which uses form data, seems to work
fine. So I was really concerned on why my struts application is not
working. You see, my application uses a multi-part form data, it
contains file upload. I removed the enctype Multi-part/form-data 
from my form and removed the html:file link. The input parameters are
now set on the application. So the test that needs to be done is more
of a multi-part/form data rather than regular form data.

i didn't catch the multi-part bit
turbine actually parses that automatically
there may lie your problem

--
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: Action Processing of JSR168 portlets within Fusion

2005-03-30 Thread David Sean Taylor
Hema Menon wrote:
David,
Thanks again. Do you mean to say, turbine maynot support this, which
could be why it is failing on Jetspeed 1.6? 
I was saying that turbine does support file uploads.
and that support could be interfering with your app

--
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: JS2: Portlet Level security

2005-03-28 Thread David Sean Taylor
Jouni Rajala wrote:
I see that it is possible to put security constraints in psml files at 
page level. Is it possible to restrict usage of
some exact portlet on page by security constraints so that it is not 
rendered if user is not in some spesific
group/role.

Not quite yet, scheduled for 2.0 final release
What we do have is the PortletPermission class, and we can check against 
it using the JAAS security, however the checks are not being made in the 
current aggregator.

INSERT INTO SECURITY_PERMISSION 
VALUES(11,'org.apache.jetspeed.security.PortletPermission','MyPortet','view'...

--
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: JS1.6 W/Fusion release

2005-03-21 Thread David Sean Taylor
Hema Menon wrote:
David, 

I read in another email, that you are hoping for JS1.6 release soon.
Will you be using JSM2 for this release?
That depends on if we can get Fusion working with the new deployment 
branch. Right now Im leaning towards releasing 1.6 with M1, and then 
1.6.1 with M2, 1.6.2 with the final release...


--
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: Struts-Bridge Fusion - David/Ate/others- Pls comment

2005-03-21 Thread David Sean Taylor
Hema Menon wrote:
Hi,
I have been trying to get our Struts application under JS1.6 with Fusion. 
Here's the env
Latest JS 1.6 build from CVS
Struts-portal bridge 0.2 version.

I find that the application runs as a standalone using Portal bridges
0.2, which means that the portalbridges work as expected outside of
Jetspeed. However inside Jetspeed, the lookup dispatch action fails.
THE INTERESTING FACT IS THAT IF I DEPLOY THIS APPLICATION ON JETSPEED
2, IT WORKS AS EXPECTED. This makes me believe that the Jetspeed 1.6
with Fusion is causing the problem.
I believe there are changes in Struts bridge 0.2 version, which
require it to run with JS-M2 files. However any time, I build Jetspeed
1.6 with fusion, I find that the jetspeed.war contains M1 files. I
have removed the M1 jars from TOMCAT shared/lib directory. However
since JS1.6 is being build against M1 jars, I cannot remove what's in
the jetspeed war.
Here's my situation, Please help
- All our portlets are JS1.5 compliant and we are quite happy with it
- We cannot move to JS2 immediately since it means changing to JSR168 portlets
- We need support for Struts portlet
- JS1.6 WITH FUSION, was the perfect solution for us since it would
suit all our needs.
- However, if the struts portlet does not work as expected in JS1.6
with Fusion, I don't know what option does we have :(
The changes is Struts-portlet bridge is very very important and neat,
since it requires minor changes to our Struts application. But JS1.6
with Fusion is equally important to us for deploying it. Somehow I
find that JS1.6 With Fusion on JS2M1 jars does not seem to be running
right. I am not sure what option do I have :(
Can you please let us know what your plans are regarding to JS1.6 on
Fusion. Thanks for reading a long email, forgive me, I am desperate :(
Im sorry about your situation.
I recommend running Fusion against the M1 release.
Recently, the dependencies in Fusion were upgraded to match Jetspeed-2's 
Spring dependencies. This may be causing some problems. Try checking out 
Fusion from the same time as the M1 release.

Im in a situation here myself and not finding any time for Jetspeed.
'Up to my ears in it' as they say :(
Really hope to free up next week some, and by the first week in April I 
will get Fusion fixed up and released. Im sorry but thats the best I can 
do right now. If someone else wants to step up and release Fusion before 
 then, please do so!

--
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 Status of Jetspeed 2 ??

2005-03-21 Thread David Sean Taylor
Jouni Rajala wrote:
If you don't need fancy portlets for modifying your portal from portal 
itself, Jetspeed-2 already works just fine. Only
problem is that you need to modify all the xml files and deploy your 
portlets directly in jetspeed deployment directory
with other tools.
A portlet selector (customizer) will be included in M2.
I recently wrote a prototype popup portlet selector with satisfying 
results.

--
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: importing PSML into the database - where do I put the driver?

2005-03-20 Thread David Sean Taylor
)
at  
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) 

at  
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) 

at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 

at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) 

at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) 

at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at  
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 

at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 

at java.lang.Thread.run(Thread.java:595)
=== 

Does anyone know why?
Thank you very much,
Sven.
--- My original mail ---
Von: Sven Richter [EMAIL PROTECTED]
An: Jetspeed Users List jetspeed-user@jakarta.apache.org
Betreff: Re: importing PSML into the database - where do I put the driver?
Datum: Sat, 19 Mar 2005 16:05:06 +0100
Hello,
I think I'm slowly getting there. At least I don't get any error message
anymore. It says now:
=== 

[MyPortal]# maven import
  __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
build:start:
import:
 [java] * PSML Importer *
=== 

But that's all it does. It stucks there. I waited for about 30 minutes,
but nothing is happening. I also looked with an Database-Tool: it doesn't
add any entries to the tables.
It seems as if the ImporterService doesn't know what to add.
Thank you very much,
Sven.
Am Fri, 18 Mar 2005 07:15:46 -0800 schrieb David Sean Taylor
[EMAIL PROTECTED]:
Sven Richter wrote:
 He also mentioned that I have to update the path to include the  
jetspeed  1.5 jar. But I don't know how. I tried several things, but 
I  know always  get the error message, that the file  
NULL/.../TurbineResources.properties  was not found. Maven is 
looking  in the wrong directory (in NULL). Could  you (or somebody 
else) send me  an example of this file and/or  
$HOME/build.properties, so that I can  figure out how?

Didn't you say that you created your project with the Jetspeed Plugin?
If so, then it appears that you will need to copy your ./src/webapp  
directory to ./webapp, and you will need a 
TurbineResources.properties  file located in 
./webapp/WEB-INF/conf/TurbineResources.properties


-
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: J2 decorators not displayed in IE

2005-03-20 Thread David Sean Taylor
Marina wrote:
I can see this line:
#includeStyleSheets()
but where is this function? (I'm assuming this is a
function ?)
Its a Velocity macro (velocimacro):
http://jakarta.apache.org/velocity/user-guide.html#Velocimacros
Jetspeed's global macro used by all layouts can be found here:
 /portal/src/webapp/WEB-INF/jetspeed-macros.vm
You can also include specific macros for your layouts
http://portals.apache.org/jetspeed-2/layouts.html
http://portals.apache.org/jetspeed-2/decorators.html
--
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: importing PSML into the database - where do I put the driver?

2005-03-18 Thread David Sean Taylor
Sven Richter wrote:
He also mentioned that I have to update the path to include the 
jetspeed  1.5 jar. But I don't know how. I tried several things, but I 
know always  get the error message, that the file 
NULL/.../TurbineResources.properties  was not found. Maven is looking in 
the wrong directory (in NULL). Could  you (or somebody else) send me an 
example of this file and/or  $HOME/build.properties, so that I can 
figure out how?

Didn't you say that you created your project with the Jetspeed Plugin?
If so, then it appears that you will need to copy your ./src/webapp 
directory to ./webapp, and you will need a TurbineResources.properties 
file located in ./webapp/WEB-INF/conf/TurbineResources.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: importing PSML into the database - where do I put the driver?

2005-03-16 Thread David Sean Taylor
Roel van Dijk wrote:
-Oorspronkelijk bericht-
Van: Roel van Dijk [mailto:[EMAIL PROTECTED]
Verzonden: Tuesday, March 15, 2005 2:03 PM
Aan: Jetspeed Users List
Onderwerp: importing PSML into the database - where do I put the driver?
So here is the big question: where should I put the MySQL-Driver
JAR file so that the combination of Maven and Torque can find it?

[note: I'm using 1.6-dev from CVS]
org.apache.jetspeed.test.jdbc.j1.drivers.path:
goal name=import prereqs=java:compile
description=Import PSML
java fork=true 
classname=org.apache.jetspeed.services.psmlmanager.PsmlImporter 
!-- comment this out to preserve existing profiles --
arg value=false/
  classpath
path refid=maven.dependency.classpath/
pathelement path=${maven.build.dest}/
pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path}/
pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path2}/
pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path3}/
  /classpath
/java
/goal

 --
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: Graffito - Jetspeed CMS framework

2005-03-16 Thread David Sean Taylor
Fabrice Dewasmes wrote:
Hi,
This is great news. My first question would be : do you think it can 
work within JS1 with fusion ?
Graffito (and Graffito portlets) will run inside Fusion.
Just need to add the Graffito components to the Spring configuration
--
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: importing PSML into the database - where do I put the driver?

2005-03-16 Thread David Sean Taylor
Molina Pablo (teampro) wrote:
Wherever it is, just add it as a dependency within the project.xml file:
If the .jar file is named mysql-driver-1.0.1.jar, then
dependency
idmysql-driver/id
version1.0.1/version
/dependency
and that's it! Run maven and it will access the driver.
Not sure if you are aware, but there are other databases besides MySQL 
that Jetspeed supports. Thus, I can't add a direct dep on MySQL to the 
jetspeed cvs, and that is why we have the solution with property used in 
the pathelement (actually 3 properties) for database drivers.

Obviously, you are free to add a dep to MySQL in your custom builds.
--
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: importing PSML into the database - where do I put the driver?

2005-03-16 Thread David Sean Taylor
Roel van Dijk wrote:
  path refid=maven.dependency.classpath/
pathelement path=${maven.build.dest}/
pathelement
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path}/
pathelement
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path2}/
pathelement
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path3}/
  /classpath

I did see this, but was unsure how to use it. Where do I define these
variables
${org.apache.jetspeed.test.jdbc.j1.drivers.path} ?
in your $HOME/build.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: Portlet displaying a dynamic image

2005-03-16 Thread David Sean Taylor
Howard Lewis Ship wrote:
This is more of a general portlet question.
I have a portlet that wants to display a dynamic image (*) as part of
its output.
In a traditional HTML application, I would build a URL to a servlet
and the servlet would build the image and send a bytestream to the
client.
I want to do something similar with a portlet.
Is it possible to build such a URL?  I want to build a render URL and
have the handler for that URL build and return the image bytestream.
With portlets, the URL always goes back to the portal.
The portal then asks your portlet to contribute its portion of the 
content to the full bytestream.

Your portlet could do the exact same thing as the servlet: generate the 
image bytestream within the context of the entire portlet stream. It can 
generate the content itself or dispatch to your servlet (internally) to 
retrieve the content.

If I understand, I think you are looking to still go thru the portal to 
get your content, but for the URL to specify the content of just one 
portlet. (I could be wrong) I don't know of a portable solution to do 
that. I was thinking you could handle a special portlet mode, or max 
window state, but its still up to the portal to decide on the layout 
around the portlet.

As a non-portable solution: Jetspeed can specifically be told to 
generate the content of a given portlet using the portlet pipeline, 
specified in the URL

/jetspeed/portal?pipeline=portlet-pipelineentity={portletentity}
I've also done similar solutions using a portlet page holding one 
portlet and no layout or decorator

(*) This is really about Tapestry Portlet support.  The dynamic image
data is really going to be images packaged in JARs that need to be
exposed to the client.  Tapestry includes an engine service that will
access such things.  I'm trying to see if I can avoid using a Tapestry
servlet in anotherwise Tapestry portlet application.

--
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: WSRP4j is available on current Jetspeed 2 or not?

2005-03-14 Thread David Sean Taylor
Zhonghui Ning wrote:
I can not make WSRP4j working on jetspeed 2(download from CVS). Can 
anyone tell me WSRP4j is available on current Jetspeed 2 or not? Thanks.

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

We plan to integrate WSRP4j + Jetspeed for the final 2.0 release (May 
2005?..)

--
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: Importing Jetspeed settings into database

2005-03-14 Thread David Sean Taylor
Sven Richter wrote:
Hello,
is there nobody who can help me with my problem? I need this to carry on.
Please help me!
you have to run import from the jetspeed source directory
--
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: Importing Jetspeed settings into database

2005-03-14 Thread David Sean Taylor
Sven Richter wrote:
Thank you for your quick answer.
But I generated a new jetspeed-application with the maven plugin (maven  
jetspeed:genapp) that I'm working with. Doesn't your answer not only  
import the settings from the original jetspeed into the database?


copy the maven import goal into your project
(you will need to update the class path below to include the jetspeed 
1.5 jar)
it should then look at the psml files located in your psml directory tree

goal name=import
description=Import PSML
java fork=true 
classname=org.apache.jetspeed.services.psmlmanager.PsmlImporter 
!-- comment this out to preserve existing profiles --
arg value=false/
  classpath
path refid=maven.dependency.classpath/
pathelement path=${maven.build.dest}/
pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path}/
pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path2}/
pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path3}/
  /classpath
/java
/goal

Thank you very much,
Sven.
Am Mon, 14 Mar 2005 15:05:01 -0800 schrieb David Sean Taylor  
[EMAIL PROTECTED]:

Sven Richter wrote:
Hello,
 is there nobody who can help me with my problem? I need this to 
carry  on.
 Please help me!

you have to run import from the jetspeed source directory


-
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: Jetspeed 1.6-Fusion HELP!!!!

2005-03-10 Thread David Sean Taylor
Archana Turaga wrote:
Hi,
We really need to know when Jetspeed 1.6 is going to be released. We
need it more so because of its ability to support struts with Fusion and
we are depending on it very heavily for our implementation.
At the most we need to know what binaries from 2.0 are needed to get
fusion going since Jetspeed 2.0 adds a whole bunch of tables to the
database and we do not know which are needed and which are not. 

Please let us know the release date or at-least give us a list of
binaries/tables that need to get fusion going on top of Jetspeed 1.6.
I know David said that it will be out Feb end and I also know that you
guys are all very busy but please can you let us know the status?
Thanks a lot for your co-operation.
Regards,
Archana

Well we now have a new complication with Fusion.
The CVS head for 2.0 will soon change its deployment model.
In the deployment branch, quite a few interfaces that Fusion is 
dependent on are now deleted.
The code doesn't even compile against this branch.

Once again, J2 developers have no consideration for Fusion.
Perhaps we should formally call a vote on the jetspeed-dev list:
1. deprecate fusion
-or--
2. require developers to test fusion
Frankly the whole situation has led to me becoming less and less 
involved in Jetspeed as my contributions are devaluated.
Anyway, enough of my whining.

What we could do put out the 1.6 release with 2.0 M1
But since the deployment is changing in M2, this means that Fusion is 
stuck at M1 until someone comes along and refactors the Fusion deployment.

Im open to suggestions
--
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.6-Fusion HELP!!!!

2005-03-10 Thread David Sean Taylor
Archana Turaga wrote:
Thanks for the reply Jeff. But I know in the past they have said that
when Jetspeed 1.6 is released you do not need to build Jetspeed 2.0.
Won't that be really convenient...if it works that way? 
The 1.6 release will only require jars from Jetspeed 2.0
If that is M1 or M2 is yet to be determined...
--
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.6-Fusion HELP!!!!

2005-03-10 Thread David Sean Taylor
Archana Turaga wrote:
Thanks for the reply.
What about the database tables those come along with Jetspeed 2.0
deployment? Are those all needed (they are the bunch of them) or only
the 2.0 jars are enough to get fusion going? 

The database tables are included in the Fusion build if you build with 
the Fusion option on. This is all not yet documented. Getting this 
documentation of course will delay the release schedule.

If we (all of us interested in Fusion) decide to release Jetspeed 1.6 
(which includes Fusion) with 2.0 M1, then there are going to be some new 
features added to Jetspeed 2.0 that will be missing, mainly some nice 
improvements in the Struts bridge.

If we wait for the M2 release, we get all the bug fixes, but then the 
means a substantial bit of work to get deployment working again in 
Fusion. We're hoping for an M2 release by the end of this month, but its 
looking doubtful now.

--
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.6-Fusion HELP!!!!

2005-03-10 Thread David Sean Taylor
Scott T Weaver wrote:
I'm curious, which deployment refactoring has broken Fusion?  Is it the
things in Ate's branch or what is currently working in HEAD?
Both, although the CVS head break is pretty minimal (api signature 
changes), whereas the branch is missing entire dependent interfaces and 
extended classes.

--
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.6-Fusion HELP!!!!

2005-03-10 Thread David Sean Taylor
Ate Douma wrote:

  I know and you know that I started in the new deployment branch
from a clean sheet. I explicitly stated that this would *initially*
result in some features gone missing.
I also said these features have to be recreated once we decide this
proposed new deployment model. Right now, I have had no formal
acknowledgment from *anyone* yet to go ahead and commit my changes
to the main branch.
Here is my acknowledgement: resolve the Fusion issues before merging.
Probably everybody does know though I definitely would like to see
this happen, but I will be the first to acknowledge that it isn't ready
for that yet.
Me too
And then of course the integration with the ServerManager. This will be 
quite
easy to bring back online. Actually, I've already done so.
I have the TomcatManager working again.
Furthermore, I created a new (secured) ManagerServlet through which you 
can interact
with the ApplicationManagerServer as well as the PortletApplicationManager.
I've used the Tomcat ManagerServlet as example for this.

Right now I can list, start, stop, unregister and undeploy a 
PortletApplication
all from the commandline or webbrowser and working without problems. 
Providing
the same features to Fusion will be a peace of cake.

Great
I'm still working on an deploy command (uploading a deployment object 
like a
war or decorator). The basic code is already in place, the only thing 
left to implement
is the uploading part in the new commandline tool (JetspeedConsole).

I'm putting in a lot of effort to get this all working even *better* 
than it did before,
and I'm going to provide as much effort as needed to get Fusion working 
again with the new
deployment model, once we decided it will be the used for J2.

Perhaps we should formally call a vote on the jetspeed-dev list:
1. deprecate fusion
Nonsense
I'll take that as a -1 on deprecating Fusion ;)
-or--
2. require developers to test fusion
I do care about Fusion and, as far you *can* require that, I have no 
objection to make it a policy.

We should think about an easier way to test fusion do though because 
getting J1 and J2 to build
right beside each other is quite a hassle...

Frankly the whole situation has led to me becoming less and less 
involved in Jetspeed as my contributions are devaluated.
I think you are over reacting. I value your contributions very highly 
and I know I'm not alone ;-)

You did a hell of a job (and I know it was a hell of a job) to integrate 
J2 with J1, AKA Fusion.
I think it is one of the most important contributions to Jetspeed (as a 
whole, J1 and J2 together)
because it not only provides a JSR-168 container but also a view of the 
power of J2 and a migration path
for J1 users not (yet) ready to make the jump to J2.
Well, we did everything except put out a release, and its long overdue.
We need to figure out if we want to release 1.6 with:
2.0 M1
2.0 M2
2.0 Final Release
We could do a 1.6.1 release with M2, 1.6.2 with the Final Release
--
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: Maximized Window State in decorator.top

2005-03-10 Thread David Sean Taylor
Doug Schnelzer wrote:
Hi,
I want to know if any portlet on my page is in the maximized window
state.  I used to use the JPT to do this in the decorator.top (which
was probably not really correct).  I want to change (minimize) the
portal banner when a portlet is in the maximized window state.  My
previous approach no longer works.  Can someone point me in the right
direction?
Thanks, Doug
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

fyi -- All of the layouts in the CVS use a different template for maximized
Could you set a velocity variable in the layout that the decorator could 
pick up?

Also, you have the columns available from the power tool
#set($table = $jetspeed.columns)
by walking the columns, you can find the first portlet (the first 
portlet is the only portlet in max mode) and then check its window state

--
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: JSP template

2005-02-24 Thread David Sean Taylor
Marek Nowak wrote:
Hello
Is it possible in Jetspeed 2 to use JSP as a teplate instead of Velocity?
I assume this is one of those obvious questions that no one answers 
because well its so obvious
Or maybe because its unclear

When you say 'use JSP' do you mean in your portlets?
Then the answer is YES, of course!
Plenty of examples of that in the applications included in the distribution
If you mean in decorators or layouts, then also yes, although you don't 
have the Jetspeed Power Tool so it would be a little harder than with 
velocity

--
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: Default users and passwords

2005-02-24 Thread David Sean Taylor
Siddharth Chhabra wrote:
admin/admin should work.
and once u r logged in u can see other users.
we try to make it easy for hackers as possible:
passwords are same as usernames
--
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: Force restart/reload

2005-02-24 Thread David Sean Taylor
Christophe Lombart wrote:
I had similar issues with my portlets.
There is a bug in tomcat 5.0.28 with the autoDeploy. It is not used 
correctly in this version.
Now, I use tomcat 5.0.30 and hot deploy works fine.

I usually just deploy the entire webapp (portlet app) by dropping it 
into the jetspeed deploy directory (maven task), although that can be 
expensive if you have a lot jars in your distribution, but it still can 
be quicker than restarting

I still think we need to further look into Jetspeed portlet cache since 
it holds on to the webapp class loader and could be causing this kind of 
problem. Not sure if Ate's latest go at deployment is considering this 
or not


Christophe
Howard Lewis Ship wrote:
Is there a quick and easy way to force Jetspeed to restart?
I'm hot deploying a small portlet into Jetspeed.
I believe (not 100% certain) that it is picking up changes to my
Portlet instance after the hot deploy.
It does not appear to pick up changes to a static helper class.  I see
Portlet is Not Available: ClickLink
Reason: Node has been removed.
At the bottom of my portlet's window.
I'm having to stop/restart Tomcat to pick up such changes and I'm
hoping for something a little quicker and easier.
 


-
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: attempt to download jmock

2005-02-24 Thread David Sean Taylor
Ramin wrote:
while running maven on JS2, I keep noticing that jmock-SNAPSHOT.jar is
having some problems being downloaded. The build process finishes
successfully, but I dont think this file being downloaded into the
repository. Is it necessary to run JS2 ?
try building with -o for offline if you don't want to check for snapshots
--
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: Importing Jetspeed settings into database

2005-02-24 Thread David Sean Taylor
Sven Richter wrote:
Hello,
I so far made all the changes to Torque.properties.merge  
JetspeedResources.properties.merge and project.properties and created 
all  tables in MySQL, as described on the Jetspeed homepage. The next 
step is  (according to the website) to import the file-based settings to 
the  database with maven import. Unfurtunately I get the error message 
that  the goal import does not exist.

Could you please help me with this problem?
What version are you using?
The import goal is clearly there in the cvs head and 1.5 im pretty sure
--
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: Database parameters missing.

2005-02-24 Thread David Sean Taylor
[EMAIL PROTECTED] wrote:
Hi,
I using Tomcat 5.5.7 and jetspeed on jdk 1.5 on a windows xp platform. I'm
5.5 doesn't run with Jetspeed-2 unfortunately
http://issues.apache.org/jira/browse/JS2-187
--
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: regarding roadmaps

2005-02-24 Thread David Sean Taylor
Siddharth Chhabra wrote:
hi
In my current company we are currently evaluating
portal products and Jetspeed appears to be the most
ambitious and cost effective project out ther(when we
see all the possible things it intends to support out
of the  box).
But we need to have our portal out sometime by the end
of this year and out managements concerns is whether
jetspeed 2 will have a release version out by that
time.
The roadmaps on the site have no dates next to them.
We'll try to get a roadmap/release plan onto the site soon
Sorry for the inconvenience
We had our M1 release in December
M2 should be release in March (thats pushed back 1 month thus far)
After that, we will follow with a 2.0 FINAL release (1-2 months)
--
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 UML diagramms

2005-02-16 Thread David Sean Taylor
Hans Peter Stubenrauch wrote:
Hi,
I am looking for some Jetspeed UML diagramms to understand it`s working 
better. In the Mailarchive I found an 
URL:http://www.bluesunrise.com/jetspeed-docs/javadocs-1.3a2/ but it 
didn´t work. I also found some old mails with an URL to an Jetspeed 
presentation also hosted at www.bluesunrise.com.
Are there any actual URLs, where I can acces the UML diagrams and the 
presentation.
Thanks
Hans Peter

I removed the UML/javadocs from the site. 1.3a2 is over 3 years old.
You can find the slide shows here:
http://www.bluesunrise.com/jetspeed-docs/Slides/Slide1.html
IE:
http://www.bluesunrise.com/jetspeed-docs/Jetspeed-Slides_files/frame.htm
--
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: SQL errors on binary distribution

2005-02-16 Thread David Sean Taylor
Smits.Dolf wrote:
Hi,
I changed to another tomcat version, 5.0.28, and this seems to be working
(tried it also on tomcat 4.1.24, but that goes wrong)
I still do get some errors and the rss application is not working, but
furthermore I have at least a working portal for now.
I'll start playing around.
The RSS failing is most likely an error with xalan (XSLT) jar conflict
Check your log files.
--
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: New Article about Jetspeed2 second part (migration jet1 - jet2)

2005-02-16 Thread David Sean Taylor
massimiliano wrote:
It's a second part (In italian):
http://www.jugsardegna.org/vqwiki/jsp/Wiki?Jetspeed2_I
or:
http://www.mokabyte.it/2005/02/jetspeed2-2.htm
The example of migration, it's a portlet based on 
Spring, MX4J and a three type of persistence,
JdbcClassic, JdbcTemplate(Spring) and JDO (JPOX with
JDO 2.0 features).

The third part of article are available at the end of
february, and contains the part with MX4J, and the
portlet for Jetspeed2 build with plutoeclipse, and a
complete source of the example (Apache license
naturally).
Massimiliano


Thanks!
I added a link here:
http://portals.apache.org/jetspeed-1/resources.html
--
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: AW: [J1] Jetspeed 1.6 MySQL PSML problem

2005-02-16 Thread David Sean Taylor
Daniel Brose wrote:
Hi David,
hi all!

Could you send the relevant properties from your
JetspeedResources.properties. Also, for Jetspeed-1, to switch databases
you have to change the Torque properties and rebuild. Did you do that?

Okay, here are the relevant properties from my JetspeedResources.properties
(as far as I know which ARE relevant):
# To use the File-based PSML service, select (uncomment) this service (this
is the default setting):
#
services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
orPsmlManagerService
Is that my email wrapping ?
Looks like 2 separate lines to me i.e. its not commented out
# To use the DB-PSML service, select (uncomment) this service, and comment
out the above service:
services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.D
atabasePsmlManagerService

# Select this service to import from File System to the Database (make sure
that DatabasePsmlManagerService is selected above)
services.PsmlImportManager.classname=org.apache.jetspeed.services.psmlmanage
r.CastorPsmlManagerService
# Select this service to import from the Database to the File System (make
sure that CastorPsmlManagerService is selected above)
#
services.PsmlImportManager.classname=org.apache.jetspeed.services.psmlmanage
r.db.DatabasePsmlManagerService
again, it looks to me like you have both uncommented
just select one
And yes, I changed my Torque.properties and rebuild. I'm already using MySQL
for users. Here are my settings for my db in my Torque.properties:
torque.database.default=default
torque.database.default.adapter=mysql
torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.default.connection.url =
jdbc:mysql://localhost:3306/jetspeed
torque.dsfactory.default.connection.user = jetspeed
torque.dsfactory.default.connection.password = jetspeed


Finally, check the log files from the import.
Send any relevant stack traces to this list

Actually there seem to be some problems with the MySQL driver. As I'm
already using it for users, I thought anything would be fine with it. Where
do I put the jar for the MySQL driver so that maven recognizes it?
Excerpt from my jetspeedservices.log:
Seems like the import command line task in the cvs head didn't have a 
standard way of addding the driver
I just updated the maven.xml in the cvs head
You can use this property for your classpath, for example:

org.apache.jetspeed.test.jdbc.j1.drivers.path=/etc/drivers/jdbc/mysql-connector-java-3.0.8-stable-bin.jar
--
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 - Menu Navigation - Root Folder

2005-02-16 Thread David Sean Taylor
Hi Shah,
Can you move this discussion to the jetspeed-dev mailing list?
I think its going to involve some reworking of APIs, and I prefer to 
discuss it there.

Thanks,
David
--
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: SQL errors on binary distribution

2005-02-15 Thread David Sean Taylor
Smits.Dolf wrote:
Hi all,
 
I'm just starting with jetspeed, so hope i don't ask too stupid a question.
 
running on win2000
I downloaded the binary distribution from jetspeed 2.0.M1
I installed java jsdk latest version 1.5.0.1
installed a clean tomcat latest version (5.5.7)
unzipped the jetspeed zip file in the webapps directory from tomcat
go to the jetspeed-database and start the database with start-database.bat
startup tomcat
 
It start to throw error messages about SQL execeptions. (see enclosed error
messages)
 
Do I need to prepare more actions?
Or is something else going wrong?

We're still having troubles running with Tomcat 5.5.
There is an open JIRA issue
I hope to find an hour this week to look into it
(thats a lot more difficult than it sounds 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: [J1] Jetspeed 1.6 MySQL PSML problem

2005-02-15 Thread David Sean Taylor
Daniel Brose wrote:
Hi all,
I already use MySQL (version 3) for security like users and stuff, now I
want to use it for the PSML registry. I followed the steps in
http://portals.apache.org/jetspeed-1/psml_db.html. It worked for me up to
the maven import. Maven tells me that the build was successful but that 0
profiles were exported?!
Running Jetspeed and pointing with the browser to it leads to the following
error, which is quite logic as my PSML registry does not yet reside in my
database: Error retrieving Portal Page: Profile not found.
Any help would be appreciated!
Actually I just tested MySQL, Oracle and PSML registry importing for 
someone last week. It seemed to work fine.

Could you send the relevant properties from your 
JetspeedResources.properties. Also, for Jetspeed-1, to switch databases 
you have to change the Torque properties and rebuild. Did you do that?

Finally, check the log files from the import.
Send any relevant stack traces to this list
--
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: Menu Navigation Tree

2005-02-15 Thread David Sean Taylor
Shah Amit wrote:
Hi,
I understand the navigation structure of jetspeed a little bit. I am 
reading the ProfiledPageContext interface and trying to figure out how I 
can display a menu tree. The examples do show how child folders and 
links will be displayed. But how can I display the parent tree? Also 
where exactly on the parent menu tree am I currently ... That is my 
confusion. I posted the question before but seems like somehow it didn't 
make to the mailing list so I am posting this again.

The interface
http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfiledPageContext.java?rev=1.3view=log
provides you with the ability to traverse over the folder and page tree.
Take a look at some of the page decorators examples such as tigris.
Where the profiled page context is set to the $site variable:
#set($site =
   $request.getAttribute(org.apache.jetspeed.profiledPageContext))
and then passed in to macros
of interest, see
#macro (includeNestedLinksWithIconNavigation $_nodeSet $_nodePrefix 
$_orientation)


--
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: non-scrollable IFramePortlet

2005-02-13 Thread David Sean Taylor
Marina wrote:
Hello!
I tried using IFramePortlet to display a content from
another URL inside it, and I noticed that the content
of the IFramePortlet window is not scrollable. 

Any idea how I could make it scrollable?
Try adding this Preference to your portlet.xml and redeploy:
preference
nameSCROLLING/name
valueTRUE/value
/preference
--
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: Access your own psml file

2005-02-09 Thread David Sean Taylor
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense 
that to deploy this this applicaiton, I should just throw it under 
jetspeed/web-inf/deploy, and should be able to access my webapplication 
from the browser.

Till now I used to edit the default-page.psml in 
jetspeed/web-inf/pages directory and enter my portlet in there.

But suppose I want to have my own psml file. (I guess I should put it 
under my-webapp/web-inf/pages/myPage.psml ??) Now even if I do this, 
how should I access this page from the browser ? 
http://localhost:8080/jetspeed/myapp/myPage.psml ??

http://localhost:8080/jetspeed/portal/myapp/myPage.psml
Also look at the _user directory, as it holds folders and pages specific 
to a user.


Also regarding decorators. I have read all the documentation on the 
website and I understand how it should be done. But again similar 
question. I should be able to put my decorators under 
my-webapp/web-inf/decorations etc. ??

Decorations can be packaged into a jar and dropped in the WEB-INF/deploy 
directory

My only concern is that I dont want to change anything in jetspeed. This 
way I can easily keep updating jetspeed with new releases. Otherwise I 
would have to put my changes in jetspeed everytime I upgrade my jetspeed.

I do exactly that on my projects here.
For development, I have maven goals to drop in decorators, PSML and 
portlet apps

With PSML, I have one PSML directory per project (I don't use the demo 
PSML directory from the Jetspeed cvs)

Please help/advise/comment 
Thanks,
Amit

-
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: Read a psml file

2005-02-09 Thread David Sean Taylor
zaza wrote:
David Sean Taylor wrote:
angeloimm wrote:
Hi all; if i know the psml name... how could i have a parameter in 
this psml file?

Hi,
What about J2? Can you configure fragments responsible for portlets in 
similar way? Can you add a paramater tag to the psml file? And finally 
can you access those parameters programatically later?

Jetspeed-2 is different. We make a clean separation of layout (PSML) and 
preferences (J1 parameters). Preferences are stored in a database and 
are accessible from your portlet with the Portlet API. Default 
preferences are specified in the portlet.xml descriptor

--
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: how to deploy JSR-168 portlets with fusion

2005-02-09 Thread David Sean Taylor
Fabrice Dewasmes wrote:
Fabrice Dewasmes a écrit :
David Sean Taylor a écrit :
Fabrice Dewasmes wrote:
Hi,
I've built and installed fusion following instructions on the wiki 
(http://wiki.apache.org/portals/Jetspeed2/Fusion) and using latest 
from CVS. It seems to work fine but when I drop a war or exploded 
webapp into WEB-INF/deploy directory, I don't see anything happening 
in the logs and the portlet does not appear in portlet list when I 
want to add a portlet to a page. The JSR 168 portlets I tried to 
deploy were struts-demo and RSS demo taken from js2.

Is there something special to do to deploy the portlets ?
Check your log files.
There must be something going wrong .
Did you run this target in a different shell to start the J2 database?:
maven db.fusion.start

David,
thanks for your kind reply. the database is started using the 
db.fusion.start goal in fusion subdirectory. Tomcat logs at startup 
seems OK :

Starting Up Fusion Service
APP ROOT = /usr/java/jakarta-tomcat-5.0.28/webapps/jetspeed/
PROP FILE = 
/usr/java/jakarta-tomcat-5.0.28/webapps/jetspeed/WEB-INF/conf/fusion.properties 

JNDI System Property flag null
INFO: Using PDEF NAME portlet_definition
INFO: Using PAPP NAME portlet_application
INFO: Deployment server port: 8080
INFO: Deployment server: localhost
INFO: Starting auto deployment service: 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager
INFO: Deployment scanning delay: 1
INFO: Deployment staging directory: 
/usr/java/jakarta-tomcat-5.0.28/webapps/jetspeed/WEB-INF/deploy
INFO: Deployment scanner successfuly started!
Fusion Service: Initialization Done

however when I put struts-demo.war in WEB-INF/deploy nothing happens 
either in the logs and in portlet listing.

What could be the error ? 

OK I found the problem :
first : it seems that even if you set in ~/build.properties the 
following line

org.apache.jetspeed.catalina.version.major=5
it is not used correctly to generate fusion.properties file located in 
WEB-INF/conf of jetspeed. So i've correctly put the property directly in 
fusion.properties.

Sounds like Fusion is out of sync with the Jetspeed properties for 
Tomcat 5. I 'll try to get that fixed.
I also came across that when retesting Fusion yesterday against Tomcat 5

second : the JSR 168 apps must be deployed not as a war file but must be 
exploded. Then everything works fine !

Hmm, that shouldn't be necessary.
--
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: Read a psml file

2005-02-08 Thread David Sean Taylor
angeloimm wrote:
Hi all; if i know the psml name... how could i have a parameter in this psml file?
Not sure if I understand the question, but I'll try.
To change the parameters on a portlet instance, you can edit the psml 
file  by hand, for example the StockQuote portlet, override the default 
init parameters on a portlet instance:

entry id=P-f570871a5a-10008 parent=StockQuote
layout position=-1 size=-1
property name=column value=0/
property name=row value=1/
/layout
parameter name=symbols value=MSFT,IBM,ORCL,SUNW,ITGW/
/entry
or change them from the running portlet. For example the StockQuote 
portlet provides an edit mode to edit the parameters

For example let's suppose i have in the file a.psml a parameter called 
text. well in a portlet called b how can i have this parameter?
Thanks
Programatically a Jetspeed-1 portlet can access its PSML parameters by 
via the portlet instance

http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/PortletInstance.html
The are a few variations on this, see the example portlets that come 
with the distribution

--
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: how to deploy JSR-168 portlets with fusion

2005-02-08 Thread David Sean Taylor
Fabrice Dewasmes wrote:
Hi,
I've built and installed fusion following instructions on the wiki 
(http://wiki.apache.org/portals/Jetspeed2/Fusion) and using latest from 
CVS. It seems to work fine but when I drop a war or exploded webapp into 
WEB-INF/deploy directory, I don't see anything happening in the logs and 
the portlet does not appear in portlet list when I want to add a portlet 
to a page. The JSR 168 portlets I tried to deploy were struts-demo and 
RSS demo taken from js2.

Is there something special to do to deploy the portlets ?
Check your log files.
There must be something going wrong .
Did you run this target in a different shell to start the J2 database?:
maven db.fusion.start
--
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: Database Related Question

2005-02-02 Thread David Sean Taylor
Shah Amit wrote:
Hi David,
Please pardon my stupid questions. I am pretty new with JAAS so ...
By what you suggested, you mean to say that I should have my own 
implementation for almost all the interfaces in 
org.apache.jetspeed.security.spi .. ?? and then change the 
jetspeed-spring.xml file to point to my own interfaces ...
Only implement what you need.
Would that mean I would be changing the source of jetspeed and building 
again ?? If not, how can I get the classfiles that I woudl write on 
jetspeed's classpath 

No.
1. create a maven project
2. add these deps to your project.xml:
  dependencies
 dependency
  idjetspeed2:jetspeed-api/id
  version2.0-M2-dev/version
  properties
war.bundlefalse/war.bundle
  /properties
/dependency
dependency
  idjetspeed-security/id
  groupIdjetspeed2/groupId
  version2.0-M2-dev/version
  properties
war.bundlefalse/war.bundle
  /properties
/dependency
  /dependencies
3. build a jar containing your classes
maven jar
4. make a maven goal to install your jar and spring config into J2, 
something like

  goal name=AmitsGoal
copy file=./src/webapp/WEB-INF/assembly/jetspeed-spring.xml
  todir=${TOMCAT_HOME}/webapps/jetspeed/WEB-INF/assembly/
copy file=./target/amit-security-1.0.jar
  todir=${TOMCAT_HOME}/webapps/jetspeed/WEB-INF/lib/
  /goal

--
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: Database Related Question

2005-02-02 Thread David Sean Taylor
mike long wrote:
I think David is saying that you should create implementations of the 
interfaces he references below. I am doing that to allow Jetspeed-2 to 
use an LDAP directory server instead of a relational database. My 
strategy has been to check out the Jetspeed-2 code from CVS and then 
write my own implementations of these classes and wire them in using the 
jetspeed-spring.xml, security.xml, and a couple other configuration 
files. A really good set of unit tests exists for the security 
components already that will tell you if your implementation of those 
interfaces is correct.   You will have good assurance that your 
implementation is correct when all the component/security tests work.  
The tests should run out of the box hooked up to your custom 
implementations.

Your work will be easier than mine since you are only mapping the 
Jetspeed-2 security tables to your own.   Since LDAP is not generally a 
transactional resource like a relational database, I am having 
difficulty because the existing suite of security tests is hardwired to 
use SQL persistence.  That said, the work for you is still considerable. 
I would suggest reading up on Maven, all the tutorials on JAAS, and then 
the Spring reference manual.  The later will show you how to wire the 
application together using your own security implementations.
I setup a new set of a maven project and basic skeletons for the 
services like this in a few minutes (but yes, I ve done it before).

Integration with the unit tests will take more time and thought.
But yes, if you are new to Spring and Maven and J2, its going to take 
more time. The lack of docs doesn't help:

http://portals.apache.org/jetspeed-2/spi.html
I still need to review your LDAP code. Sorry I haven't got to that yet.
--
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: users/roles/groups creation and saving

2005-02-01 Thread David Sean Taylor
Marina wrote:
Hi!
 I'm trying to find an easy way to add new
users/roles/groups to J2 permanently (using HSQL DB
for now). By that I mean that I want to persist newly
created objects in the DB between upgrades of J2.
Currently, when you update and rebuild J2 from CVs,
for example, you have to run the 'maven quickStart'
goal, otherwise none of the web applications
(/jetspeed, etc.) get deployed into the Tomcat.
Unfortunately, this goal also wipes out your DB clean
and you have to re-create all your custom
users/groups/roles...
After going through this (painful, if you have many
users) exercise a few times, I decided to write my own
version of the populate-default-db.sql - kind of
script.
Ive been using the target maven nodbMinDeploy from /portal to deploy the 
basic Jetspeed portal and security portlet app without demo apps. Note 
that this goal does not populate the database.
After running nodbMinDeploy, I run my own database scripts to populate 
the database, run maven goals to customize J2 to my components, and then 
deploy my portlet app(s).

I think I attached those scripts to another email on this list a few 
days ago. Thus I have a complete custom script for DDL and default data.


The problem is that I'm not sure what are dependences
between all tables and it was not that easy to find
what tables changed after you add, say, a new user
since you don't really know which tables you should be
monitoring.
Because of that, I have a few questions:
1. could somebody complete my list of tables that have
to be modified when use create custom users and roles
and want to tie them together?
  So far I have:
  to create a new role:
  PREFS_NODE 
  SECURITY_PRINCIPAL 

  to create a new user and assign the new role to it:
  SECURITY_PRINCIPAL 
  PRINCIPAL_ROLE_ASSOC
  SECURITY_USER_ROLE
  SECURITY_USER_GROUP

  This actually does not work - I guess I missed a few
tables...
Yes its not enough, see the email or I can post them again.
2. Is there a way to save a 'snapshot' of a working DB
with all new objects and use that in a new J2
installation?
Sure, thats dependent on your database.
For HSQL, simply save the script
3. if all else fails, where is the actual data for the
HSQL DB stored? Maybe I could use some kind of 'diff'
on it after I add a new user ...
:-)
After seeing the file you will probably never use HSQL again.
I never use HSQL, not even for development.
Last time I checked it went here:
src/database/hsql/Test.script
src/database/hsql/Production.script

Thank you!
Marina
		
__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

-
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: Database Related Question

2005-02-01 Thread David Sean Taylor
Shah Amit wrote:
Thanks for the reply.
Now I already have an existing schema where I have a users table with 
some users and I check logins against that table in my existing schema.

In that case, how should I configure my authentication mechanism ? 
Should I translate my current user and related tables to Jetspeed2 
Security schema ?? Like, I just want to know what would be a good 
design ?? My feeling is I should translate my user and related tables to 
the jetspeed security model, but would like to get some feedback ...

I don't think that is necessary, although you could do that if its 
close. Or perhaps a view that combines the two...

A better solutoin may be to provide your own security handlers in the 
spring configuration. For ex, for credentials, user security, and roles, 
assemble your components something like:

  !-- Security SPI: CredentialHandler --
  bean id=org.apache.jetspeed.security.spi.CredentialHandler 
class=com.amit.portal.security.spi.impl.AmitCredentialHandler
  
  /bean

  !-- Security SPI: UserSecurityHandler --
  bean id=org.apache.jetspeed.security.spi.UserSecurityHandlerImpl 
  class=com.amit.portal.security.spi.impl.AmitUserSecurityHandler
  
   constructor-arg ref 
bean=org.apache.jetspeed.security.spi.SecurityAccess//constructor-arg 

  /bean
  !-- Security SPI: RoleSecurityHandler --
  bean id=org.apache.jetspeed.security.spi.RoleSecurityHandler
   class=com.amit.portal.security.spi.impl.AmitRoleSecurityHandler
  
   constructor-arg ref 
bean=org.apache.jetspeed.security.spi.SecurityAccess//constructor-arg
  /bean


Thanks for your helps ...
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Mon, 31 Jan 2005 12:17:16 -0800
Shah Amit wrote:
I have an existing database, and a website built on it. We are in a 
process of portalizing the website with Jetspeed2.

Now I downloaded jetspeed2 and the DB that it creates has quite a lot 
of tables (atleast 30 - 40). Out of all of these tables, I do 
understand that security_XXX tables would probably be used by the JAAS 
Security module of jetspeed. But apart from those, which are the 
tables that I would have to preserve on my production database for 
jetspeed to work ??

Like, I know that there are lot of sample applications shipped with 
Jetspeed2, and lot of those applications might need their own tables. 
But if I were to remove all the sample applications shipped with J2, 
and only have the minimal skeleton of J2, what are the tables that I 
need to preserve ??

Ive gone thru something similar here.
Minimized, its not that much smaller (see below)
summary:
phase 1 schema: need this for the capability map component which only 
runs against a relational database store

phase 2 schema: need the profiler schema
phase3 ojb: ojb internals
prefs schema: to handle preferences - required for proper operation 
using prefs

registry schema: all Portlet app and portlet info from portlet.xml 
stored here

security-schema: you could minimize this by removing SSO tables
or providing your own security components

# ---
# MEDIA_TYPE
# ---
drop table if exists MEDIA_TYPE;
CREATE TABLE MEDIA_TYPE
(
MEDIATYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
CHARACTER_SET VARCHAR (40),
TITLE VARCHAR (80),
DESCRIPTION MEDIUMTEXT,
PRIMARY KEY(MEDIATYPE_ID)
);
# ---
# CLIENT
# ---
drop table if exists CLIENT;
CREATE TABLE CLIENT
(
CLIENT_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
USER_AGENT_PATTERN VARCHAR (128),
MANUFACTURER VARCHAR (80),
MODEL VARCHAR (80),
VERSION VARCHAR (40),
PREFERRED_MIMETYPE_ID INTEGER NOT NULL,
PRIMARY KEY(CLIENT_ID)
);
# ---
# MIMETYPE
# ---
drop table if exists MIMETYPE;
CREATE TABLE MIMETYPE
(
MIMETYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
PRIMARY KEY(MIMETYPE_ID)
);
# ---
# CAPABILITY
# ---
drop table if exists CAPABILITY;
CREATE TABLE CAPABILITY
(
CAPABILITY_ID INTEGER NOT NULL,
CAPABILITY VARCHAR (80) NOT NULL,
PRIMARY KEY

Re: Nested portlet?

2005-02-01 Thread David Sean Taylor
Nan Anonymous wrote:
You can setup a portlet pipeline and retrieve only the content for one
portlet within another portlet. This is what we do in Jetspeed 1.6
fusion to support jsr 168 portlets

Thanks. Can you point me to the document about this portlet pipeline?
I suppose there can be an API (as Java class/method or JSP tag) to
include another portlet. Something like this can be put in the view
rendering JSP of one portlet:
...
portlet:include portlet-name=StockPorfolio!-- include another portlet--
  param name=symbols^DJIX ^IXIA .../
  ...
portlet:include/
Is there anything like that already? Is it doable?
Get a dispatcher for:
 String dispatchURL = 
/jetspeed/portal?pipeline=portlet-pipelineentity= + entityId;

alternatively you may find it useful to include in by psml
page id=chooser-users hidden='true'
  defaults
 layout-decorator=simple
 portlet-decorator=clear
  /
  titleUser Chooser/title
  fragment id=chooser-users type=layout 
name=jetspeed::VelocityOneColumnNoActions

and then linking to that page
Of course these are non-portable solutions
--
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 Warning: HttpServletRequest.getContextPath() now returns the contextPath of the Portlet, not the Portal

2005-01-31 Thread David Sean Taylor
Ate Douma wrote:

No, to /jetspeed/login/proxy.
I can't reproduce your error. Please check that you indeed have updated
the change-password.jsp and login.jsp from the security application.
In these the required url is now generated with an explicit reference
to the portal (jetspeed) context using the following construction:
(Not sure why I sent this to user list)
Seems my Tomcat instance had some leftover artifacts (war files) from my 
 testing with Randy's deployment. I removed them at it cleared up

--
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: Nested portlet?

2005-01-31 Thread David Sean Taylor
Nan Anonymous wrote:
Hmm.. forgot this forum is for both.
I would be more interesting on JS2 as I want to do this in as much
conformance to JSR168 as possible. Of course, a comparison of
different approaches for different portal servers would also be very
educational.
Thanks
You can setup a portlet pipeline and retrieve only the content for one 
portlet within another portlet. This is what we do in Jetspeed 1.6 
fusion to support jsr 168 portlets

Another quick solution is to include the content of another portlet 
using the IFramePortlet and a portlet on a single psml page with a clear 
decorator:

preference
nameSRC/name

value/jetspeed/portal/frames/dtb-frame.psml/value
/preference
--
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: jetspeed2 and simple webapps

2005-01-31 Thread David Sean Taylor
Carlos Ortiz wrote:
 

Maybe a stupid question, but what Jetspeed2 Bridge would I use if I just
wanted to call a non-jsf, non-struts, webapp from a jetspeed2 portlet
without having to add portlet code?  Just a plain old servlet.
 

Is this possible?
Of course. Just use the GenericServletPortlet for servlets and JSPs
See examples under the demo portlet app
--
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: Database Related Question

2005-01-31 Thread David Sean Taylor
,
IS_ENCODED BIT NOT NULL,
IS_ENABLED BIT NOT NULL,
AUTH_FAILURES SMALLINT NOT NULL,
IS_EXPIRED BIT NOT NULL,
CREATION_DATE TIMESTAMP NOT NULL,
MODIFIED_DATE TIMESTAMP NOT NULL,
PREV_AUTH_DATE TIMESTAMP,
LAST_AUTH_DATE TIMESTAMP,
EXPIRATION_DATE DATETIME,
PRIMARY KEY(CREDENTIAL_ID),
FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
);
# ---
# SSO_SITE
# ---
drop table if exists SSO_SITE;
CREATE TABLE SSO_SITE
(
SITE_ID INTEGER NOT NULL,
NAME VARCHAR (254) NOT NULL,
URL VARCHAR (254) NOT NULL,
ALLOW_USER_SET BIT default 0,
REQUIRES_CERTIFICATE BIT default 0,
PRIMARY KEY(SITE_ID),
UNIQUE (URL)
);
# ---
# SSO_SITE_TO_PRINCIPALS
# ---
drop table if exists SSO_SITE_TO_PRINCIPALS;
CREATE TABLE SSO_SITE_TO_PRINCIPALS
(
SITE_ID INTEGER NOT NULL,
PRINCIPAL_ID INTEGER NOT NULL,
PRIMARY KEY(SITE_ID,PRINCIPAL_ID),
FOREIGN KEY (SITE_ID) REFERENCES SSO_SITE (SITE_ID)
ON DELETE CASCADE
  ,
FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
);
# ---
# SSO_PRINCIPAL_TO_REMOTE
# ---
drop table if exists SSO_PRINCIPAL_TO_REMOTE;
CREATE TABLE SSO_PRINCIPAL_TO_REMOTE
(
		PRINCIPAL_ID INTEGER NOT NULL,
		REMOTE_PRINCIPAL_ID INTEGER NOT NULL,
PRIMARY KEY(PRINCIPAL_ID,REMOTE_PRINCIPAL_ID),
FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
  ,
FOREIGN KEY (REMOTE_PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL 
(PRINCIPAL_ID)
ON DELETE CASCADE

);
# ---
# SSO_SITE_TO_REMOTE
# ---
drop table if exists SSO_SITE_TO_REMOTE;
CREATE TABLE SSO_SITE_TO_REMOTE
(
SITE_ID INTEGER NOT NULL,
PRINCIPAL_ID INTEGER NOT NULL,
PRIMARY KEY(SITE_ID,PRINCIPAL_ID),
FOREIGN KEY (SITE_ID) REFERENCES SSO_SITE (SITE_ID)
ON DELETE CASCADE
  ,
FOREIGN KEY (PRINCIPAL_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
);
# ---
# SECURITY_USER_ROLE
# ---
drop table if exists SECURITY_USER_ROLE;
CREATE TABLE SECURITY_USER_ROLE
(
USER_ID INTEGER NOT NULL,
ROLE_ID INTEGER NOT NULL,
PRIMARY KEY(USER_ID,ROLE_ID),
FOREIGN KEY (ROLE_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
  ,
FOREIGN KEY (USER_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
);
# ---
# SECURITY_USER_GROUP
# ---
drop table if exists SECURITY_USER_GROUP;
CREATE TABLE SECURITY_USER_GROUP
(
USER_ID INTEGER NOT NULL,
GROUP_ID INTEGER NOT NULL,
PRIMARY KEY(USER_ID,GROUP_ID),
FOREIGN KEY (GROUP_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
  ,
FOREIGN KEY (USER_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
);
# ---
# SECURITY_GROUP_ROLE
# ---
drop table if exists SECURITY_GROUP_ROLE;
CREATE TABLE SECURITY_GROUP_ROLE
(
GROUP_ID INTEGER NOT NULL,
ROLE_ID INTEGER NOT NULL,
PRIMARY KEY(GROUP_ID,ROLE_ID),
FOREIGN KEY (GROUP_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
  ,
FOREIGN KEY (ROLE_ID) REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
ON DELETE CASCADE
);



























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

Re: Jetspeed 2 - PSML fragment ids

2005-01-29 Thread David Sean Taylor
[EMAIL PROTECTED] wrote:
Chris,
This is a known issue with J2... they are cached in the DB. I do not
remember which table, so you'll have to do some digging in your DB... it
is obvious when you see the table names. IIRC, it is ok to clean out the
table between J2 launches, but YMMV.
See the PORTLET_ENTITY table
Its a very simple mapping:
entity id - APP_NAME + PORTLET_NAME
Yes, the entities can be cleaned out and they will be recreated
Perhaps we need to log the below situation as a bug.
If we were to catch the exception, delete the old entry in the portlet 
entity table, and recreate the entity from the fragment definition, it 
would fix this bug.

Patches welcome :)
Randy

If I change the portlet name of a fragment in a PSML file, the change
doesn't get picked up, even if I restart Tomcat/Jetspeed. The only way I
seem to get the change recognized is by using a new fragment id. Are the
fragment ids cached somewhere? How can I recycle them?
Chris

-
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: JSF as portlet

2005-01-29 Thread David Sean Taylor
[EMAIL PROTECTED] wrote:
Hi,
I included the portal bridge:
portals-bridges-myfaces-0.1.jar to migrate my JSF
application as portlet.
However I get the following error which I can't figure
out because I have configured my pages as shown below
in the portlet.xmlany help would be appreciated:
This looks fine to me. For some reason its not finding the init param
Im really not sure why that is
Do you see any other exceptions logged?
 init-param
 nameViewPage/name
 value/pages/tree.jsp/value
 /init-param

ERROR:

Portlet is Not Available: ListView
Reason: PortletFactory: Failed to load portlet
org.apache.portals.bridges.myfaces.FacesPortlet:javax.portlet.PortletException: 
Portlet ListView is
incorrectly configured. No pages are defined.
portlet.xml:

--
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: Migrating to MySQL without rebuild

2005-01-29 Thread David Sean Taylor
Stefano Bianchi wrote:
Dear ALL,
is there a way to migrate to MySql for J1.5 without rebuilding with Maven?
Just .properties configurations and MySQL scripts?
Never used Maven before...
Would be nice.
Thats my biggest complaint about the 1.x codebase:
You have to rebuild to switch databases
I have a plan for fixing that but no time to write it
I guess someone with Maven could build it for you ...
Or you could just try to learn Maven, if you have 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: Nested portlet?

2005-01-29 Thread David Sean Taylor
Please let us know, is this question for Jetspeed-1 or Jetspeed-2...
Nan Anonymous wrote:
Hi,
I need to be able to nest one portlet in another portlet's MAX view. I
want to see if you have done this before or have some ideas to share
with.
Supposedly, I have a Stock Porfolio portlet. In normal view, this just
show my list of stock symbols and prices. Now when I maximize it, in
addition to the more detailed listing one would expect, I should also
see the following:
1. A portlet displaying in NORMAL view the major market indices. In
fact, this portlet is the same as the containng portlet -- the Stock
Porfolio portlet!
2. A business news portlet listing some latest headline
3. Further, it might be interested if one could change the layout of
this portlet view.
What would be the sound approaches to handle this portlet and its
nested children?
Thanks
-
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: Jetspeed-2 Clustering

2005-01-29 Thread David Sean Taylor
Andre Bonhote wrote:
Hi!
It's my first post, and I am completely new to Jetspeed, so bear with me
please.
The idea is to deploy a portal on n machines, where n is 4 at the
moment. We would like to have some pretty load balancers in front of
them, the boxes are located in two countries. As this is usual for good
portals, the user/customer should not care about where he is.
The jetspeed-2 installation will access an oracle 10 database. Now
there's my question: Since it doesn't make sense (IMHO) to put the
oracle beast on all the 4 machines, is it possible to have all 4
jetspeed installations access the same database? Or even, the same
tablespace? Or do I have to create users for each server?
I have clustered Jetspeed 1.6-dev and 1.5 in several installations.
Jetspeed-2 is not quite cluster ready, but I think it was designed much 
better than Jetspeed-1 for clustering. Many of the components already 
persist their state in a database, so therer is not a lot of need for 
tweaking the implementations like we had to do in 1.6.

The plan is to work on clustering for the final release.
Current problems I see with Jetspeed-2 and clustering:
* PSML stored on the file system
* lots of use of the session
* cache synchronization on a number of components
Is there a clustering guide somewhere? I am quite stuck at the moment,
to be honest.
Thanks for your kind help in advance
Cheers
André


--
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 Warning: HttpServletRequest.getContextPath() now returns the contextPath of the Portlet, not the Portal

2005-01-29 Thread David Sean Taylor
Ate Douma wrote:
I've just fixed issue: http://issues.apache.org/jira/browse/JS2-203
Please read it if you are currently are (mis)using the
Portal contextPath from within a Servlet/JSP/Velocity dispatched by a 
Portlet.

Regards, Ate
after a cvs update, when I login Im now getting
--
HTTP Status 404 - /security/login/proxy
type Status report
message /security/login/proxy
description The requested resource (/security/login/proxy) is not available.
Apache Tomcat/5.0.30
--
Shouldn't we now be logging on to /login/proxy ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: portlet property

2005-01-19 Thread David Sean Taylor
Marek Nowak wrote:
Hello
I want to write a portlet for Jetspeed2. This portlet should display a given 
html page. Let's call this portlet HtmlPortlet. I want to put 4 portlets on my 
page, each of them should display a given page.

++
|  | |
|  | |
|  HtmlPortlet | HtmlPortlet |
|  | |
|displays a.html   |   displays b.html   |
|  | |
|  | |
++
|  | |
|  | |
|  HtmlPortlet | HtmlPortlet |
|  | |
|displays c.html   |   displays d.html   |
|  | |
|  | |
++

Does anybody know how to set an myUrl property of these portlets? Is it possible? I 
know that properties of portlets are stored in database, but I would like to set the property 
myUrl in a file. If it is impossible, maybe you know how to make my application to set 
this property in database for each portlet.
Regards
Marek
Think you mean preferences.
The storage method of preferences is up to the portal impl.
You shouldn't really be concerned with the details of how the portal 
stores preferences...

Are you looking for an external link or a local file? We already have a 
web content portlet for external links in Jetspeed-2.

For a local html file, I just took 5 minutes and wrote this portlet for you.
I guess I should commit it to Gems if Ken doesnt already have something 
like this.
---

package com.which.idtb.portlets;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.portlet.PortletConfig;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.PortletPreferences;
import org.apache.portals.bridges.common.GenericServletPortlet;
/*
 * Copyright 2000-2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * FilePortlet
 *
 * @author a href=mailto:[EMAIL PROTECTED]David Sean Taylor/a
 * @version $Id: $
 */
public class FilePortlet extends GenericServletPortlet
{
public void doView(RenderRequest request, RenderResponse response) 
throws PortletException, IOException
{
response.setContentType(text/html);
PortletPreferences prefs = request.getPreferences();
String fileName = prefs.getValue(file, null);
if (fileName != null)
{
InputStream is = 
this.getPortletContext().getResourceAsStream(fileName);
drain(is, response.getPortletOutputStream());
is.close();
}
else
{
response.getWriter().println(Could not find file 
preference );
}
}

static final int BLOCK_SIZE=4096;
public static void drain(InputStream r,OutputStream w) throws 
IOException
{
byte[] bytes=new byte[BLOCK_SIZE];
try
{
  int length=r.read(bytes);
  while(length!=-1)
  {
  if(length!=0)
  {
  w.write(bytes,0,length);
  }
  length=r.read(bytes);
  }
  }
  finally
  {
bytes=null;
  }

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


Re: portlet property

2005-01-19 Thread David Sean Taylor
Ken Ramirez wrote:
I don't have one like that yet, and I was planning on writing one. This 
is perfect. I'll put it into Gems.


Great!
In my opinion, what makes this portlet cooler than using an init-param 
is that the name of the file can be changed after the portlet is 
deployed without having to redeploy any part of the portlet. Would you 
agree with this?

Yes.
Init Params are across all users.
Using a pref is better here so that we can use the same portlet for 
different users.

--
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: login portlet and tomcat-users.xml

2005-01-18 Thread David Sean Taylor
Xavier Lawrence wrote:
Hi,
How could I configure Jetspeed-2 so the login portlet can use login
details given in tomcat-users.xml ???
Thanks in advance for any help.
Regards
Xavier
see login.conf under the security component:
Jetspeed {
   org.apache.jetspeed.security.impl.DefaultLoginModule required 
debug=true;
};

and org.apache.jetspeed.security.impl.AuthenticationProviderImpl,
which ultimately does:
System.setProperty(java.security.auth.login.config,loginConfigUrl.toString());
to set the Java Security login module.
To make use of Tomcat's login module, I wanted to suggest simply 
removing the authentication provider from the Spring configuration and 
letting Tomcat handle login via the login portlet calling Tomcat's login 
module (you would need to configure that in Tomcat).

However Im seeing some couplings between the SecurityProvider, 
GroupManager, RoleManager, and UserManager and the authentication 
provider. Thus I recommend writing a new Authentication Provider that 
does not override the login module but simply aggregates the needed 
handlers.

Im also looking into enhancing the authentication provider this week.
See issue http://issues.apache.org/jira/browse/JS2-173
I still haven't come up with a good solution for that one, but I will be 
working in this area,

(note this is probably better discussed on jetspeed-dev)
--
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 status

2005-01-18 Thread David Sean Taylor
Han, Richard wrote:
Hi everyone,
I'm new on this list. I'm doing an evaluation of java portals. Could someone
give me some ideas of how mature jetspeed is? Is jeetspeed  good at
integrating web applications? 
There are two code bases for Jetspeed:
* Jetspeed-1
* Jetspeed-2
Jetspeed-1 has been around for a while several years and the 1.6 code 
base is stable.

Jetspeed-2 is new and less stable, but IMO has great support for webapp 
integration. We now have portals bridges for JSF, Struts, Velocity, PHP 
and Perl. The Struts bridge is maturing nicely and requires little to no 
modification to your Struts web app.


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

2005-01-18 Thread David Sean Taylor
Shah Amit wrote:
Hi All,
I am trying to use JAAS provided by J2. Is there any documentation on 
how to use that ? I tried reading all the test examples they have and 
read all the code for security.

Ive started documenting it. SLOW process, but you can watch the snail 
pace here:

http://portals.apache.org/jetspeed-2/security-overview.html
I know its just an empty shell but its a start.
As they say, better than nothing. Well maybe...
here is my problem, when I follow JAAS client-side specification and try 
to use J2's JAAS. I get NULLPointer exception. this is because i dont 
instantiate userManager. Do i need to initialize this ? Is any one has 
example how to authenticate username and password with J2 JAAS.

We just have the one example, the default implementation which does use 
a Java security login module.

--
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: Single Sign-On in Jetspeed2

2005-01-18 Thread David Sean Taylor
Daniela Innerwinkler wrote:
hi list!
is there any documentation how single sign-on is implemented in jetspeed?
See here:
http://portals.apache.org/jetspeed-2/sso.html
Hope to have more by the end of the week :)
if not, could anyone please give me a short overview about the functionality?
Just login as admin/admin, go to the Jetspeed Administrative Portlets 
folder, SSO Management and try it out.

Also try out My Second Page and there are 2 portlets there SSO enabled.
--
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: Documentation

2005-01-18 Thread David Sean Taylor
Adrian Nadeau wrote:
Hello,
We have just currently installed Jetspeed 2 on Tomcat 5.0.30.  We are
wondering if there are any documentation or resources out there to help us
get started on development of JSR 168 Compliant Portlets and deploying them
to Jetspeed 2?  We have added a few test Portlets fine but we would like to
better understand how Tomcat 5 actually deploys the war files and how we can
update Portlets within our testing environment without re-exporting them as
a new .war file every time we make a change.  Any information would be
great, thank you in advance.
Regards,
Adrian Nadeau
VP, Development
Evolving Solutions...Technology for changing
[EMAIL PROTECTED]
www.evolvingsolutions.ca
506.633.2012
Well I've been on a little vacation from the jetspeed user mailing list. 
I've come back to see what I find to be an overwhelming theme. People 
are saying (and I paraphrase) Jetspeed-2 looks cool man, but where the 
hell are the docs dude!

The answer is, not much there. But we're working on it.
I see Ate wrote a nice document on User Attributes:
http://portals.apache.org/jetspeed-2/user-attributes.html
We still have a long way to go with docs
To answer your questions:
I think you can look at the existing portlet applications under 
/applications for examples of how to write JSR 168 compliant portlets.
Also see the Gems project over at java.net. We hope to get Gems moved 
into Apache Portals in the near future.

For deployment, currently you have to redeploy the war file to pick up 
new changes to any Java code unless your application server supports 
'hot deploying'. The Tomcat 5 deployment is a little messy right now and 
we are experiencing some race conditions where both Jetspeed and Tomcat 
try to deploy the same portlet application. Randy is working on getting 
that fixed. Also, there is an open issue to pick up changes to the 
portlet.xml and redeploy:

http://issues.apache.org/jira/browse/JS2-190

--
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: Returning binary data through portlet

2005-01-18 Thread David Sean Taylor
Dan Moore wrote:
Hi Alan,
I can't imagine that you can actually do this, because once the portal
begins rendering text (which would happen before your portlet was
rendered), you can't change it to render binary data.
Any chance you can have a link to a servlet with a target of _blank
which pops up in a new window and sends the binary data?  (I outlined
how I did this in a slightly different circumstance here:
http://www.mooreds.com/weblog/archives/18.html)  Or, you could just
link to that JSP.
Dan
--- Alan Chiang [EMAIL PROTECTED] wrote:

Hi all,
 Wondering if anyone knows how to get a portlet to return binary
data, or get Jetspeed to return binary data.  I have a JSP that reads
files for download, coupled with the JSP portlet, but any data
returned seems to be intercepted and interpreted as text and is
dumped
to the portlet window.
Recommend using the portlet pipeline
--
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: JSP decorators in Jetspeed 2?

2005-01-18 Thread David Sean Taylor
Marcel Dullaart wrote:
Hi David,
I am a collegue of Chris, and we have no experience with velocity.
Can you give a simple overview/list of the classes/packages that
implement the velocity templating engine, so we might give it a try to
implement the jsp engine ourselves?
Lets start with overriding a layout.
Layouts are implemented as portlets.
See the layouts-portlets directory, and the base classes for our current 
layouts are:

org.apache.jetspeed.portlets.layout.LayoutPortlet
and
org.apache.jetspeed.portlets.layout.LayoutPortlet.MultiColumnPortlet
Note that LayoutPortlet extends GenericServletPortlet
I think you can start with the same approach.
You will need to create an equivalent of the JetspeedPowerTool with 
perhaps a tag library or request scoped bean.

Im in the process of documenting the JetspeedPowerTool this week.
It would be best if the JSP layouts would make use of the same JPT as 
the velocity layouts.

see the org.apache.jetspeed.velocity package, and specifically:
JetspeedPowerTool
JetspeedVelocityViewServlet
--
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: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread David Sean Taylor
Jonathan Hawkins wrote:
What is the issue with the licences.
see:
http://www.apache.org/licenses/GPL-compatibility.html
Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports 
from Hibernate.

--
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 Jetspeed-2 Junit tests to Run using Maven

2005-01-18 Thread David Sean Taylor
mike long wrote:
Dear Jetspeed-2 users:
How do I run the JUnit tests as a Maven goal? I have run the allTests 
goal and no tests get run.

maven -o -Dmaven.test.skip=false allBuild
or permanently override the property in your $HOME/build.properties
then the -D is not necessary
--
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 Panes in JetSpeed

2005-01-14 Thread David Sean Taylor
Carlos Torres wrote:
Hello people, I need to hide the Pane Tab in jetspeed, for example, I have an application 
with only one pane, Home, and I'd like to hide this pane and let the screen 
clean. Anybody has how to make it?
Thank you very much
regards,
 
   Carlos Torres

Assume you are speaking of Jetspeed-1
Try this:
entry id='327' parent=UserForm
parameter name=_menustate value=closed/
/entry


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


Re: Hide Panes in JetSpeed

2005-01-14 Thread David Sean Taylor
Carlos Torres wrote:
I'm using Jetspeed 1.5 and it didn't work.
I think I didn't explain very well. I'd like to hide only the tab button
not the panel properly.
Yes that is how it works
Look at the Security Admin portlets in the 1.5 distribution for an example
- Original Message - 
From: David Sean Taylor [EMAIL PROTECTED]
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Sent: Friday, January 14, 2005 4:37 PM
Subject: Re: Hide Panes in JetSpeed


Carlos Torres wrote:
Hello people, I need to hide the Pane Tab in jetspeed, for example, I
have an application with only one pane, Home, and I'd like to hide this
pane and let the screen clean. Anybody has how to make it?
Thank you very much
regards,
  Carlos Torres
Assume you are speaking of Jetspeed-1
Try this:
entry id='327' parent=UserForm
parameter name=_menustate value=closed/
/entry


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



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


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


Re: jetspeed 2 on Weblogic 8.1 Sp4

2005-01-13 Thread David Sean Taylor
Jeff Sheets wrote:
My approach when using weblogic was to add the 5 shared jars into the
weblogic classpath in the startweblogic script.  Then in my
applications directory I have jetspeed.war and also myapp.ear.  Inside
myapp.ear is myportletapp.war and myportletapp2.war.  They both show
up find in the portal since the shared jars are in the server
classpath.
I wrote 5 or so posts on my blog about getting jetspeed to work with
weblogic.  It might help you out: 
http://uncommentedbytes.blogspot.com/2004/11/jetspeed-2-on-weblogic-finally.html

Looks great.
Would you consider updating the Jetspeed wiki with that information?
There is already a Weblogic section here:
http://wiki.apache.org/portals/Jetspeed2/Fusion
Its been a while since I ran Fusion and J2 on Weblogic.
The Wiki may be out of date now
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fusion Security

2005-01-13 Thread David Sean Taylor
Jeff Sheets wrote:
I just want to answer my own question, in case anyone needs this info later.
Authentication through JAAS can be accomplished easily in 1.6 by
setting up your TurbineResources.properties to use the
JAASSessionValidator:
action.sessionvalidator=JAASSessionValidator
Then setup your web.xml file (and weblogic.xml file for weblogic) by
uncommented the commented out security lines that are in it.  More
detail is in the source for JAASSessionValidator.
Authorization is proving to be more difficult.  I have a
JAASAccessController written that uses the container roles from
isUserInRole.  However this doesn't work with the SecurityCache, so I
may need to also rewrite the security cache.  The main problem is that
Jetspeed needs to call getRoles in many places, but the container only
lets you call isUserInRole.  This may take a lot of work, but I'll get
it eventually.
The security cache can be turned off, but I would first look into 
overriding the access controller. See the PortalAccessController 
interface here:

http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/services/security/PortalAccessController.html
make your isUserInRole check there. Also see:
http://portals.apache.org/jetspeed-1/security.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fusion Security

2005-01-13 Thread David Sean Taylor
Bharat Nagwani wrote:
Hi,
Is there any security document for jetspeed 2 just like
http://portals.apache.org/jetspeed-1/security.html
The document SecurityDesignNotes.txt in m1 src was quite helpful.
Is this the only doc or is there more?
Also is there doc for admin tabs like portlet app mgr, profiler admin
etc
Im working on a security doc and layout doc
Hope to have it ready next week
--
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.6 release

2005-01-13 Thread David Sean Taylor
Archana Turaga wrote:
Hi,
When is Jetspeed 1.6 scheduled to be released? It was said that it will
be out end of last yearjust wanted to know the status on that. We
have downloaded the latest Jetspeed 1.6 source from cvs and built it and
need it more than anything for the struts portlet functionality that it
offers along with fusion. We would be comfortable if it is slated as
released...it also becomes more easy for our deployment.
 

I would really appreciate the response.
Hopefully later this month.
I tried to create a release in December, allocated one day.
But that whole day was spent resyncing Fusion with M1 of Jetspeed-2.
Fusion didn't even compile!
Right now Im swamped. Hope to get a break later in the month, probably 
on a weekend...

Sorry. Really wish the 1.6 release didn't bottleneck on me
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: j2 in tomcat 5.5

2005-01-11 Thread David Sean Taylor
Palotai Zsolt wrote:
Thanks for the idea, but I tried that and i still have the following 
errors in tomcat stdout.log after it tries to deploy pam.war and rss.war:

I had a few brief minutes to test on Tomcat 5.5
Some portlets work, others don't.
For instance the JSF Demo portlets
VelocityViewServlet : Error processing the template
Invocation of method 'getRenderedContent' in class 
org.apache.jetspeed.om.page.psml.FragmentImpl threw exception class 
java.lang.IllegalStateException : You cannot invoke getRenderedContent() 
until the content has been set.

java.lang.IllegalStateException: You cannot invoke getRenderedContent() 
until the content has been set.

And the Login portlet logs:
 JetspeedRequestDispatcher failed to include servlet resources. 
(details below)
Exception: org.apache.jasper.JasperException
Message: Unable to read TLD META-INF/fmt.tld from JAR file 
file:/C:/bluesunrise/apache/jakarta-tomcat-5.5.4/webapps/security/WEB-INF/lib/standard-1.0.4.jar: 
org.apache.jasper.JasperException: Failed to load or instantiate 
TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlFmtTLV

I'll create a JIRA issue and a WIKI page to start tracking issues with 
Tomcat 5.5. Shouldn't be too long to get it up and running when a 
committer has spare time 

http://issues.apache.org/jira/browse/JS2-187
http://wiki.apache.org/portals/Jetspeed2/Tomcat55HowTo
--
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: How to create a custom profiling rule?

2004-12-31 Thread David Sean Taylor
Marina wrote:
 However, there are a few problems:
1. Empty Additional Links area is shown - even
though there are no *.link files in the
pages/dce-portal/ dir

If there are no links available then the collection should be empty
I think what is happening is that there is a collection on 
$site.rootLinks however the collection is empty

Instead of checking for null
(#if($site.rootLinks)  ). My guess (without
try
(#if($site.rootLinks.isEmpty())
if that works for you please send a patch
2. Empty Top Pages area is shown 
same as above
3. Docsets from the / root directory (*.ds files)
are included
Recommend removing any docsets that you are not using
As part of the build process for the J2 sites I work on, I will either
replace the the psml directory in the spring configuration with a new 
location, or just delete out all the demo psml, ds, etc...

--
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: How to create a custom profiling rule?

2004-12-29 Thread David Sean Taylor
On Dec 29, 2004, at 9:25 AM, Marina wrote:
Randy, thanks a lot for your answer!
Do you know if there are plans to implement role-based
(and group-based) profiling in the future J2 releases?
I would think that role-based profiling is very
critical for real applications.
You can setup the default rule to use a role-based algorithm, or you 
can assigned users to use a specific role algorithm
So its not like there isn't role-based profiling in the system -- its 
pretty well supported, but not in the manner you are suggesting.


With the default global profiling, does it mean that
the profiling rule assigned to '*' users is used
UNLESS a different rule is assigned to specific users?
yes
take a look at the admin profiling portlet, and the user admin portlet
you can configure all profiling  (no need to edit the tables) via the 
admin portlets although I admit its a bit difficult without any 
documentation

Or does  it apply to all users regardless of other
assignments?
Thanks,
Marina
--- Randy Watler [EMAIL PROTECTED] wrote:
Marina,
David is the Profiler Master, so he is much more
qualified to explain its
configuration and inner workings. The source is in
components/profiler.
See comments below...
 It seems that profiling rules are assigned to the
users based on the user names.
Yes.
At least this is what I
see in the PRINCIPAL_RULE_ASSOC table - I created a
new user, 'dce_admin', and assigned a 'security'
profiling rule to it, and the (dce_admin, page,
security) values got inserted into the
PRINCIPAL_RULE_ASSOC table.
Just FYI, the locator/rule name security has
special meaning in J2... you
might want to pick another name for your custom rule
to avoid confusion. The
security locator/rule is used when a user has an
expired password and must
select a new one. See details in the archives of the
dev list.
 Now my question: how could I assign a profiling
rule
to a rolename, not a username?
For example, I might want all users with the
'dce_admin_role'  role to use the 'security' rule.
We have discussed this, but it is not been
implemented yet. There is a
global default mechanism in place: if you specify a
PRINCIPAL_RULE_ASSOC
entry with a username of '*, it will be used for
all users. This feature
may not be implemented in this way in the future,
but there certainly will
be some other way to do the same thing.
Randy


__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
-
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]


  1   2   3   4   5   6   7   8   >