Solved

Export EAR from Eclipse causing problem

Posted on 2010-11-08
2
2,070 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
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 250 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
count8 challlenge 13 142
java jdbc batch example 8 32
servlet example 11 40
login form jsp example 2 24
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.

805 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