Resource Menu


posted by Sebastien Jourdain at Apr 26, 2007 12:02 PM
Quote
Did you manage to make LibreSource work even if it produce output error, or does Jonas stop ?
posted by Sebastien Jourdain at Apr 26, 2007 12:01 PM
Quote
The Can't remove a document is lucene error, which means is not able to remove a document from the full text indexation base. This might occured if the indexation base is not yet created. That's exactly what happen durring the bootstrap.

But after the first indexation, this error shouldn't occure anymore.

Regards,

Seb

PS: To build the full text indexation log as root and go to the url http://localhost:9000/?action=indexation This action will create the full text indexation base.

posted by franklupo at Apr 26, 2007 10:38 AM
Quote
Yes the directory exists from installation. I have changed permission, all users full controll, but problem persist. I have created the user root and execute bootstrap but during creation user appair error: Can't remove a document

Thank

posted by Sebastien Jourdain at Apr 24, 2007 9:39 AM
Quote
Did you run the configure script after your change ? Does the directory
  • C:/Programmi/LS-Corsinvest/work/index
  • and
  • C:/Programmi/LS-Corsinvest/work/files
  • exists ?
If all of this is correct, you should log as root and access to this URL in order to build the segment file used for the full text indexation. http://localhost:9000/?action=indexation Don't forget to increase the memory size of the JVM.

On windows, it should looks like SET JAVA_OPTS=-Xmx512m

Regards,

Seb

posted by franklupo at Apr 23, 2007 11:36 AM
Quote
I have correct path but problem persist.

Configuration file ls-config-windows.properties:

# kernel configuration
kernel.uriScheme=ls
kernel.principalMapper=org.libresource.kernel.mappers.MembershipPrincipalMapper
kernel.principalMapper.options=
  1. core configuration
libresource.uriResolverClass=org.libresource.core.BasicURIResolver
  1. WARNING, if the following properties contains path with '' character, change them to '\\'
  2. Example : C:LibreSource\\work\\index >> C:\\LibreSource\\work\\index
kernel.indexation.data.dir=C:\\Programmi\\LS-Corsinvest\\work\\index libresource.distributedFilesystem=C:\\Programmi\\LS-Corsinvest\\work\\files
  1. custom config
#kernel.uriHost=localhost:9000
  1. custom config
kernel.uriHost=localhost:9000
  1. cas server url (if cas is local)
kernel.authUrl=https://localhost:9043/cas
  1. Subversion configuration
subversion.authz.file.path=C:/Programmi/LS-Corsinvest/work/svn/conf/authz subversion.passwd.file.path=C:/Programmi/LS-Corsinvest/work/svn/conf/passwd subversion.repository.base.path=C:/Programmi/LS-Corsinvest/work/svn/ls-svn subversion.admin.login=lsSVNLogin subversion.admin.password=951qsdf357

Error

org.libresource.LibresourceException: Can't remove a document
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:127)
        at org.libresource.search.LibresourceSearch.reindex(LibresourceSearch.java:133)
        at org.libresource.kernel.ejb.IndexationEventListenerBean.onMessage(IndexationEventListenerBean.java:93)
        at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214)
        at $Proxy0.onMessage(Unknown Source)
        at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172)
        at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449)
        at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168)
        at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835)
        at org.objectweb.joram.client.jms.Session.run(Session.java:878)
        at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157)
        at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386)
        at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443)
        at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)
Caused by: java.io.FileNotFoundException: C:ProgrammiLS-Corsinvestworkindexsegments (Impossibile trovare il file specificato)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
        at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
        at org.apache.lucene.store.Lock$With.run(Lock.java:109)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:120)
        … 16 more
org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:271) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:257) at org.libresource.core.ejb.LibresourceCoreServiceBean.getConnectionForEvents(LibresourceCoreServiceBean.java:1684) at org.libresource.core.ejb.LibresourceCoreServiceBean.getInterestedEventFilters(LibresourceCoreServiceBean.java:1156) at org.objectweb.jonas_gen.org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote.getInterestedEventFilters(JOnASLibresourceCoreService275938075Remote.java:1794) at org.libresource.core.ejb.JabberNotificationsDispatcherBean.onMessage(JabberNotificationsDispatcherBean.java:94) 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:597) at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214) at $Proxy0.onMessage(Unknown Source) at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172) at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449) at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168) at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835) at org.objectweb.joram.client.jms.Session.run(Session.java:878) at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157) at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386) at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443) at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)

Thanks

posted by Sebastien Jourdain at Apr 21, 2007 5:51 PM
Quote
The path set in the configuration file are wrong. You should use / instead of \.

If you used the installeur, you can edit the configuration file and run the config.bat script.

From the source, it's the same juste edit the ls-config.properties and run ant deploy

Regards,

Seb

posted by franklupo at Apr 21, 2007 11:29 AM
Quote
I have a postgresql 8.2.3 on windows XP SP2, after installation on first startup recive this error:

Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /users/guest : kernel.createAcl
Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /users/guest : kernel.bind
Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /users/guest : kernel.createAcl
Fri Apr 13 11:24:13 CEST 2007 : /users/guest : /ServerConfig : kernel.createAcl
Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /ServerConfig : kernel.resetAcls
Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /ServerConfig : kernel.createAcl
Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /ServerConfig : kernel.createAcl
Sat Apr 21 11:24:13 CEST 2007 : /users/guest : /ServerConfig : kernel.setProperty
org.libresource.LibresourceException: Can't remove a document
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:127)
        at org.libresource.search.LibresourceSearch.reindex(LibresourceSearch.java:133)
        at org.libresource.kernel.ejb.IndexationEventListenerBean.onMessage(IndexationEventListenerBean.java:93)
        at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214)
        at $Proxy0.onMessage(Unknown Source)
        at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172)
        at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449)
        at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168)
        at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835)
        at org.objectweb.joram.client.jms.Session.run(Session.java:878)
        at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157)
        at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386)
        at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443)
        at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)
Caused by: java.io.FileNotFoundException: C:ProgrammiLibreSourceworkindexsegments (Impossibile trovare il file specificato)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.j
ava:376)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
        at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
        at org.apache.lucene.store.Lock$With.run(Lock.java:109)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:120)
        … 16 more
org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:271) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:257) at org.libresource.core.ejb.LibresourceCoreServiceBean.getConnectionForEvents(LibresourceCoreServiceBean.java:1684) at org.libresource.core.ejb.LibresourceCoreServiceBean.getInterestedEventFilters(LibresourceCoreServiceBean.java:1156) at org.objectweb.jonas_gen.org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote.getInterestedEventFilters(JOnASLibresourceCoreService275938075Remote.java:1794) at org.libresource.core.ejb.MailNotificationsDispatcherBean.onMessage(MailNotificationsDispatcherBean.java:86) 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:597) at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214) at $Proxy0.onMessage(Unknown Source) at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172) at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449) at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168) at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835) at org.objectweb.joram.client.jms.Session.run(Session.java:878) at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157) at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386) at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443) at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536) org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:271) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:257) at org.libresource.core.ejb.LibresourceCoreServiceBean.getConnectionForEvents(LibresourceCoreServiceBean.java:1684) at org.libresource.core.ejb.LibresourceCoreServiceBean.getInterestedEventFilters(LibresourceCoreServiceBean.java:1156) at org.objectweb.jonas_gen.org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote.getInterestedEventFilters(JOnASLibresourceCoreService275938075Remote.java:1794) at org.libresource.core.ejb.JabberNotificationsDispatcherBean.onMessage(JabberNotificationsDispatcherBean.java:94) 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:597) at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214) at $Proxy0.onMessage(Unknown Source) at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172) at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449) at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168) at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835) at org.objectweb.joram.client.jms.Session.run(Session.java:878) at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157) at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386) at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443) at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536) org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:271) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:257) at org.libresource.core.ejb.LibresourceCoreServiceBean.getConnectionForEvents(LibresourceCoreServiceBean.java:1684) at org.libresource.core.ejb.LibresourceCoreServiceBean.getInterestedEventFilters(LibresourceCoreServiceBean.java:1156) at org.objectweb.jonas_gen.org.libresource.core.interfaces.JOnASLibresourceCoreService275938075Remote.getInterestedEventFilters(JOnASLibresourceCoreService275938075Remote.java:1794) at org.libresource.core.ejb.MailNotificationsDispatcherBean.onMessage(MailNotificationsDispatcherBean.java:86) 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:597) at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214) at $Proxy0.onMessage(Unknown Source) at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172) at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449) at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168) at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835) at org.objectweb.joram.client.jms.Session.run(Session.java:878) at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157) at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386) at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443) at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)

Thanks