Mendix 5.2 starting application still fail on the java

0
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
asked
3 answers
0

I'm seeing this in here:

The default package '.' is not permitted by the Import-Package syntax. This can be caused by compile errors in Eclipse because Eclipse creates valid class files regardless of compile errors.

Do you see any errors when loading this project into Eclipse?

answered
0

There are no errors in Eclipse. But java compilation crashes on the bnd.bnd file created by Mendix. Here is the bnd.bnd and mark the . at the beginning of the Bundle-Classpath.

Private-Package: system, com.mendix.core, administration.proxies, administration.proxies.microflows, agenda.proxies, agenda.proxies.microflows, archivefiles.actions, archivefiles.proxies, asciiexporter.actions, asciiexporter.proxies, asciiexporter.proxies.microflows, basis.actions, basis.proxies, basis.proxies.microflows, bijzonderverlof.proxies, bijzonderverlof.proxies.microflows, cafetariamodel.proxies, cafetariamodel.proxies.microflows, com.mendix.core, communitycommons, communitycommons.actions, communitycommons.proxies, communitycommons.proxies.constants, communitycommons.proxies.microflows, countries.actions, countries.proxies, countries.proxies.microflows, csvtoexcelconverter.actions, csvtoexcelconverter.proxies, declaratie.proxies, declaratie.proxies.microflows, emailtemplate.actions, emailtemplate.mail, emailtemplate.proxies, emailtemplate.proxies.constants, emailtemplate.proxies.microflows, excelimporter.actions, excelimporter.proxies, excelimporter.proxies.microflows, excelimporter.reader, excelimporter.reader.readers, excelimporter.reader.readers.replication, excelimporter.reader.readers.replication.interfaces, gegevensimport.actions, gegevensimport.proxies, gegevensimport.proxies.microflows, icalendarmodule.actions, icalendarmodule.proxies, icalendarmodule.proxies.microflows, mobile.proxies, mobile.proxies.microflows, mutatieskoppeling.actions, mutatieskoppeling.proxies, mutatieskoppeling.proxies.microflows, mxmodelreflection, mxmodelreflection.actions, mxmodelreflection.metamodelBuilder, mxmodelreflection.proxies, mxmodelreflection.proxies.microflows, nonworkingdays.proxies, nonworkingdays.proxies.microflows, opleiden.proxies, opleiden.proxies.microflows, opleidenrapportages.proxies, opleidenrapportages.proxies.microflows, opleidingbasis.proxies, opleidingbasis.proxies.microflows, recruitment.proxies, recruitment.proxies.microflows, referentietabellen.proxies, referentietabellen.proxies.microflows, reporting.proxies, reporting.proxies.microflows, sdworx.proxies, sdworx.proxies.microflows, support.proxies, support.proxies.microflows, system, system.actions, system.proxies, system.proxies.microflows, talentmanagement.proxies, talentmanagement.proxies.microflows, urenregistratie.proxies, urenregistratie.proxies.microflows, verlof.proxies, verlof.proxies.microflows, verzuim.proxies, verzuim.proxies.microflows, workflow.proxies, workflow.proxies.microflows
Import-Package: *;resolution:=optional
Service-Component: *
Include-Resource: ../../userlib/;recursive:=true
Bundle-ClassPath: .,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
Bundle-Name: Master_Daywize_DemoBranch_NEW_obv_Binck_06_01_2014
Bundle-SymbolicName: project
answered
0

Hi All,

I ran into the same error when updating an AppStore module. Cleaning the deployment directory and then rebuilding did the trick for me. I hope this helps someone.

-Andrej

answered