[opencms-dev] My OpenCms build and setup experience (fail)

Alexandru icidrop at yahoo.com
Wed Feb 22 15:30:15 CET 2012


About Digester:
I found out that the digester class was imported from gwt-dev-2.4.0.jar, 
so i deleted it and eclipse changed it's source to commons 1.8 but the 
same error remained.

Logs and modules
i allways choose all http://ubuntuone.com/1GfetfcHnqIGuzPu5pCeq3


Ant
classpath points to ant-opencms-1.2. However that's not a problem anymore.:@. I get this new errorBUILD FAILED
/home/alexandru/workspace/OpenCms/modules/build.xml:197: The following error occurred while executing this line:
/home/alexandru/workspace/OpenCms/build.xml:170:
 java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError: 
org/apache/openjpa/enhance/PersistenceCapable


________________________________


Hi,

please see the comments inside your mail. What's up tp Problem1, did you solve it?

Am 22.02.2012 13:35, schrieb Alexandru:

> i selected every module. here are the logs
> http://ubuntuone.com/7e1dpbM2DDZujwWySf9qya
Problem3:
The setup log tells me that the sitemap module (org.opencms.ade.sitemap) was not installed, also the error messages inside the opencms log look like there is missing the sitemap module. Please make sure it is build successfully and selected during installation.

> the apache digester classpath lloks ok to me in windows>pref>ant>runtime
> http://ubuntuone.com/77aCoCF9NZzupCE1xAbvaD
Problem2:
If your project inside eclipse is stored in the folder: "{workplace}\OpenCms", what I assume, the global entries are looking fine so far. Please check also if the external tools configuration for your build does not override those referenced jars. To do so perform the following steps: Right click on the "{workplace}\OpenCms\modules\build.xml" -> Run as -> External Tools Configurations... Switch to the Classpath tab and check the referenced jars.

Good luck

> Hi,
> 
> Problem1:
> Your IDE somehow refers the wrong version of the apache commons digester
> -> Check the configured class path of the project and the window
> preferences in eclipse
> 
> Problem2:
> Suggestion: Eclipse->Window->Pfeferences->Ant->Runtime->Global Entries
> refers to the wrong version of ant-opencms-1.1.jar or another classpath
> config for ant is stronger than the build.xml
> 
> Problem3:
> More infos needed! opencms.log / setup.log / Which modules did you
> select during installation, did you also build the modules-v8 project,
> otherwise there will not be a demo content available and 404 makes sense.
> 
> Hope that helps!
> Rüdiger
> 
> Am 21.02.2012 15:43, schrieb Alexandru:
>  > I downloaded the latest sources from git and then created a new java
>  > project in eclipse. Copy-pasted all the files from opencms-core to my
>  > eclipse opencms project. Done a refresh,configured src and lib folders
>  > and ant's runtime properites. All went well, except
>  > Problem 1: src/org.opencms/configuration/CmsSetNextRule.java gives this
>  > error at line 192: The method pushParams(Object) from the type Digester
>  > is not visible
>  > Problem 2:Trying to build a war with /modules/build.xml gives this
>  > error: Variable references non-existent resource :
>  > ${workspace_loc:/OpenCms/lib/compile/ant-opencms-1.1.jar}. I don't even
>  > have ant-opencms-1.1.jar. My jar version is -1.2.jar! And the build file
>  > clearly specifies that: <pathelement
>  > location="${opencms.input.libs.compile}/ant-opencms-1.2.jar" />.
>  > * So i decided to do a build from the terminal and everything seemed to
>  > work. It took 14 min to compile the modules. I then copied the war in
>  > the tomcat/webapps dir ant started the server. Problem 3:The
>  > installation process went well, but when it reopened the site for me in
>  > another window it gave me error 404.
>  >
>  > The /system/login page worked fine at least. Bottom line is that my site
>  > is still unusable, and the ide integration has failed even though i
>  > followed the instructions from here
>  > http://opencms-wiki.org/Developing_OpenCms_with_Eclipse

-- Kind Regards,
Rüdiger.

-------------------

Rüdiger Kurz

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120222/5f6a61ea/attachment.htm>


More information about the opencms-dev mailing list