Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Missing web.xml + tomcat 5.5
Missing web.xml + tomcat 5.5 [message #126248] Wed, 27 July 2005 09:23 Go to next message
Bertrand is currently offline BertrandFriend
Messages: 11
Registered: July 2009
Junior Member
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
Re: Missing web.xml + tomcat 5.5 [message #126263 is a reply to message #126248] Wed, 27 July 2005 09:31 Go to previous messageGo to next message
Bertrand is currently offline BertrandFriend
Messages: 11
Registered: July 2009
Junior Member
I have the same problem with a test web application created through the
wizard.

A simple dynamic web application with one only jsp page.

I create a new server configuration, launch it.

I have the following trace

Created MBeanServer with ID: 12b7eea:105579e5dd7:-8000:BLEGA:1
27 juil. 2005 11:27:42 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
27 juil. 2005 11:27:42 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1372 ms
27 juil. 2005 11:27:42 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
27 juil. 2005 11:27:42 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
27 juil. 2005 11:27:42 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
27 juil. 2005 11:27:44 org.apache.catalina.startup.ContextConfig
applicationWebConfig
INFO [ContextConfig] Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardCon text[]
27 juil. 2005 11:27:44 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
27 juil. 2005 11:27:45 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
27 juil. 2005 11:27:45 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/80 config=null
27 juil. 2005 11:27:45 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
27 juil. 2005 11:27:45 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3124 ms

But I can browse the jsp page, whereas in my full Struts web application
(mentionned in my previous post), I got an error when accessing any page :

[in french]

Etat HTTP 405 - La méthode HTTP GET n''est pas supportée par cette URL

type Rapport d'état

message La méthode HTTP GET n''est pas supportée par cette URL

description La méthode HTTP spécifiée n'est pas autorisée pour la
ressource demandée (La méthode HTTP GET n''est pas supportée par cette
URL).
Apache Tomcat/5.5.7

This error states that the GET method is not supported for the URL.

Cheers
Re: Missing web.xml + tomcat 5.5 [message #126289 is a reply to message #126248] Wed, 27 July 2005 10:19 Go to previous messageGo to next message
Eclipse UserFriend
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 #126301 is a reply to message #126289] Wed, 27 July 2005 11:50 Go to previous messageGo to next message
Bertrand is currently offline BertrandFriend
Messages: 11
Registered: July 2009
Junior Member
Thanks for your feedback.
I exported my project as a war and the web.xml file was properly included.

I'm happy you solve your deployment problem.
But I'm still stuck with my development/hot deploy one :(

If i can't fix it, I think I'll have to go back to Eclipse 3.1M6+Webtools
M3.

Cheers,
Bertrand.
Re: Missing web.xml + tomcat 5.5 [message #126314 is a reply to message #126263] Wed, 27 July 2005 12:13 Go to previous messageGo to next message
Bertrand is currently offline BertrandFriend
Messages: 11
Registered: July 2009
Junior Member
I use JDK 1.5.03 for Eclipse but 1.4.2-06 for compiling my project

I did the test with :
- tomcat 5.0.28
- tomcat 5.5.7 + jdk 1.4.2 compatibility package
- tomcat 5.5.9 + jdk 1.4.2 compatibility package

And i got the same problem.

Sheesh...


Bertrand.
Re: Missing web.xml + tomcat 5.5 [message #126356 is a reply to message #126248] Wed, 27 July 2005 13:21 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
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
>
Re: Missing web.xml + tomcat 5.5 [just a warning] [message #126369 is a reply to message #126356] Wed, 27 July 2005 13:51 Go to previous message
Bertrand is currently offline BertrandFriend
Messages: 11
Registered: July 2009
Junior Member
Hello Larry,


thanks for you're swift answer.
I agree with you : dreadfull is not the correct word.

In fact, this is only warning.
My application didn't launch for an other reason. But having no error
message, I suspected that this message is more important than it looks
like.

I fixed my problem, my application is working prefectly.
I still have the warning, but I learn to ignore it :)

Thanks for your help anyway.


Bertrand.
Previous Topic:Phlogistic
Next Topic:.har and packaging
Goto Forum:
  


Current Time: Thu Mar 28 06:38:48 GMT 2024

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

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

Back to the top