[Resin-interest] problems with quercus and mediawiki on resin-3.0.22
Just tried to install mediawiki on a 3.0.22 system In webapps/wiki/WEB-INF I've got the following set up in resin-web.xml. In the wii directory, I've also got a helloworld.php file. web-app xmlns=http://caucho.com/ns/resin; database jndi-name='jdbc/wiki' driver type=org.gjt.mm.mysql.Driver urljdbc:mysql://databases.hull.ac.uk:3306/comms_wiki/url userfred/user passwordfred/password /driver /database servlet-mapping url-pattern=*.php servlet-class=com.caucho.quercus.servlet.QuercusServlet init compile=true database=jdbc/wiki/ /servlet-mapping welcome-file-listindex.php/welcome-file-list /web-app The helloworld.php example works just fine. However, when I try running ./wiki/config to init the app, I get java.lang.NullPointerException at com.caucho.quercus.module.StaticFunction.analyzeArguments(StaticFunction .java:139) at com.caucho.quercus.expr.FunctionExpr.analyze(FunctionExpr.java:215) at com.caucho.quercus.expr.UnaryExpr.analyze(UnaryExpr.java:69) at com.caucho.quercus.program.ExprStatement.analyze(ExprStatement.java:90) at com.caucho.quercus.program.BlockStatement.analyze(BlockStatement.java:13 2) at com.caucho.quercus.program.QuercusMain.generate(QuercusMain.java:112) at com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:254) at com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:241) at com.caucho.java.gen.BaseClass.generate(BaseClass.java:229) at com.caucho.java.gen.GenClass.generate(GenClass.java:120) at com.caucho.java.gen.JavaClassGenerator.generate(JavaClassGenerator.java: 273) at com.caucho.quercus.gen.PhpGenerator.generate(PhpGenerator.java:77) at com.caucho.quercus.page.PageManager.parse(PageManager.java:234) at com.caucho.quercus.page.PageManager.parse(PageManager.java:180) at com.caucho.quercus.Quercus.parse(Quercus.java:546) at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:21 7) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai n.java:106) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java: 209) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja va:173) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j ava:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) at com.caucho.util.ThreadPool.run(ThreadPool.java:442) at java.lang.Thread.run()V(Unknown Source) The database config statement is correct and I've checked that the database e xists and has valid access rights set up for the machine/userid I'm trying to run the wiki on Alex * To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html *___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Includes and response outputstream/writer
On Nov 15, 2006, at 10:58 AM, Christian Amott wrote: Hi, At least in resin 2.1, it appears that when one does an include using RequestDispatcher.include(), the included data is piped through the responses outputStream and not it's writer - thus the included data is not encoded as per the java spec for response.getOutputStream (). Because of this, all of our text comes out as UTF-8 and non-ascii characters won't show up unless we force charset=UTF-8 in the response header. You can also set the content-type of the included file to iso-8859-1 as a workaround. I was hoping if someone knew if the .include() is suppose to use the responses outputstream and not the writer or is this a bug with resin?? If not, how does one get encoded data out from an include?? i.e. we want ISO-8859-1 encoded data to come out but I can only do that if i write data out via the responses writer (as per spec). It's a bug. Or rather, the 2.1 behavior doesn't follow the spec. That behavior was changed in 3.0. -- Scott Cheers Christian ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] error503 on front server
Hi When all application servers are down, the front load balancing server answers 503 to the web client. I tried to add an error page 503 but it did not work. The standard 503 error message still displays. Here is the webapp conf : host id=salesforce.articque.com web-app id='/' document-directory='/DevelJsp/webapps/lib_salesforce' work-dir='/home/app_working/salesforce/work' temp-dir='/home/app_working/salesforce/tmp' servlet servlet-namebalance_sf/servlet-name servlet-classcom.caucho.servlets.LoadBalanceServlet/servlet-class init cluster='art_sf'/ /servlet servlet-mapping url-pattern='*' servlet-name='balance_sf'/ error-page error-code503/error-code location/err.html/location /error-page /web-app /host Is there any way to put a custom page for that ? Thanks -- Très cordialement, Riccardo Cohen ligne directe : 02-47-49-63-24 --- Articque http://www.articque.com Moulin des Roches 37230 Fondettes - France tel : 02-47-49-90-49 fax : 02-47-49-91-49 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest