Re: character encoding - put method

2002-05-23 Thread Elodie Tasia

I'm using both Slide server and Slide client, so I can't see why I could get
such a problem, if they're using the same encoding

- Original Message -
From: Pill, Juergen [EMAIL PROTECTED]
To: 'Slide Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 12:41 PM
Subject: RE: character encoding - put method


Hello,

Did you make sure, that client and server are using the same url encoding.
The server encoding can be specified in slide.properties (e.g.
org.apache.slide.urlEncoding=UTF-8, default is platform encoding to work
best with webFolders). Which client did you use. WebFolders uses
platform-specific encoding, IE either utf-8 (default) or uses
platform-specific encoding. Slide client API uses utf-8 as default.

Best regards,

Juergen



 -Original Message-
From: Elodie Tasia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 11.38 AM
To: Slide Group
Subject: character encoding - put method

Hi,

I've got a problem with special characters, like é or è for example.
When you put a file on the server whose name has such a character, your è
becomes a è !!!
What can I do against that ?


thanx

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




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




Re: character encoding - put method

2002-05-23 Thread Elodie Tasia

How can I use that ? Where can I configure this URL encoding ?

- Original Message -
From: Pill, Juergen [EMAIL PROTECTED]
To: 'Slide Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 3:34 PM
Subject: RE: character encoding - put method


Hello,

The default for the client is utf-8, the default for the server is platform
encoding, this could explain your problems. Do you want to try to use
org.apache.slide.urlEncoding=UTF-8 to set the server to utf-8.

Best regards

Juergen



 -Original Message-
From: Elodie Tasia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 14.22 PM
To: Slide Users Mailing List
Subject: Re: character encoding - put method

I'm using both Slide server and Slide client, so I can't see why I could get
such a problem, if they're using the same encoding

- Original Message -
From: Pill, Juergen [EMAIL PROTECTED]
To: 'Slide Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 12:41 PM
Subject: RE: character encoding - put method


Hello,

Did you make sure, that client and server are using the same url encoding.
The server encoding can be specified in slide.properties (e.g.
org.apache.slide.urlEncoding=UTF-8, default is platform encoding to work
best with webFolders). Which client did you use. WebFolders uses
platform-specific encoding, IE either utf-8 (default) or uses
platform-specific encoding. Slide client API uses utf-8 as default.

Best regards,

Juergen



 -Original Message-
From: Elodie Tasia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 11.38 AM
To: Slide Group
Subject: character encoding - put method

Hi,

I've got a problem with special characters, like é or è for example.
When you put a file on the server whose name has such a character, your è
becomes a è !!!
What can I do against that ?


thanx

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




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

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




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




protecting resources with ACL method

2002-05-13 Thread Elodie Tasia

With Slide, how can I prevent some resources from being modified or deleted by ANY 
user ?
I already noticed that the URI of users were like that : /users/someone. So, if I call 
the ACL method with a deny on write privilege for all users, does it work ?

Please help !

And thanx in advance ;o)



differences between nightly builts

2002-05-02 Thread Elodie Tasia

Hi,

Is that normal that, in the Slide's built from May, 1st , the proppatchmethod is 
different from April 28th's built ? I mean : the 'action' parameter disappeared !
Was this change forgotten, or was it a mistake to implement it ?

thanx



deploying web application in Slide

2002-04-30 Thread Elodie Tasia

Hi,

I tried, like in tomcat, to deploy a .WAR by putting it in the webapps directory and 
lauching Slide server. But it didn't work.
Is that normal ? Must I set a context ? configuring something ?

Thanx in advance



future of Tomcat

2002-04-30 Thread Elodie Tasia

Hi,

I know that not all the webdav functionnalities are implemented in Tomcat 4 (e.g. ACL 
and PROPPATCH if I can remember).
I would like to know what is the future of Tomcat in that domain : will the missing 
methods be implemented ? was is just a 'test', just to see what can WebDav do ?

thanx



Tomcat with Slide as a webapp : a future ?

2002-04-30 Thread Elodie Tasia

Hi,

Excuse me for asking so many questions ;o) (this is my third !)

I had many weeks ago some problems to integrate Slide in TC as a web application. In 
fact, the problem was to using the Slide's realm : TC didn't want at all.
Someone answered me that the problem was known of the developpers. I'd like to know 
what is the situation today.
I have to know that because I work with clients who can have already Tomcat, who want 
webdav, but not changing TC for Slide !!!


Thanx ;o)



Re: Propfing with depth different from 0

2002-04-26 Thread Elodie Tasia

Where can I find this 'fixes' ? I mean, for my two problems : propfind and
put ?

Thanx


- Original Message -
From: Sung-Gu [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 10:33 PM
Subject: Re: Propfing with depth different from 0


 Ok. I fixed the javadoc messages of propfindMethod for you.
 It would be helpful to you.

 Thanks,

 Sung-Gu

 - Original Message -
 From: Elodie Tasia [EMAIL PROTECTED]
 To: Slide Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, April 25, 2002 10:28 PM
 Subject: Re: Propfing with depth different from 0


  Yes, I know, but I supposed that, with depth=1 or infinity, the
displayname
  returned would be the name of each resource contained in the collection,
and
  not always the name of the collection !
  Hmmm... You see what I mean ? The map returned by propfindMethod is a
  href/properties map, and 'properties' is itself a name/value map... So,
if
  it's logical, for a given file, the associated properties are THEIR
  properties, no ?
 
 
  - Original Message -
  From: Sung-Gu [EMAIL PROTECTED]
  To: Slide Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, April 25, 2002 12:19 AM
  Subject: Re: Propfing with depth different from 0
 
 
   The depth 1 means including subcollection (subdirectory?)
   Of course, it includes files in the subdirectory.
   You should check it's a just a resource or collection.
  
   Sung-Gu
  
   - Original Message -
   From: Elodie Tasia [EMAIL PROTECTED]
   To: Slide Group [EMAIL PROTECTED]
   Sent: Wednesday, April 24, 2002 9:34 PM
   Subject: Propfing with depth different from 0
  
  
   Hi,
  
   I tried to use the propfindMethod defined in WebdavResource with depth
=
  1.
   What I don't understand is that, when I invoke this method on a
  collection, the displayname returned, not only for the collection, but
for
  its ressources too, is the name of the collection itself !
  
   Why ?
  
   Thanx
  
  
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 



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




Removing properties (bis)

2002-04-26 Thread Elodie Tasia

Hi,

I'm still trying to remove dead properties. I tried with or without setting
the namespace, with WebdavResource.proppatchMethod and PropPatchMethod
class... and nothing works.
I'm still getting a 207 status code, and no property is removed.
Has someone already tried this ? Does have someoen an idea ?

Thanx in advance...



- Original Message -
From: Elodie Tasia [EMAIL PROTECTED]
To: Slide Group [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 9:39 AM
Subject: Removing properties


Hi,

I noticed that the Slide client APUI's propatchMethod only add or update
properties, and can't remove them, although the PROPATCH does. So I use the
PropPatchMethod class, with the addPropertyToRemove method.
The problem is that, although I can add new properies and change them, the
server answer me that when I try to remove what I've added :

PROPPATCH /files/myfiles/hello.html HTTP/1.1
Content-Length: 138
Content-Type: text/xml; charset=utf-8
Host: localhost
User-Agent: Jakarta HTTP Client/1.0

HTTP/1.1 401 Unauthorized
Content-Type: text/html
Date: Mon, 22 Apr 2002 07:24:03 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
WWW-Authenticate: Basic realm=Slide DAV Server

PROPPATCH /files/myfiles/hello.html HTTP/1.1
Content-Length: 138
Authorization: Basic cm9vdDpyb290
Content-Type: text/xml; charset=utf-8
Host: localhost
User-Agent: Jakarta HTTP Client/1.0

HTTP/1.1 207 Multi-Status
Date: Mon, 22 Apr 2002 07:24:04 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Set-Cookie: JSESSIONID=277442F2100660B203C012F0D2745151;Path=/

How can I have the authorization ? I tried this with the 'root' login, so I
can't imagine how I could have more rights...

Can someone help ?
Thanx



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




Re: lockMethod() unlockMethod() w/diff instances fails

2002-04-25 Thread Elodie Tasia

I had the same problem last week. The only solution is to use the LockMethod
and UnlockMethod classes directly.

You get the locktoken in this way  (you need it to unlock) :

HttpClient client = new HttpClient();
HttpURL hu = this.davRes.getHttpURL();
client = davRes.getSessionInstance(hu); // davRes is a instance of
WebdavResource
client.setDebug(10);
client.startSession(this.host, this.port, new Credentials(this.user,
this.passwd));
lm = new LockMethod(this.path, hu.getUserName()+@+hu.getHost(),
LockMethod.SCOPE_EXCLUSIVE, timeout);
lm.setDebug(10);
lm.setDepth(0);
client.executeMethod(lm);
code = lm.getStatusCode();
String lockToken = lm.getLockToken();


And you can unlock your resource in that way :

HttpClient client = new HttpClient();
client.setState(new WebdavState());// don't forget that ! or it won't
work !
client.setDebug(10);
client.startSession(host, port, new Credentials(user, passwd));
um = new UnlockMethod(path);
um.setDebug(10);
um.setLockToken(lockToken);
client.executeMethod(um);

Good Luck !

- Original Message -
From: Brian Olore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 9:22 PM
Subject: lockMethod()  unlockMethod() w/diff instances fails


 I have read several posts on this topic, but am still unable to find a
 clear solution.  The problem is that locking and unlocking a resource
using
 the same WebdavResource instance works great, but locking in one instance
 and unlocking in another fails.  This is very troubling for those of us
 that are trying to write 2 apps, one that locks, and another that unlocks.
 I have yet to find a solution for this situation.

 lockMethod() and unlockMethod() seem to be tied to the current session,
 which is what i think is causing this problem.  The most frustrating part
 is that isLocked() always returns the correct value.  So basically I
*know*
 there is a lock on the resource, I just can't unlock it via unlockMethod()
 (it always returns false unless same instance or WebdavResource). In my
 mind, it would make more sense to have the lockMethod() and unlockMethod()
 tied to the data that isLocked() is using. Short of writing my own methods
 that calls isLocked() and deals with the locks appropriately, is there
 anything else I can do ?

 I appreciate any solutions or work-arounds.
 TIA
 Brian
 [EMAIL PROTECTED]



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




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




Using ACL

2002-04-25 Thread Elodie Tasia

Hi,

I used the aclMethod on a resource to prevent it from being written :

resource.setAcl(principal, deny, privilege)
with : principal   = all; privilege   = write; deny = true.

When I get the properties on the resource, I can see such an acl property :

acl : denied to all (not protected) (not inherited), granted to /+/users/group 
(protected) (inherited from '/files'), granted to all (protected) (inherited from 
'/files'), granted to /users/guest (protected) (inherited from '/files'), granted to 
/users/elo (protected) (inherited from '/files'), granted to /users/root (protected) 
(inherited from '/files'), granted to /root (protected) (inherited from '/')

So, I don't think I called the method in a right way. It seems that the users are 
still allowed to write on the resource...
What must be the parameters ?

Thanx



Using ACL (erratum)

2002-04-25 Thread Elodie Tasia

Excuse me, I made a mistake ;o)
setAcl() is my method :

My code is :

Ace[] aces = new Ace[1];
boolean   inherited, protectedAce;
Privilege priv;
StringinheritedFrom;

protectedAce = false;
inherited = false;
inheritedFrom = ;
aces[0] = new Ace(principal, deny, protectedAce, inherited,
inheritedFrom);

priv = new Privilege(DAV:, privilege, );
aces[0].addPrivilege(priv);
return resource.aclMethod(path, aces);


Sorry...

- Original Message -
From: Elodie Tasia [EMAIL PROTECTED]
To: Slide Group [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 3:05 PM
Subject: Using ACL


Hi,

I used the aclMethod on a resource to prevent it from being written :

resource.setAcl(principal, deny, privilege)
with : principal   = all; privilege   = write; deny = true.

When I get the properties on the resource, I can see such an acl property :

acl : denied to all (not protected) (not inherited), granted to
/+/users/group (protected) (inherited from '/files'), granted to all
(protected) (inherited from '/files'), granted to /users/guest (protected)
(inherited from '/files'), granted to /users/elo (protected) (inherited from
'/files'), granted to /users/root (protected) (inherited from '/files'),
granted to /root (protected) (inherited from '/')

So, I don't think I called the method in a right way. It seems that the
users are still allowed to write on the resource...
What must be the parameters ?

Thanx



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




Re: Propfing with depth different from 0

2002-04-25 Thread Elodie Tasia

Yes, I know, but I supposed that, with depth=1 or infinity, the displayname
returned would be the name of each resource contained in the collection, and
not always the name of the collection !
Hmmm... You see what I mean ? The map returned by propfindMethod is a
href/properties map, and 'properties' is itself a name/value map... So, if
it's logical, for a given file, the associated properties are THEIR
properties, no ?


- Original Message -
From: Sung-Gu [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 12:19 AM
Subject: Re: Propfing with depth different from 0


 The depth 1 means including subcollection (subdirectory?)
 Of course, it includes files in the subdirectory.
 You should check it's a just a resource or collection.

 Sung-Gu

 - Original Message -
 From: Elodie Tasia [EMAIL PROTECTED]
 To: Slide Group [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 9:34 PM
 Subject: Propfing with depth different from 0


 Hi,

 I tried to use the propfindMethod defined in WebdavResource with depth =
1.
 What I don't understand is that, when I invoke this method on a
collection, the displayname returned, not only for the collection, but for
its ressources too, is the name of the collection itself !

 Why ?

 Thanx




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




Re: Problem with PUT and DELETE

2002-04-25 Thread Elodie Tasia



 I noticed that, when I try to PUT on a server some data from an inexisting
file, the server creates the asked resource, but empty. (For example : I
call putMethod(destination, file) with destination = /files/onefile.htm but
file path is false.)

 Why did you do that?  --a
 Before using putMethod, you should check whether the file exists.
 I guess, probably, after you shutdown and restartup the web-server, the
server will work correctly.
 That means the server hold the resource still, don't it?

 Sung-Gu


Yes, I can check the existence of the file ;o) But it is a real problem, no
? In case of such an error (wrong file), you can't undo your error...
And even after restarting the server... I mean, Slide, I didn't test that
with other servers.


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




Propfing with depth different from 0

2002-04-24 Thread Elodie Tasia

Hi,

I tried to use the propfindMethod defined in WebdavResource with depth = 1.
What I don't understand is that, when I invoke this method on a collection, the 
displayname returned, not only for the collection, but for its ressources too, is the 
name of the collection itself !

Why ?

Thanx



Problem with PUT and DELETE

2002-04-24 Thread Elodie Tasia

Hi,

I'm using Slide server 1.0.16 with the client library.

I noticed that, when I try to PUT on a server some data from an inexisting file, the 
server creates the asked resource, but empty. (For example : I call 
putMethod(destination, file) with destination = /files/onefile.htm but file path is 
false.)

If I retry the PUT, with the right file path, the server send me a conflict error 
(code 409).
And when I want to delete this resource, and re-PUT the right one, the server answers 
: not found (404), although I can clearly see that the resource REALLY exists !

What can I do ?
Why can't I delete the resource ?

Please help :o(



Removing properties

2002-04-22 Thread Elodie Tasia

Hi,

I noticed that the Slide client APUI's propatchMethod only add or update properties, 
and can't remove them, although the PROPATCH does. So I use the PropPatchMethod class, 
with the addPropertyToRemove method.
The problem is that, although I can add new properies and change them, the server 
answer me that when I try to remove what I've added :

PROPPATCH /files/myfiles/hello.html HTTP/1.1
Content-Length: 138
Content-Type: text/xml; charset=utf-8
Host: localhost
User-Agent: Jakarta HTTP Client/1.0

HTTP/1.1 401 Unauthorized
Content-Type: text/html
Date: Mon, 22 Apr 2002 07:24:03 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
WWW-Authenticate: Basic realm=Slide DAV Server

PROPPATCH /files/myfiles/hello.html HTTP/1.1
Content-Length: 138
Authorization: Basic cm9vdDpyb290
Content-Type: text/xml; charset=utf-8
Host: localhost
User-Agent: Jakarta HTTP Client/1.0

HTTP/1.1 207 Multi-Status
Date: Mon, 22 Apr 2002 07:24:04 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Set-Cookie: JSESSIONID=277442F2100660B203C012F0D2745151;Path=/

How can I have the authorization ? I tried this with the 'root' login, so I can't 
imagine how I could have more rights...

Can someone help ?
Thanx



Re: UNLOCK big problem

2002-04-22 Thread Elodie Tasia

Ok, I succeed in getting the token when I lock a resource.
But when I want to unlock it, I get this error message :

java.lang.ClassCastException: org.apache.commons.httpclient.State
 at
org.apache.webdav.lib.methods.UnlockMethod.parseResponse(UnlockMethod.java:1
75)
 at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:669)

My code is :


Http Client client = new HttpClient();
client.setDebug(10);
client.startSession(this.host, this.port, new Credentials(this.user,
this.passwd));

um = new UnlockMethod(this.path);
um.setDebug(10);
um.setLockToken(this.token);

client.executeMethod(um);

What does it doesn't work ? What did I miss ?

Thanx


- Original Message -
From: Tim Anderson [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 12:50 PM
Subject: RE: UNLOCK big problem


 I'm guessing, but try using the LockMethod and UnlockMethod classes
 (located in the org.apache.webdav.lib.methods package)
 directly, rather than using WebdavResource.

 WebdavResource caches lock tokens within the http session -
 if you try and do an unlockMethod() using another instance,
 the lock token associated with the path you're trying to
 unlock won't be found, and so no UNLOCK request will
 be issued to the server.

 -Tim



  -Original Message-
  From: Elodie Tasia [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 19, 2002 8:28 PM
  To: Slide Group
  Subject: UNLOCK big problem
 
 
  Hi,
 
  I'm afraid by something grave in the Slide client API : imagine
  you lock a resource for a long time or even infinite time.
  You get the resource and work it.
  It can take just a few minutes, or many hours... but you need
  anyway that the resource is locked because you're modifying it.
  And then, you want to put the new resource on the server and
  unlock them. And what happens : the server returns that the
  resource is already locked, but doesn't want to recognize you !
 
  That's what happens when you call lockMethod and unlockMethod,
  but not with the same instance resource.
  That phenomen seems to me illogical and dangerous (and to my
  boss, too !). So, what must I do ? Where is the bug ?
 
  thanx for help
 

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




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




UNLOCK big problem

2002-04-19 Thread Elodie Tasia

Hi,

I'm afraid by something grave in the Slide client API : imagine you lock a resource 
for a long time or even infinite time.
You get the resource and work it.
It can take just a few minutes, or many hours... but you need anyway that the resource 
is locked because you're modifying it.
And then, you want to put the new resource on the server and unlock them. And what 
happens : the server returns that the resource is already locked, but doesn't want to 
recognize you !

That's what happens when you call lockMethod and unlockMethod, but not with the same 
instance resource.
That phenomen seems to me illogical and dangerous (and to my boss, too !). So, what 
must I do ? Where is the bug ?

thanx for help



Retrieving lock owners

2002-04-16 Thread Elodie Tasia

Hi,

I want to retrieve the owner of a lock set on a particular resource. So I call the 
method : WebdavResource.getActiveLockOwners().
The problem is that, when I set my lock with a user called franck, for example, the 
owner returned is : /users/franck... because I'm using Slide !
But if I use Tomcat, the user name returned is : franck.

What can I do ? Must I set the lock with 'users/franck' ? Why does this method have 
this behaviour ?


Thanx



admin view in Slide

2002-04-15 Thread Elodie Tasia


In Slide's documentation, it is said, about the admin view :

 The first management component which is available is the Catalina manager web 
application. It can be accessed in context manager on port 8080 (it runs on the same 
host as the client view). The manager requires an authenticated user with role 
manager. This user is not defined in any of the Slide managed realms, but instead is 
defined in a memory based realm. The conf/tomcat-users.xml defines the users of this 
realm. 

I don't understand : I believed that, when using Slide, the users were authenticated 
by Slide's Realm, and not Tomcat. So the tomcat-users.xml file shouldn't be useful 
anymore, isn't it ?
Is this case, the manager must be defined in server/conf/slide/slide.conf ?

Thanx



Re: Lock and Unlock

2002-04-10 Thread Elodie Tasia

OK, so, I just have to understand your code, now, Mr Denbo ;o)
What I've understood it that you wait for an event before unlocking, isn't
it ?
But could you tell me was is that rNode ? I don't where it comes from...

Thanx




  SDRFrame.startAnimation();
  try {
if(resourceExists_) {
  oldResource_.lockMethod();
  result = oldResource_.putMethod(file_);
} else {
  result = web_.putMethod(path_, file_);
}

if(result) {
  PropertyChangeEvent pce = new PropertyChangeEvent(rNode_,
 childAdded, Boolean.FALSE, Boolean.TRUE);
  changes_.firePropertyChange(pce);
} else {
  JOptionPane.showMessageDialog(resource_, web_.getStatusMessage(),
Put operation failed,
JOptionPane.ERROR_MESSAGE);
}
if(resourceExists_) oldResource_.unlockMethod();
  } catch (IOException ioe) {
ioe.printStackTrace();
  } catch (HttpException he) {
he.printStackTrace();
  } finally {
SDRFrame.stopAnimation();
  }


 At 04:05 PM 4/2/2002 +0200, you wrote:
 Hi,
 
 I'm implementing the lock/unlock mechanism using the Slide client API.
 When I lock a resource with a given user and a given timeout, and if I
 want to unlock it, the api doesn't see that the user is the same : it
says
 that the resource is locked (code 423), but in the code, it finds a lock
 value null in this part of the unlockMethod :
 
  setClient();
  // Get the lock for the given path.
  WebdavState state = (WebdavState) client.getState();
  // Check the given path is alright.
  path = HttpURL.getPath(path);
  String lock = state.getLock(path);
  if (lock == null)
  return false;// so it stops there
 
 Can someone tell me why ?
 How can I 'keep' the lock to be sure I can unlock a resource ?
 
 Thanx

 ==
 Donald W. Denbo[EMAIL PROTECTED]
 Ph: (206) 526-4487   Fax: (206) 526-6744
 Collaborative tools: http://www.epic.noaa.gov/collab/
 Netcdf Browser: http://www.epic.noaa.gov/java/ncBrowse
 Scientific Java Graphics: http://www.epic.noaa.gov/java/sgt
 EPIC Oceangraphic Data Management: http://www.pmel.noaa.gov/epic
 ==


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




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




problem with UNLOCK

2002-04-09 Thread Elodie Tasia

Hi !

I've got a strange problem with the lock/unlock mechanism.
I'm using TC4 with his webdav webapp (not Slide because it doesn't want to work...).
When I lock a resource for the first time, with a given user, it works. But when I 
want to unlock this resource, it doesn't find any lock owner, so the resource can't be 
unlocked (fortunately, I don't set a lock with an infinite timeout !).
But at the secund time I lock and unlock, with the same user, it works.
And I tested that many times, and for many days, and I notice ever the same problem : 
the unlock fails the first time it is called. I can trace that with the 
WebdavResource.getActiveLockOwners() method.

What could be the reason ? Must I test my application with a timer between the lock 
and unlock ? Do the server need a few secunds before it detects the owner ?
Has anyone already had that kind of problem ?

Thanx in advance.



Re: Configuring Slide with Tomcat 4

2002-04-05 Thread Elodie Tasia

Did you find where the probelm was ?
Because I tried the same thing (modifying the server.xml file), and it
doesn't work at all, too...

- Original Message -
From: [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 5:58 PM
Subject: RE: Configuring Slide with Tomcat 4



 Thank you very much for that.

 When I start Catalina, I get the following trace. Looks like a JNDI
context
 is missing. This is running tomcat 4.1 dev with slide nightly build
03/2702

 Any thoughts on this?

 E:\jakarta-tomcat-4.0\bincatalina run
 Using CATALINA_BASE:   E:\jakarta-tomcat-4.0
 Using CATALINA_HOME:   E:\jakarta-tomcat-4.0
 Using CATALINA_TMPDIR: E:\jakarta-tomcat-4.0\temp
 Using JAVA_HOME:   c:\edrive\jdk1.4.0
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1-dev
 javax.naming.NameNotFoundException: Name java:UserDatabase is not bound in
 this Context
 at org.apache.naming.NamingContext.lookup(Unknown Source)
 at org.apache.naming.NamingContext.lookup(Unknown Source)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown
 Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 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:324)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 Catalina.start: LifecycleException:  No UserDatabase component found under
 key java:UserDatabase
 LifecycleException:  No UserDatabase component found under key
 java:UserDatabase
 at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown
 Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 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:324)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 Stopping service Tomcat-Standalone
 Catalina.stop: LifecycleException:  Coyote connector has not been started
 LifecycleException:  Coyote connector has not been started
 at
 org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1228)
 at org.apache.catalina.core.StandardService.stop(Unknown Source)
 at org.apache.catalina.core.StandardServer.stop(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 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:324)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)


 Regards
 Immanuel Babu



 |-+---
 | |   Robert Priest   |
 | |   Robert.Priest@b|
 | |   entley.com |
 | |   |
 | |   04/03/2002 10:39|
 | |   AM  |
 | |   Please respond  |
 | |   to Slide Users |
 | |   Mailing List   |
 | |   |
 |-+---

---
|
   |
|
   |To:  'Slide Users Mailing List'

Re: Configuring Slide with Tomcat 4

2002-04-05 Thread Elodie Tasia


  I downloaded Tomcat/4.0.4-b2 and slide nightly build from 04/02.

 I started deployed justl slide.war into Tomcat and Tomcat would start up
 just fine.

 The moment I started to change the authentication Realm to SlideRealm,
 Tomcat could not fined several dependencies, (which is documented) after a
 while, I ran into the same name not found exception.
Uuuh, I don't well understand this last expression (I'm french, sorry
;o) )... what did you do with that exception ?

 So I stopped autheticating agains tSlide Relam and used Tomcat Servelet
 container authentication.

 To do that after you deploy slide.war, go to web.xml (for slide) and
 uncomment the last portion of the file. restart tomcat and it seems to
 work.
So, at the end, you just deployed slide.war and uncommented the end oh
Tomcat\webapps\slide\WEB-INF\web.xml ?
So, you can't use at all this famous SlideRealm ?


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




Tomcat with Slide as webapp

2002-04-03 Thread Elodie Tasia

Hi,

I'm using Tomcat with Slide as webapp. In the CATALINA_HOME/webapps/webdav/WEB-INF 
directory, there is a web.xml file.
I uncommented these lines, as it was said in Tomcat's documentation :

 !--  Security Constraints for Testing === --

  security-constraint
web-resource-collection
  web-resource-nameThe Entire Web Application/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-nametomcat/role-name
/auth-constraint
  /security-constraint

  login-config
auth-methodBASIC/auth-method
realm-nameTomcat Supported Realm/realm-name
  /login-config

  security-role
description
  An example role defined in conf/tomcat-users.xml
/description
role-nametomcat/role-name
  /security-role
/web-app

But where can I find the complete documentation abou it ?
What describes the tag security-role ?
What would be a correct configuration, not just for testing ?


Thanx in advance



Re: Tomcat with Slide as webapp

2002-04-03 Thread Elodie Tasia



 CATALINA_HOME/webapps/webdav/WEB-INF

 That's got nothing to do with slide, it's the WebDAV-Servlet that comes
with
 Tomcat AFAICT.
Ok, so, what must I do if I want Tomcat to use Slide ? I already put the
slide.war it its webapp directory, but I don't know how to configure it
correctly.


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




Re: Tomcat 4 with Slide

2002-04-02 Thread Elodie Tasia


I think I missed something : what you call CATALINA_HOME is where you put
Tomcat or Slide ?
Because these files (slide.xml, slide.conf...) are in the /conf directory of
Slide and not Tomcat...
Maybe must I put them in Tomcat's directory but I didn't read that in any
doc...
The server subdirectory contains the slide-integrated tomcat. That was the
directory I was refering to.

Ok, I changed my CATALINA_HOME environment variable.
But I've got new troubles : when I call a simple propfind on
localhost/slide, I get that :

PROPFIND /slide HTTP/1.1
Content-Length: 91
Content-Type: text/xml; charset=utf-8
Host: localhost:8080
Depth: 1
User-Agent: Jakarta HTTP Client/1.0

HTTP/1.1 501 Method PROPFIND is not defined in RFC 2068 and is not supported
by the Servlet API
Content-Type: text/html
Date: Tue, 02 Apr 2002 11:47:47 GMT
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)

And I understand why : the namespace 'slide' is the default namespace, isn't
it ?

And I don't understand what is the filespath '/files' : where is it
physically ?




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




Re: Tomcat 4 with Slide

2002-04-02 Thread Elodie Tasia

RFC 2068 is http. The response you are getting was not generated by the
WebdavServlet. I'm guessing it wasn't installed properly. Try the following
:

- unpack the binary distribution anew somewhere, lets say at c:/
- edit c:/jakarta-slide-1.0.16/server/conf/slide/slide.data :
find objectnode element with uri attribute value '/users/root' follow the
instructions to uncomment the password property.

 I've re-installed Slide, and uncommented the password, but it doesn't
work better.

- change directory to c:/jakarta-slide-1.0.16/server/bin
- type 'catalina run' or 'startup'
- Open a browser window go to http://localhost:8081 or point the slide
client to that location.

 And you know what ?
I get at the end of the  page :

files/
ACL Info
Subject Action Inheritable Deny
/users/john /actions/manage true false
+/users/groupA /actions/write true false
nobody /actions/read true false
/users/guest /actions true false
/users/elo /actions/manage true false
+/users/group /actions/write true false

... although I deleted the users john anf groupA and replaced it with elo
and group. That's not normal, too...

Other question : if I would like to put some files to /slide, where could I
physically find them ?
How can I change the server root ? Where is it ? It's just CATALINA_HOME ?

Please, help, I become mad ! :o(


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




Lock and Unlock

2002-04-02 Thread Elodie Tasia

Hi,

I'm implementing the lock/unlock mechanism using the Slide client API.
When I lock a resource with a given user and a given timeout, and if I want to unlock 
it, the api doesn't see that the user is the same : it says that the resource is 
locked (code 423), but in the code, it finds a lock value null in this part of the 
unlockMethod :

setClient();
// Get the lock for the given path.
WebdavState state = (WebdavState) client.getState();
// Check the given path is alright.
path = HttpURL.getPath(path);
String lock = state.getLock(path);
if (lock == null)
return false;// so it stops there

Can someone tell me why ?
How can I 'keep' the lock to be sure I can unlock a resource ?

Thanx



Re: Lock and Unlock

2002-04-02 Thread Elodie Tasia

 Elodie,
  I found it necessary to use the same WebdavResource to lock,
 upadate, and then unlock the resource or I got a similar error.
What you mean is that I must use the same instance of WebdavResource to lock
and unlock ?


  Here a
 code fragment that demonstrates my solution,

  SDRFrame.startAnimation();
  try {
if(resourceExists_) {
  oldResource_.lockMethod();
  result = oldResource_.putMethod(file_);
} else {
  result = web_.putMethod(path_, file_);
}

if(result) {
  PropertyChangeEvent pce = new PropertyChangeEvent(rNode_,
 childAdded, Boolean.FALSE, Boolean.TRUE);
  changes_.firePropertyChange(pce);
} else {
  JOptionPane.showMessageDialog(resource_, web_.getStatusMessage(),
Put operation failed,
JOptionPane.ERROR_MESSAGE);
}
if(resourceExists_) oldResource_.unlockMethod();
  } catch (IOException ioe) {
ioe.printStackTrace();
  } catch (HttpException he) {
he.printStackTrace();
  } finally {
SDRFrame.stopAnimation();
  }

Mmmmh, soory, I didn't tried nor understood your demonstration. What result
do you have with that ?


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




Re: Tomcat 4 with Slide

2002-04-01 Thread Elodie Tasia



  Is that normal that I can get anything when I call localhost:8081 or
 localhost:8081 ?

 Sorry I didn't get that one. Could you rephrase ?

Oups, excuse me, I wanted to say : is that normal that I CAN'T get anything
when I call http://localhost:8081 or localhost:8081 ?


 When you declare a namespace in Domain.xml in {CATALINA_HOME}/conf, on
 startup the namespace will get its own application context for each of
these
 services.
  Huh, excuse me, but I don't have such a file in this directory... Must
I
 put it there ?
 Ok my fault, the physical file is called slide.xml. It's the same dtd and
 function as Domain.xml, except that, for easier maintenance I guess,
instead
 of declaring everything in one big file, it devides one namespace
definition
 out into three seperate files : a.conf , a.def, and a.data file.

I think I missed something : what you call CATALINA_HOME is where you put
Tomcat or Slide ?
Because these files (slide.xml, slide.conf...) are in the /conf directory of
Slide and not Tomcat...
Maybe must I put them in Tomcat's directory but I didn't read that in any
doc...


 The data
 part of Domain.xml is a way to initialize the namespace if either, this is
 the first time you start up and there is no data in your persistent stores
 yet, or you use a non persistent store such as a memory store for all or
 part of your namespace and need to reinitialize on each startup.


Could you give an example of a well configured .data file ?

Thanx


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




Re: Tomcat 4 with Slide

2002-03-28 Thread Elodie Tasia


- Original Message -
From: Unico Hommes [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 4:15 PM
Subject: RE: Tomcat 4 with Slide


The binary distribution of Slide ships with a tomcat4 distribution that is
configured in a specific way to integrate with Slide. This means that there
is more to it than just the WebDav Servlet. If you run the startup batch
without making any changes to the configuration, three catalina Services are
started. One on port 8080, another service on port 8081, and one on port
8082.
On 8080 an application dedicated for front-end publishing of the resources
in the namespace, on 8081 an application with wich you can content edit the
namespace thru the webdav protocol, and on 8082 an application is installed
with wich you can manage the namespace.

 Is that normal that I can get anything when I call localhost:8081 or
localhost:8081 ?


 When you declare a namespace in Domain.xml in {CATALINA_HOME}/conf, on
startup the namespace will get its own application context for each of these
services.

 Huh, excuse me, but I don't have such a file in this directory... Must I
put it there ?



-Oorspronkelijk bericht-
Van: Elodie Tasia [mailto:[EMAIL PROTECTED]]
Verzonden: Friday, March 08, 2002 3:36 PM
Aan: Slide Group
Onderwerp: Tomcat 4 with Slide


Hi,

I'm using Tomcat 4 with Slide.
I remarked that, when I test the slide command line client, the server
points to SLIDE_HOME\client\ directory.
Is that normal ? Can I change it ?

And I've another question : it is the same thing that lanching Tomcat, with
slide.war in webapps directory, and launching Slide, that embeds Tomcat ?

It is a basis question, but I've got so many problem to make my server run
normally that I prefer begin again... with the beginning !

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




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




Problem with proppatch

2002-03-27 Thread Elodie Tasia

Hi !

I have a big problem with the PROPPATCH method...

I try to do that kind of action : I create a resource and I had a new property.
My code is like that :

WebdavResource res = new WebdavResource(localhost, 8080, /webdav/index.html, 
root, root);
res.proppatchMethod(/webdav/index.html,  author, Joe);

Although it works very well with Apache, with Slide, I receive a nice :

HTTP/1.1 405 Method Not Allowed
Content-Type: text/html
Date: Wed, 27 Mar 2002 11:12:36 GMT
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)

So maybe I didn't configured well the root, but I don't know why, and I wonder if I 
missed something in the configuration of Slide or not.
Can someone help ?

Thanx



Re: Problem with proppatch

2002-03-27 Thread Elodie Tasia


- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 5:53 PM
Subject: Re: Problem with proppatch


  Yes, I guess, but how ? I don't understand anything in these
configuration
  files :o(
  Must I write something particular in sever.xml ? domain.xml ? something
 else
  ?

 The TC 4 integrated WebDAV support doesn't handle PROPPATCH, if that's
what
 you are using as the server.

 If you think you're using Slide, is the Slide context '/webdav' ?
 '/webdav/index.html' doesn't look like a valid URL in the Slide namespace
 (unless you did upload the file yourself there).


Yes, I'm using Slide, and yes, the files index.html has been put there by me
: it was just an exemple...
The problem is that when I use the path /slide or /files (I saw them in
some examples), I don't see where the files are put : I can't find them on
my disk...
So, what you say is that Tomcat doesn't support proppatch ? But why ?


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




problem with Apache propfind

2002-03-22 Thread Elodie Tasia

Hi !

When I use the constructor method WebdavResource(HttpUrl, action, depth), it works 
very well if the HttpUrl corresponds to a resource on a Slide server (with host = 
localhost and port = 8080).
But when I use it for a resource on Apache/mod_dav server (port = 80), I get that 
horrible message :

org.apache.commons.httpclient.HttpException: Unauthorized  401
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
 at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:2829)
 at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:2798)
 at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:693)
 at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:680)
 at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1539)
 at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:987) 
 at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1006)
 at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1085)
 at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1103)
 at org.apache.webdav.lib.WebdavResource.init(WebdavResource.java:275)

and I don't understand why, because I set right user info (or I think I'm right).
In my httpd.conf I have this :

Directory /
AuthName everteam
AuthType Basic
AuthGroupFile D:\Program Files\Apache Group\Apache\conf\ap_group.conf
AuthUserFile D:\Program Files\Apache Group\Apache\conf\ap_user.conf
AuthAuthoritative on
Options FollowSymLinks
AllowOverride None
DAV On
   Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK
   Require user admin frb elo
   /Limit
/Directory

and the passwords of two users frb and elo are in the file ap_user.conf. So I think 
this is right configured (but I'm not sure, I may have missed something).

Can someone help me ? I feel desperate :o(




Re: problem with Apache propfind

2002-03-22 Thread Elodie Tasia

I've just tried with the configuration you gave me and it doesn't work at
all...

For my code, I got problem as soon as I call the constructeur :

hUrl = new HttpURL(host, port, path);
davRes = new WebdavResource(hUrl, defaultAction, defaultDepth);
davRes.setUserInfo(user, passwd);

With host = localhost, port=80, and path is the right path of a resource
on the server.
And the program does go to setUserInfo : it gets an error just before...
As for the configuration of the server, I didn't change much things except
that I gave you (and that configuration was given to me, I didn't write it
myself, so I supposed it was ok)...

What I don't undestand too is why the propfind method is launched within the
constructor method (you can see it in my message error).
When I try that code :

HttpClient client = new HttpClient();
client.setDebug(10);
client.startSession(localhost, 80, new Credentials(user, passwd));
it works very well..
And I can call after that methods like PROPFIND or PROPPATCH without any
problem...

That makes a lot of incoherence, don't you think ?



- Original Message -
From: Sung-Gu [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 11:23 AM
Subject: Re: problem with Apache  propfind



 - Original Message -
 From: Elodie Tasia [EMAIL PROTECTED]
 To: Slide Group [EMAIL PROTECTED]
 Sent: Friday, March 22, 2002 6:13 PM
 Subject: problem with Apache  propfind


 org.apache.commons.httpclient.HttpException: Unauthorized  401

 Directory /
 AuthName everteam
 AuthType Basic
 AuthGroupFile D:\Program Files\Apache
Group\Apache\conf\ap_group.conf
 AuthUserFile D:\Program Files\Apache Group\Apache\conf\ap_user.conf
 AuthAuthoritative on
 Options FollowSymLinks  == U can set set All temporarily for ur
eaiser debugging
 AllowOverride None
 DAV On
Order allow, deny  ==  Please, add it.
Allow from .ur_domain.net (or ur_host or all)   == Please, add it.
Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK
Require user admin frb elo
/Limit
 /Directory

 I think ur configuration is so stricted.  u need to set that ur client is
possible to get stuff from the server at least.

 If it wouldn't work well, additional information about ur password, ur
code and the additional server configuration is required to guess ur
problem.

 Sung-Gu




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




Re: problem with Apache propfind

2002-03-22 Thread Elodie Tasia

 You should get HttpException and its message is about authentication.
 As I remember it... And in HttpException you can set user info.
  I don't know why u don't get it right now. :(
Yes, that's what I've just found : I had to set the userInfo for the
HttpUrl, and not only for the WebdavResource...
But you can't set any user if you call WebdavResource(String escapedUrl),
don't you ?

 What kinda slide version did u try to it?
The last one : a nighlty built, not the release because there was a bud in
the generation of host header (I think you remember of me : I talked about
that last week ;o) )


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




Propfind method in Slide client

2002-03-21 Thread Elodie Tasia

Hi,

I'm trying to use the propfindMethod(path, depth) from WebdavResource class, but I 
don't understand why it returns an Enumeration of XMLMethodBase, that I can't use to 
get the properties.

What is the right call to this method ?

Thanx



proppatchMethod

2002-03-21 Thread Elodie Tasia

Hi,

I'm testing the proppathMethod from the class WebdavResource.
But I've seen in the code source that there is written that the property name must be 
in DAV: namespace.
When I try to use it to change the value of an existing property, I get a not allowed 
method, even if I'm logged as root (but I think it's logical...). But when I try to 
create a new property with the same method, I get the same message.
In theorie,  I could do it...

Can someone help ?
Thanx



Re: problem with Host header

2002-03-14 Thread Elodie Tasia

Because of that problem, I've just re-installed Slide server 1.0.16. I
didn't change anything (ok, maybe I added one user ot two...), and I
launched the startup.bat as it was. I can't imagine how and why the server
wouldn't be correctly configured by default... :o(
I tried with Apache + mod_dav too, and when you've got Host:
http://localhost;, the logs file says client sent malformed Host header.
I'm sorry, but I believe it !!! And since it worked when I set the host
header as Host: localhost, I didn't go farther...
I just say that *maybe* there is *somewhere* a * very little* problem with
the client librairy (for example : the http://; should be deleted and it is
not) but I don't think that the problem comes from the server...
I'm not aggressive, but maybe other people did have that problem once time,
and I just want to understand... ;o)

Regards,
Elo

- Original Message -
From: Sung-Gu [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 10:11 AM
Subject: Re: problem with Host header



 Sorry, I guessed you wrong.
 I thought that you might not be with the WebDAV server correctly.
 And host parameter is no problem with http://; or not.  :(

 However, it shouldn't be there... :(
 Did you run with common http in Slide cvs repository?

 Sung-Gu


 - Original Message -
 From: Elodie Tasia [EMAIL PROTECTED]
 To: Slide Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 14, 2002 4:39 PM
 Subject: Re: problem with Host header


  I don't understand what you mean...
  The problem is that there is a http://; before my localhost that
  should'nt be here, no ?
 
 
  - Original Message -
  From: Sung-Gu [EMAIL PROTECTED]
  To: Slide Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, March 14, 2002 5:06 AM
  Subject: Re: problem with Host header
 
 
  
   Did you set the web root as WebDAV support manually, didn't you?
   I think you'd better consider the security in the server side.
   You're making the collection on the web root.
  
   Sung-Gu
  
   - Original Message -
   From: Elodie Tasia [EMAIL PROTECTED]
   To: Slide Group [EMAIL PROTECTED]
   Sent: Wednesday, March 13, 2002 5:12 PM
   Subject: problem with Host header
  
  
   Hi !
  
   I'm using a code example that was given on this list :
  
   HttpClient client=new HttpClient();
   client.startSession(localhost,80, new
  Credentials(root,root));
   client.setDebug(10);
   MkcolMethod mc=new MkcolMethod();
   mc.setPath(/newpath);
   client.executeMethod(mc);
   client.endSession();
  
   The method generated with it is :
  
   MKCOL /newpath HTTP/1.1
   Content-Length: 0
   Host: http://localhost
   User-Agent: Jakarta HTTP Client/1.0
  
   But I receive the error message :
  
   HTTP/1.1 400 Bad Request
   Date: Wed, 13 Mar 2002 08:09:14 GMT
   Server: Apache/1.3.20 (Win32) DAV/1.0.3-dev
   Connection: close
   Transfer-Encoding: chunked
   Content-Type: text/html; charset=iso-8859-1
  
   And I've just found why ! Because the host should be localhost, and
not
  http://localhost.
   But the way how the host header is generated depends not on me.. What
can
  I do ?
  
  
  
  
  
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 



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




Problem with Slide server

2002-03-13 Thread Elodie Tasia

Did someone ever have such a message when using the slide server and calling the mkcol 
method implemented in the slide client API ???

HTTP/1.1 501 Method MKCOL is not defined in RFC 2068 and is not supported by the 
Servlet API 
Content-Type: text/html
Date: Wed, 13 Mar 2002 15:38:30 GMT
Server: Apache Tomcat/4.1-dev (HTTP/1.1 Connector)




problem with Host header

2002-03-12 Thread Elodie Tasia

Hi !

I'm using a code example that was given on this list :

HttpClient client=new HttpClient();
client.startSession(localhost,80, new Credentials(root,root));
client.setDebug(10);
MkcolMethod mc=new MkcolMethod();
mc.setPath(/newpath);
client.executeMethod(mc);
client.endSession();

The method generated with it is :

MKCOL /newpath HTTP/1.1
Content-Length: 0
Host: http://localhost
User-Agent: Jakarta HTTP Client/1.0

But I receive the error message :

HTTP/1.1 400 Bad Request
Date: Wed, 13 Mar 2002 08:09:14 GMT
Server: Apache/1.3.20 (Win32) DAV/1.0.3-dev
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

And I've just found why ! Because the host should be localhost, and not 
http://localhost.
But the way how the host header is generated depends not on me.. What can I do ?






Re: Problem with Slide command line client

2002-03-08 Thread Elodie Tasia

Thanx, now I can run it !
But many methods don't work.
For example :

[LOCALHOST] /slide/ $ mkcol test2
Making '/slide/test2' collection: failed.
Bad Request (400)

I tried with many differnts directories or calls, but I get every time a Bad
Request. Why ?


And I've got an other sort of error :

[LOCALHOST] /slide/ $ options /
org.xml.sax.SAXParseException: org.apache.crimson.parser/P-034 br 4
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1474)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
79)
at
org.apache.webdav.lib.methods.OptionsMethod.parseResponseContent(OptionsMeth
od.java:403)
at
org.apache.webdav.lib.methods.OptionsMethod.parseResponse(OptionsMethod.java
:356)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:667)
at
org.apache.webdav.lib.WebdavResource.optionsMethod(WebdavResource.java:2383)
at org.apache.webdav.cmd.Slide.processCommands(Slide.java:583)
at org.apache.webdav.cmd.Slide$1.run(Slide.java:206)
at java.lang.Thread.run(Thread.java:484)


It's awful !!!


- Original Message -
From: Unico Hommes [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 1:07 PM
Subject: RE: Problem with Slide command line client


The anwer to this one is also in the archives.

Instead of :

D:\Program Files\Apache Group\Slide\client\binrun

Try :

D:\Program Files\Apache Group\Slide\clientbin\run





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




Re: Problem with Slide command line client

2002-03-08 Thread Elodie Tasia

I'm using Slide 1.0.16.
In fact, my real problem is that I get bad request error when I try tu use
any method of the Slide client API.
So I wanted to try with the command line client, but the problem is the
same...
Maybe I missed something in the configuration of Tomcat and/or Slide, but I
can't imagine what : it so difficult to configure them !


- Original Message -
From: Unico Hommes [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 2:59 PM
Subject: RE: Problem with Slide command line client



But many methods don't work.
For example :

[LOCALHOST] /slide/ $ mkcol test2
Making '/slide/test2' collection: failed.
Bad Request (400)

I tried with many differnts directories or calls, but I get every time a
Bad
Request. Why ?

The server says it doesn't understand the request made by the client. But
why? I couldn't tell you.


It's awful !!!

It seems so.

If you are experiencing problems with the command line client try to use
Windows webfolders. They don't give me any problems.

What version of Slide are you running ?


- Original Message -
From: Unico Hommes [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 1:07 PM
Subject: RE: Problem with Slide command line client


The anwer to this one is also in the archives.

Instead of :

D:\Program Files\Apache Group\Slide\client\binrun

Try :

D:\Program Files\Apache Group\Slide\clientbin\run





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


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




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




Tomcat 4 with Slide

2002-03-08 Thread Elodie Tasia

Hi, 

I'm using Tomcat 4 with Slide.
I remarked that, when I test the slide command line client, the server points to 
SLIDE_HOME\client\ directory.
Is that normal ? Can I change it ?

And I've another question : it is the same thing that lanching Tomcat, with slide.war 
in webapps directory, and launching Slide, that embeds Tomcat ?

It is a basis question, but I've got so many problem to make my server run normally 
that I prefer begin again... with the beginning !



Servlet not in webapps directory

2001-06-21 Thread elodie . tasia

Hi ! It is possible to lauch a sevlet that is not in the TOMCAT_HOME
directory ?
Can I do that by configuring a Context for my servlet ? And how exactly ?

thanx

-- 
Sent through GMX FreeMail - http://www.gmx.net




RE: Servlet not in webapps directory

2001-06-21 Thread elodie . tasia

 In the server.xml you can define a new Context that maps between context
 and
 actual directory.
 
 In the following example calling servlets through
 http://your.company.com/tt/servlet/myservlet
 will launch the servlets from d:/xx/yy/zz/webpages
 
   Context path=/tt docBase=d:/xx/yy/zz/webpages
 crossContext=true debug=0 reloadable=true  trusted=false/
 
 if you want to call servlets from the server root set the path to .
 

I tried that, but it doesn't work :
with the URL http://your.company.com/tt/ I get the tree of the directory
d:/xx/yy/zz/webpages/

but when I try http://your.company.com/tt/servlet/myservlet
or even http://your.company.com/tt/myservlet
I get a 404 error and I don't understand why.

In the webpages directory, must there be special folders ?
And I wonder if I must put something in the http.conf or in my mod_jk.conf
...

Please help !!! ;o)
Thanx in advance...

-- 
Sent through GMX FreeMail - http://www.gmx.net



RE: Servlet not in webapps directory

2001-06-21 Thread elodie . tasia

 
 In order that it will work the d:/xx/yy/zz/webpages/ directory should be
 in
 the classpath variable before running Tomcat,
 so Tomcat can find your servlet.
 
 Another way, and actually the standard one, is to create WEB-INF/classes
 directory under d:/xx/yy/zz/webpages/
 and put there your servlets. This directory is automatically added to the
 classpath of Tomcat, and you do not
 need to add anything.
 
 You can look at the webapps directory that comes with Tomcat installation,
 the servlets examples are in this
 exact structure.
Yes, that's what I've just discovered, but I would like Tomcat not to go in
WEB-INF/classes/ but where I want, and I don't know exactly where configuring
the classpath and how...

Thanx for all and excuse me if I insist, but I want to be sure of what I
do... ;o)

-- 
Sent through GMX FreeMail - http://www.gmx.net



[forum CSSA] Et Dominique Gourville alors!!!!

2001-04-12 Thread Elodie

This message was sent from: Forum du CSSA.
http://mediaplan.ovh.net/~radiofm/sedanfreefr/forum/read.php?f=1i=1390t=1390 


Salut à tous,

je me pose juste une petite question.Maintenant que David DI TOMMASO est
arrivé au CSSA afin d'être remplaçant de Cédric ELZEARD, que va devenir
Dominique Gourville.
je trouve que c'est pas juste pour lui de devoir jouer à chaque fois en CFA2
alors qu'il était là avant David.
Qu'en pensez-vous fidéles supporters.
ELODIE



Sent using Phorum software version 3.2.11 http://phorum.org 

Ne pas repondre aux message sur la liste mais sur le forum.
Pour se désinscrire : 
mailto:[EMAIL PROTECTED]?subject=unsubscribe





<    1   2   3   4   5   6