Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration for Web Tools Platform » Java EE EAR project - Supported by M2E?
Java EE EAR project - Supported by M2E? [message #1743666] Sun, 18 September 2016 16:16
Daniel Platz is currently offline Daniel PlatzFriend
Messages: 5
Registered: July 2016
Junior Member
Hi,
I am trying to import a Maven ear project into the Eclipse Neon IDE.
The project is a JavaEE 6-compliant application. That means for example, that ejb jars have an ejb-jar.xml with version 3.1 xsd:

<ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee"
version = "3.1"

I have found that for the jar that comply to EJB 3 I get these errors:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0023E Unable to open module file "MyEJBArchive.jar" in EAR file "[/MYEAR]:MYEAR"
Stack trace of nested exception:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0006E Archive is not a valid EJB JAR File because the deployment descriptor can not be found (case sensitive): META-INF/ejb-jar.xml

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:821)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:832)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEJBJarFile(CommonarchiveFactoryImpl.java:697)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.openNestedArchive(EARFileImpl.java:692)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.openNestedArchive(EARFileImpl.java:671)
at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.openNestedArchive(LoadStrategyImpl.java:478)
at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.createFile(LoadStrategyImpl.java:156)
at org.eclipse.jst.j2ee.internal.archive.operations.ComponentLoadStrategyImpl.addExternalFile(ComponentLoadStrategyImpl.java:556)
at org.eclipse.jst.j2ee.internal.archive.operations.EARComponentLoadStrategyImpl.addModulesAndUtilities(EARComponentLoadStrategyImpl.java:152)
at org.eclipse.jst.j2ee.internal.archive.operations.EARComponentLoadStrategyImpl.getFiles(EARComponentLoadStrategyImpl.java:63)
at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.collectFiles(LoadStrategyImpl.java:286)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.getFiles(ContainerImpl.java:255)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.getFile(ContainerImpl.java:202)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:123)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:107)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getModuleFile(EARFileImpl.java:93)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:337)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:166)
at org.eclipse.jst.j2ee.model.internal.validation.EarValidator.validateWebAppRefs(EarValidator.java:445)
at org.eclipse.jst.j2ee.model.internal.validation.EarValidator.validateRefs(EarValidator.java:402)
at org.eclipse.jst.j2ee.model.internal.validation.EarValidator.validate(EarValidator.java:125)
at org.eclipse.jst.j2ee.model.internal.validation.EarValidator.validateInJob(EarValidator.java:149)
at org.eclipse.jst.j2ee.internal.validation.UIEarValidator.validateInJob(UIEarValidator.java:273)
at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Is it possible that the m2e integration does not support Java EE6-compliant ears ? Is this a feature that has been deprecated?

The project builds fine with maven on the commandline.

Thanks,
Daniel
Previous Topic:Spring Framework not found
Next Topic:m2e connector build-helper-maven-plugin breaks junit integration
Goto Forum:
  


Current Time: Wed Nov 13 16:06:44 GMT 2024

Powered by FUDForum. Page generated in 0.03591 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top