RE: JCA Connector/authentication

2005-01-25 Thread Ryan Rhodes
I use a custom JAAS module for jboss, because the slide jaas module stores a 
SlidePrincipal and SlideGroups on the JAAS subject.

In order for jboss to authenticate a webapp or ejb with a user coming from 
JAAS, the JAAS module must use org.jboss.security.SimplePrincipal and 
org.jboss.security.SimpleGroup.

This is just a hunch, but OC4J might also require an oracle specific 
princial.  A quick search gave me these two classes.

oracle.j2ee.connector.InitiatingPrincipal
oracle.j2ee.connector.InitiatingGroup
hope this helps.
-Ryan Rhodes

From: Andrew Tibets <[EMAIL PROTECTED]>
Reply-To: Andrew Tibets <[EMAIL PROTECTED]>
To: Slide Users Mailing List 
Subject: JCA Connector/authentication
Date: Mon, 24 Jan 2005 12:31:12 +0200
Hello,
I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear 
file.
When I access Slide through browser the login window appears,
I enter username: root password: root, Slide authentication goes as "root".
But when I access through WebDAV JCA Connector or DAVExplorer
Slide authentication goes as "unauthenticated" and I cannot access 
/slide/files.

ejb-jar.xml:

jca/WebDAV-Connector

org.apache.webdav.connector.WebDAVConnectionFactory
Application

ejb class:
url = (String) findEnvEntryValue(SERVER_URI);
userName = (String) findEnvEntryValue(SERVER_USER_NAME);
password = (String) findEnvEntryValue(SERVER_PASSWORD);
timeout = (Integer) findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT);

WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, 
userName, password, timeout.intValue());
return (WebDAVConnection) factory.getConnection(spec);

url = http://pc268/slide/files
username = root
password = root
timeout = 50
log: through browser
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for 
user: jazn.com/anonymous
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for 
user: jazn.com/anonymous
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for 
user: jazn.com/anonymous
05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 
11:09:33, root, GET, 200 "OK", 31 ms, /

log: through DAVExplorer
05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
11:10:52, unauthenticated, OPTIONS, 200 "OK", 16 ms, /
05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
11:10:52, unauthenticated, PROPFIND, 207 "Multi-Status", 109 ms, /
log: through  WebDAV JCA Connector
05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
- ERROR - [SlideLoginModule] - Failure during login()
- Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
- ERROR - org.apache.slide.security.AccessDeniedException:
Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException:
Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14   at 
org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409)
05/01/24 11:12:14   at 
org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179)
05/01/24 11:12:14   at 
org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:155)
...
05/01/24 11:12:14 Authentication Failed
05/01/24 11:12:14 Authentication: FAILED.
05/01/24 11:12:14 JAAS-OC4J: Authentication failure for user:


Why access through DAVExplorer/Connector is authenticated as 
"unauthenticated"?

   Thanks.
--
Best regards,
 Andrew  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: JCA adapter question

2004-12-16 Thread Ryan Rhodes
Hi Brian,
I believe the set of connections that is passed to matchManagedConnections 
is only the inactive connections.  It's the containers responsibility to 
take care of that.

The reason this method always returns the first connection in the inactive 
set, is because we are not keeping any connection configuration state on the 
managedconnection.  We just setup the connection every time it is opened 
with WebDAVManagedConnection.open(), and we throw it away every time the 
connection is closed with WebDAVManagedConnection.cleanup().

The latest version allows for container managed authentication where the 
connection is created using a JAAS Subject, but I did not rewrite the 
matching to try to keep around the authentication information and reuse it 
by matching.

-Ryan Rhodes
From: Brian DeHaven <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: JCA adapter question
Date: Wed, 15 Dec 2004 16:44:06 -0500
I have the JCA adapter mostly working in weblogic, but this isn't really a
weblogic specific question. If no one has converted it yet, only a few
changes were needed so far.. such as using interfaces so you can cast the
connection proxy to something useful by the client.
I'm running into a problem with the
WebDAVManagedConnectionFactory.matchManagedConnections call, however. Once
one connection is created, this method always matches with the first
created connection and never returns null.. thus no new connections are
ever created beyond the first one. I'm unsure if the Set of connections
passed in represents all connections (active or inactive) or should only
include inactive connections. In other words, who should be determining
that a new connection needs to be created? This matchManagedConnections
method or the creator of the Set of connections being considered for a
match?
I want to be sure this functionality (adding new connections at runtime
beyond the first one) is working in JBoss, so I know if this is a weblogic
issue or a coding issue of the JCA adapter. Thanks for any help.

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


Re: slide and jboss

2004-11-30 Thread Ryan Rhodes
Hi Roy,
Another option besides auto-create-users is to use Slide as the actual 
authentication realm.  That way you can manage your users in Slide, and let 
Tomcat pull its usernames and passwords from Slide when you try to login.

A SlideLoginModule that works with jboss was posted to the list by James 
Higginbotham.  I don't think I had to make any changes to it for jboss 3.2.5 
- 3.2.7.  You can find it here:

http://www.mail-archive.com/slide-user@jakarta.apache.org/msg03493.html
Here is a policy file that you can use for this:
  
 

   slide

 
  

Good Luck,
Ryan Rhodes

From: "Roy Russo" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: slide and jboss Date: Tue, 30 Nov 2004 11:50:59 -0500
ok... I got it working, without going to the DB for now, and heres what I 
did. (I will update our wiki page this week) It is exactly the same as 
securing the jmx-console: 
http://www.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole

1. Upack the slide.war and place it under the deploy dir.
2. Create /WEB-INF/classes/slide-users.properties and 
/WEB-INF/classes/slide-roles.properties
3. Edit the /server/standard/conf/login-config.xml and add a security 
domain for slide-domain:

   
   
  
 
flag = "required">
slide-users.properties
slide-roles.properties
 
  
   
4. Create /WEB-INF/jboss-web.xml and add this to it:


 java:/jaas/slide-domain

5. Go in to /WEB-INF/web.xml and uncomment the security contraint blocks at 
the bottom.

6. Start jboss.
7. Go to http://localhost:8080/slide and you should be prompted for a 
login.

I think I got it all. Thank you very much, Pat.
Roy Russo
JBoss Portal Developer
JBoss, Inc.
404-467-8555 x223
[EMAIL PROTECTED]
- Original Message - From: "Patrick van Kann" 
<[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>; "Slide 
Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 30, 2004 10:54 AM
Subject: RE: slide and jboss

auto-create-users will have no effect until you secure slide using a 
non-Slide realm. You have to get that working first - and the wiki page 
doesn't really describe this properly. The effect it will have is that when 
you authenticate against the external realm, Slide will automatically 
create a collection in /slide/users named after the principal you have 
logged in as.

I believe there is also a setting for auto-create-roles that will do the 
same with any of the roles that the principal has in /slide/roles.

The effect of this is that you will then be able to set ACLS on specific 
URIs based on these users and roles.

If you don't use auto-create-users and auto-create-roles, you can use 
application logic (say in the portlet itself, assuming this is what you are 
developing) that can create these collections for you.

These settings got non-slide authentication working for me:
server/default/deploy/slide.war/WEB-INF/jboss-web.xml

http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd";>


 
   
org.apache.slide:loader=slide.war
 

 java:/jaas/slide-domain
  
   jdbc/SlideDS
   javax.sql.DataSource
   java:/jdbc/SlideDS
   

in server/default/conf/login-config.xml I added a policy

   
 
   java:/jdbc/SecurityDS
   
 select password from Users where username=?
   
   
 select groupname, null
 from GroupMembers m
 where m.username = ?
   
 
   
 

Hope it helps.
Patrick
-Original Message-
From: Roy Russo [mailto:[EMAIL PROTECTED]
Sent: Tue 11/30/2004 3:29 PM
To: Slide Users Mailing List
Subject: Re: slide and jboss
Well, its definitely good news to hear that someone got it working.
I'm building on jboss-4.0. Shouldn't be too different, save the fact that
its sitting on Tomcat 5. I tried adding the auto-create-users node to
domain.xml and it had no effect. Could you give me an example of of
configuring the SlideRealm?
Once I get this working, I'll update the wiki page as well... it leaves a
lot of loose ends.
Roy Russo
JBoss Portal Developer
JBoss, Inc.
404-467-8555 x223
[EMAIL PROTECTED]
- Original Message - From: "Patrick van Kann" 
<[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 30, 2004 10:01 AM
Subject: RE: slide and jboss


I got it working with JBoss 3.2.5 by following the advice on the JBoss 
wiki:

http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide
I am not using the Slide authentication - I am using the JBoss RDBMS realm.
This means that you either need to use the "auto-create-users" = true
setting in Domain.xml or manually synchronise users in your Realm with the
Slide users at /slide/users.
Hope this helps.

RE: Custom authorization and authentication best practices

2004-11-03 Thread Ryan Rhodes
Yes!
setPath is exactly what I was looking for.  Thats perfect.
thanks,
-Ryan Rhodes
From: "John Gilbert" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Custom authorization and authentication best practices
Date: Wed, 3 Nov 2004 14:12:52 -0500
I was thinking of adding this property
...

   ConnectionURL
   java.lang.String
http://localhost:7001/slide/

And then in the code I can use the setPath() method to navigate to a
relative path
...
connection.getWebdavResource();
webdavResource.setPath("files/someDir");
I haven't looked into all the details with getting credentials from the
subject and using container managed sign-on.

-Original Message-
From: Ryan Rhodes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 12:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Custom authorization and authentication best practices
John,
Well, it looks like there are three cases we need to handle and we are
only
handling one of them.  Right now the username/password/url are coming
from
the connection spec.  They can also come from configuration properties.
The case I need is when the credentials come from the JAAS Subject as a:
javax.resource.spi.security.PasswordCredential.
I don't think that the JCA specifications are clear on exactly which
credentials should be used when they are supplied through more than one
method.
I'm using JBoss.  I'm pretty sure the PasswordCredential should work the
same under weblogic because I was using a lot of weblogic docs for info.
I
think weblogic also supports caller impersonation.
I was really hoping somebody could shed some light on making the url
configurable.  I'm doing it from a config property right now like you
said.
That means I can only set the url to the slide root.  I'm then using
WebdavResource.getChildResources() to navigate down, but I feel like
that
might be doing a whole bunch of extra round trips, when I usually only
want
one resource at a time.
Whats the best way to do this?
Regards,
-Ryan Rhodes


>From: "John Gilbert" <[EMAIL PROTECTED]>
>Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
>To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Custom authorization and authentication best practices
>Date: Wed, 3 Nov 2004 12:22:20 -0500
>
>Ryan,
>
>What kind of changes are you looking to do for the jca connector? I was
>thinking of doing the same thing. For example, providing a property for
>the url and using container managed authentication.
>
>Also, are you using weblogic?
>
>- John
>
>
>-Original Message-
>From: Ryan Rhodes [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, November 03, 2004 11:31 AM
>To: [EMAIL PROTECTED]
>Subject: RE: Custom authorization and authentication best practices
>
>Hi Morten,
>
>I'm working on something similar to this right now.  One way it "Could"
>be
>done is this.
>
>1)  Use a JAAS Login module to make slide the authentication realm for
>the
>web container.  This way users and roles are pulled from Slide for web
>applications.
>
>2)  Use the JCA Connector to connect web applications to Slide.
>
>3)  Use a second JAAS login config for the JCA Connector.  JCA supports
>3 or
>4 different types of authentication.  The type called "Caller
>Impersonation"
>   allows you to pass on the user/roles from the calling web/ejb
>application
>to be used by the JCA connection.  This way you don't have to keep
>around
>the username/password from the web login to re-use with Slide.  The
>application server handles it for you, and the web user will
>automatically
>be limited to whatever document permisions they have in slide.
>
>Right now, the JCA Connector doesn't support any type of declarative
>configuration.  The login/pass are passed programatically through the
>WebDavConnectionSpec when you create a connection.
>
>When I finish making it configurable I'll submit the changes, but I'll
>warn
>you that (#3) will always require configuration that is specific to the
>application server.  Not every app server supports Caller
Impersonation,
>and
>I think (#1), at least on Jboss, requires a JAAS Login Module that uses
>propriertary JBoss libraries and I heard those can't be mixed with
>Apache
>License, so... it probably won't be support by Slide.
>
>Hope that Helps,
>
>Ryan Rhodes
>
>
>
>
>
> >From: Morten <[EMAIL PROTECTED]>
> >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Custom authorization and authentication best 

RE: Custom authorization and authentication best practices

2004-11-03 Thread Ryan Rhodes
John,
Well, it looks like there are three cases we need to handle and we are only 
handling one of them.  Right now the username/password/url are coming from 
the connection spec.  They can also come from configuration properties.

The case I need is when the credentials come from the JAAS Subject as a:
javax.resource.spi.security.PasswordCredential.
I don't think that the JCA specifications are clear on exactly which 
credentials should be used when they are supplied through more than one 
method.

I'm using JBoss.  I'm pretty sure the PasswordCredential should work the 
same under weblogic because I was using a lot of weblogic docs for info.  I 
think weblogic also supports caller impersonation.

I was really hoping somebody could shed some light on making the url 
configurable.  I'm doing it from a config property right now like you said.  
That means I can only set the url to the slide root.  I'm then using 
WebdavResource.getChildResources() to navigate down, but I feel like that 
might be doing a whole bunch of extra round trips, when I usually only want 
one resource at a time.

Whats the best way to do this?
Regards,
-Ryan Rhodes


From: "John Gilbert" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Custom authorization and authentication best practices
Date: Wed, 3 Nov 2004 12:22:20 -0500
Ryan,
What kind of changes are you looking to do for the jca connector? I was
thinking of doing the same thing. For example, providing a property for
the url and using container managed authentication.
Also, are you using weblogic?
- John
-Original Message-
From: Ryan Rhodes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 11:31 AM
To: [EMAIL PROTECTED]
Subject: RE: Custom authorization and authentication best practices
Hi Morten,
I'm working on something similar to this right now.  One way it "Could"
be
done is this.
1)  Use a JAAS Login module to make slide the authentication realm for
the
web container.  This way users and roles are pulled from Slide for web
applications.
2)  Use the JCA Connector to connect web applications to Slide.
3)  Use a second JAAS login config for the JCA Connector.  JCA supports
3 or
4 different types of authentication.  The type called "Caller
Impersonation"
  allows you to pass on the user/roles from the calling web/ejb
application
to be used by the JCA connection.  This way you don't have to keep
around
the username/password from the web login to re-use with Slide.  The
application server handles it for you, and the web user will
automatically
be limited to whatever document permisions they have in slide.
Right now, the JCA Connector doesn't support any type of declarative
configuration.  The login/pass are passed programatically through the
WebDavConnectionSpec when you create a connection.
When I finish making it configurable I'll submit the changes, but I'll
warn
you that (#3) will always require configuration that is specific to the
application server.  Not every app server supports Caller Impersonation,
and
I think (#1), at least on Jboss, requires a JAAS Login Module that uses
propriertary JBoss libraries and I heard those can't be mixed with
Apache
License, so... it probably won't be support by Slide.
Hope that Helps,
Ryan Rhodes


>From: Morten <[EMAIL PROTECTED]>
>Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Custom authorization and authentication best practices
>Date: Mon, 01 Nov 2004 19:15:34 +0100
>
>Hi.
>
>I will be using Slide as a file system based content repository. It
will be
>part of a web-application which contains a UI to add/remove users and
set
>permissions at folder level.
>
>This means I need to integrate Slide with my web-app. I see 2 possible
>methods:
>
>1. Slide accesses an external data-source for authentication and
>authorization, possibly via a custom plug-in (could be done using WCK,
but
>that impacts DeltaV).
>
>2. The users and permissions get set in Slide explicitly using an API
>(pointers to which greatly appreciated).
>
>Functionally, I need to be able to answer the questions "Is user X with
>password Y a valid user?" and "Can user X access folder Z?"
>
>Which of the above is the preferred approach and what is the "proper"
way
>to go about it? What's considered best practices? Studying WCK, Realms,
>JAAS, Projector gives lots of options on authentication, but I fail to
find
>options for authorization.
>
>Br,
>
>Morten
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


RE: Custom authorization and authentication best practices

2004-11-03 Thread Ryan Rhodes
Hi Morten,
I'm working on something similar to this right now.  One way it "Could" be 
done is this.

1)  Use a JAAS Login module to make slide the authentication realm for the 
web container.  This way users and roles are pulled from Slide for web 
applications.

2)  Use the JCA Connector to connect web applications to Slide.
3)  Use a second JAAS login config for the JCA Connector.  JCA supports 3 or 
4 different types of authentication.  The type called "Caller Impersonation" 
 allows you to pass on the user/roles from the calling web/ejb application 
to be used by the JCA connection.  This way you don't have to keep around 
the username/password from the web login to re-use with Slide.  The 
application server handles it for you, and the web user will automatically 
be limited to whatever document permisions they have in slide.

Right now, the JCA Connector doesn't support any type of declarative 
configuration.  The login/pass are passed programatically through the 
WebDavConnectionSpec when you create a connection.

When I finish making it configurable I'll submit the changes, but I'll warn 
you that (#3) will always require configuration that is specific to the 
application server.  Not every app server supports Caller Impersonation, and 
I think (#1), at least on Jboss, requires a JAAS Login Module that uses 
propriertary JBoss libraries and I heard those can't be mixed with Apache 
License, so... it probably won't be support by Slide.

Hope that Helps,
Ryan Rhodes


From: Morten <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Custom authorization and authentication best practices
Date: Mon, 01 Nov 2004 19:15:34 +0100
Hi.
I will be using Slide as a file system based content repository. It will be 
part of a web-application which contains a UI to add/remove users and set 
permissions at folder level.

This means I need to integrate Slide with my web-app. I see 2 possible 
methods:

1. Slide accesses an external data-source for authentication and 
authorization, possibly via a custom plug-in (could be done using WCK, but 
that impacts DeltaV).

2. The users and permissions get set in Slide explicitly using an API 
(pointers to which greatly appreciated).

Functionally, I need to be able to answer the questions "Is user X with 
password Y a valid user?" and "Can user X access folder Z?"

Which of the above is the preferred approach and what is the "proper" way 
to go about it? What's considered best practices? Studying WCK, Realms, 
JAAS, Projector gives lots of options on authentication, but I fail to find 
options for authorization.

Br,
Morten
-
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: Simple XML and Office extractor configs

2004-08-30 Thread Ryan Rhodes
Actually, I don't know anything about the performance.  I only meant that it
was turned off by default and that was an example config.  

I've been using the MS content extractors I wrote only in a test
environment, and I haven't had performance problems yet.  The OLE metadata
is the fastest thing you can extract, but I'm not sure if that gets called
much more often than content extractors.

The content extractor definitely only saves the content when it is
originally saved or updated.  I am guessing the property extractors do the
same thing.

This is actually a big problem I have with it right now.  It would be easy
to write a recursive touch tool, but the modification dates are meaningful
in the application and I don't want them changed.  Any ideas here would be
great!

-Ryan

-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 9:12 PM
To: 'Slide Users Mailing List'
Subject: RE: Simple XML and Office extractor configs


Thanks.  So if a new document is uploaded under /slide/doc then the office
extractor will extract properties from it but not otherwise. Will it also
process any files that are already there when it starts or would you need to
upload them for it to process the properties again?  I would like it enabled
for my whole tree but I'm not sure what you mean when you say it may be too
much for most people.  Is there performance problems with the
implementation?

Thanks,
Warwick



-Original Message-
From: Ryan Rhodes [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 7:46 PM
To: 'Slide Users Mailing List'
Subject: RE: Simple XML and Office extractor configs


Hi Warwick,

 

The MS office extractor will extract the OLE metadata, like author and date
modified, from office documents.  The example directory "/slide/doc" is the
directory you want it to extract properties from.  The metadata is stored as
regular DAV properties once extracted.  That directory doesn't exist.  It is
just an example.  The overhead of using "/slide/files" is probably too much
for people who don't need it.

 

I'm not sure about the xml extractor, but I was getting the same exception
on init.  I think it is a bug because I don't remember getting it a couple
months ago.  I just disabled it.

 

-Ryan

 

  _  

From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 4:45 PM
To: '[EMAIL PROTECTED]'
Subject: Simple XML and Office extractor configs

 

Hi,

 

The simple and office extractors that are configured in the Domain.xml file
by default. What do they do?  ie. One is configured to
/slide/articles/test.xml and the other to /slide/doc. Do they create these
dirs and put data in them or do they only extract properties from files
under those directories?  Do I need to have a test.xml to make it work? I'm
getting an xpath failure from the simple extractor init process and am not
sure whether how they should be configured. Slide starts but I'm guessing
that the extractors (or at least one) didn't load.

 

Thanks,

Warwick

 


 <http://www.e2open.com/>  


  _  


Warwick Burrows 
Senior Software Engineer 

 

Email: [EMAIL PROTECTED]
Fax:   512.343.8727

 

9600 Great Hills Trail, #325 
Austin, TX  78759
http://www.e2open.com <http://www.e2open.com/> 


  _  

 


-
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: Simple XML and Office extractor configs

2004-08-30 Thread Ryan Rhodes
Hi Warwick,

 

The MS office extractor will extract the OLE metadata, like author and date
modified, from office documents.  The example directory "/slide/doc" is the
directory you want it to extract properties from.  The metadata is stored as
regular DAV properties once extracted.  That directory doesn't exist.  It is
just an example.  The overhead of using "/slide/files" is probably too much
for people who don't need it.

 

I'm not sure about the xml extractor, but I was getting the same exception
on init.  I think it is a bug because I don't remember getting it a couple
months ago.  I just disabled it.

 

-Ryan

 

  _  

From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 4:45 PM
To: '[EMAIL PROTECTED]'
Subject: Simple XML and Office extractor configs

 

Hi,

 

The simple and office extractors that are configured in the Domain.xml file
by default. What do they do?  ie. One is configured to
/slide/articles/test.xml and the other to /slide/doc. Do they create these
dirs and put data in them or do they only extract properties from files
under those directories?  Do I need to have a test.xml to make it work? I'm
getting an xpath failure from the simple extractor init process and am not
sure whether how they should be configured. Slide starts but I'm guessing
that the extractors (or at least one) didn't load.

 

Thanks,

Warwick

 


   


  _  


Warwick Burrows 
Senior Software Engineer 

 

Email: [EMAIL PROTECTED]
Fax:   512.343.8727

 

9600 Great Hills Trail, #325 
Austin, TX  78759
http://www.e2open.com  


  _  

 



RE: Searching in Slide

2004-08-06 Thread Ryan Rhodes
Hi Peder,

Slide supports DASL queries through the webdav servlet.  You can query for
resources by property value, and perform full text search against the
content.

Text search against content is optimized by a Lucene index.  The properties
aren't currently indexed by Lucene, but I think full text search for
properties still works using a default brute force search.  I'm not sure
about the performance.

There isn't much documentation on search, but take a look at the
documentation for DASL.  Full Text search is done by having a contains
condition in the where clause.

I think there is also a new DASL implementation for one of the database
stores.  

-Ryan Rhodes
 
-Original Message-
From: Peder Nordvaller [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 7:58 AM
To: Slide Users Mailing List
Subject: Searching in Slide

Hi, I've been working with slide for a bit and it's been working just fine
most of the time. I'm now working with a lot of content and nodes in Slide
and the way I've been searching for things is getting sluggish. I am working
directly towards the helpers but I'm not using the SearchImpl class because
I haven't had time to check it out. When I search I get the children of a
node and get their properties, check them for keywords and continue on with
the childrens children in the same fashion. This is taking way too much time
with some 60k nodes and I have had to do some caching to make it work at all
in a useful way. 

My questions are: Is there any things I can do to speed up getting
information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to
make use of it?

Sincerely, Peder Nordvaller

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



RE: MSPowerPointExtractor problem

2004-07-31 Thread Ryan Rhodes
Hi Ralph,

I haven't tested the PPT extractor with any other languages.  I remember
reading about other people having problems with different character sets
though.

Could you send a before and after example file here or to bugzilla?

-Ryan Rhodes


-Original Message-
From: Ralph Scheuer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 28, 2004 10:01 AM
To: slide
Subject: MSPowerPointExtractor problem

Hello everybody,

When I was searching for a Java class to extract text from PowerPoint 
files, I accidentally discovered Slide.

I pulled the MSPowerPointExtractor class and some other stuff it 
depends on via CVS and tried it for some text extraction.

The method I used looks very similar to the provided example main 
method (see below).

However. when I tried to extract text from a German PowerPoint 
presentation, I had some problems with the encoding. I did not know 
which encoding to use, converting the output to ISO Latin 1 with my 
text editor solved only part of the problem (some German Umlaute were 
displayed correctly, some were not).

Is this a known issue or am I doing something wrong? Any hints for me?

Thanks in advance.

Ralph Scheuer

BTW. I am using Mac OS X 10.3.4 with JDK 1.4.2_03, the native encoding 
on this platform is MacRoman.


 public static String contentStringForData(NSData data){

StringBuffer buf = new StringBuffer();
try{
ByteArrayInputStream input = data.stream();
MSPowerPointExtractor ex = new MSPowerPointExtractor(null,
null);

Reader reader = ex.extract(input);

int c;
do
{
c = reader.read();

buf.append((char)c);
}
while( c != -1 );
}catch(Exception e){

}

return buf.toString();
 }

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



RE: 403 Forbidden Error when uploading a file using DAV Exploere

2004-07-22 Thread Ryan Rhodes
This is just a shot in the dark, but I think prior to 2.1 you got a 403 for:
PUT  

The client required instead:
PUT  

Where  is the uri it will have on the server.

The only other hair pulling 403's I can remember where linux file
permissions related.

-Ryan

-Original Message-
From: Krishna Kankipati [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 22, 2004 7:38 PM
To: '[EMAIL PROTECTED]'
Subject: 403 Forbidden Error when uploading a file using DAV Exploere

Hi,
I have Slide2.0 installed on Websphere 5.0 App server. In the
present environment I have disabled authentication and authorization as
mentioned in the Slide docs as follows:

To dis-able authentication: (from Slide doc)

To disable authentication, open the webapp deployment descriptor, i.e.
WEB-INF/web.xml in the webapp directory, and uncomment the two elements
given by the xpath expressions /web-app/security-constraint and
/web-app/login-config: 


To dis-able authorization: (from Slide doc)

To disable access control, search for a configuration file named
slide.properties in the classpath (if not there, you can create a new one at
e.g. $CATALINA_HOME/common/classes) and set or add: 
org.apache.slide.security=false


When I try to upload a file using DAV Explorer or create a collection under
/files context, I get the following error:

[7/22/04 17:24:42:346 MDT] 7926d6a8 SystemOut O
Servlet.Engine.Transports : 1, 22-Jul-2004 17:24:41, , PUT, 403 "Forbidden",
391 ms, /

I have tried all configuration settings, nothing seems to work, I have been
stuck with this for past few days. Can any Slide experts among you help me
get out this situation. I also tried using DAV Client command tool to run a
few commands. When I run the command "cd files", I get an error: "Warning:
Not found the path"

C:\JavaApps\WebdavClient\jakarta-slide-webdavclient-bin-2.0\bin>run.bat
[ Slide ] $ open http://localhost:9080/webdav-server/
connect http://localhost:9080/webdav-server/
[LOCALHOST] /webdav-server/ $ pwd
/webdav-server/
[LOCALHOST] /webdav-server/ $ cd files
Warning: Not found the path 

Any help here is highly appreciated, thanks in advance 


kind regards,

Krishna


Krishna Kankipati
Software Engineer
SSA Global
*   1626 Cole Blvd. Golden, CO 80401, USA
*  303-274-3027
Fax:303-274-3137
*  [EMAIL PROTECTED]


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



RE: advanced collection and search

2004-07-20 Thread Ryan Rhodes
Slide 2.1 supports full text search using Lucene.  

If you want to plug in  your own search engine take a look at IndexStore to
index the content, and ExpressionFactory to handle the actual search query.

-Ryan

-Original Message-
From: elaine chien [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 19, 2004 10:00 PM
To: [EMAIL PROTECTED]
Subject: advanced collection and search


I am looking into using Slide for a project.  Appreciate any help in 
anwering the following questions:

1.Does slide 2.0 support advanced collection?

2.Is it possible to do full text search with slide 2.0?

3.Is it possible to plug in our own search engine?

Thanks,
Elaine


-
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: How to implement a ContentExtractor?

2004-06-21 Thread Ryan Rhodes
Hi Daniel,
I'd like to try and implement this if its ok.  I'm looking at Oliver's 
version of the LuceneIndexer that is in CVS.  It looks like you extend 
AbstractService to give it a context for transactions and implement 
IndexStore to override the IExpressionFactory.

Do you know if everything works with IExpressionFactory?  Do I just need to 
plug the lucene code into it?

I'm not sure I understand the difference between the Indexer and the 
IndexStore.  In the example in CVS the LuceneIndex is separate from the 
actual IndexStore (SimpleTxtContainsIndexer) even though they both implement 
Indexer.

What is the separation between these two interfaces?
Kind of a side point.. but is it envisioned that multiple extractors might 
be operating on the same content... with the extracted content from both 
needing to go into the index?

Regards,
Ryan Rhodes

From: Daniel Florey <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: How to implement a ContentExtractor?
Date: Mon, 21 Jun 2004 09:44:14 +0200
Hi Ryan,
you are exactly right. I didn't implement the ContentExtractor yet, because 
it makes no sense to do it in the way the property extractors works.
As you stated the content extractor only makes sense in combination with an 
indexer.
It was my plan to build an indexing framework, but had no time to do it. 
The LuceneIndex by Christophe is not checked in yet, because it is not 
integrated into all of the DASL stuff. So it is not possible to search the 
content via webdav by using this index.
If you want to perform server side queries only, it might be a choice to 
use this indexer and to integrate the ContentExtractor you are thinking of.
But in long term we need the 'big' solution that integrates indexing, 
extracting and DASL.
Regards,

Daniel
ryan wrote:
I tried to build a content extractor to pull the text from MS Word docs.
It looks like the PropertyExtractorTrigger is fired by the event
framework when a node is created or stored, and then it calls the
ExtractorManager to get all the PropertyExtractors associated with the
node that changed and adds the extracted properties to the node.
event framework --> PropertyExtractorTrigger --> ExtractorManager -->
PropertyExtractor
I don't think the ContentExtractor is getting called at all now.  I was
thinking it probably can't be a ContentExtractorTrigger, because there
isn't anywhere to store the extracted content on the node.  I think it
will probably have to call ExtractorManager from LuceneIndex.  Something
like:
IndexTrigger --> LuceneIndex --> ExtractorManager --> ContentExtractor
Does this sound correct?
I found this LuceneIndex posted by Christophe, but I don't think it is
checked into CVS.  I believe you can index fields in Lucene that are not
actually stored as content.  I would like to try and add the content
extractor code to the LuceneIndex.  Does anyone know the status of the
LuceneIndex?
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09091.html
Thanks,
Ryan Rhodes


-
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: patch for auto-create-users

2004-04-27 Thread Ryan Rhodes
Martin Holz wrote:

Don't use SlideRealm. The slide realm makes user/password combinations
available to the servlet container.
I am not grasping this part.  You mean that slide realm becomes the store 
for usernames/passwords that the servlet container authenticates against?


Any realm does not handle authorization.
The servlet container does a coarse  authorization  based on the 
information
in web.xml. If this authorization is successfull the implementation
of org.apache.slide.Security will do a detailed authorization based
on the information in the /users node.
Slide ignores the results of javax.servlet.http.HttpRequest.isUserInRole().

Martin

I think we are in reverse here.  I want to pull roles from Slide for other 
webapps.  For instance, I might want to have a webapp with forums that are 
linked to slide groups, so that users of the webapp will browse the forums 
and only see the forums that are associated with the Slide Groups they 
belong to.  I am thinking that the course authorization will be fine for 
apps that don't allow the users to directly manipulate the content tree.  
So... I want the webapps to use 
javax.servlet.http.HttpRequest.isUserInRole(), but I want the roles to come 
from Slide.  Does this make sense?

--Ryan

_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

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


Re: patch for auto-create-users

2004-04-27 Thread Ryan Rhodes
Well,  I should restate that.  I do need roles.  I was actually hoping to 
use SlideRealm, because I want other parts of the webapp to use Slide roles 
for access control.

The only reason I need LDAP is because usernames/passwords must all come 
from LDAP in the environments we are targeting.  Once the user is created in 
Slide, I want SlideRealm to handle everything.

The question is... how do you use an LDAP Realm for authentication, but a 
SlideRealm for authorization.  I think I would need the SlideRealm to pull 
it's users from an LDAP store.  Does any of this sound correct?

--Ryan

From: Martin Holz <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: patch for auto-create-users
Date: 27 Apr 2004 17:32:51 +0200
"Ryan Rhodes" <[EMAIL PROTECTED]> writes:

> I went through the same progression as Jamie with auto-create-users.
> It would have been nice to have when I started, but it doesn't add
> anything now since I ultimately need the LDAP sync'd setup as well.
>
> Could you give an idea of just how much effort is involved in creating
> an LDAP store?  I don't know if it makes it any easier, but I only
> need LDAP for usernames and passwords.  I don't really even care if
> roles are stored in LDAP.
If you don't need groups, why do you need a sync with the LDAP-Server?
This is a scenario where autocreate-users is really helpfull. Configure
your servlet container to use LDAP authentication. If you delete a user,
in LDAP the servlet container does not longer allow login (assuming the
container does not cache to much). So nobody cares about a user node
in slide which belongs to user which not longer exists in LDAP. Btw. 
deleting
this  user node might be problematic, if the user still owns files.

Martin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! 
http://toolbar.msn.com/go/onm00200414ave/direct/01/

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


Re: Download of files that are larger than 65535 Bytes (63,9K)

2004-04-27 Thread Ryan Rhodes
I was intending to put something detailed together on this.  The problem is 
with MySQL 4.0.  It only allows BLOB's up to 64k.  I have searched 
everywhere on MySQL lists and could not confirm this, but you will notice 
that you can't even upload a file greater than 64k using phpmyadmin.

I don't know if this is a phpmyadmin problem (I created the tables with 
phpmyadmin in the first place), a mysql driver problem, or just a problem 
with 4.0 that has been fixed in 4.x > 0.  I can't imagine 64k is the correct 
max for blobs for such a popular database.

The solution I used was to change the type of the CONTENT column in the 
VERSION_CONTENT table from BLOB to LONGBLOB.  I can no longer browse this 
table with phpmyadmin (bug???), but I have tested upload/download with 100 
Meg files.

Apparently, changing the type to LONGBLOB will break PROPPATCH requests.  
Stuart MacPherson posted a patch for this sometime back.  I have not tested 
for the problem or applied the patch.  I don't think the patch or the change 
to the table structure ever got into the Slide codebase.

--hope this helps

Ryan Rhodes



From: Oleg Rostanin <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Download of files that are larger than 65535 Bytes (63,9K)
Date: Tue, 27 Apr 2004 17:07:42 +0200
Yes, it is correct

Ryan Rhodes wrote:

It sounds like you are using MySQL as your content store.  Is that 
correct?


From: Oleg Rostanin <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Download of files that are larger than 65535 Bytes (63,9K)
Date: Tue, 27 Apr 2004 16:46:08 +0200
I have checked the Slide servlet with another client (DAVExplorer). It 
works correctly.
It means the reason must be hiding somwhere in webdav API

Oleg Rostanin wrote:

Hello everyone,

I'm writing a universal module for UP/Downloading files to/from WebDAV 
repositories.
I have encountered the strange problem that only files with the size up 
to 65535 Bytes are uploaded/downloaded correctly.

If a file is larger that  only the first 65535 Bytes are uploaded or 
downloaded.

import org.apache.webdav.lib.*;

   public void downloadDocument(WebdavResource resource, File 
localFile) throws Exception
   {
   if(!resource.isCollection())
   {
   resource.getMethod(localFile);
   }
   }

can anybody help me?

Best,
Oleg Rostanin
-
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]
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/



-
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]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

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


Re: patch for auto-create-users

2004-04-27 Thread Ryan Rhodes
Daniel Florey wrote:

It is possible to assign different stores to different scopes (like mount 
points), so you don't need the proxy thing. So the main task would be to 
write a LDAP-store. To have such a store would be really a great thing so 
that users and roles are stored only in one physical store.
If LDAP provides some notification mechanism for informing slide about 
user/role updates additional user/role caching would be possible to achieve 
better performance.
Regards,
Daniel

I went through the same progression as Jamie with auto-create-users.  It 
would have been nice to have when I started, but it doesn't add anything now 
since I ultimately need the LDAP sync'd setup as well.

Could you give an idea of just how much effort is involved in creating an 
LDAP store?  I don't know if it makes it any easier, but I only need LDAP 
for usernames and passwords.  I don't really even care if roles are stored 
in LDAP.

Regards,

Ryan Rhodes

_
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/

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


Re: Download of files that are larger than 65535 Bytes (63,9K)

2004-04-27 Thread Ryan Rhodes
It sounds like you are using MySQL as your content store.  Is that correct?


From: Oleg Rostanin <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Download of files that are larger than 65535 Bytes (63,9K)
Date: Tue, 27 Apr 2004 16:46:08 +0200
I have checked the Slide servlet with another client (DAVExplorer). It 
works correctly.
It means the reason must be hiding somwhere in webdav API

Oleg Rostanin wrote:

Hello everyone,

I'm writing a universal module for UP/Downloading files to/from WebDAV 
repositories.
I have encountered the strange problem that only files with the size up to 
65535 Bytes are uploaded/downloaded correctly.

If a file is larger that  only the first 65535 Bytes are uploaded or 
downloaded.

import org.apache.webdav.lib.*;

   public void downloadDocument(WebdavResource resource, File localFile) 
throws Exception
   {
   if(!resource.isCollection())
   {
   resource.getMethod(localFile);
   }
   }

can anybody help me?

Best,
Oleg Rostanin
-
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]
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/

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


RE: Create a user dynamically

2004-04-23 Thread Ryan Rhodes
Hi Alan,

At the very bottom of the Security page, there is some information on this.

http://jakarta.apache.org/slide/howto-acl.html

It says:

***
Although the creation and maintenance of principal resources (users, 
roles/groups) is out of scope of the WebDAV/ACL specification, in Slide it 
is currently possible through a proprietary extension to the MKCOL method, 
provided the SlideRealm (wrappers.catalina.SlideRealm) is active.

Resources created by MKCOL at the locations specified by the parameters:

userspath (xpath: /slide/namespace/configuration/userspath,
groupspath (xpath: /slide/namespace/configuration/groupspath), or
rolespath (xpath: /slide/namespace/configuration/rolespath)
automatically become principals, i.e. the property DAV:resourcetype 
automatically will contain the DAV:principal element.
**

I am not using either SlideRealm or JAASRealm, so I think that SlideRealm is 
no longer required to use MKCOL to create principles.  I have only done this 
using the commandline client so far, and I have not created roles with 
MKCOL.

It isn't really feasible to add users to roles using the commandLine client, 
because when you set the DAV:group-member-set property of the role, you have 
to set all the members at once.  I am setting them using WebdavResource in 
the clientlib and also by directly manipulating the database.

The security documentation doesn't give an example value for 
DAV:group-member-set.  Here is an example value I have in the properties 
table for DAV:group-member-set:

/users/rhodesr/users/another_user

-good luck

From: Alan Yu <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Create a user dynamically
Date: Fri, 23 Apr 2004 18:47:55 -0700
Hi, all,



I just started playing with slide a few days ago. I am able to do 
customized
authentication by using JAAS. And I am also able to upload/download files
via Webdav client lib.



But I am stuck with how to create a user dynamically on server side and
allow the new users with same authorization access as John and John2. :-) 
My
authentication LoginModule talks to my database. If both username and
password match, I will pass the "Principle" to webdav servlet. But I don't
have any idea how to create the new user on servlet. I searched the email
archive and documentation and didn't find anything.



I would really appreciate if anyone can help me out by sharing some of your
sample code creating user or give me some hints.


Thanks.

-Alan





_
From must-see cities to the best beaches, plan a getaway with the Spring 
Travel Guide! http://special.msn.com/local/springtravel.armx

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


Re: OutOfMemoryError for large file uploads

2004-04-22 Thread Ryan Rhodes
Thanks for the reply Daniel,

We tried to turn the memory up to 256M and we got the same error.



From: Daniel Florey <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: OutOfMemoryError for large file uploads
Date: Thu, 22 Apr 2004 15:36:00 +0200
Hi Ryan,
try to start Tomcat with 256M. This might help as slide tries to load the 
file into memory (this is a known issue).
We'll have a closer look at the problem in the near future.
Regards,
Daniel

Ryan Rhodes wrote:

We're having some issues getting large files into Slide.  Other 
suggestions on the mailing list have helped somewhat (like setting the 
max_packet_size MySQL attribute) for getting larger files in, but nothing 
anywhere near what we'll need to be able to handle.  I have not tried the 
LONGBLOB solution mentioned elsewhere in the mailing lists; frankly it 
looks like way too much of a pain to implement.

The root of the problem appears to be that the MySQL JDBC driver can't 
deal with blob insert sizes somewhere between 9M and 60M - I was able to 
successfully insert a 9M file into our Slide app (once we tweaked MySQL's 
max_allowedpacket attribute, and giving Tomcat 128M stack size using the 
-Xmx and -Xms options), but the 60M file fails no matter how I try.  I've 
attempted it using our interface to Slide, the command-line client 
provided, and through IE, but it never works.  We're using MySQL 4.0.18 
and the JDBCStore with the MySQL RDBMS adapter.  Our version of Slide was 
checked out from the HEAD a week ago.

Has anybody gotten mysql to take large files ("large" for my purposes 
being in the 15-100 meg range)?  Am I right about it being the driver?  
Any other suggestions or workarounds?  I'll do the LONGBLOB thing if I 
have to but...I really don't want to have to.  ;)

Catalina.out shows the following:

21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - 
Recieved event with name 'transaction:begin': 
[EMAIL PROTECTED]

21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - 
Recieved vetoable event with name 'webdav:put': 
[EMAIL PROTECTED]

21 Apr 2004 17:40:43 - 
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - INFO - 
/files/projects/project-1/largeFile60M1.0
21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - 
Recieved vetoable event with name 'content:create': 
org.apache.slide.event.ContentEvent[content 
uri=/files/projects/project-1/largeFile60M 
contentType=application/octet-stream]
java.lang.OutOfMemoryError
org.apache.slide.common.ServiceAccessException: Service 
[EMAIL PROTECTED] access error : 
java.lang.OutOfMemoryError

at 
org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1311)

at 
org.apache.slide.store.ExtendedStore.createRevisionContent(ExtendedStore.java:393)

at org.apache.slide.content.ContentImpl.create(ContentImpl.java:552)
at 
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:380)

at 
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:322)

at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)

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

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)

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

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

at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)

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

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)

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

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

at 
org.apache.catalina.core.StandardValveContext.invokeNext(St

OutOfMemoryError for large file uploads

2004-04-22 Thread Ryan Rhodes
We're having some issues getting large files into Slide.  Other suggestions 
on the mailing list have helped somewhat (like setting the max_packet_size 
MySQL attribute) for getting larger files in, but nothing anywhere near what 
we'll need to be able to handle.  I have not tried the LONGBLOB solution 
mentioned elsewhere in the mailing lists; frankly it looks like way too much 
of a pain to implement.

The root of the problem appears to be that the MySQL JDBC driver can't deal 
with blob insert sizes somewhere between 9M and 60M - I was able to 
successfully insert a 9M file into our Slide app (once we tweaked MySQL's 
max_allowedpacket attribute, and giving Tomcat 128M stack size using the 
-Xmx and -Xms options), but the 60M file fails no matter how I try.  I've 
attempted it using our interface to Slide, the command-line client provided, 
and through IE, but it never works.  We're using MySQL 4.0.18 and the 
JDBCStore with the MySQL RDBMS adapter.  Our version of Slide was checked 
out from the HEAD a week ago.

Has anybody gotten mysql to take large files ("large" for my purposes being 
in the 15-100 meg range)?  Am I right about it being the driver?  Any other 
suggestions or workarounds?  I'll do the LONGBLOB thing if I have to but...I 
really don't want to have to.  ;)

Catalina.out shows the following:

21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - 
Recieved event with name 'transaction:begin': 
[EMAIL PROTECTED]
21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - 
Recieved vetoable event with name 'webdav:put': 
[EMAIL PROTECTED]
21 Apr 2004 17:40:43 - 
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - INFO - 
/files/projects/project-1/largeFile60M1.0
21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - 
Recieved vetoable event with name 'content:create': 
org.apache.slide.event.ContentEvent[content 
uri=/files/projects/project-1/largeFile60M 
contentType=application/octet-stream]
java.lang.OutOfMemoryError
org.apache.slide.common.ServiceAccessException: Service 
[EMAIL PROTECTED] access error : 
java.lang.OutOfMemoryError

at 
org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1311)
at 
org.apache.slide.store.ExtendedStore.createRevisionContent(ExtendedStore.java:393)
at org.apache.slide.content.ContentImpl.create(ContentImpl.java:552)
at 
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:380)
at 
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:322)
at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at 
org.apache.t

Re: Automatic creation of user nodes in slide

2004-04-01 Thread Ryan Rhodes
Hi Martin,

I tried to request the page with Curl using a PUT.  It works for an already 
created user.  I just get access denied when I try a new user.

From: Martin Holz <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 23:23:54 +0200
"Ryan Rhodes" <[EMAIL PROTECTED]> writes:

> I'm using a version I checked out from the head about a week ago.
>
> When I set logger-level to 7 I saw some Exceptions related to this,
> and I also saw a number of Exceptions when slide loaded that I didn't
> see before.  Everything else seems to be working... so I'm not sure if
> these are normal and/or unrelated.  I'm going to put some info about
> these new exceptions at the bottom of the email.
You can completely ignore all ObjectNotFound and 
ObjectAlreadyExistExceptions.
However the null pointer exception is serious.

[Changed order of cited stuff]
> Getting current connection for thread 
Thread[http8080-Processor25,5,main]
> 31 Mar 2004 12:11:10 - org.apache.slide.store.impl.rdbms.JDBCStore -
> DEBUG -
>
> No id for current thread - called outside transaction?
> 31 Mar 2004 12:11:10 - org.apache.slide.common.SlideException - DEBUG
> -
>
> org.apache.slide.common.ServiceAccessException: Service
> [EMAIL PROTECTED] access error :
> java.lang.NullPointerException
>
> 	at
> 
	org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.assureUriId(StandardRDBMSAdapter.java:1216)
>
> 	at
> 
	org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeObject(StandardRDBMSAdapter.java:107)
>
> 	at
> 
	org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:89)
[...]
>   at
>	org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143)
>	at
>	org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator.java:162)
>
>	at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:346)

Could you verify that this means the connection is NULL.

There seems to be a bug in the way DirectoryIndexGenerator/J2EE 
store/SecurityImpl
work together.
doGet() assumes, that is does not need a transaction since it does not do
any write operation. Thats correct unless a user is autocreated, which 
results
in a write operation.  You may try to do a PUT request as the first action 
of the new user.
This should autocreate the user inside the transaction. Please tell
me if this works. I  will try to fix  the bug tomorrow, its almost midnight 
in
here.

Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
(Limited-time offer) 
http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/

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


Re: Automatic creation of user nodes in slide

2004-03-31 Thread Ryan Rhodes
ifecycleEvent(HostConfig.java:394)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
	at org.apache.catalina.core.StandardService.start(StandardService.java:519)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
	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.start(Bootstrap.java:297)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

and further down I get this:

31 Mar 2004 12:08:59 - org.apache.slide.common.SlideException - DEBUG - 
org.apache.slide.structure.ObjectAlreadyExistsException: Another object 
already exist at /
	at 
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:90)
	at 
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.createObject(AbstractRDBMSStore.java:476)
	at 
org.apache.slide.store.AbstractStore.createObject(AbstractStore.java:557)
	at 
org.apache.slide.store.ExtendedStore.createObject(ExtendedStore.java:436)
	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:752)
	at org.apache.slide.common.Domain.initNamespace(Domain.java:814)
	at org.apache.slide.common.Domain.init(Domain.java:433)
	at org.apache.slide.common.Domain.init(Domain.java:367)
	at org.apache.slide.common.Domain.init(Domain.java:330)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:255)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:197)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3960)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4283)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
	at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
	at org.apache.catalina.core.StandardService.start(StandardService.java:519)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
	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.start(Bootstrap.java:297)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



From: Martin Holz <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 18:56:15 +0200
"Ryan Rhodes" <[EMAIL PROTECTED]> writes:

> Thanks for the response Martin.
>
> I set auto-create-users to true.  When I log in with a user that is
> already in slide it still works, but when I try to log in with a new
> user (admin) I get:
>
>
> HTTP Status 500
> The server encountered an internal error () that prevented it from
> fulfilling this request.
>
>
> The only thing I get from the logs is this:
>
> 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction
> http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 "Inter

Re: Automatic creation of user nodes in slide

2004-03-31 Thread Ryan Rhodes
Thanks for the response Martin.

I set auto-create-users to true.  When I log in with a user that is already 
in slide it still works, but when I try to log in with a new user (admin) I 
get:

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

The only thing I get from the logs is this:

31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction
http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 "Internal Server 
Error", 20 ms, /

Any idea why this might be failing?

Does this require SlideRealm or the JAAS module to work?

From: Martin Holz <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 17:36:12 +0200
"Ryan Rhodes" <[EMAIL PROTECTED]> writes:

> I read somewhere that slide would automatically create a new user node
> when a new user is authenticated by Tomcat.  We are trying to setup
> Tomcat/Slide to authenticate users against an LDAP directory, but we
> do not want to have to run any batch processes to add user nodes.  We
> just want the node to be created whenever a new user is authenticated.
> We DO NOT necessarily need ACL to be mapped from the directory.  We
> can manage ACL in slide.
>
Add
   true
to your Domain.xml below the   
element.
This works fine as long as you do not need roles.

Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

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


How do I propogate user identity from a webapp to slide using the client API?

2004-03-31 Thread Ryan Rhodes
We are using the slide client API inside of a webapp.  If slide requires 
authentication credentials, then I'm going to need the username/password to 
access it with the client API.  I don't want to expose credentials in the 
webapp, but I would like to let slide keep managing access control to the 
documents I'm exposing in the webapp.

Does anyone have a decent solution for this?

_
Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! 
http://toolbar.msn.com/go/onm00200414ave/direct/01/

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


Automatic creation of user nodes in slide

2004-03-31 Thread Ryan Rhodes
I read somewhere that slide would automatically create a new user node when 
a new user is authenticated by Tomcat.  We are trying to setup Tomcat/Slide 
to authenticate users against an LDAP directory, but we do not want to have 
to run any batch processes to add user nodes.  We just want the node to be 
created whenever a new user is authenticated.  We DO NOT necessarily need 
ACL to be mapped from the directory.  We can manage ACL in slide.

Does anyone have any ideas on this?

_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

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


J2EE Store vs. JDBC Store

2004-03-30 Thread Ryan Rhodes
Is the only difference in the J2EE store and the JDBC store that I can 
configure the connection for the J2EE store at the application server level?

The higher level features like connection pooling... etc.. don't affect 
slide... or do they?

_
Check out MSN PC Safety & Security to help ensure your PC is protected and 
safe. http://specials.msn.com/msn/security.asp

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


Exceptions when I try to setup a mysql JDBC store

2004-03-29 Thread Ryan Rhodes
I am trying to setup a JDBC store for the first time using mysql.  I copied 
the domain.xml from a copy a found online, but I get Exceptions when I start 
the server.  It looks like it is failing to create the initial tables in the 
database.

Can anyone help out with this problem?

Can anyone confirm for me that slide creates it's own tables and that I 
don't need to create them manually?

Here is the domain.xml:


  
	  
	org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter
	com.mysql.jdbc.Driver
	jdbc:mysql://192.168.1.15/piefinger
	auser
	apassword
	true
	10
	SERIALIZABLE
	false
	  

  


  


  


  

	 
	   /blarg_contentstore
	   /blarg_workingresource
	   false
	   false
	 
	
  


Here is the server log:

29 Mar 2004 16:43:13 - org.apache.slide.common.Domain - INFO - Initializing 
Domain
29 Mar 2004 16:43:13 - org.apache.slide.common.Domain - INFO - Domain 
configuration : {org.apache.slide.lock=true, 
org.apache.slide.versioncontrol=true, org.apache.slide.debug=false, 
org.apache.slide.search=true, org.apache.slide.security=true, 
org.apache.slide.domain=E:/tmp/Slide 2.0b1 Tomcat 5.0/slide/Domain.xml}
29 Mar 2004 16:43:13 - org.apache.slide.common.Domain - INFO - Domain 
parameters: {logger-level=6, versioncontrol-exclude=, 
auto-version=checkout-checkin, historypath=/history, checkin-fork=forbidden, 
workingresourcepath=/workingresource, workspacepath=/workspace, 
default=slide, auto-version-control=false, 
logger=org.apache.slide.util.logger.SimpleLogger, checkout-fork=forbidden}
29 Mar 2004 16:43:13 - org.apache.slide.common.Domain - INFO - Initializing 
namespace : slide
29 Mar 2004 16:43:13 - org.apache.slide.common.Namespace - INFO - Loading 
namespace slide parameters
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Loading 
namespace definition
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Node 
store: org.apache.slide.store.impl.rdbms.JDBCStore
29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - 
Loading and registering driver 'com.mysql.jdbc.Driver'
29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - 
Setting isolation level 'SERIALIZABLE'
29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - 
Using DBCP pooling
29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - 
Number of connections set to 10
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Security 
store references nodestore
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Lock store 
store references nodestore
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Revision 
descriptors store references nodestore
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Revision 
descriptor store references nodestore
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Content 
store: org.apache.slide.store.txfile.TxFileContentStore
29 Mar 2004 16:43:14 - 
org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - File Store 
configured to /blarg_contentstore, working directory /blarg_workingresource
29 Mar 2004 16:43:14 - INFO - Setting object cache size for store jdbc to 
1
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
permission cache size for store jdbc to 1
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
lock cache size for store jdbc to 100
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
descriptors cache size for store jdbc to 1
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
descriptor cache size for store jdbc to 1
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
content caching for store jdbc to false
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
content cache size for store jdbc to 1
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
content cache byte size for store jdbc to 1000
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
transaction content cache size for store jdbc to 1000
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
transaction content cache byte size for store jdbc to 100
29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting 
maximum byte size for content cache entry for store jdbc to 5
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - 
Registering Store jdbc (class org.apache.slide.store.ExtendedStore) with 
parameters {} on scope /
29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - 
Initializing Store jdbc(org.apache.slide.store.ExtendedStore)
29 Mar 2004 16:43:14 - 
org.apache.slide.store.txfile.rm.impl.FileResour

Re: Which API should I use for a web app?

2004-03-15 Thread Ryan Rhodes
Daniel wrote:

BTW: Slide is (at the moment) far to slow to serve any webapp in real time.
I'm currently working on a process engine that is doing all the caching and 
background-building of webpages so that a webapp can be build on top of 
slide. It will take some weeks until it is at a usable stage, but this 
might be a choice for webapps in the future.
Would the caching take place on the side end of the connection like a 
database or is this more like a web framework?

_
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx

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


Re: Which API should I use for a web app?

2004-03-15 Thread Ryan Rhodes
Thanks for the info Daniel,

I'm still building proof of concept demos at this stage, but I'm going to 
try and rebuild them all with the WVCM API so I can test it out.  The source 
code looks very similar to the client library in some places.  Does the WVCM 
actually build on the source for the client library or just the webdav 
protocol?

Can anyone confirm that the client library and WVCM API will be able to use 
the external transactions support in development for slide?

Ideally, I think a webapp would want to drop a JCA Adapter into the app 
server and treat slide like a database from there on.  I just need to find 
the "JDBC" for slide.

thanks,

Ryan Rhodes


From: Daniel Florey <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Which API should I use for a web app?
Date: Mon, 15 Mar 2004 16:50:09 +0100
Hi Ryan,
at the moment it is not recommended to use the slide api directly as you 
don't have access to many features that are hacked into the webdav layer. I 
don't know if versioning is working by using the slide api, there is some 
revision support but it is somehow mixed up with the webdav layer, so my 
advice would be not to use it. If you use slide api you are tied to the 
same vm so your webapp is not very scalable.
The client library is a good way to access slide as the webdav-layer will 
not change soo much in future.
WVCM is an abstraction layer on top of webdav, so it is little slower than 
webdav clientlib but it would be nice, if you would give it a try so that 
the jsr can get some feedback.
Regards,
Daniel

BTW: Slide is (at the moment) far to slow to serve any webapp in real time.
I'm currently working on a process engine that is doing all the caching and 
background-building of webpages so that a webapp can be build on top of 
slide. It will take some weeks until it is at a usable stage, but this 
might be a choice for webapps in the future.

ryan wrote:

I'm looking at the slide client library, the slide API, and the WVCM
API, and I can't figure out which one I should use for a web
application.  Can someone explain what the difference in these API's is?
Does the Slide API support versioning?  Would the Slide API be much
faster than the other two because of the network traffic?  Which API
will support external transactions in the future?
Thanks,

Ryan Rhodes





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get a FREE online computer virus scan from McAfee when you click here. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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