Hi-

Just tried to install on Websphere 5.1, with similar results as Igor. 
Are there any plans to make the final release work with servlet 2.3 again?
There are still quite a few 2.3 only appservers out there, especially in bigger 
companies where version updates usually take their
time.

Regards,

-markus

> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 29. Juli 2005 12:57
> An: [email protected]
> Betreff: [magnolia-user] Magnolia 2.1 RC3 - minimum servlet 
> spec version?
> 
> Hi!
> I have downloaded Magnolia 2.1 RC3 couple of days ago, and have
> installed it on Tomcat 5 without any problems (by the way,
> congratulations to Magnolia team!)
> 
> After that, I have tried to deploy the war file in Websphere 5. At
> first, WAS 5 has complained about web.xml. After checking it 
> out, I have
> seen that the deployment descriptor has been written according to the
> Servlet Spec 2.4. 
> 
> Since in the "release notes.txt" file, in the "System Requirements"
> section I have not seen any J2EE constraints, I have changed web.xml
> according to the 2.3 DTD. 
> 
> Upon the change, application was successfully installed and 
> started, but
> then when I have tried to access it from the browser, I got following
> exception:
> 
> [28/07/05 14.39.00:565 CEST] 699461a5 WebGroup      E 
> SRVE0026E: [Errore
> servlet]-[Filter [ContentTypeFilter]: filter is unavailable.]:
> java.lang.NoSuchMethodError: javax.servlet.ServletResponse: method
> setCharacterEncoding(Ljava/lang/String;)V not found
>         at info.magnolia.cms.filters.ContentTypeFilter.setContentType
> (ContentTypeFilter.java:76)
> 
> 
> After doing some investigation, I have found out that
> ServletResponse.setCharacterEncoding method is "Since 2.4" servlet
> specification.
> 
> Compiling the Magnolia 2.1 RC3 source with 2.3 servlet has 
> revealed that
> the 2.4 API was used only in four classes (SimpleExchangeServlet,
> ImportExportServlet, ContentTypeFilter and MVCServlet), and it was
> always the same setCharacterEncoding method.
> 
> My question is:
> Does this means that Magnolia 2.1 RC3 can run only on app servers that
> support 2.4 servlet spec? Do you have some other 
> dependencies, like jsp
> 2.0? 
> If not, could those four method calls be changed in order to 
> support 2.3
> servlet spec?
> 
> Thanks,
> Igor
> 
> P.S. IMHO it would be nice to have this information written down in
> "release notes.txt" file
> 
> P.P.S. As I have said, I am Magnolia newbie, and I can not predict
> consequences, but one idea to change those method calls could be found
> in 2.4 Servlet API
> 
> http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRes
> ponse.html#setCharacterEncoding(java.lang.String)
> 
> "Calling setContentType(java.lang.String) with the String of text/html
> and calling this method with the String of UTF-8 is equivalent with
> calling setContentType with the String of text/html; charset=UTF-8."
> 
> 
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> ----------------------------------------------------------------
> 


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to