[opencms-dev] Fwd: Errors while creating war file

Supriya Patil UseRich supriya at userich.com
Tue Nov 15 10:22:28 CET 2011


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







More information about the opencms-dev mailing list