[Resin-interest] Using Saxon

2007-02-12 Thread John Steel
Hi, http://www.caucho.com/resin-3.0/xml/jaxp.xtp shows whats needed for a few alternate parsers - can anyone spell out how to wire in Saxon please? -- John -- http://www.phonewebcam.com [EMAIL PROTECTED] ___ resin-interest

[Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-19 Thread John Steel
test.jsp here http://www.caucho.com/resin-3.1/doc/xslt-filter.xtp shows you need to add this and the filter to the web-app in order for it to trigger resin to performing the transformation. I'm having an issue based on that example where basically I need to also control the contentType for

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread John Steel
(); } } public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; } public void destroy() { this.filterConfig = null; } } -Anoop John Steel wrote: test.jsp here http://www.caucho.com/resin-3.1/doc/xslt-filter.xtp shows you

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread John Steel
Pablo Saavedra wrote: The filter order is defined by the filter-mapping element in the web.xml. Make sure that your filter-mapping is after the xslt filter's. Regards. Thanks - its like this, is this ok? filter filter-name='xslt' filter-class='com.caucho.filters.XsltFilter'/

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread John Steel
try { System.out.println (Within ContentType filter ... ); chain.doFilter (request, response); ((HttpServletResponse) response).addHeader(ContentTypeFilter, PROCESSED); response.setContentType(text/html); } catch (Exception e) { e.printStackTrace();

[Resin-interest] Using XML escapes (e.g. copy;) in resin.conf

2007-03-05 Thread John Steel
Resin 3.21 - If I add something like this system-property site.footer.copyright='Copyright copy; 2001-2007 example.com.'/ I get the error expected local reference at 'copy;' - whats wrong please? -- -- http://www.phonewebcam.com [EMAIL PROTECTED]

[Resin-interest] Convert dir names to params (e.g. www.example.com/a/b/c - www.example.com?1=a2=b3=c)

2007-03-11 Thread John Steel
I know this was asked and answered on this list ages ago but am darned if I can find it! Resin 3.0.23. -- -- http://www.phonewebcam.com [EMAIL PROTECTED] ___ resin-interest mailing list resin-interest@caucho.com

[Resin-interest] Startup differences between 3.0.23 and 3.1.0

2007-03-12 Thread John Steel
As a longtime resin user we have built up some scripts to control running instances, some of which fail with 3.1.0. Specifically, in 3.0.23 - in httpd.sh the args= isn't picked up, we used args=-Xmn100M -Xms500M -Xmx500M -J-Duser.timezone=Europe/London - a startup script (restart-a.sh) just

[Resin-interest] JDBC JNDI lookup fails in 3.1.0, always worked before

2007-03-15 Thread John Steel
Hi, more funnies moving old resin code to 3.1.0. This, in a servlet, works with 3.0.23 and has for literally years: private Context env; private DataSource pool; private DataSource authPool; private ServletContext sc; public void init(ServletConfig sfg) throws ServletException { sc

Re: [Resin-interest] JDBC JNDI lookup fails in 3.1.0, always worked before

2007-03-17 Thread John Steel
John Steel wrote: Please ignore this - it was a misconfig during the upgrade. Thanks - John -- -- http://www.phonewebcam.com [EMAIL PROTECTED] ___ resin-interest mailing list resin-interest@caucho.com http

Re: [Resin-interest] HELP: caucho-status duplicate hosts!

2007-03-23 Thread John Steel
Adam Allgaier wrote: We're having sever problems, so any help you have would be great! I'll take you to dinner! We had exactly this last week, and I'm really annoyed as its sent my Google pagerank to 0 as they checked the site during the couple of days it took to fix, saw the redirection

[Resin-interest] What happens if you *don't* call super.init(...)?

2007-04-24 Thread John Steel
Just found (and corrected) a probable howler in a pretty busy servlet: public void init(ServletConfig config) throws ServletException { super.init(config); sc = config.getServletContext(); try { env = (Context) new InitialContext().lookup(java:comp/env); pool =

[Resin-interest] On the subject of JSP compilation...

2007-06-01 Thread John Steel
I've been using this pattern for some time with excellent results: % if (user == null) { % %@ include file=/jsp/loginpanel.jsp % % } else { % %@ include file=/jsp/logoutpanel.jsp % % } % I'm curious how this affects performance. In once sense, the assembled jsp is

Re: [Resin-interest] php4 in Quercus

2007-06-14 Thread John Steel
Scott Ferguson wrote: Our main development goals for Quercus for the rest of the year are working towards getting 100 PHP applications running on Quercus and closing bugs as they're reported. Cool. Well I'd really appreciate news when Pligg is ok (the PHP Digg clone). Its at

[Resin-interest] Disable caching of pattern of images

2007-06-21 Thread John Steel
Resin 3.1.1 pro, developing under XP/Linux for production. I use jfreechart to create jpg graphs. My jsp correctly updates the graph on disk each time its loaded, which happens via a POST with params. I guarantee the jpg is always updated because I'm monitoring it separately from the local

Re: [Resin-interest] Disable caching of pattern of images

2007-06-22 Thread John Steel
John Steel wrote: Resin 3.1.1 pro, developing under XP/Linux for production. I use jfreechart to create jpg graphs. My jsp correctly updates the graph on disk each time its loaded, which happens via a POST with params. I guarantee the jpg is always updated because I'm monitoring

[Resin-interest] [OT] Academic question - thread safe class vars

2007-07-06 Thread John Steel
public class MyServlet extends HttpServlet { private int nonThreadSafeInt = 1; public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { nonThreadSafeInt++; try { Thread.currentThread().sleep((long) Math.random() * 5000);

[Resin-interest] Deploying a WAR to multiple webapps

2007-09-23 Thread John Steel
I know dropping a war to resin/webapps will deploy it for access with the default url http://localhost:8080. I have configured a few empty webapp locations and want to deploy variants of my war to them, such as http://localhost:8080/stable, http://localhost:8080/snapshot etc. Where do I copy

[Resin-interest] Resin JSP include handling changed between 3.1.2 and 3.1.5

2008-05-02 Thread John Steel
Hi all, A recent attempt to upgrade some 3.1.2 Pro servers broke them due to some changes in the include handling of JSP's. The attempt was made to use 3.1.5, which failed. The simplest case of what we are doing: -- index.jsp: %@ include

Re: [Resin-interest] Websphere?

2008-06-28 Thread John Steel
Eric Kreiser wrote: even *IF *that were true (which I doubt) there is more to choosing app server. do you really want to go with the company that designed java's date handling API's Ouch ! -- -- http://www.phonewebcam.com [EMAIL PROTECTED]