Hi 

I activated the JDBCStore and am getting the following error

16 Aug 2001 17:19:44 - slidestore.reference.JDBCContentStore - INFO -
Connecting
 to "jdbc:JSQLConnect://AKUMAR/database=myDBASE" as user "ask"
16 Aug 2001 17:19:44 - slidestore.reference.JDBCDescriptorsStore - ERROR
- com.j
netdirect.jsql.o: SELECT permission denied on object 'objects', database
'myDBASE', owner 'dbo'.
com.jnetdirect.jsql.o: SELECT permission denied on object 'objects',
database 'm
yDBRDF', owner 'dbo'.
        at com.jnetdirect.jsql.af.a(Unknown Source)


Is it the problem with the table objects. THe user ID I am using has the
maximum access.

Any Idea

Ashok@metatomix



-----Original Message-----
From: Dirk Verbeeck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Propfind command exits slide client & questions about slide
with Tomcat/4.0-b7-dev.


Bita Shadgar wrote:

>
> Hi ,
>
> Because I had problem with put command, I have changed my slide and
> also it's container.
> Now I am using Slide1.0.12 with Apache Tomcat/4.0-b7-dev.
>
> I've got a problem with propfind, it exits program:
>
> [LAMA.CS.BRIS.AC.UK] /files/ $ mkcol test
> Making '/files/test' collection: succeeded.
> [LAMA.CS.BRIS.AC.UK] /files/ $ propput test creator bita
> Putting property(creator, bita) to '/files/test': succeeded.
> [LAMA.CS.BRIS.AC.UK] /files/ $ propget test creator
> Getting properties '/files/test': Fatal Error:
org.apache.webdav.lib.PropertyName
> Command input: propget test creator
> java.lang.ClassCastException: org.apache.webdav.lib.PropertyName
>         at
org.apache.webdav.lib.methods.PropFindMethod.generateQuery(Compiled
Code)
>         at
org.apache.commons.httpclient.HttpClient.sendRequestHeader(Compiled
Code)
>         at
org.apache.commons.httpclient.HttpClient.executeMethod(Compiled Code)
>         at
org.apache.webdav.lib.WebdavResource.propfindMethod(Compiled Code)
>         at org.apache.webdav.cmd.Slide.processCommands(Compiled Code)
>         at org.apache.webdav.cmd.Slide$1.run(Compiled Code)
>         at java.lang.Thread.run(Compiled Code)
> Please, email to [EMAIL PROTECTED]
> bin%
>
> I don't know what's wrong with it.

It's an impossible error, PropertyName didn't exist in slide 1.0.12
You are mixing a new slide.java with an old webdavlib.jar

> Indeed I have some question about configuration of slide with tomcat 4
> :
>
> -why I must open the url with 8081 port number and what the 8080 is
> reserved for.

The default configuration is 8080 but you can use what you want.

> -Where I should put my webdav servlets and with which port number I
> can run them. Do I have to again change the web.xml (in
> server/webdav/webdav.war) to set my servlet ?

Tomcat 3 or 4, it shouldn't make a difference.

> -How can I define roles and permissions for users as a manager and how
> they could access to thier data with their userld and password.
> I know about roles and permissions in Domain.xml also I add three new
> role in tomcat-user.xml which are root, user and guest. However when I
> try to access http://localhost:8080/slide/users
> with userid and password for user role, it refused to show the page as
> well for http://localhost:8080/slide/files with guest userid and pw
> which is refused by system. Only I can access to these pages with
> userid= root and password= rootbita which I uncommented in Domain.xml:
>
>  <!-- Uncomment and change the password to allow login as root to
>              edit the namespace -->
>             <revision>
>               <property name="password"
>
> namespace="http://jakarta.apache.org/slide/";>rootbita</property>
>             </revision>
>
> I don't know how can I organize the roles and permissions.

There are 2 ways of using security.
- normal servlet container security (tomcat 3 & 4 or any other servlet
engine)
- integrated security (tomcat 4 configured like on the webpage)

1) normal servlet security
- make <security-constraint> in web.xml
- tomcat ask user for pasword for <realm-name>
- tomcat checks password with method configured in server.xml  (by
default lookup password in tomcat-users.xml)
- if password ok then check if user has role (in tomcat-users.xml) that
matches a role in web.xml <auth-constraint>
- if user has role the user gets access to servlet
- Slide doesn't use the tomcat roles !!!!
- a web user "bita" maps to "/users/bita"

There are also groups in slide (their names start with "+")
and a user can be in a group (slide groups have nothing to do with
tomcat roles !!!)

As far as I know those roles in domain.xml aren't used (maybe in method
2 ???)


2) integrated security   (I don't use that, can't help you with that)
You configure tomcat 4 to not look in tomcat-users.xml but ask slide for
the password.
Look at the jakarta site for info how to do it.
And you have to uncomment that property like you did...
For more details, you have to ask Remy....


> Any help is appreciated.
>
> Bita.

Dirk


Reply via email to