Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build Cloud Logic Core - Services #9

Open
ChristianBusch opened this issue Apr 14, 2017 · 2 comments
Open

Unable to build Cloud Logic Core - Services #9

ChristianBusch opened this issue Apr 14, 2017 · 2 comments

Comments

@ChristianBusch
Copy link

ChristianBusch commented Apr 14, 2017

Building the cocome-maven-project after creating the configuration file fails for me when I run the maven goals clean compile package.

[INFO] wsdl2java -encoding UTF-8 -p null -d /home/morph/git/cocome-cloud-jee-platform-migration/cocome-maven-project/cloud-logic-service/cloud-logic-core-services/target/generated-sources/src -b file:/home/morph/git/cocome-cloud-jee-platform-migration/cocome-maven-project/cloud-logic-service/cloud-logic-core-services/src/main/resources/wsdl/enterpriseManagerBindings.xml -xjc-extension -xjc-verbose -xjc-extension -xjc-verbose -wsdlLocation ${logic.enterprise.protocol}://${logic.enterprise.host}:${logic.enterprise.httpPort}${logic.enterprise.baseDir}/EnterpriseService/IEnterpriseManager?wsdl -verbose file:/home/morph/git/cocome-cloud-jee-platform-migration/cocome-maven-project/cloud-logic-service/cloud-logic-core-services/src/main/resources/wsdl/IEnterpriseManager.wsdl
[INFO] wsdl2java - Apache CXF 3.1.7
[INFO]
[WARNING] Exception in thread "main" org.apache.cxf.tools.common.ToolException: jar:file:/home/morph/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar!/com/sun/xml/xsom/impl/parser/datatypes.xsd [54,23]: The package name 'null' used for this schema is not a valid package name.

I also attached the log file of the whole maven build with debug output.

CoCoMEBuildError.txt

Yet it also fails with goal install:

[ERROR] Manifest org.cocome:cloud-registry-client:jar:1.1 : 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.
The following package(s) import from the default package [org.cocome.cloud.logic.registry.client]
[ERROR] Error(s) found in manifest configuration

Also full log for this goal attached.
CoCoMEBuildGoalInstallError.txt

@Benkler
Copy link
Contributor

Benkler commented Apr 16, 2017

Do you use Java JDK(which has to be used) or JRE? Besides, try to update java if possible (try java 8 JDK). Did you use maven within eclipse or via command line? I don't know why, but eclipse sometimes causes some troubles, whereas "mvn clean compile package -s settings.xml" (command line) works fine. I am currently using ubuntu 16.04 and java 1.8.0_121 and do not have any troubles.

@ChristianBusch
Copy link
Author

I was using OpenJDK 1.7.0_121 with m2e in Eclipse Neon.3 on Ubuntu 16.04, yet, using OpenJDK 1.8.0_121 yields the same error.

However as you proposed running a real maven solved the problem for me. As it stands it can be built, just not with m2e inside Eclipse. So it really seems to be another special case of m2e...

Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants