Howto access the Calendar of Exchange accounts?

2005-04-25 Thread Clemens Eisserer
Hello!
I know this is one of neverending newbie-mails which nobody is 
interrested to answer, but I did not find enough information about 
slide/webdav on the net, so I am asking here. I hope I do not bother you 
too much :-(

It would be great if somebody could be so kind:
* Is it possible to use slide to access the calendar of excange accounts?
Is there any example-code available doing this or similar tasks?
Personally I don't like Exchange at all (non-windows user) but my boss 
wants to have support for it, so I have no way out ;-)

* Are there any other groupware servers with support for webdav. I do 
not want to only support a MS products :-(

Thank you in advance, lg Clemens Eisserer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Howto access the Calendar of Exchange accounts?

2005-04-25 Thread Martin Kalén
* Is it possible to use slide to access the calendar of excange accounts?
Is there any example-code available doing this or similar tasks?
Personally I don't like Exchange at all (non-windows user) but my boss 
wants to have support for it, so I have no way out ;-)
Most things you can do via WebDAV, you should be able to do with the Slide
WebDAV client library.
On the Slide website and Wiki I think you will only find example code
focused on using or integrating Slide, not specific server protocols or
API:s. Try to search for Microsoft documentation and newsgroups for this.
Two random links from Google ([1], [2]) to get you started... ;-)
(I know the last one is C#, but you want info about the MS Exchange WebDAV
protocol regardless of language. After you know this and have tried it out,
you will probably have more Slide-specific Java questions to ask here.)
* Are there any other groupware servers with support for webdav. I do 
not want to only support a MS products :-(
Try searching for products implementing CalDAV [3], an upcoming WebDAV-
based standard.
Regards,
 Martin
[1] 
http://jasigch.princeton.edu:9000/display/UPC/MS+Exchange+Calendar+Integration
[2] 
http://support.microsoft.com/default.aspx?scid=kb;en-us;313121Product=exch2k
[3] http://greenbytes.de/tech/webdav/draft-dusseault-caldav-01.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re:null pointer when enabling contentindexer

2005-04-25 Thread Jérémy Soula
Hi all,
I have the same error with the same config.
Any idea?

Hi all,
I am running slide 2.1 with a txfilestore on weblogic 8.1, i am trying
to enable the contentindexer, in my domain xml i have uncommented=20
  contentindexer
classname=3Dorg.apache.slide.index.SampleTxtContainsIndexer
   parameter name=3Dindexpathstore/index/parameter
  /contentindexer
i have lucene on my classpath, i dont understand why when slide loads up
i get this exception
21 Feb 2005 18:34:28 - org.apache.slide.common.Domain - ERROR -
java.lang.NullPointerException
java.lang.NullPointerException
at java.io.File.init(File.java:180)
at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:173)
at
org.apache.slide.index.SampleTxtContainsIndexer.initialize(SampleTxtCont
ainsIndexer.java:73)
at
org.apache.slide.store.AbstractStore.initialize(AbstractStore.java:265)
at
org.apache.slide.common.Namespace.initializeServices(Namespace.java:488)
at org.apache.slide.common.Namespace.loadDefinition(Namespace.java:755)
at org.apache.slide.common.Domain.initNamespace(Domain.java:840)
at org.apache.slide.common.Domain.init(Domain.java:432)
at org.apache.slide.common.Domain.init(Domain.java:366)
at org.apache.slide.common.Domain.init(Domain.java:329)
at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:1018)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:894)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:873)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:812)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:3281)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:3226)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:3207)
at
weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:69
4)
at
weblogic.servlet.internal.WebService.preloadResources(WebService.java:48
3)
at
weblogic.servlet.internal.ServletInitService.resume(ServletInitService.j
ava:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
-
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: null pointer when enabling contentindexer

2005-04-25 Thread Martin Kalén
Jérémy Soula wrote:
I have the same error with the same config.
snip/
java.lang.NullPointerException
at java.io.File.init(File.java:180)
at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:173)
at
org.apache.slide.index.SampleTxtContainsIndexer.initialize(SampleTxtCont
ainsIndexer.java:73)
Are you running 2.1 final release?
I checked CVS for line 73 of SampleTxtContainsIndexer.java and saw that
there was a bugfix for a local vs global variable, as you can see here
(note String indexPath vs indexpath):
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide/index/SampleTxtContainsIndexer.java?r1=1.2r2=1.3diff_format=h
If you still get exceptions with v2.1 release, I would assume that Lucene
throws this NPE if the directory does not exist.
Since you are using a relative directory store/index, make sure that
this directory exists relative to where you start the JVM with WebLogic.
Alternatively, specify an absolute directory as indexpath.
Regards,
 Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: null pointer when enabling contentindexer

2005-04-25 Thread Jérémy Soula
Thanks for reply
Yes i use the lastest release version of slide and the version 1.3 of 
SampleTxtContainsIndexer.
Too i create the index and specify an absolute directory.
But i still have the NPE.

Triing to debug, i notice that the variable indexpath is null when i 
reach the line 173, so the NPE.
I thinked that this variable must be set with the parameter specify in 
the Domain.xml but it seems not.

(My Domain.xml is the default one).
And when, before the line 173, i initialize the variable indexpath with 
the absolute directory
like this
code
   public void initialize(NamespaceAccessToken token)
   throws ServiceInitializationFailedException
   {
   indexpath = token.getNamespaceConfig().getParameter (INDEX_PATH);
   IndexWriter indexWriter = null;
   this.indexpath=./index;
   try
   {
  
   indexWriter = new IndexWriter(indexpath, new 
StandardAnalyzer(), false);
   }
   // will fail, if not yet exists
   catch (IOException e)
   {
   try
   {
   // create index
   indexWriter = new IndexWriter(indexpath, new 
StandardAnalyzer(), true);
   }
   catch (IOException ex)
   {
   throw new ServiceInitializationFailedException (this, ex);
   }
   }
  
   try
   {
   indexWriter.close();
   }
   catch (IOException e)
   {
   throw new ServiceInitializationFailedException (this, e);
   }
   }
/code
, an index is created and the search with lucene works.
Maybe a bug when the configuration is parsed?

Regards,
Jérémy


Martin Kalén wrote:
Jérémy Soula wrote:
I have the same error with the same config.
snip/
java.lang.NullPointerException
at java.io.File.init(File.java:180)
at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:173)
at
org.apache.slide.index.SampleTxtContainsIndexer.initialize(SampleTxtCont
ainsIndexer.java:73)

Are you running 2.1 final release?
I checked CVS for line 73 of SampleTxtContainsIndexer.java and saw that
there was a bugfix for a local vs global variable, as you can see here
(note String indexPath vs indexpath):
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide/index/SampleTxtContainsIndexer.java?r1=1.2r2=1.3diff_format=h 


If you still get exceptions with v2.1 release, I would assume that Lucene
throws this NPE if the directory does not exist.
Since you are using a relative directory store/index, make sure that
this directory exists relative to where you start the JVM with WebLogic.
Alternatively, specify an absolute directory as indexpath.
Regards,
 Martin
-
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: null pointer when enabling contentindexer

2005-04-25 Thread Stefan Lützkendorf
The SampleTxtContainsIndexer is a sample only. In Slide 2.2 there will be an 
improved
implementation of a lucene based content indexer, but it is currently only 
available from the cvs head
See http://wiki.apache.org/jakarta-slide/DaslConfiguration
Stefan
Jérémy Soula wrote:
Thanks for reply
Yes i use the lastest release version of slide and the version 1.3 of 
SampleTxtContainsIndexer.
Too i create the index and specify an absolute directory.
But i still have the NPE.

Triing to debug, i notice that the variable indexpath is null when i 
reach the line 173, so the NPE.
I thinked that this variable must be set with the parameter specify in 
the Domain.xml but it seems not.

(My Domain.xml is the default one).
And when, before the line 173, i initialize the variable indexpath with 
the absolute directory
like this
code
   public void initialize(NamespaceAccessToken token)
   throws ServiceInitializationFailedException
   {
   indexpath = token.getNamespaceConfig().getParameter (INDEX_PATH);
   IndexWriter indexWriter = null;
   this.indexpath=./index;
   try
   {
 indexWriter = new IndexWriter(indexpath, new 
StandardAnalyzer(), false);
   }
   // will fail, if not yet exists
   catch (IOException e)
   {
   try
   {
   // create index
   indexWriter = new IndexWriter(indexpath, new 
StandardAnalyzer(), true);
   }
   catch (IOException ex)
   {
   throw new ServiceInitializationFailedException (this, ex);
   }
   }
 try
   {
   indexWriter.close();
   }
   catch (IOException e)
   {
   throw new ServiceInitializationFailedException (this, e);
   }
   }
/code
, an index is created and the search with lucene works.
Maybe a bug when the configuration is parsed?

Regards,
Jérémy


Martin Kalén wrote:
Jérémy Soula wrote:
I have the same error with the same config.

snip/
java.lang.NullPointerException
at java.io.File.init(File.java:180)
at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:173)
at
org.apache.slide.index.SampleTxtContainsIndexer.initialize(SampleTxtCont
ainsIndexer.java:73)

Are you running 2.1 final release?
I checked CVS for line 73 of SampleTxtContainsIndexer.java and saw that
there was a bugfix for a local vs global variable, as you can see here
(note String indexPath vs indexpath):
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide/index/SampleTxtContainsIndexer.java?r1=1.2r2=1.3diff_format=h 


If you still get exceptions with v2.1 release, I would assume that Lucene
throws this NPE if the directory does not exist.
Since you are using a relative directory store/index, make sure that
this directory exists relative to where you start the JVM with WebLogic.
Alternatively, specify an absolute directory as indexpath.
Regards,
 Martin
-
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]

--
Stefan Lützkendorf  --  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


custom properties in ACEs

2005-04-25 Thread Jacob Lund
Hi All!
Has anyone been looking a custom properties in ACEs? From what I can see 
only the owner property is supported.

Is this store specific?
/jacob 

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


Additionnal meta data

2005-04-25 Thread Laurent Michenaud
Hi,

 

Anybody having code examples how to store additionnal meta data ?

 

Thanks.

 



Bug/Patch: subscriber persistence

2005-04-25 Thread Laurent Michenaud
Subscribers are not persistent.

 

I have looked at the slide code and I have corrected it :

 

In the file NotificationTrigger.java, I have added : writer.close();

 

private void saveSubscribers() {

if ( filename != null ) {

synchronized ( subscribers ) {

   try {

   FileOutputStream
outputStream = new FileOutputStream(filename);

   XMLOutputStreamWriter
writer = new XMLOutputStreamWriter(outputStream);

 
writer.writeXMLDeclaration();

 
writer.writeStartTag(XMLWriter.createStartTag(E_SUBSCRIPTIONS));

   for ( Iterator i =
subscribers.iterator(); i.hasNext(); ) {

   

   Subscriber
subscriber = (Subscriber)i.next();

 
System.out.println(OK+ subscriber.getUri());

 
writer.writeStartTag(XMLWriter.createStartTag(E_SUBSCRIPTION, new
String[][] { 

 
{ A_ID, String.valueOf(subscriber.getId()) } }));

 
writer.writeElementWithPCData(XMLWriter.createStartTag(E_URI),
XMLEncode.xmlEncodeText(subscriber.getUri()),
XMLWriter.createEndTag(E_URI)); 

 
writer.writeElementWithPCData(XMLWriter.createStartTag(E_DEPTH),
String.valueOf(subscriber.getDepth()), XMLWriter.createEndTag(E_DEPTH));


 
writer.writeElementWithPCData(XMLWriter.createStartTag(E_CALLBACK),
XMLEncode.xmlEncodeText(subscriber.getCallback()),
XMLWriter.createEndTag(E_CALLBACK)); 

 
writer.writeElementWithPCData(XMLWriter.createStartTag(E_NOTIFICATION_TY
PE), XMLEncode.xmlEncodeText(subscriber.getNotificationType()),
XMLWriter.createEndTag(E_NOTIFICATION_TYPE)); 

 
writer.writeElementWithPCData(XMLWriter.createStartTag(E_NOTIFICATION_DE
LAY), String.valueOf(subscriber.getNotificationDelay()),
XMLWriter.createEndTag(E_NOTIFICATION_DELAY)); 

 
writer.writeElementWithPCData(XMLWriter.createStartTag(E_SUBSCRIPTION_EN
D), String.valueOf(subscriber.getSubscriptionEnd()),
XMLWriter.createEndTag(E_SUBSCRIPTION_END)); 

 
writer.writeEndTag(XMLWriter.createEndTag(E_SUBSCRIPTION)); 

   }

 
writer.writeEndTag(XMLWriter.createEndTag(E_SUBSCRIPTIONS));

   writer.close();

   outputStream.close();

   } catch ( Exception e) {

   Domain.log(e);

   }

}

}

}

 

 

But I don't understand how it is able to load my subscriber at next
launch.

Example of subscribers.xml :

 

?xml version=1.0 encoding=UTF-8?

subscriptions

  subscription id=1

uri/files/uri

depth2147483647/depth

callbackhttpu://localhost:/callback

notification-typeUPDATE/notification-type

notification-delay0/notification-delay

subscription-end1114446870897/subscription-end

  /subscription

/subscriptions

 

I think it uses the callback to get my subscriber but I don't understand
how to do that.

 

 

 

 



Authentication with Slide 2.1 and JBoss 4.0.1

2005-04-25 Thread Jérémy Soula
Hi all,
I am using slide 2.1 with jboss 4.0.1. It works fine but i have one 
problem: authentication.
I add a new Realm in the login-config.xml:
application-policy name = slide
  authentication
 login-module code = org.apache.slide.jaas.spi.SlideLoginModule
flag = required
 /login-module
  /authentication
   /application-policy

i add a jboss-web.xml in the slide.war:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN 
http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd;
jboss-web
   security-domainjava:/jaas/slide/security-domain
 class-loading java2ClassLoadingCompliance=false
   
loader-repositoryorg.apache.slide:loader=slide.war/loader-repository
 /class-loading
/jboss-web

and i obviously enable the security authentication in web.xml et 
slide.properties.

But when i connect with DAVExplorer with 'root','root', i have a 403 
Access to the requested ressource is denied.

Someone can help me?
Regards,
Jérémy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]