[opencms-dev] Eclipse Integration

Dudu Zoltan dzoltan at gmail.com
Mon Jun 23 10:02:34 CEST 2014


Hi,
I'm working on a module with Actionclass and trying to work on it in
Eclipse.
I have installed the RedStar openCMS developer plugin (v0.0.9)
but when I open a new OpenCMS project in eclipse and trying to "Fetch" the
modules list I get the following error:

=======
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You
need to add the corresponding JAR file supporting this SPI to your
classpath.The current classpath supports the following names: []
java.lang.reflect.InvocationTargetException
  org.eclipse.core.runtime.CoreException:
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You
need to add the corresponding JAR file supporting this SPI to your
classpath.The current classpath supports the following names: []
    java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You
need to add the corresponding JAR file supporting this SPI to your
classpath.The current classpath supports the following names: []
    Cannot upgrade Runlevel of OpenCms
      java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
        java.lang.ExceptionInInitializerError
        java.lang.ExceptionInInitializerError
          java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You
need to add the corresponding JAR file supporting this SPI to your
classpath.The current classpath supports the following names: []
          A SPI class of type org.apache.lucene.codecs.Codec with name
'Lucene42' does not exist. You need to add the corresponding JAR file
supporting this SPI to your classpath.The current classpath supports the
following names: []
    java.lang.RuntimeException: Cannot upgrade Runlevel of OpenCms
    Cannot upgrade Runlevel of OpenCms
      java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
        java.lang.ExceptionInInitializerError
        java.lang.ExceptionInInitializerError
          java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You
need to add the corresponding JAR file supporting this SPI to your
classpath.The current classpath supports the following names: []
          A SPI class of type org.apache.lucene.codecs.Codec with name
'Lucene42' does not exist. You need to add the corresponding JAR file
supporting this SPI to your classpath.The current classpath supports the
following names: []
=========

if I try to fetch again I get the following error:
=========
java.lang.LinkageError: loader constraint violation: when resolving method
"info.rsdev.eclipse.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"
the class loader (instance of
info/rsdev/eclipse/opencms/module/developer/loader/OpenCmsClassLoader) of
the current class, org/opencms/main/Communicator, and the class loader
(instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
resolved class,
info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper,
have different Class objects for the type
se.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
used in the signature
java.lang.reflect.InvocationTargetException
  java.lang.LinkageError: loader constraint violation: when resolving
method
"info.rsdev.eclipse.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"
the class loader (instance of
info/rsdev/eclipse/opencms/module/developer/loader/OpenCmsClassLoader) of
the current class, org/opencms/main/Communicator, and the class loader
(instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
resolved class,
info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper,
have different Class objects for the type
se.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
used in the signature
  loader constraint violation: when resolving method
"info.rsdev.eclipse.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"
the class loader (instance of
info/rsdev/eclipse/opencms/module/developer/loader/OpenCmsClassLoader) of
the current class, org/opencms/main/Communicator, and the class loader
(instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
resolved class,
info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper,
have different Class objects for the type
se.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
used in the signature
===============

This is my configuration and environment:
Ubuntu 14.04
Tomcat 7.0.52
Apache 2.4.7
OpenCMS 9.0.1
OpenCMS Developer Plugin 0.0.9 with the following configuration -
WEB-INF directory path: /var/lib/tomcat7/webapps/ROOT/WEB-INF
additional classpath jars:
/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/commons-codec-1.6.jar
/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/lucene-grouping-4.0.3.jar
/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/lucene-core-4.0.3.jar
/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/lucene-misc-4.0.3.jar
/usr/share/tomcat7/lib/tomcat-api.jar
/usr/share/tomcat7/lib/servlet-api.jar
/usr/share/tomcat7/lib/jsp-api.jar
OpenCMS servlet mapping: *
OpenCMS context path name: ROOT

how should I configure the plugin?
is there a new version planned for the plugin?

thank you very much for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140623/dc24691a/attachment.htm>


More information about the opencms-dev mailing list