Re: Installation issues

2005-02-20 Thread Edd Dawson
Thanks all for pointing out where to put my build.properties file and
that i should use \\ rather than just \

However i still get the following:

C:\Program Files\Apache Group\jetspeedmaven start.test.server
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

BUILD FAILED
Goal start.test.server does not exist in this project.
Total time: 4 seconds
Finished at: Sun Feb 20 00:45:38 GMT 2005

I don't have a maven.xml file anywhere relating to jetspeed.. I am a
complete novice to Maven here :S

thanks
Edd


On Sat, 19 Feb 2005 19:32:37 -0900, Hema Menon [EMAIL PROTECTED] wrote:
 The build.properties should be present in your user home. On windows,
 it usually is in C:\Documents and Settings\user folder.
 
 The goal start.test.server should be present in your maven.xml file as
 shown below:
 
 goal name=start.test.server
 echo message= /
 echo message=Testing Database /
 echo message= /
  java classname=org.hsqldb.Server fork=yes
   classpath
 path refid=maven.dependency.classpath/
 pathelement path=${maven.build.dest}/
   /classpath
 
 Hema
 
 
 On Sun, 20 Feb 2005 01:22:28 +, Edd Dawson [EMAIL PROTECTED] wrote:
  Hi
 
  I have been trying to follow the getting started instructions at:
 
  http://portals.apache.org/jetspeed-2/getting-started.html
 
  I am trying to install on windows XP
  My Tomcat version is 4.1
  My Java version is 1.4.2_06
  I have ant 1.6.2 installed and Maven 1.0.2 and both are in my PATH
 
  Jetspeed has been unpacked to C:\Program Files\Apache Group\jetspeed\
  maven is installed in C:\Program Files\Apache Software Foundation\Maven 
  1.0.2
 
  What i need to know is where i should create a build.properties file
  as requested in this part of the guide:
 
  Please set these values in your ${USER_HOME}/build.properties file:
 
  I created a build.properties in C:\Program Files\Apache
  Group\jetspeed\ with the values:
 
  org.apache.jetspeed.project.home=C:\Program Files\Apache Group\jetspeed\
  org.apache.jetspeed.server.home=C:\Program Files\Apache Group\Tomcat 4.1\
  org.apache.jetspeed.catalina.version.major=4
  org.apache.jetspeed.server.shared=C:\Program Files\Apache Group\Tomcat
  4.1\shared\lib\
  org.apache.jetspeed.deploy.war.dir=C:\Program Files\Apache
  Group\Tomcat 4.1\webapps\
  org.apache.jetspeed.services.autodeployment.user=admin
  org.apache.jetspeed.services.autodeployment.password=password
 
  yet when i run maven start.test.server as required in step 4 i get the
  following error:
 
  C:\Program Files\Apache Group\jetspeedmaven start.test.server
   __  __
  |  \/  |__ _Apache__ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
  BUILD FAILED
  Goal start.test.server does not exist in this project.
  Total time: 4 seconds
  Finished at: Sun Feb 20 00:45:38 GMT 2005
 
  Where am i going wrong?
 
  thanks
  Edd
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 
 ~~
 Hema Menon


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



Re: Installation issues

2005-02-20 Thread Shah Amit
Use forward slash / instead of \. I think maven files have to use 
forward slash. Atleast thats what I use and that works for me.

Goodluck
Amit
Original Message Follows
From: Edd Dawson [EMAIL PROTECTED]
Reply-To: Edd Dawson [EMAIL PROTECTED]
To: Hema Menon [EMAIL PROTECTED]
CC: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Installation issues
Date: Sun, 20 Feb 2005 11:56:44 +
Thanks all for pointing out where to put my build.properties file and
that i should use \\ rather than just \
However i still get the following:
C:\Program Files\Apache Group\jetspeedmaven start.test.server
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
BUILD FAILED
Goal start.test.server does not exist in this project.
Total time: 4 seconds
Finished at: Sun Feb 20 00:45:38 GMT 2005
I don't have a maven.xml file anywhere relating to jetspeed.. I am a
complete novice to Maven here :S
thanks
Edd
On Sat, 19 Feb 2005 19:32:37 -0900, Hema Menon [EMAIL PROTECTED] wrote:
 The build.properties should be present in your user home. On windows,
 it usually is in C:\Documents and Settings\user folder.

 The goal start.test.server should be present in your maven.xml file as
 shown below:

 goal name=start.test.server
 echo message= /
 echo message=Testing Database /
 echo message= /
  java classname=org.hsqldb.Server fork=yes
   classpath
 path refid=maven.dependency.classpath/
 pathelement path=${maven.build.dest}/
   /classpath

 Hema


 On Sun, 20 Feb 2005 01:22:28 +, Edd Dawson [EMAIL PROTECTED] 
wrote:
  Hi
 
  I have been trying to follow the getting started instructions at:
 
  http://portals.apache.org/jetspeed-2/getting-started.html
 
  I am trying to install on windows XP
  My Tomcat version is 4.1
  My Java version is 1.4.2_06
  I have ant 1.6.2 installed and Maven 1.0.2 and both are in my PATH
 
  Jetspeed has been unpacked to C:\Program Files\Apache Group\jetspeed\
  maven is installed in C:\Program Files\Apache Software Foundation\Maven 
1.0.2
 
  What i need to know is where i should create a build.properties file
  as requested in this part of the guide:
 
  Please set these values in your ${USER_HOME}/build.properties file:
 
  I created a build.properties in C:\Program Files\Apache
  Group\jetspeed\ with the values:
 
  org.apache.jetspeed.project.home=C:\Program Files\Apache 
Group\jetspeed\
  org.apache.jetspeed.server.home=C:\Program Files\Apache Group\Tomcat 
4.1\
  org.apache.jetspeed.catalina.version.major=4
  org.apache.jetspeed.server.shared=C:\Program Files\Apache Group\Tomcat
  4.1\shared\lib\
  org.apache.jetspeed.deploy.war.dir=C:\Program Files\Apache
  Group\Tomcat 4.1\webapps\
  org.apache.jetspeed.services.autodeployment.user=admin
  org.apache.jetspeed.services.autodeployment.password=password
 
  yet when i run maven start.test.server as required in step 4 i get the
  following error:
 
  C:\Program Files\Apache Group\jetspeedmaven start.test.server
   __  __
  |  \/  |__ _Apache__ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
  BUILD FAILED
  Goal start.test.server does not exist in this project.
  Total time: 4 seconds
  Finished at: Sun Feb 20 00:45:38 GMT 2005
 
  Where am i going wrong?
 
  thanks
  Edd
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 --

 ~~
 Hema Menon


-
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: Installation issues

2005-02-20 Thread Edd Dawson
I downloaded the following file:

http://www.mirrorservice.org/sites/ftp.apache.org/portals/jetspeed-2/BINARIES/jetspeed-2.0-M1.zip

thanks
Edd


On Sun, 20 Feb 2005 04:46:19 -0900, Hema Menon [EMAIL PROTECTED] wrote:
 Ok, then the question is where did you get the Jetspeed from? Did you
 check it out of CVS?
 
 Hema
 
 
 On Sun, 20 Feb 2005 11:56:44 +, Edd Dawson [EMAIL PROTECTED] wrote:
  Thanks all for pointing out where to put my build.properties file and
  that i should use \\ rather than just \
 
  However i still get the following:
 
  C:\Program Files\Apache Group\jetspeedmaven start.test.server
  __  __
  |  \/  |__ _Apache__ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
  BUILD FAILED
  Goal start.test.server does not exist in this project.
  Total time: 4 seconds
  Finished at: Sun Feb 20 00:45:38 GMT 2005
 
  I don't have a maven.xml file anywhere relating to jetspeed.. I am a
  complete novice to Maven here :S
 
  thanks
  Edd
 
  On Sat, 19 Feb 2005 19:32:37 -0900, Hema Menon [EMAIL PROTECTED] wrote:
   The build.properties should be present in your user home. On windows,
   it usually is in C:\Documents and Settings\user folder.
  
   The goal start.test.server should be present in your maven.xml file as
   shown below:
  
   goal name=start.test.server
   echo message= /
   echo message=Testing Database /
   echo message= /
java classname=org.hsqldb.Server fork=yes
 classpath
   path refid=maven.dependency.classpath/
   pathelement path=${maven.build.dest}/
 /classpath
  
   Hema
  
  
   On Sun, 20 Feb 2005 01:22:28 +, Edd Dawson [EMAIL PROTECTED] wrote:
Hi
   
I have been trying to follow the getting started instructions at:
   
http://portals.apache.org/jetspeed-2/getting-started.html
   
I am trying to install on windows XP
My Tomcat version is 4.1
My Java version is 1.4.2_06
I have ant 1.6.2 installed and Maven 1.0.2 and both are in my PATH
   
Jetspeed has been unpacked to C:\Program Files\Apache Group\jetspeed\
maven is installed in C:\Program Files\Apache Software Foundation\Maven 
1.0.2
   
What i need to know is where i should create a build.properties file
as requested in this part of the guide:
   
Please set these values in your ${USER_HOME}/build.properties file:
   
I created a build.properties in C:\Program Files\Apache
Group\jetspeed\ with the values:
   
org.apache.jetspeed.project.home=C:\Program Files\Apache Group\jetspeed\
org.apache.jetspeed.server.home=C:\Program Files\Apache Group\Tomcat 
4.1\
org.apache.jetspeed.catalina.version.major=4
org.apache.jetspeed.server.shared=C:\Program Files\Apache Group\Tomcat
4.1\shared\lib\
org.apache.jetspeed.deploy.war.dir=C:\Program Files\Apache
Group\Tomcat 4.1\webapps\
org.apache.jetspeed.services.autodeployment.user=admin
org.apache.jetspeed.services.autodeployment.password=password
   
yet when i run maven start.test.server as required in step 4 i get the
following error:
   
C:\Program Files\Apache Group\jetspeedmaven start.test.server
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
   
BUILD FAILED
Goal start.test.server does not exist in this project.
Total time: 4 seconds
Finished at: Sun Feb 20 00:45:38 GMT 2005
   
Where am i going wrong?
   
thanks
Edd
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
   --
  
   ~~
   Hema Menon
  
 
 
 --
 
 ~~
 Hema Menon


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



Re: Installation issues

2005-02-20 Thread Edd Dawson
I am getting a little success now!

I have downloaded the zip and extracted it into my tomcat directory as
requested, I then startup the jetspeed database which works fine, and
then start tomcat.

However when i go to http://127.0.0.1:8080/jetspeed/portal I get the
following error 500:


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Failed to initalize jetspeed. 
org.apache.jetspeed.exception.JetspeedException: Unable to create
Engine
at 
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:206)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)

root cause

org.apache.jetspeed.exception.JetspeedException: Unable to create Engine
at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:76)
at 
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:135)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 

Re: Jetspeed UML diagramms

2005-02-20 Thread Hans Peter Stubenrauch
David Sean Taylor wrote:
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
Thanks!
I know that it´s not the up-to-date version but for prinicple 
understanding it´s ok. Do you know some newer, the most I found is not 
really current.

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


Jetspeed 1.5 Login Questions

2005-02-20 Thread Jeff Sexton
Is either LDAP or container (Tomcat) authentication/login possible with 
Jetspeed 1.5?
Thanks
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Installation issues

2005-02-20 Thread Edd Dawson
Hi

I tried a new tactic, and have downloaded and installed Tomcat 5.0.30
and then unzipped jetspeed into it and followed all the readme file
instructions..

I now get the following (different) Error:

VelocityViewServlet : Error processing the template

java.lang.NullPointerException
at 
org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.getVelocityEngine(JetspeedVelocityViewServlet.java:296)
at 
org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.getTemplate(JetspeedVelocityViewServlet.java:208)
at 
org.apache.velocity.tools.view.servlet.VelocityViewServlet.handleRequest(Unknown
Source)
at 
org.apache.portals.bridges.velocity.BridgesVelocityViewServlet.handleRequest(BridgesVelocityViewServlet.java:85)
at 
org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.handleRequest(JetspeedVelocityViewServlet.java:186)
at 
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Unknown
Source)
at 
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(Unknown
Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:259)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:213)
at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:124)
at 
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103)
at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:88)
at 
org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:110)
at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:251)
at 
org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:48)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:117)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:133)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:139)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:108)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:102)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:55)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
at 

J2 - Grouping Permissions with the JAAS implementation

2005-02-20 Thread Shah Amit
With the security implementation of JAAS, I think in jetspeed there is a 
direct relation between user and permissions.

Now in a scenerio that I have, I have a bunch of permissions that I group 
into a role, and then relate that to user. I think this facility is lacking 
in jetspeed. But I am not sure if this is the case, or I am missing 
something. This feature would be kind of essential because I have around 20 
- 25 permissions and I have to change behaviours based on those permissions. 
The user_permission table of jetspeed would probably get really very big.

Any suggestions/helps 
Thanks,
Amit

Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 12:29:59 -0500
Shah Amit wrote:
Hi Mike,
Thanks a lot !! I do need help with security implementation. I would really 
really appreciate help !! I have gone thru the SPI interfaces and was 
trying to understand them.

In the meantime, I was preparing for a presentation tomorrow so I wanted to 
see if I can layout a proof of concept with Jetspeed2.

But I definately need help with the security implementation.
If you want, I can pose my question again ---
I have following security tables --
Sha,
I will map the current J2 tables to your tables as best I can.  These are 
only my initial thoughts. I haven't implemented this solution to mapping 
your current security data model to J2. In general I think you have two 
alternatives:
1) Map your current security data model to the J2 classes by altering the 
security_repository.xml file.  Security_repository.xml contains the mapping 
between the J2 security classes and the underlying data model. The advantage 
of this approach is that you would not have to change any code. You would 
know you were successful when all the tests ran. Some tests may still fail. 
For example, you appear to have no many-to-many relationship between users 
and roles.  You will have to sort through relationships you are missing.  
Maybe the tests will still run. Perhaps you can still use the J2 table 
mappings where you have no equivalent.

2) Implement the following interfaces: GroupSecurityHandler, 
RoleSecurityHandler, UserSecurityHandler, CredentialHandler, and 
SecurityMappingHandler. You will note that the default implementations of 
these classes use a class called SecurityAccessImpl to do a lot of the 
actual JDBC work.  You may have to change SecurityAccessImpl as well.  This 
alternative seems pretty hard, close to the work involved in making LDAP 
implementations which I expect to take about a month given that you are 
already familiar with the underlying technology.

I have done a cursory mapping below:
- user (username, password, userid etc.)
security_principal - Contains the user. Your username field should be mapped 
to the full_path column.
security_credential - Contains the password. Password is the only type of 
credential in use as far as I can tell. Your current implementation stores 
the password on the user table. My ldap implementation does the same.

- groups (groupid, groupname)
security_principal - Contains the group, just mapped to a different class. 
Your groupname field should be mapped to the full_path column.

- role (roleid, rolename)
security_principal - Contains the role, just mapped to a different class. 
Your rolename field should be mapped to the full_path column.

- permission (permissionid, permissionname)
security_permission - Contains the security permissions. Your permissionname 
should map directly to the name column there.

- role_permission
Here you have a direct mapping the J2 security_principal_permission table. 
J2 puts role, group, and user in a single security_principal table.

- group_role
Here you have a direct mapping to the security_group_role table.
- user_group
This table is analogous to the J2 security_user_group table which contains 
two FKs: one to the security_principal row for the user and the other to the 
security_principal row for the group.


Now I am sure my DBA is going to yell on him if I ask him to change these 
tables !!! And David Sean Taylor advised that a good way of doing this 
would be to implement my own SPI provider. But then the mailing list 
advised me to see if it is feasible to adapt my tables ...

I am confused !! Help help !!!
I guess I can start the conversation back in the original database 
question thread because I guess it woudl be misguiding to have this 
discussion under this thread ...


Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 10:52:03 -0500
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense that 
to deploy this this