Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WAR validation failure -- but it has no effect
WAR validation failure -- but it has no effect [message #181572] Thu, 12 October 2006 17:57 Go to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
I'm getting the an error reported in problems view when I build my dynamic
web project using the web.xml shown below.

If I click on the error message, eclipse ignores the click and does not
activate the web.xml file. There are no errors flaged in the web.xml
editor, and the project deploys and executes correctly.

If everything works well, why am I getting this error?

Michael Giroux

CHKJ3000E: WAR Validation Failed:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml TestProjectEJB3 Unknown 1160675451248 1169732

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>TestProjectEJB3</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value> classpath:/com/bull/test/services-generationtestproject-cont ext.xml,
classpath:/com/bull/test/config-context.xml</param-value>
</context-param>
<!-- Listener, that does all the startup work (configuration, init). -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>
<servlet>
<description>Test for the EJB3 business code</description>
<display-name>TestServlet</display-name>
<servlet-name>TestServlet</servlet-name>
<servlet-class>com.bull.test.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
</web-app>
Re: WAR validation failure -- but it has no effect [message #181643 is a reply to message #181572] Fri, 13 October 2006 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Michael,

I pasted your web.xml in an empty web project and created even the TestServlet,
but I did not see an error.

What is your WTP version ? I checked it with 1.5.0.

Do you see an exception in "workspace\.metadata\.log" ?

Does it also happen with a clean workspace ?

Best regards

Wolfgang

Michael Giroux schrieb:
> I'm getting the an error reported in problems view when I build my dynamic
> web project using the web.xml shown below.
>
> If I click on the error message, eclipse ignores the click and does not
> activate the web.xml file. There are no errors flaged in the web.xml
> editor, and the project deploys and executes correctly.
>
> If everything works well, why am I getting this error?
>
> Michael Giroux
>
Re: WAR validation failure -- but it has no effect [message #181653 is a reply to message #181643] Fri, 13 October 2006 15:39 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Eclipse 3.2.1 + WTP 1.5.1

1. I'm including the exceptions that were thrown.
2. I created a new workspace and imported the project using the "copy
files" option. The new project did not have the error.
3. Guessing there might be something wrong in the original workspace, I went
back to the original workspace and did the following:
a. rename web.xml to w.x
b.build the project
c. rename w.x to web.xml
d build the project

Following this sequence, the error has been eliminated. I did not make any
changes to web.xml other than to rename it. My guess is that renaming it
cleared something that was being cached.

Michael Giroux

!ENTRY org.eclipse.wst.validation 4 0 2006-10-12 11:06:26.626
!MESSAGE
*** ERROR ***: Thu Oct 12 11:06:26 GMT-07:00 2006
org.eclipse.wst.validation.internal.core.ValidationException : CHKJ3000E: WAR
Validation Failed:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml
at
org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:295)
at
org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:92)
at
org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:70)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.wst.validation 4 0 2006-10-12 11:06:26.642
!MESSAGE
*** ERROR ***: Thu Oct 12 11:06:26 GMT-07:00 2006
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml
Stack trace of nested exception:
java.lang.NullPointerException
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:357)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.getResource(ProjectResourceSetImpl.java:262)
at
org.eclipse.wst.common.internal.emfworkbench.WorkbenchResour ceHelper.getOrCreateResource(WorkbenchResourceHelper.java:38 4)
at
org.eclipse.wst.common.internal.emfworkbench.integration.Edi tModel.getResource(EditModel.java:680)
at
org.eclipse.wst.common.componentcore.internal.ArtifactEditMo del.getResource(ArtifactEditModel.java:174)
at
org.eclipse.wst.common.componentcore.ArtifactEdit.getResourc e(ArtifactEdit.java:636)
at
org.eclipse.jst.j2ee.internal.archive.operations.ComponentLo adStrategyImpl.getMofResource(ComponentLoadStrategyImpl.java :467)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.Archive Impl.getMofResource(ArchiveImpl.java:731)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleF ileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java: 61)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Xml BasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBase dImportStrategyImpl.java:39)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.loadDeploymentDescriptor(War22ImportStr ategyImpl.java:87)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.importMetaData(War22ImportStrategyImpl. java:81)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFile Impl.getDeploymentDescriptor(WARFileImpl.java:145)
at
org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:280)
at
org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:92)
at
org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:70)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Previous Topic:Eclipse 3.2.1 + WTP 1.5.1 -- JSP, JSP Fragment, Taglib + Validation = Noise
Next Topic:Dynamic Web project builds automatically with Build Automatically OFF
Goto Forum:
  


Current Time: Tue Mar 19 08:01:10 GMT 2024

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

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

Back to the top