Discussion:
[opencms-dev] Eclipse Integration
Dudu Zoltan
2014-06-23 08:02:34 UTC
Permalink
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: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140623/dc24691a/attachment.html>
Stolmár Tamás
2014-06-23 12:26:52 UTC
Permalink
Hello Zoltan,

The latest openCMS developer plugin (v0.0.9) is not compatible with
opencms 9.0.1!
I (and my friend) have modified the module. It works with opencms 9.0.1 now.
It is tested with postgresql native database, and works OK.
It still has a bug with jpa database drivers.

I sent the patch to dave schoorl for integration today.

I will send you the compiled module directly, so you can try it.

Bye,
Tamas
Post by Dudu Zoltan
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"
=======
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
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: []
=========
=========
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
===============
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
/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
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140623/616480cf/attachment.html>
Fabian Graßl
2014-10-09 17:26:28 UTC
Permalink
Hi Tam?s,

where can I find the current OpenCMS developer plugin that is compatible
with OpenCMS 9.0.1?

Could you send it to me?

Cheers,
Fabian



--
View this message in context: http://opencms.996256.n3.nabble.com/Eclipse-Integration-tp24278p24621.html
Sent from the OpenCMS mailing list archive at Nabble.com.

Loading...