Re: switching to 6.0 - considerable things?

2007-04-03 Thread Rashmi Rubdi

So, short
question: What things should be taken into consideration while moving
from tomcat 5.5.20 to 6.0.x? Is there sort of a migration HOWTO for
this situation, or is it just rather straightforward, having
backward-compatibility and a set of new features around?



I guess it really depends on what components you are using in your application.

If you are using JSTL/JSF or plan to then, Tomcat 6.0.x is built
according to Servlet 2.5/ JSP 2.1 spec according to this chart:
http://tomcat.apache.org/whichversion.html

So, that means your project's web.xml should have the default
namespace, xsi namespace and schema location to 2.5 --- this ensures
proper evaluation of (Unified) EL

?xml version=1.0?
web-app xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee web-app_2_5.xsd
version=2.5

/web-app

JSP 2.1 also supports Unified EL, so one can use JSF 2.1 and JSTL 1.2
in a seamless way. I haven't really tried this but have read about it
in a few articles.

Note that in Tomcat 5.5.x the web-app is considerably different as it
conforms to Servlet 2.4 spec.

The RELEASE-NOTES document , in the root folder of Tomcat 6.x covers a lot more.

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: switching to 6.0 - considerable things?

2007-04-03 Thread Tim Lucia
If it helps at all, I just moved my company's apps from 5.5 to 6.0.  The
only stumbling block was they rely on the invoker servlet.  I changed the
build process to find all classes which implement HttpServlet and add an
explicit mapping to /servlet/com.mycompany.package.Servlet in web.xml.

The only other gotcha is that the class loader hierarchy is different
(simplified) in 6.0.

Everything else just worked at that point (Apache+mod_jk, connection pools,
etc.)

Tim


 -Original Message-
 From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 03, 2007 2:49 AM
 To: Tomcat Users List
 Subject: Re: switching to 6.0 - considerable things?
 
  So, short
  question: What things should be taken into consideration while moving
  from tomcat 5.5.20 to 6.0.x? Is there sort of a migration HOWTO for
  this situation, or is it just rather straightforward, having
  backward-compatibility and a set of new features around?
 
 
 I guess it really depends on what components you are using in your
 application.
 
 If you are using JSTL/JSF or plan to then, Tomcat 6.0.x is built
 according to Servlet 2.5/ JSP 2.1 spec according to this chart:
 http://tomcat.apache.org/whichversion.html
 
 So, that means your project's web.xml should have the default
 namespace, xsi namespace and schema location to 2.5 --- this ensures
 proper evaluation of (Unified) EL
 
 ?xml version=1.0?
 web-app xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee web-
 app_2_5.xsd
  version=2.5
 
 /web-app
 
 JSP 2.1 also supports Unified EL, so one can use JSF 2.1 and JSTL 1.2
 in a seamless way. I haven't really tried this but have read about it
 in a few articles.
 
 Note that in Tomcat 5.5.x the web-app is considerably different as it
 conforms to Servlet 2.4 spec.
 
 The RELEASE-NOTES document , in the root folder of Tomcat 6.x covers a lot
 more.
 
 -Rashmi
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: switching to 6.0 - considerable things?

2007-04-03 Thread Rainer Jung
Possible entry point:

On tomcat.apache.org there is a menue point Migration Guide at the end
of the Documentation menue, often overlooked, because it's relatively
new and not inside the tomcat 6 docs. The Guide is very short, but might
give you some ideas.

http://tomcat.apache.org/migration.html

Regards,

Rainer

Kristian Rink schrieb:
 
 Folks;
 
 as there is a stable 6.0 release right now, I consider making use of it
 for at least part of our internal environment. Rationale for that:
 
 - Not having to install a JDK on the server machines seems a good point
 to me.
 
 - I want to make use of the JEE 1.5 web tier as soon as possible without
 being required to use glassfish everyhwere.
 
 - I want to have an eye on technology as it moves forth, and since most
 of the relevant applications used internally are self-made, we're not
 forced to stay with any old environment.
 
 By now, I just dumped one of our WAR archives to tomcat 6.0 and found
 it working out of the box, except for minor annoyances (most notably
 my application's log file not being where it was in 5.5). So, short
 question: What things should be taken into consideration while moving
 from tomcat 5.5.20 to 6.0.x? Is there sort of a migration HOWTO for
 this situation, or is it just rather straightforward, having
 backward-compatibility and a set of new features around?
 
 TIA and bye,
 Kristian
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: switching to 6.0 - considerable things?

2007-04-03 Thread Kristian Rink
Rainer, @list;

first off, thanks everyone for your hints / inspirations, much
appreciated. :)

Rainer Jung schrieb:
 new and not inside the tomcat 6 docs. The Guide is very short, but might
 give you some ideas.
 
 http://tomcat.apache.org/migration.html

Indeed, I could have found that myself if I only looked close enough. :)
Thanks for pointing my way there, I'll see how things will end out.

Thanks everyone and bye,
Kristian

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]