Re: Failed to initialize jetspeed.

2004-12-18 Thread Superman
Hema,

Thanks for the direction, however it seemed not to change the error so I
resorted to downloading the latest version of Tomcat version 5.5.4 and
compiled jetspeed2 and configured it to work with postgres database. I
checked to make sure that the correct xml and properties files where in
place to the best of my abilities and the information everyone has
provided at the moment.  All compiles well and the database scripts
pre-populated the database but I get the same error I got with the JBOSS
version when i use the url http://localhost:8080/jetspeed and it seems
like the Datasource is not found from the error message below.  I don't
know enough about jetspeed yet to trouble shoot the problem.  

What configuration has to be in place in order for this lookup to occur
properly?

Thanks for you help,

chris

[org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR:
SQLException thrown while trying to
get Connection from Datasource (java:comp/env/jdbc/jetspeed)
Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectionFromDataSource(Connec
tionFactoryAbstractImpl.java:204)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnection(ConnectionFactory
AbstractImpl.java:112)
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:1
05)
at
org.springframework.orm.ojb.PersistenceBrokerTransactionManager.doBegin(PersistenceBrokerTransacti
onManager.java:187)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(Abstract
PlatformTransactionManager.java:269)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(
TransactionAspectSupport.java:201)
"
On Fri, 2004-12-17 at 15:12, Hema Menon wrote:
> Quoted response from previous messages
> >
> It looks like you might be missing some of the OJB repository files in
> your classpath.
> 
> 1. verify that these files are present under
> "webapps/jetspeed/WEB-INF/classes" in you tomcat install:
> OJB-logging.properties
> OJB.properties
> repository_database.xml
> repository.dtd
> repository_internal.xml
> repository.xml
> TEMP.xml
> >
> 
> Hema
> 
> 
> On Fri, 17 Dec 2004 09:59:55 -0500, Superman <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I've deployed jetspeed2 on jboss 4.0 on jdk 1.5 per the instructions for
> > deploying to jboss and I get the servlet error below when I try the url
> > http://localhost:8080/jetspeed.  I looked in the logs and it appears
> > that the PreferenceFactory failed with the error below from the
> > jetspeed.log.
> > Any help or direction on how to troubleshoot the problem is appreciated.
> > 
> > chris
> > 
> > jetspeed.log
> > 2004-12-17 09:30:34,685 [main] INFO  STDOUT - Caused by:
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'java.util.prefs.PreferencesFactory' defined in URL
> > [file:/home/chris/programs/jboss-4.0.0/server/j2/deploy/jetspeed.war/WEB-INF/assembly/jetspeed-spring.xml]:
> >  Initialization of bean failed; nested exception is 
> > org.apache.jetspeed.prefs.PreferencesException: Failed to initialize prefs 
> > api.  java.lang.ExceptionInInitializerError
> > 2004-12-17 09:30:34,685 [main] INFO  STDOUT -   at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300)
> > 
> > servlet error:
> > javax.servlet.ServletException: Failed to initalize jetspeed.
> > org.apache.jetspeed.exception.JetspeedException: Unable to create Engine
> >
> > org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:206)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >
> > org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
> >
> > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
> >org.apache.jsp.index_jsp._jspService(index_jsp.java:44)
> >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>

Re: jetspeed-2 LDAP configuration

2004-12-18 Thread David Le Strat
Amit,

I order to use LDAP with Jetspeed 2 for
authentication, you need to implement the
LDAPCredentialHandler and LDAPUserSecurityHandler. 
The UserSecurityHandler handles manipulation of the
user principal and the CredentialHandler the
authentication of the principal.  Once this is done,
you will have to modify the Spring config for those 2
components and it should work.

The framework is in place to plugin LDAP
authentication in J2 security framework.  The current
J2 implementation does not currently provide a
complete implementation for those 2 classes.  However,
this should be pretty straight forward if you have an
LDAP infrastructure to support your development.

We would love it if you wanted to contribute the LDAP
implementation. ;)

Regards,

David Le Strat.

--- Amit Soni <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> if any one of u have any idea that how to configure
> jetspeed-2 with ldap
> then pls help me.
> 
> Regards,
> Amit
> 
> 
>
--
> Netcore's New Website
> http://www.netcore.co.in
>
--
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more. 
http://celebrity.mail.yahoo.com

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



RE: J2 Profiler

2004-12-18 Thread Randy Watler
Marina/Doug:

While I was out walking the dog this morning, I realized
that I should probably clarify the difference between
the manager/manager and admin/admin logins. As you might
of guessed, the admin/admin login has the admin role. It
is granted global view/edit permissions in the
pages.security file... so it can view everything on the
site the profiler allows it to see regardless of security
constraints. In contrast, the manage/manager login relies
on and is subject to the page and folder security
constraints in the demo configuration. So, the visibility
of the /Adminstrative pages is granted to admin/admin
by the global constraint and manager/manager by the local
constraints in /Administative/folder.metadata.

Niether admin/admin nor manager/manager have any profiling
locators or rules specified. As a result, they use the 'j1'
rule and have no customized content in /_user/admin or
/_user/manager.

You both probably already figured this out, but I thought
I'd share just in case!

Randy

-Original Message-
From: Randy Watler
To: Jetspeed Users List
Sent: 12/16/04 10:53 PM
Subject: Re: J2 Profiler

Marina,

Feedback inline below...

Marina wrote:

>When user is not logged in, he is a guest user by
>default.
>According to the j1 profiling rule (???), pages for
>the guest user should be taken from the
>&\pages\_user\guest\ directory.
>However, since this directory does not exist, a
>default fallback (is that right?) rule is used and the
>default pages/directories are used:
>&\pages\default-page.psml
>
Yes. The 'j1' search/fallback rule for '/some-page.psml' request for
'fred'
using a 'html' browser in the 'en_US' locale would be:

/_user/fred/_mediatype/html/_language/en/_country/US/some-page.psml
/_user/fred/_mediatype/html/_language/en/some-page.psml
/_user/fred/_mediatype/html/some-page.psml
/_user/fred/some-page.psml
/some-page.psml
/

Other search/fallback profiling rules are available for 'role-fallback',
'group-fallback', and 'role-group'. One can also define their own
custom profiling rules and assign them to users and document sets.

>When logged in as a user user:
>
>-- Everything from the &\pages\ directory is used;
>stuff from the \pages\_user\user\ is used in addition
>to that
>-- user-specific content comes from the
>&\pages\_user\user , for example, new .psml files and
>corresponding Tabs that are displayed for the user
>user only: 
>p003.psml --> [USER 003] PSML page tab
>nested-layout.psml --> Nested Layout tab
>
Yes. Most navigations that are specific to the user are prefixed with
a '[USER]' tag for this test case.

>-- user user also has the user role (I wish the
>names would be somewhat different :-) ). Additional
>user-role-specific stuff comes from the
>\pages\_role\user\ directory. It has only one
>directory - &\top-links\ , which is referenced from
>the 
> &\pages\_user\user\top-pages.ds file:
>
>  [USER] Top Pages
>  docset
>  regexp="true">/top-links/*.*
>
>(see questions on that below)
>
Yes.

>When logged in as admin user:
>-- you see everything that the guest user can see,
>but in addition, you also see the Jetspeed
>Administrative Portlets link under the Folders and
>Pages header in the left-side menu
>-- there is also a top-pages.ds file in the &\pages\
>dir that defines this:
>
>
>
>  Top Pages
>  Page
>haut
>  docset
>  /Administrative
>
>
>In addition, admin user also has the manager role,
>so the &\pages\_role\manager\ dir is used for the
>manager-specific content:
>
Actually, the 'manager' user does NOT use this directory because it uses
the default 'j1' rule. This directory content and its effect on
navigations
can be seen using the jetspeed/jetspeed login: it uses the
'role-fallback'
for 'page' profiling.

>the folder.metadata determines what is included into
>the page. It has:
>  Administrative
>
>My guess: this is why only a user in the manager
>role can see the Administrative Portlets link (is
>this right?)
>
No. Security constraints in the Administrative folder.metadata enforce
that. Document order is strictly used to control the ordering of
navigational elements... but only if they are otherwise accessible. All
documents that are explicitly ordered appear first. The remaining
follow sorted alphabetically. The first folder found according to the
profiling search/fallback rules with metadata that contains any document
ordering is used for ALL document navigations in the page.

>But then, the &\pages\_role\manager\folder.metadata
>also has:
>  Google.link
>  p001.psml
>  p002.psml
>  p003.psml
>  p004.psml
>
>but none of them (links for .link and tabs for .psml)
>is displayed on the page.
>I would guess that all pxxx.psml are not displayed
>simply because they do not exist in the
>&\pages\_role\manager\ folder.
>What about the Google.link though? It does exist in
>the directory&
>
Again, these are not seen for manager/manager, but can by
jetspeed/jetspeed.
Pages, links, and other documents are ALWAYS aggregated unless

RE: jetspeed-2 problem

2004-12-18 Thread Randy Watler
Amit,

J2 demo site user/passwords are:

admin/admin
user/user
manager/manager
tomcat/tomcat
jetspeed/jetspeed

Randy

-Original Message-
From: Amit Soni
To: [EMAIL PROTECTED]
Sent: 12/18/04 4:27 AM
Subject: jetspeed-2 problem

Hi all,

 I m installing jetspeed-2 sucessfully but when i m login at that time i
have given ::

UserName :: admin
Password :: jetspeed 

at that time it gives error like ::


Dec 18, 2004 5:39:38 PM org.apache.catalina.realm.JAASRealm authenticate
WARNING: Login exception authenticating username admin
javax.security.auth.login.LoginException: Authentication failed:
Password does not match
at
org.apache.jetspeed.security.impl.DefaultLoginModule.login(DefaultLoginM
odule.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
henticator.java:229)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:446)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
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:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:595)


so any one of u have idea regarding this then pls help me...

Regards,
Amit


--
Netcore's New Website
http://www.netcore.co.in
--

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


jetspeed-2 LDAP configuration

2004-12-18 Thread Amit Soni
Hi all,

if any one of u have any idea that how to configure jetspeed-2 with ldap
then pls help me.

Regards,
Amit


--
Netcore's New Website
http://www.netcore.co.in
--

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



jetspeed-2 problem

2004-12-18 Thread Amit Soni
Hi all,

 I m installing jetspeed-2 sucessfully but when i m login at that time i
have given ::

UserName :: admin
Password :: jetspeed 

at that time it gives error like ::


Dec 18, 2004 5:39:38 PM org.apache.catalina.realm.JAASRealm authenticate
WARNING: Login exception authenticating username admin
javax.security.auth.login.LoginException: Authentication failed:
Password does not match
at
org.apache.jetspeed.security.impl.DefaultLoginModule.login(DefaultLoginModule.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
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.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)


so any one of u have idea regarding this then pls help me...

Regards,
Amit


--
Netcore's New Website
http://www.netcore.co.in
--

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