[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [smila-user] Generation of JAXB classes for Agent
|
On Tue, Apr 20, 2010 at 3:37 PM, <Juergen.Schumacher@xxxxxxxxxxx> wrote:
> Note that you will need a JDK 1.5 for this setup. There is an issue about making it work
> with a JDK 1.6, too - https://bugs.eclipse.org/bugs/show_bug.cgi?id=295019 -
> but I'm not sure about the state of this. Maybe one of the people involved in it
> can comment?
I googled a bit and everyone tells to use JDK 1.5; so I installed it
along with 1.6 and tried;
[09:10:51][giorgio@Marty:~/thesis/chansonnier/it.polimi.smilaintegration]$
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
[09:26:46][giorgio@Marty:~/thesis/chansonnier/it.polimi.smilaintegration]$ ant
Buildfile: /home/giorgio/thesis/chansonnier/it.polimi.smilaintegration/build.xml
compile-schema-and-decorate:
[echo] Compiling schema
"YoutubeLinkGrabberAgentDataSourceConnectionConfigSchema.xsd" with
binding "YoutubeLinkGrabberAgentDataSourceConnectionConfigSchema.jxb"
[xjc] Compiling
file:/home/giorgio/thesis/chansonnier/it.polimi.smilaintegration/schemas/YoutubeLinkGrabberAgentDataSourceConnectionConfigSchema.xsd
[xjc] removing old output files
BUILD FAILED
/home/giorgio/thesis/chansonnier/SMILA.builder/xjc/build.xml:44: The
following error occurred while executing this line:
/home/giorgio/thesis/chansonnier/SMILA.builder/xjc/build.xml:66:
com.w_wins.xml.xjcplugins.InterfacePlugin$InterfacePluginException:
Unable to find named interface
'org.eclipse.smila.connectivity.framework.schema.config.interfaces.IAttribute'
at com.w_wins.xml.xjcplugins.InterfacePlugin.run(InterfacePlugin.java:50)
at com.sun.tools.xjc.model.Model.generateCode(Model.java:290)
at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:494)
at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)
at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:369)
at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java: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:1360)
at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.smila.connectivity.framework.schema.config.interfaces.IAttribute
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1386)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1336)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1074)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.w_wins.xml.xjcplugins.InterfacePlugin.run(InterfacePlugin.java:48)
... 35 more
Total time: 10 seconds
My lib/ is in at the right place so I don't have to set lib.dir
(otherwise xcj would not run at all). Also the interface is at the
right place:
[09:43:04][giorgio@Marty:~/thesis/chansonnier]$ ls -l
org.eclipse.smila.connectivity.framework.schema/code/src/org/eclipse/smila/connectivity/framework/schema/config/interfaces/IAttribute.java
-rw-r--r-- 1 giorgio giorgio 3063 2009-03-23 13:47
org.eclipse.smila.connectivity.framework.schema/code/src/org/eclipse/smila/connectivity/framework/schema/config/interfaces/IAttribute.java
but it seems that xcj cannot see it for some reason.
The build process was fine as the final Junit reports showed all the
tests ran with 0 errors. However, when I try to set my eclipse.build
as the target platform for development in Eclipse, it loads nearly all
bundles but it says:
org.osgi.framework;version="1.3.0",
org.osgi.service.component,
are missing, while they are provided by the SMILA 0.7 binary.
--
Giorgio Sironi
Piccolo Principe & Web Engineer
http://giorgiosironi.blogspot.com
http://twitter.com/giorgiosironi