We finally managed to complete the migration to Mendix 5.2. But it still will not run because of a java compilation error.
The error we get is the one down below. Could somebody from Mendix give some clues on how to proceed? Because this is no longer about the java code in Eclipse but about how all the jar files are processed by Mendix.
Regards,
Ronald
Buildfile: C:\Users\Ronald\Mendix\Master Daywize-DemoBranch NEW obv Binck 06-01-2014\deployment\build_core.xml
compile:
[javac] Compiling 839 source files to C:\Users\Ronald\Mendix\Master Daywize-DemoBranch NEW obv Binck 06-01-2014\deployment\run\bin
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: C:\Users\Ronald\Mendix\Master Daywize-DemoBranch NEW obv Binck 06-01-2014\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
build:
[bnd] # addAll 'deployment/run/bnd.bnd' with ,
[bnd] in default pack? ha
[bnd] Warnings
[bnd] Split package, multiple jars provide the same package:com/mendix/core
[bnd] Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning
[bnd] Package found in [Jar:mxruntime, Jar:run]
[bnd] Class path [Jar:biz.aQute.bnd.annotation-2.1.0, Jar:org.scala-lang.scala-library-2.10.2, Jar:json, Jar:logging, Jar:m2ee-api, Jar:mxruntime, Jar:integration, Jar:osgi.cmpn-4.2.0, Jar:webui, Jar:javax.servlet-3.0.0, Jar:antisamy-1.4.4, Jar:axis2-adb-1.0, Jar:axis2-kernel-1.0, Jar:backport-util-concurrent-3.1, Jar:com.google.guava-14.0.1, Jar:com.mendix.smack-3.2.2, Jar:com.mendix.webservices-rt-2.1.0, Jar:com.springsource.org.apache.commons.httpclient-3.1.0, Jar:com.springsource.org.apache.commons.lang-2.5.0, Jar:com.springsource.org.apache.commons.logging-1.1.1, Jar:com.springsource.org.apache.ws.commons.schema-1.3.2, Jar:com.springsource.org.apache.xml.serializer-2.7.1, Jar:com.sun.mail.javax.mail-1.4.5, Jar:commons-codec-1.3, Jar:commons-email-1.3.1, Jar:commons-fileupload-1.2.1, Jar:commons-io-2.3, Jar:commons-lang-2.5, Jar:dom4j-1.6.1, Jar:geronimo-stax-api_1.0_spec-1.0, Jar:guava-12.0, Jar:ical4j-1.0.3, Jar:ical4j-connector-0.9.3, Jar:ical4j-vcard-0.9.5, Jar:ical4j-zoneinfo-outlook-1.0.2, Jar:javax.servlet-3.0.0, Jar:joda-time-1.6.2, Jar:jta-1.1, Jar:mail, Jar:mxldap1.2_3.0.0, Jar:nekohtml, Jar:org.apache.servicemix.bundles.avalon-framework-4.3.1, Jar:org.apache.servicemix.bundles.batik-1.7.0, Jar:org.apache.servicemix.bundles.wsdl4j-1.6.2, Jar:org.apache.servicemix.bundles.xalan-2.7.1, Jar:org.apache.servicemix.bundles.xerces-2.11.0, Jar:org.apache.servicemix.bundles.xmlbeans-2.5.0, Jar:org.apache.ws.commons.axiom.axiom-api-1.2.13, Jar:org.apache.ws.commons.axiom.axiom-impl-1.2.13, Jar:org.glassfish.metro.webservices-api-osgi-2.2.0, Jar:poi-3.8-20120326, Jar:poi-ooxml-3.6-20091214, Jar:poi-ooxml-schemas-3.6-20091214, Jar:quartz-1.8.4, Jar:replication, Jar:slf4j-api-1.6.4, Jar:spring-ldap-1.2.1, Jar:spring, Jar:xalan-2.7.1, Jar:xbean, Jar:run]
[bnd] 1 Errors
[bnd] The default package '.' is not permitted by the Import-Package syntax.
[bnd] This can be caused by compile errors in Eclipse because Eclipse creates
[bnd] valid class files regardless of compile errors.
[bnd] The following package(s) import from the default package [com.mendix.ldap]
[bnd] C:\Users\Ronald\Mendix\Master Daywize-DemoBranch NEW obv Binck 06-01-2014\deployment\run\bnd.bnd: bnd failed
[bnd] at aQute.bnd.ant.BndTask.executeBackwardCompatible(BndTask.java:231)
[bnd] at aQute.bnd.ant.BndTask.execute(BndTask.java:115)
[bnd] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[bnd] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bnd] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bnd] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bnd] at java.lang.reflect.Method.invoke(Method.java:606)
[bnd] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[bnd] at org.apache.tools.ant.Task.perform(Task.java:348)
[bnd] at org.apache.tools.ant.Target.execute(Target.java:390)
[bnd] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[bnd] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
[bnd] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[bnd] at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
[bnd] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
[bnd] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[bnd] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bnd] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bnd] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bnd] at java.lang.reflect.Method.invoke(Method.java:606)
[bnd] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[bnd] at org.apache.tools.ant.Task.perform(Task.java:348)
[bnd] at org.apache.tools.ant.Target.execute(Target.java:390)
[bnd] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[bnd] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
[bnd] at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
[bnd] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[bnd] at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
[bnd] at org.apache.tools.ant.Main.runBuild(Main.java:801)
[bnd] at org.apache.tools.ant.Main.startAnt(Main.java:218)
[bnd] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[bnd] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
BUILD FAILED
C:\Users\Ronald\Mendix\Master Daywize-DemoBranch NEW obv Binck 06-01-2014\deployment\build_core.xml:45: The following error occurred while executing this line:
C:\Users\Ronald\Mendix\Master Daywize-DemoBranch NEW obv Binck 06-01-2014\deployment\run\bndbuild.xml:9: Failed to build jar file:
Total time: 39 seconds