Hi Romain,

That's great - thanks for that :-)

Is there a public readonly SVN repository for TomEE so I can test any newer changes?

Best Regards,
Neale

----- Original Message ----- From: "Romain Manni-Bucau" <[email protected]>
To: <[email protected]>
Sent: Tuesday, March 06, 2012 9:25 PM
Subject: Re: Missing web.xml file causes UnknownModuleTypeException


just pushed a test to be able to fallback more easily to webapp.

it will probably need some enhancement but it should work.

- Romain


2012/3/6 Neale Rudd <[email protected]>

Maybe if it has no WEB-INF and no META-INF either, it can be considered
the same way as an empty WEB-INF folder?

That would cater for ear but allow Tomcat-7 simple no web-xml apps to work
immediately.

What do you think?


Best Regards,
Neale


----- Original Message ----- From: "Romain Manni-Bucau" <
[email protected]>
To: <[email protected]>
Sent: Tuesday, March 06, 2012 8:57 PM

Subject: Re: Missing web.xml file causes UnknownModuleTypeException


The problem with this is that for Tomcat everything is a webapp so that's
easy to guess which module typ eit is.

TomEE can manage jar, war and ear so we need something to distinguish
them.

The WEB-INF folder is enough (and i think the spec don't say it is
optional).

- Romain


2012/3/6 Neale Rudd <[email protected]>

 Hi Romain,

Yes - an empty WEB-INF folder works fine, and also it's no problem adding
a simple web.xml anyway.

I'm more concerned with whether it will stay this way and if it's part of the spec or not, as I'm making a list of differences for our customers if
they want to try TomEE.  Naturally the closer it is to Tomcat's
behaviour,
the easier it is for them to start using it.

Best Regards,
Neale

----- Original Message ----- From: "Romain Manni-Bucau" <
[email protected]>
To: <[email protected]>
Sent: Tuesday, March 06, 2012 8:23 PM
Subject: Re: Missing web.xml file causes UnknownModuleTypeException



 Did you try putting an emtpy WEB-INF folder?


- Romain


2012/3/6 Neale Rudd <[email protected]>

 Hi Guys,


One of the apps we're trying on TomEE 1.0.0-beta-2 throws an
UnknownModuleTypeException when deploying, because it has no
WEB-INF/web.xml file.

It's a simple static website (html, css, images).

The docs I've read seem to indicate that web.xml is optional, and it's
definitely optional on Tomcat 7.

Is this a difference with TomEE or a pending issue?

I found another mail on the list from 9-Oct-2011 and TOMEE-27 on Jira
but
it's marked as Fixed for 1.0.0-beta-2.

Best Regards,
Neale Rudd
Metawerx Pty Ltd
http://www.metawerx.net









Reply via email to