What version of Slide are you using? Looks as if the xmlimexporter.jar is missing...
Daniel > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Im Auftrag von Paul Hussein > Gesendet: Mittwoch, 23. Februar 2005 17:24 > An: [email protected] > Betreff: Re: content listening > > Using the code below, which seems to be correct, I get a strange log/ > exception : > > Feb 23, 2005 5:11:50 PM org.apache.webdav.lib.NotificationListener > subscribe > INFO: Received subscription id=6, listener: > [EMAIL PROTECTED] > Feb 23, 2005 5:11:50 PM org.apache.webdav.lib.NotificationListener poll > INFO: Poll for subscribers: 6 > java.lang.NoClassDefFoundError: > de/zeigermann/xml/simpleImporter/SimpleImportHandler > at > org.apache.webdav.lib.NotificationListener.poll(NotificationListener.java: > 291) > at > org.apache.webdav.lib.NotificationListener$3.run(NotificationListener.java > :146) > at java.util.TimerThread.mainLoop(Timer.java:432) > at java.util.TimerThread.run(Timer.java:382) > path : /slide/files/ > > > > Is there some bug here or some config I need to change, as surely it > should not need this class. > > > > Regards > > > Paul. > > > > > > public void subscribe ( String username, String password, String > path, Subscriber subscriber ) throws IOException { > try { > boolean success = true; > HttpURL rootUrl = null; > UsernamePasswordCredentials credentials = null; > NotificationListener listener = null; > > > credentials = new UsernamePasswordCredentials(username, > password); > > listener = new NotificationListener( > "", > 0, > "127.0.0.1", > 8080, > Protocol.getProtocol("http"), > credentials, > normalize(DEFAULT_ROOT_PATH + path ), > 100, false); > > success = listener.subscribe("Update/newmember", "", > DepthSupport.DEPTH_INFINITY, > 100, 100, subscriber, > credentials); > > success = success?listener.subscribe("Delete", "", > DepthSupport.DEPTH_INFINITY, > 100, 100, subscriber, > credentials):false; > > } catch (Exception e) { > System.err.println(e.toString()); > System.err.println(this.webdavResource.getStatusMessage()); > throw new IOException(this.webdavResource.getStatusMessage()); > } finally { > } > > } > > > > > > Evan Kracoff wrote: > > >Hey paul, > > > >In my project I am using the EventCollection listener. I find this is > >the best way to react to different actions in slide as it's a collection > >of all the events that happened on a given transaction. Using this you > >can inspect the entire list to determine exactly what happened. This is > >especially helpful in tracking moves and copies as the macro listener > >uses combinations of copy and delete to execute certain transactions. > >Hope this helps > > > >Evan > > > >-----Original Message----- > >From: Paul Hussein [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, February 23, 2005 8:59 AM > >To: Slide Users Mailing List > >Subject: content listening > > > > > >Hi, > > > >Before diving into some code I would like some advice on content > >listening. > > > >Whats the best way to listen to any additions/deletions or updates of > >files/collections and addition/deleteion update of the properties of a > >collection/file. > > > >Can this all be done through the > >http://jakarta.apache.org/slide/config_file.html#contentinterceptor_elem > > > >or do I need some other mechanism. > > > > > >Regards > > > > > >Paul. > > > >--------------------------------------------------------------------- > >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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
