[opencms-dev] Install problem

Roger Sen Montero roger.sen at eds.com
Mon Dec 9 17:47:19 CET 2002


Hi Petr,

  Thanks. I upgraded to Tomcat 4.x and also added the line 
CATALINA_OPTS=-Dfile.encoding=UTF-8, now I'm able to start Opencms.

  Regards,
rogersm.


Petr Hollay wrote:
> Hi,
> you need Tomcat 4.x
> 
> This method setCharacterEncoding() is new in Servlet API 2.3, which is
> implemented in Tomcat 4.0.
> Tomcat 3.3 implements older Servlet API 2.2.
> 
> Regards
> Petr
> 
> 
> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org
> [mailto:owner-opencms-dev at www.opencms.org]On Behalf Of Roger Sen Montero
> Sent: Monday, December 09, 2002 3:53 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Install problem
> 
> 
> Hi all!!
> 
>   I hope is not a FAQ:
> 
>   When connecting to:
> http://localhost:8080/opencms/opencms/system/workplace/action/login.html
> after a clean install I get in the browser:
> 
>   -----------8<-------------
> 
> Error: 500
> LocalizaciĆ³n: /opencms/opencms/system/workplace/action/login.html
> Error interno del Servlet:
> 
> java.lang.NoSuchMethodError:
> javax.servlet.http.HttpServletRequest.setCharacterEncoding(Ljava/lang/String
> ;)V
> 	at com.opencms.core.CmsRequestHttpServlet.(CmsRequestHttpServlet.java:173)
> 	at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:250)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> 	at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
> 	at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:235)
> 	at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
> 	at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
> 7)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> 	at
> org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
> nterceptor.java:176)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:516)
> 	at java.lang.Thread.run(Thread.java:536)
> 
>   -----------8<-------------
> 
>   And I get in the Tomcat logs:
> 
> 2002-12-09 13:48:10 - Ctx(/opencms) : Exception in R( /opencms +
> opencms + /system/workplace/action/login.html) -
> java.lang.NoSuchMethodError:
> javax.servlet.http.HttpServletRequest.setCharacterEncoding(Ljava/lang/String
> ;)V
>          at
> com.opencms.core.CmsRequestHttpServlet.<init>(CmsRequestHttpServlet.java:173
> )
>          at
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:250)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>          at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
>          at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
>          at org.apache.tomcat.core.Handler.service(Handler.java:235)
>          at
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
>          at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
> 7)
>          at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
>          at
> org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
> nterceptor.java:176)
>          at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
>          at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:516)
>          at java.lang.Thread.run(Thread.java:536)
> 
> 
>   My system is: Tomcat 3.3.1, MySQL 3.23.52-nt, opencms_5.0_beta_2. What
> am I doing wrong?
> 
>   Regards,
> rogersm.
> 
> --
> Roger Sen
> EDS Solutions Consulting
> Telf: +34 (93) 561-4041
> email: roger.sen at eds.com
> 
> 


-- 
Roger Sen
EDS Solutions Consulting
Telf: +34 (93) 561-4041
email: roger.sen at eds.com





More information about the opencms-dev mailing list