Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Export EAR from Eclipse causing problem

Posted on 2010-11-08
2
Medium Priority
?
2,137 Views
Last Modified: 2012-05-10
I very frequently keep generating EAR file from Eclipse too from Export --> EAR File. Now I need to deploy it on QA. As I try to do that I am getting the following error
org.eclipse.core.commands.ExecutionException: Error exportingH:/CustomerConnectWLS10.ear
	at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExportOperation.execute(ComponentExportOperation.java:136)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:385)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:410)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:360)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:247)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:219)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:207)
	at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1CatchThrowableRunnableWithProgress.run(DataModelWizard.java:225)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: java.lang.NullPointerException
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveArchive(FlatComponentArchiver.java:117)
	at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExportOperation.export(ComponentExportOperation.java:178)
	at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExportOperation.execute(ComponentExportOperation.java:134)
	... 10 more
Caused by: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: java.lang.NullPointerException
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveArchive(FlatComponentArchiver.java:117)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveChildModules(FlatComponentArchiver.java:206)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveArchive(FlatComponentArchiver.java:105)
	... 12 more
Caused by: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: java.lang.NullPointerException
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveArchive(FlatComponentArchiver.java:117)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveChildModules(FlatComponentArchiver.java:206)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveArchive(FlatComponentArchiver.java:105)
	... 14 more
Caused by: java.lang.NullPointerException
	at org.eclipse.jst.jee.archive.internal.ArchiveUtil.copy(ArchiveUtil.java:216)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.addZipEntry(FlatComponentArchiver.java:241)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:149)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:156)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:156)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:156)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:156)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:156)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveFlatResources(FlatComponentArchiver.java:156)
	at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentArchiver.saveArchive(FlatComponentArchiver.java:106)
	... 16 more

Open in new window

0
Comment
Question by:prsubject
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:prsubject
ID: 34088518
Please Cancel this question as it is an Eclipse bug, which occurs due to some plugins.The details could be found on Google.
0
 
LVL 10

Accepted Solution

by:
Pramod Kumar earned 1000 total points
ID: 34091174
May be below are cause of error:
> caused by any Maven dependencies from the use of the m2eclipse plug-in
> caused by icu4j-2.6.1.jar

You may do workaround using
> disable the Maven dependency management.
> deleting some metadata files in the project,
> removing invalid entries from the MANIFEST files


This bug has gone in eclipse 3.0.4. please try here once.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question