Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

WSAD CHKJ3017E: invalid Context Root

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm getting an annoying error message in my task list in Websphere Studio:

CHKJ3017E: Web Project: MyBookWeb is mapped to an invalid Context root: MyBook in EAR Project: MyBookWeb_EAR.

MyBookWeb and MyBookWeb_EAR are separate projects: MyBookWeb is listed as a web module in MyBookWeb_EAR and runs fine inside the Websphere test environment.

Pertinent files:

web.xml



application.xml



Any ideas?

Thanks.

[edited because Code UBB wasn't rewriting my tags. Ted]
[ February 15, 2005: Message edited by: Ted J Schrader ]
 
author & internet detective
Posts: 41086
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ted,
Is that error showing up in the web project or the ear project?
 
Ted J Schrader
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whoops, sorry for the omission. It's in the Web project.

Also, I have a warning in the EAR project on application.xml:

IWAE0030W The context root for web module: MyBookWeb.war in Enterprise Application project: MyBookWeb_EAR does not match the context root in web project settings of MyBookWeb.

line 3.

[edited because I forgot I already posted application.xml - Ted]
[ February 16, 2005: Message edited by: Ted J Schrader ]
 
Jeanne Boyarsky
author & internet detective
Posts: 41086
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ted,
I think it is because there is no servlet mapping defined in your XML. When you are accessing the URL, it works because the prefix is missing. However, WSAD knows this is inconsistent because the context root is declared (as it should be) in the EAR project.


[ edited because I forgot to escape the XML too! ]
[ February 16, 2005: Message edited by: Jeanne Boyarsky ]
 
Ted J Schrader
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

Hmm. This could be a possibility, but it will be a while until I can check this. The reason there are no servlet mappings in the web.xml is because there aren't any servlets. Bear in mind this is legacy code that I've newly inherited. The application is written in classic ASP style.

I've got my work cut out for me. If I learn anything about the WSAD error in my trials I'll be sure to post.

Thanks,

Ted
 
Jeanne Boyarsky
author & internet detective
Posts: 41086
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ted,
If there are no servlets, the context root is irrelevant anyway. That explains how your application works despite the error message.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should update your project's .websetting. It is located under project home, same as .project.

e.g.
<pre><?xml version="1.0" encoding="UTF-8"?>
<websettings version="500">
<project-type>J2EE</project-type>
<webcontent/>
<context-root>/myproject</context-root>
<jsp-level>JSP 1.3</jsp-level>
<features>
<feature>
<feature-id>WebProjectCSSFileFeature</feature-id>
</feature>
</features>
</websettings></pre>
[ March 10, 2005: Message edited by: Ken Wong ]
 
Have you no shame? Have you no decency? Have you no tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic