Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » web.xml not found ??
web.xml not found ?? [message #151027] Wed, 07 December 2005 13:23 Go to next message
Vofeka is currently offline VofekaFriend
Messages: 4
Registered: July 2009
Junior Member
Hi. Every time I start Tomcat 5.5, I get an error saying (roughly
translated from french):

"[...]
INFO: The file web.xml of the application cannot be found, using default
parameters
StandardEngine[Catalina].StandardHost[localhost].StandardCon text[]
[...]"

of course I have checked (many times) that my web.xml existed in the
/WEB-INF/ directory of my web application. It is copied correctly under
the .deployables and everything...

What drives me crazy is that is used to worked before! I have tried
upgrading to WTP 0.7.1 but still no luck :-(
I'm also using Eclipse 3.1.0 and Tomcat 5.5.12

Any help would be really greatly appreciated.
Thanks in advance.
Re: web.xml not found ?? [message #151036 is a reply to message #151027] Wed, 07 December 2005 14:28 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
When you see this, what is within the "[]" of the "StandardContext[]"
portion of this message gives you the context path of the webapp to
which it applies. In your case, this is the "" or ROOT webapp, a.k.a.
the default webapp. Thus, it doesn't apply to your webapp unless you
specified its context path as "". Otherwise, it applies to the default
webapp found at
<workspace> /.metadata/.plugins/org.eclipse.wst.server.core/tmp?/webapps /ROOT.
In this case, this message is normal and can be ignored.

Also, it has been fixed so it won't occur in the current candidate for
WTP 1.0.

Cheers,
Larry


Vofeka wrote:
> Hi. Every time I start Tomcat 5.5, I get an error saying (roughly
> translated from french):
> "[...]
> INFO: The file web.xml of the application cannot be found, using default
> parameters
> StandardEngine[Catalina].StandardHost[localhost].StandardCon text[]
> [...]"
>
> of course I have checked (many times) that my web.xml existed in the
> /WEB-INF/ directory of my web application. It is copied correctly under
> the .deployables and everything...
>
> What drives me crazy is that is used to worked before! I have tried
> upgrading to WTP 0.7.1 but still no luck :-(
> I'm also using Eclipse 3.1.0 and Tomcat 5.5.12
>
> Any help would be really greatly appreciated.
> Thanks in advance.
>
Re: web.xml not found ?? [message #151039 is a reply to message #151036] Wed, 07 December 2005 15:01 Go to previous messageGo to next message
Vofeka is currently offline VofekaFriend
Messages: 4
Registered: July 2009
Junior Member
Thanks for your quick answer Larry.
But I can't just ignore the error message because it prevents my web
application from starting :-(

I just found the cause of my problem: the declaration of the context for
my web application had disappeared from the server.xml file in the Tomcat
installation directory.... (have no idea why?)

I just put back the web application context declaration in the server.xml,
restarted Tomcat and... voila! No more error message :)

Thanks again for your help Larry.
Re: web.xml not found ?? [message #151042 is a reply to message #151039] Wed, 07 December 2005 15:20 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
I would think it unlikely that this message was related to your webapp
not starting. Just curious, if you right-click on the server in the
Servers view and select Open, is the "Run modules directly from the
workspace..." checked? There may be a better explanation why the
context is missing from the installation's server.xml than it "had
disappeared".

Cheers,
Larry


Vofeka wrote:
> Thanks for your quick answer Larry.
> But I can't just ignore the error message because it prevents my web
> application from starting :-(
> I just found the cause of my problem: the declaration of the context for
> my web application had disappeared from the server.xml file in the
> Tomcat installation directory.... (have no idea why?)
>
> I just put back the web application context declaration in the
> server.xml, restarted Tomcat and... voila! No more error message :)
>
> Thanks again for your help Larry.
>
>
Re: web.xml not found ?? [message #151045 is a reply to message #151042] Wed, 07 December 2005 15:24 Go to previous messageGo to next message
Vofeka is currently offline VofekaFriend
Messages: 4
Registered: July 2009
Junior Member
Yes Indeed, the "Run modules directly from the workspace..." IS checked...
so you think that might explain why my application declaration was removed
from the server.xml.

Should I leave that checkbox checked?
Cheers.
Re: web.xml not found ?? [message #151048 is a reply to message #151045] Wed, 07 December 2005 15:58 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Execute Run -> Run..., look under Apache Tomcat and find your server's
launch configuration and select it. Select the Arguments tab and
examine the VM Arguments field. You should see that catalina.home
points to your installation, but catalina.base points somewhere else.
It is under the catalina.base directory that the conf/server.xml
matters. With the "Run modules..." option checked, the "(do not modify
the Tomcat installation)" portion of the option is accurate. As a
result, you can create multiple servers from a single Tomcat
installation that don't step on each other. Handy if you need different
combinations of webapps or startup with different launch parameters.

If you uncheck this option catalina.base and catalina.home will both
point to your installation. In this situation, the Tomcat support in
Eclipse WTP kind of "owns" that installation. Server configuration
files found in the Servers project of your Eclipse workspace will
overwrite those in your Tomcat installation whenever you run Tomcat from
Eclipse. Thus, making local changes to those files in the installation
may not be a good idea. The main advantage of this mode of operation is
that you can run this Tomcat outside of Eclipse and see the same webapps
that you do running Tomcat within Eclipse.

Since this option is checked, it is normal for the server.xml in your
installation not to contain your webapp's context. So we are back to
"Why wasn't my webapp being served?" question. The "INFO" level message
you gave in the first e-mail isn't related to this problem.

When you modified the server.xml, which server.xml was it? The one in
the Tomcat installation (which shouldn't have had any impact with
respect to starting Tomcat from Eclipse), or the Servers project? If
any of the above doesn't agree with what you are seeing, it may mean
that your workspace may have gotten into a corrupt state to some degree.
Say so, if this appears to be the case.

Larry


Vofeka wrote:
> Yes Indeed, the "Run modules directly from the workspace..." IS
> checked... so you think that might explain why my application
> declaration was removed from the server.xml.
>
> Should I leave that checkbox checked?
> Cheers.
>
>
Re: web.xml not found ?? [message #151057 is a reply to message #151048] Wed, 07 December 2005 16:33 Go to previous message
Vofeka is currently offline VofekaFriend
Messages: 4
Registered: July 2009
Junior Member
The server.xml I modified was the one defined in the Server project of my
workspace...
I realise that my understanding of the Wtp mechanismes was not good
enough. Thanks to your explanations, every thing is a lot clearer now...
plus you solved my problem, so thanks again.
Keep up the good work on WTP!
Merci beaucoup ;-)
Previous Topic:How do I find out what files are included in a war file?
Next Topic:Add popup menu item to dynamic web project.
Goto Forum:
  


Current Time: Tue Apr 23 08:24:28 GMT 2024

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

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

Back to the top