Skip to content

Eclipse, what the heck is CHKJ3000E?

Here is one of those friggin’ annoying problems. I saw this about 6 months ago while “trying out” the Eclipse Web Tools Project. Can somebody tell me what the heck this error is:

CHKJ3000E: WAR Validation Failed: java.lang.NullPointerException

It’s an error tied to the root of my Dynamic Web Project. There is nothing tricky going on in the project. It’s actually a very basic “Hello World” project testing a new web framework. Anyhow, I have to believe it’s somehow tied to the WTP.

I posted something about the problem the last time I saw it on the Eclispe WTP forums and got nothing helpful back. Anyhow, the thread can be read at:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg09932.html

The ironic thing is that about a week or so ago I was emailed by somebody much smarter then me who was having the problem. He had no idea what the error meant and couldn’t find a solution. Hopefully, he’ll read this and have a solution. :)

38 Comments

  1. Rich Shonk wrote:

    Erik,
    Not sure if this will help or not. I had the same error with a project. Mine was tied to the following invalid segment in the web.xml

    <error-page id=”ExceptionTypeErrorPage_1″>
    <exception-type>*</exception-type>
    <location>jsp/Error.jsp</location>
    </error-page>

    The exception type tag should be a fully qualified Java class name. Once I corrected this tag, the CHKJ3000E error cleared.

    My best guess is you have an error in your web.xml with a value inside one of your tags.

    Good luck,
    Rich

    Wednesday, July 5, 2006 at 10:29 pm | Permalink
  2. Klaus wrote:

    Project Clean … helped me.

    Good luck,
    Klaus

    Thursday, July 6, 2006 at 4:41 am | Permalink
  3. Erik Weibust wrote:

    Thanks for the tips guys. Klaus, I’ve tried the refresh many times and that never helped. Rich, I’ll take a look at the values in my web.xml. That sounds like a possible place for the problem.

    On a side note, I haven’t seen the problem since moving to 3.2.

    Erik

    Thursday, July 6, 2006 at 10:55 am | Permalink
  4. The ‘Clean…’ option under the Project menu worked for me also. Thanks guys.

    Darren

    Tuesday, August 1, 2006 at 7:23 am | Permalink
  5. Erik Weibust wrote:

    Howdy Darren,

    Thanks for stopping by. I’m not having to fight this problem right now as I’ve upgraded Eclipse. I’ll let you know if I see the problem again.

    Erik

    Wednesday, August 2, 2006 at 12:57 pm | Permalink
  6. David Lippa wrote:

    I got the same error you did… without an exception in my web.xml file… and I haven’t changed it since yesterday when it worked just fine!

    Thursday, November 9, 2006 at 5:47 am | Permalink
  7. Matthias Kretschmar wrote:

    I’m having a similar problem: CHKJ3000E: WAR Validation Failed: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml.
    The strange thing is, we are working in a team. Everyone has the same web.xml and only I have problems with it.
    I’m working with Eclipse 3.2.1 (WTP). My latest installed plugins are JIRA and Mylar und some patches of Eclipse.
    Has anyone a solution?

    Wednesday, January 3, 2007 at 12:11 am | Permalink
  8. Matthias Kretschmar wrote:

    Now I resolved the problem for myself after some weeks. I removed the project from Eclipse and readded it from cvs. The error did not reappear until now. Maybe it has something to do with internal caches of Eclipse, because my files did not change.

    Wednesday, January 3, 2007 at 1:05 am | Permalink
  9. ivan di maro wrote:

    good suggestion!
    Removing the project and readding it from cvs worked for me too.

    Thursday, March 22, 2007 at 10:25 am | Permalink
  10. Morten Simonsen wrote:

    The trick for me was to go to preferences an turn OFF validation of WAR. Then do something with the web.xml-file (maybe, write a space?), then clean-build. Then turn ON validation of WAR.

    Sunday, April 29, 2007 at 11:51 pm | Permalink
  11. erik wrote:

    Guys,

    I haven’t seen this problem in a LOOOONG time. If you are still having this problem I’d be interested in hearing what version of Eclipse you’re using.

    Erik

    Monday, April 30, 2007 at 7:04 pm | Permalink
  12. Jeff wrote:

    Happened to me just today. Morten’s solution worked for me–except I could not open the web.xml file directly. I had to copy it, delete the original and then replace it with the copy.

    I’m using IBM Rational Software Development Platform
    version 6.0.1
    build 20050725_1800

    (not by choice, believe me)

    Friday, May 4, 2007 at 9:03 am | Permalink
  13. Craig wrote:

    I’m using Rational Application Developer 7.0.0 and saw this problem today; the version of the Web Standard Tools components is 1.5.2v20061007.

    Matthias’s suggestion about removing the project and checking it out from CVS again worked for me.

    Tuesday, June 12, 2007 at 5:33 pm | Permalink
  14. Kevin wrote:

    Matthias’s solution worked for me, too.

    I’m using eclipse-wtp-1.5.2 from eclipse.org and Amateras, a plugin for using resin as a J2EE Server.

    Friday, June 29, 2007 at 2:26 am | Permalink
  15. alee wrote:

    It’s a WTP bug. It’s fixed but not released in WTP1.5.
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=145529

    Tuesday, September 4, 2007 at 6:59 pm | Permalink
  16. matt wrote:

    I’m using RAD 6.0.1 and I saw this error. I saved everything up to CVS, deleted all the local code and then checked the workspace directory. I saw another post that suggested cleaning out the plugins directory. The path is \.metadata\.plugins.

    After I deleted the contents of the .plugins directory and reloaded all my projects from CVS, the error went away.

    Tuesday, September 18, 2007 at 1:45 pm | Permalink
  17. Jigarkumar wrote:

    Hi friends,

    What I discover is there is only one reson for this error and that is your web.xml is wrong somewhere.

    Sometimes because of unknown problem eclipse popup this error even if your web.xml is all good. And you will not able to solve error even afer cleaning the project. At this point what you can do is just do enter some rendom text in your web.xml and save it and again remove that rendom text and save it. Do clean project if needed.. I hope you will solve it.

    Also make sure your web.xml is all good.

    Jigar.

    Thursday, October 11, 2007 at 8:42 am | Permalink
  18. murat wrote:

    Eclipse Europa 3.3.0 i had the same problem. Morten’s solution worked for me also. There is something wrong with validators. There are misplaced warnings in JSP files with myfaces tags (unknown tag warnings or some warnings that is about tags that arent at the page anymore).

    Thursday, October 25, 2007 at 10:19 am | Permalink
  19. Daniel Fraser wrote:

    Slight Variation of Matthias’s solution worked for me.

    I’m on Weblogic for Workshop, Committed everything (just in case) then deleted the project from the IDE (leaving the content present(try the easy thing first), then reimported the existing project. Fixed it for me.

    Thursday, December 6, 2007 at 1:28 pm | Permalink
  20. Ulas Ergin wrote:

    Thank you Morten Simonsen,that worked for me also.

    Friday, December 28, 2007 at 11:51 am | Permalink
  21. malcolm davis wrote:

    Fix then Clean.

    I fixed issues in the web.xml, and then I did a Project/Clean.

    The issues in the web.xml come from various sources. I don’t know if the issue is Eclipse or RAD related. The tool tries to do an XML validation and fails.

    Tuesday, January 15, 2008 at 11:53 am | Permalink
  22. Ben Northrop wrote:

    Thanks for this post!

    Getting rid of the cached web.xml in the .plugins directory, deleting the file from the project, cleaning, rebuilding, then re-adding it worked for me.

    Wednesday, September 17, 2008 at 9:31 am | Permalink
  23. Legaia wrote:

    Project Clean worked for me as well. Also this bug has been fixed. The milestone release is noted on the bug.

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=145529

    Thursday, October 16, 2008 at 7:00 am | Permalink
  24. Om Prakash wrote:

    Remove the project from work space without deleting contains doing this it will remove all the log in information from .metadata of eclipse for that particular project and add the same project from using option import existing project from workspace. Hope the error will go off.

    Thank
    Om Prakash
    Seec Aisa

    Wednesday, December 10, 2008 at 12:42 am | Permalink
  25. Joe Fisher wrote:

    I noticed that the

    when in fact the file was really utf 8 (in eclipse, right click on web.xml, properties and notice the text file encoding)
    Changing the declaration to

    so, in a way, this is a stupid way of letting you know that something really is wrong with your xml file.

    Thursday, January 8, 2009 at 3:36 pm | Permalink
  26. Joe Fisher wrote:

    eek, the xml line was removed from my previous comment.
    in essence, change the xml version declaration at the top of the file from encoding ISO-8859-1 to UTF-8

    Thursday, January 8, 2009 at 3:38 pm | Permalink
  27. KAMAL wrote:

    HI JIGAR KUMAR ,
    I FACED THIS ERROR , WHILE WORKING WITH RAD.I WAS UNABLE TO IDENTIFYING THE PROBLEMS , BCOS IT WAS NOT AT THE APPLICATION LEVEL.

    BUT YOUR SUGGESTION WORKED WELL IN ORDER TO REMOVE THIS ERROR.

    THX A LOT FOR SUCH A AMAZING DESCRIPTION.

    Friday, February 27, 2009 at 6:57 am | Permalink
  28. Guy C wrote:

    For eclipse users, turn off ‘Build Automatically’, do a clean, then turn on ‘Build Automatically’.

    Wednesday, March 4, 2009 at 12:54 am | Permalink
  29. Rune Hellem wrote:

    The -tag had a linebreak, removed it and saved the file, and the error was gone. Not sure if it was only the touch and save, or if it was the removal of the linebreak that did the trick…

    Thursday, May 28, 2009 at 3:56 am | Permalink
  30. gary wrote:

    this worked for me in RAD 7

    The trick for me was to go to preferences an turn OFF validation of WAR. Then do something with the web.xml-file (maybe, write a space?), then clean-build. Then turn ON validation of WAR.

    Thursday, July 9, 2009 at 4:02 pm | Permalink
  31. Ned Lowe wrote:

    If it’s helpful – I had this issue, tried everything… Then simply right-clicked the offending web.xml, then ‘Validate’ – and bang, the issue went away!

    Sunday, January 24, 2010 at 9:31 am | Permalink
  32. Pavan wrote:

    I am using IBM Rational Application developer V 7.0. I had same issue when i deleted .plugin files from %temp% . This issue is related to Cache. I removed the project with out deleing the contents and imported the existing project. It worked for me.

    Monday, March 8, 2010 at 4:56 pm | Permalink
  33. Adelwin wrote:

    i cleaned everything under .metadata/publish/temp0
    and then do a full rebuild…
    it’s fine for a few days and then it came again..
    i did it again and it stays for a few days again..
    i’ve been doing that 3-4 times now…
    never knew what’s the root cause.
    i tried everything.
    checkout new project from SVN
    add space to that file.
    delete that file
    turn of WAR Validator.
    everything.
    nothing works..

    Thursday, April 29, 2010 at 9:33 am | Permalink
  34. Adelwin wrote:

    i cleaned everything under .metadata/publish/temp0
    and then do a full rebuild…
    it\’s fine for a few days and then it came again..
    i did it again and it stays for a few days again..
    i\’ve been doing that 3-4 times now…
    never knew what\’s the root cause.
    i tried everything.
    checkout new project from SVN
    add space to that file.
    delete that file
    turn of WAR Validator.
    everything.
    nothing works..

    Thursday, April 29, 2010 at 9:33 am | Permalink
  35. Amjad Hussain wrote:

    CHKJ3000E: Solution
    Right Click project >> properties>>validate
    check “Suspend all validators” and click ok

    again click project >> properties>>validate
    and uncheck “Suspend all validators” check box. click apply then ok.

    Monday, May 10, 2010 at 5:22 am | Permalink
  36. Arno Nym wrote:

    WebSphere Development Studio Client for iSeries
    Version: 7.0.0
    Build-ID: 20070202_0030

    Problem because of replacing a JAR-File.

    Post from Joe Fisher: replace from XML-encoding ISO-8859-1 to UTF-8

    In my Web.XML there was encoding UTF-8 so I changed it to ISO-88590-1. The Workspace was rebuildet. Just as I wrote this, I made a cross check and switched the encoding back to UTF-8 and I got no compile error.

    It seems that by changing the web.xml does the trick, not neccessarely the encoding. File date.

    Wednesday, December 1, 2010 at 4:15 am | Permalink
  37. M White wrote:

    I had the same problem, modifying web.xml, cleaning and doing a full build fixed the problem.

    Wednesday, April 6, 2011 at 12:08 pm | Permalink
  38. Sunil wrote:

    clean option didnt worked for so i have closed the project and opened it again and cleaned it , IT WORKED ,,,

    Monday, December 12, 2011 at 4:45 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word