[jacorb-developer] Having problems building JacORB

Eric Pierskalla ericp at pptvision.com
Mon Mar 29 18:21:29 CEST 2010


Isn't jaco used to run java applications using JacORB?  I am trying to
build JacORB from the source code. 

This is the error I get using ant jaco:

C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1>ant jaco
Buildfile: build.xml

BUILD FAILED
Target "jaco" does not exist in the project "main".

I tried it again with a clean start.  I copied the file
"jacorb-2.3.1-src.zip" to a new folder c:\JacORB, and unzipped it there.
I then adjusted my environment variables as so:
 
ANT_HOME=c:\ant
JACORB_HOME=C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1
JACORB_LIB=C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1\lib
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Qu
ickTime\QTSystem\;c:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\WINDOW
S\system32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft Visual
Studio\Commo
n\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Pro
gram Files\Microsoft Visual Studio\Common\Tools;C:\Program
Files\Microsoft Visua
l Studio\VC98\bin;c:\ant\bin;C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1\bin

I typed "ant clean", that seemed to run OK.
I then typed "ant -verbose > capture.txt", the build failed with the
same error (see below), but in line 8 of capture.txt (which I have
attached) I see this:

[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.

It seems as though this is significant, since the class that cannot be
found during the build is in org/apache/tools/ant/.


BUILD FAILED
C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1\build.xml:78: The following
error occurr
ed while executing this line:
C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1\etc\common.xml:108: taskdef A
class need
ed by class org.jacorb.idl.JacIDL cannot be found:
org/apache/tools/ant/taskdefs
/MatchingTask
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:508)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1\etc\common.xml:108:
taskdef A
 class needed by class org.jacorb.idl.JacIDL cannot be found:
org/apache/tools/a
nt/taskdefs/MatchingTask
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:613)

        at
org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        ... 16 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/Matchin
gTask
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at
java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at
org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java
:1425)
        at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:108
4)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)

        ... 29 more
--- Nested Exception ---
C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1\etc\common.xml:108: taskdef A
class need
ed by class org.jacorb.idl.JacIDL cannot be found:
org/apache/tools/ant/taskdefs
/MatchingTask
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:613)

        at
org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/Matchin
gTask
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at
java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at
org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java
:1425)
        at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:108
4)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)

        ... 29 more
--- Nested Exception ---
java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/MatchingTask
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at
java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at
org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java
:1425)
        at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:108
4)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)

        at
org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 5 seconds
C:\JacORB\jacorb-2.3.1-src\jacorb-2.3.1>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: capture.txt
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-developer/attachments/20100329/869c1e8c/attachment-0001.txt>


More information about the jacorb-developer mailing list