[opencms-dev] Fwd: Errors while creating war file
Michael Emmerich
m.emmerich at alkacon.com
Tue Nov 15 10:54:13 CET 2011
Supriya,
it seems as if you have not added all required .jar files to the
Ant-Classpath, as the Ant script seems to fail.
You must add the following .jar files to your Ant-Classpath:
- everything under [opencms-folder]/lib/compile
- from [opencms-folder]/lib/runtime, you must add the following:
commons-digester-1.8.jar
commons-logging-1.1.1.jar
dom4j-1.6.1.jar
ehcahce-core-2.3.2.jar
ehcache-opencmsjps-0.2.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
geronimo-jpa_2.0_spec_1.1.jar
geronimo-jta_1.1_spec-1.1.1.jar
jaxen-1.1.1.jar
jsr305-1.3.9.jar
jug-lgpl-2.0.0.jar
log4j-1.2.15.jar
mail-1.4.1.jar
serp-1.13.1.jar
openjps-2.1.0.jar
Please note that the version numbers for the .jar files could be
different for you, as this is the list from OpenCms 8.0.2.
Those are the settings, I use in the Ant-Classpath in Eclipse and this
one is able to run the Ant-Scripts.
Kind regards,
Michael
Am 15.11.2011 10:22, schrieb Supriya Patil UseRich:
> Regards,
> Supriya Patil
>
> [+91 9999993104]
> UseRich Technologies Limited.
>
>
>
> ----- Original Message -----
> From: Supriya Patil UseRich supriya at userich.com
> To: m.emmerich at alkacon.com
>
> Sent: Tue 15/11/11 2:51 PM
> Subject: Fwd: Errors while creating war file
> Hello,
>
> As you said i created the war file using opencms/modules/build.xml.
> but i am getting the following errors while creating war file:
> plz suggest me something because i am trying this from many days.
> Errors:
>
> init:
> [echo] Building OpenCms 8.0.1
> [echo]
> [echo] OpenCms input directory is: C:\opencms
> [echo] OpenCms output directory is: C:\BuildCms
> [echo] Java version detected: 1.6
> [echo] Java target version: 1.5
> [echo] Java home is: C:\Program Files\Java\jdk1.6.0
> [echo] Tomcat home is: C:\apache-tomcat-5.5.20
>
> compile:
> [echo] Enhancing entity classes !!!
> [openjpac] log4j:WARN No appenders could be found for logger (openjpa.Runtime).
>
> [openjpac] log4j:WARN Please initialize the log4j system properly.
> [openjpac] java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError:
> org/apache/openjpa/enhance/PersistenceCapable
> [openjpac] at serp.util.Strings.toClass(Strings.java:164)
> [openjpac] at serp.util.Strings.toClass(Strings.java:108)
> [openjpac] at org.apache.openjpa.lib.meta.ClassArgParser.parseTypes(ClassAr
> gParser.java:164)
> [openjpac] at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:465
> 9)
> [openjpac] at org.apache.openjpa.ant.PCEnhancerTask.executeOn(PCEnhancerTas
> k.java:89)
> [openjpac] at org.apache.openjpa.lib.ant.AbstractTask.execute(AbstractTask.
> java:171)
> [openjpac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
> va:291)
> [openjpac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> [openjpac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
> [openjpac] at java.lang.reflect.Method.invoke(Method.java:597)
> [openjpac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
> tils.java:106)
> [openjpac] at org.apache.tools.ant.Task.perform(Task.java:348)
> [openjpac] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.j
> ava:68)
> [openjpac] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
> [openjpac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [openjpac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
> [openjpac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
> [openjpac] at java.lang.reflect.Method.invoke(Method.java:597)
> [openjpac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
> tils.java:106)
> [openjpac] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154
> )
> [openjpac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
> va:291)
> [openjpac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> [openjpac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
> [openjpac] at java.lang.reflect.Method.invoke(Method.java:597)
> [openjpac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
> tils.java:106)
> [openjpac] at org.apache.tools.ant.Task.perform(Task.java:348)
> [openjpac] at org.apache.tools.ant.Target.execute(Target.java:390)
> [openjpac] at org.apache.tools.ant.Target.performTasks(Target.java:411)
> [openjpac] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
> a:1399)
> [openjpac] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
> s(SingleCheckExecutor.java:38)
> [openjpac] at org.apache.tools.ant.Project.executeTargets(Project.java:1251
> )
> [openjpac] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
> [openjpac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
> va:291)
> [openjpac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> [openjpac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
> [openjpac] at java.lang.reflect.Method.invoke(Method.java:597)
> [openjpac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
> tils.java:106)
> [openjpac] at org.apache.tools.ant.Task.perform(Task.java:348)
> [openjpac] at org.apache.tools.ant.Target.execute(Target.java:390)
> [openjpac] at org.apache.tools.ant.Target.performTasks(Target.java:411)
> [openjpac] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
> a:1399)
> [openjpac] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
>
> [openjpac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
> faultExecutor.java:41)
> [openjpac] at org.apache.tools.ant.Project.executeTargets(Project.java:1251
> )
> [openjpac] at org.apache.tools.ant.Main.runBuild(Main.java:809)
> [openjpac] at org.apache.tools.ant.Main.startAnt(Main.java:217)
> [openjpac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> [openjpac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>
> BUILD FAILED
> C:\opencms\modules\build.xml:178: The following error occurred while executing t
> his line:
> C:\opencms\build.xml:164: java.lang.IllegalArgumentException: java.lang.NoClassD
> efFoundError: org/apache/openjpa/enhance/PersistenceCapable
> at serp.util.Strings.toClass(Strings.java:164)
> at serp.util.Strings.toClass(Strings.java:108)
> at org.apache.openjpa.lib.meta.ClassArgParser.parseTypes(ClassArgParser.
> java:164)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4659)
> at org.apache.openjpa.ant.PCEnhancerTask.executeOn(PCEnhancerTask.java:8
> 9)
> at org.apache.openjpa.lib.ant.AbstractTask.execute(AbstractTask.java:171
> )
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
> at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
> at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:390)
> at org.apache.tools.ant.Target.performTasks(Target.java:411)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> CheckExecutor.java:38)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:390)
> at org.apache.tools.ant.Target.performTasks(Target.java:411)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.Main.runBuild(Main.java:809)
> at org.apache.tools.ant.Main.startAnt(Main.java:217)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>
> Total time: 15 seconds
>
>
>
>
> _______________________________________________
> 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
>
>
>
>
--
Kind Regards,
Michael.
-------------------
Michael Emmerich
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev
mailing list