|
Re: web.xml not found ?? [message #151036 is a reply to message #151027] |
Wed, 07 December 2005 14:28 |
Larry Isaacs 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 #151048 is a reply to message #151045] |
Wed, 07 December 2005 15:58 |
Larry Isaacs 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.
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03349 seconds