|
|
Re: Missing web.xml + tomcat 5.5 [message #126289 is a reply to message #126248] |
Wed, 27 July 2005 10:19 |
Eclipse User |
|
|
|
Originally posted by: jylemaire.rocketmail.com
Bertrand a écrit :
>
>
> Hello,
>
> I migrated my project from Eclipse 3.1M5+webtools M3 to Eclipse
> 3.1+webtools 0.7rc3.
>
> First of all, congratulations for the work done ! The webtools are
> getting really nice !
>
> I use tomcat 5.5.7 + jdk 1.4.2 (so I installed the compatibility package).
>
> I migrate my whole project, and try to launch it from eclipse, but I'm
> stuck with the dreadfull error :
> INFO: Missing application web.xml, using defaults only
> StandardEngine[Catalina].StandardHost[localhost].StandardCon text[]
>
> Which I don't understand at all because the servlets I wrote for my web
> application are launched ! These servlets are defined in the web.xml,
> though !
>
> I suspect I did something wrong in the project migration, but I can't
> see what. The tomcat configuration didn't change (and worked with
> Eclipse 3.1M5).
>
> Do you have any ideas where I can have a look ?
>
> Cheers,
> Bertrand
>
Hello Bertrand,
I've experienced strange behavior with 3.1 + WTP RC1 when I discovered
that the web.xml file was not always properly exported with the .war
export file. Can you check in your .war export or in your .deployable
that the application web.xml is there ?!
This problem is however solved with a restart of Eclipse (and proper
project build)...
My own experience only, hope this helps...
Have a nice day, JYL57
|
|
|
|
|
Re: Missing web.xml + tomcat 5.5 [message #126356 is a reply to message #126248] |
Wed, 27 July 2005 13:21 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Hi Bertrand,
I believe "dreadful" may be too strong a word for this message. Note
that it's labeled "INFO". Also, it doesn't likely refer to your web
application project. If you were to remove all projects from the
server, you would still see this message.
In case you weren't aware, the default behavior for Tomcat servers is to
run with a separate CATALINA_HOME and CATALINA_BASE via the
"catalina.home" and "catalina.base" System properties. The
CATALINA_HOME points to your Tomcat installation and CATALINA_BASE
points to
"<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp? ", where
the '?' will be a number. The standard Tomcat web applications won't be
available because they aren't included in the separate CATALINA_BASE.
The only webapp present by default is an "empty" default webapp
consisting of "ROOT/WEB-INF" directories. This ensures that should a
request to the server have an incorrect URL, there is a default webapp
that can provide a response. However, because the default webapp has no
web.xml, you see this message. It may be safely ignored.
I'll look into correcting this for WTP 1.0, but removing this annoyance
in WTP 0.7 isn't feasible. If it's too annoying, you can eliminate it
by dropping a web.xml into
" .metadata\.plugins\org.eclipse.wst.server.core\tmp?\webapps\ ROOT\WEB-INF "
or by creating a Dynamic Web Project with a blank Context Root and
adding that project to the Tomcat server.
Cheers,
Larry
Bertrand wrote:
>
>
> Hello,
>
> I migrated my project from Eclipse 3.1M5+webtools M3 to Eclipse
> 3.1+webtools 0.7rc3.
>
> First of all, congratulations for the work done ! The webtools are
> getting really nice !
>
> I use tomcat 5.5.7 + jdk 1.4.2 (so I installed the compatibility package).
>
> I migrate my whole project, and try to launch it from eclipse, but I'm
> stuck with the dreadfull error :
> INFO: Missing application web.xml, using defaults only
> StandardEngine[Catalina].StandardHost[localhost].StandardCon text[]
>
> Which I don't understand at all because the servlets I wrote for my web
> application are launched ! These servlets are defined in the web.xml,
> though !
>
> I suspect I did something wrong in the project migration, but I can't
> see what. The tomcat configuration didn't change (and worked with
> Eclipse 3.1M5).
>
> Do you have any ideas where I can have a look ?
>
> Cheers,
> Bertrand
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.06528 seconds