wood burning stoves 2.0*
The moose likes Websphere and the fly likes WSAD 5.1.1 - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WSAD 5.1.1 - "EAR Validation failed"" Watch "WSAD 5.1.1 - "EAR Validation failed"" New topic
Author

WSAD 5.1.1 - "EAR Validation failed"

Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
I am using Websphere Studio Application Developer 5.1.1
on Windows 2000.
I have two projects in my workspace:
Foo (a Dynamic web application project)
FooEAR (an Enterprise application project)
I want to rebuild FooEAR using the "Rebuild project" menu option.
When I execute a rebuild, Websphere Studio's Tasks window
displays this error message:
CHKJ1000E: EAR Validation failed: com.ibm.etools.archive.exception.ArchiveRuntimeException
What could cause this error?
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
Note: these two projects were imported using WSAD's File --> Import
On the Import dialog, I selected "Existing Project Into Workspace"
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
The "Project Rebuild" is logging an error message into
the workspace's .log file
This is what I see in the .log file:
!ENTRY org.eclipse.jdt.ui 4 10001 Mar 25, 2004 11:39:44.161
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [Foo does not exist.]
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.eclipse.core.runtime.CoreException.<init>(CoreException.java:35)
at org.eclipse.jdt.core.JavaModelException.<init>(JavaModelException.java:64)
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:481)
at org.eclipse.jdt.internal.core.JavaProject.openWhenClosed(JavaProject.java:1857)
at org.eclipse.jdt.internal.core.JavaElement.openHierarchy(JavaElement.java:490)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:312)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:254)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragmentRoots(JavaProject.java:1289)
at org.eclipse.jdt.ui.actions.OrganizeImportsAction.hasSourceFolders(OrganizeImportsAction.java:234)
at org.eclipse.jdt.ui.actions.OrganizeImportsAction.isEnabled(OrganizeImportsAction.java:223)
at org.eclipse.jdt.ui.actions.OrganizeImportsAction.selectionChanged(OrganizeImportsAction.java:151)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged(SelectionDispatchAction.java:181)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged(SelectionDispatchAction.java:176)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1290)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1020)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:362)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.handleInvalidSelection(PackageExplorerPart.java:434)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:813)
at org.eclipse.jface.viewers.AbstractTreeViewer.remove(AbstractTreeViewer.java:1084)
at org.eclipse.jface.viewers.AbstractTreeViewer.remove(AbstractTreeViewer.java:1104)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider$5.run(PackageExplorerContentProvider.java:592)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider$7.run(PackageExplorerContentProvider.java:611)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:357)
at org.eclipse.ui.actions.DeleteResourceAction.run(DeleteResourceAction.java:388)
at org.eclipse.jdt.internal.ui.reorg.DeleteResourcesAction.deleteProjects(DeleteResourcesAction.java:93)
at org.eclipse.jdt.internal.ui.reorg.DeleteResourcesAction.run(DeleteResourcesAction.java:58)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:191)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:169)
at org.eclipse.jdt.internal.ui.reorg.DualReorgAction.run(DualReorgAction.java:41)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleKeyEvent(PackageExplorerActionGroup.java:340)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$7.keyReleased(PackageExplorerPart.java:920)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:124)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
!ENTRY org.eclipse.jdt.core 4 969 Mar 25, 2004 11:39:44.240
!MESSAGE Foo does not exist.
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
I have a theory. I suspect that WSAD is failing due to
the .modulemaps file
The .modulemaps file maps from the EAR project to any
web module projects.
My .modulesmaps file contains this entry:
<module xmi:type="application:WebModule" href="META-INF/application.xml#WebModule_1070235942812"/>
I suspect that this entry is bogus and/or erroneous.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Sean,
In the J2EE view, you can see what modules WSAD thinks are associated with your EAR. You can also try deleting and readding the association this way.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
> When I execute a rebuild, Websphere Studio's Tasks
> window
> displays this error message:
>
> CHKJ1000E: EAR Validation failed:
> com.ibm.etools.archive.exception.ArchiveRuntimeException
>
This is a bug in WSAD 5.1.1
This bug is fixed in WebSphere Studio Application Developer v5.1.1 Interim Fix 002
You can download the fix at
http://www-1.ibm.com/support/docview.wss?uid=swg24006510
The bug occurs if your Web project contains a file that has no extension.
For example, a file named "README" would cause the EAR validation error message.
Midhila Menon
Greenhorn

Joined: Aug 10, 2009
Posts: 1
Hi,

Could anyone tell me how to fix this issue of CHKJ1000E: EAR Validation failed:
> com.ibm.etools.archive.exception.ArchiveRuntimeException.

Also how to fix the new build given by IBM for this fix http://www-1.ibm.com/support/docview.wss?uid=swg24006510

Regards,
Midhila
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSAD 5.1.1 - "EAR Validation failed"
 
Similar Threads
WSAD serviceprojectbuilder
Websphere Studio Application Developer 5.1.0
Error while doing a feature update in WSAD
WAS can't find split( ) method: How do I configure Java 1.4 for WAS?
Websphere Studio Application Developer 5.1.0 problem...please help