I have been looking at resin lately due to problems I've had with setting up
virtual hosts in tomcat/apache.
The reason I like resin so much is that it will do *dynamic* virtual hosts.
And it does this well without any connectors required or with any
requirement that I pre-configure my virtual hosts ( something I couldn't do
in tomcat). Also, there is a commercial version. If and when we start
needing support, I do like having at least that possibility.
So, after some investigation I found a setup that works with very little
problems so far and I can deploy locally how I would on production (virtual
hosting) and still debug the app.
To get this working:
Download resin 3.1.1 and extract to your favorite place.
Add these jars/dirs to ~resin/lib:
xalan-j_2_7_0, activation.jar, javamail-14.jar, jaxb-api.jar
You will have to edit the ~resin/conf/resin.conf file to get spring to work
properly.
find the <server> block.
Add these lines:
<system-property
javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
<system-property
javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<!-- xslt -->
<system-property
javax.xml.transform.TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
I believe the following only applies if you're running with virtual hosting
I found a problem when the javascript validation would get invoked and the
gzip compressor was turned on for javascript and jsp.
I just had to edit my app's web.xml file (WEB-INF/web.xml) and remove the
compressionFilter mapping for jsp and javascript:
<!--
<filter-mapping>
<filter-name>compressionFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>compressionFilter</filter-name>
<url-pattern>*.js</url-pattern>
</filter-mapping>
-->
For whatever reason, GZIPResponseWrapper.getwriter() was being called twice
on pages where the spring form-validation javascript was being included.
(/scripts/validation.js)
This resulted in some exceptions being thrown complaining that the
getOutPutStream() had already been called.
Note:
I did NOT change anything other than what I've mentioned here. The Appfuse
Wiki page with instructions on how to mod Resin instructs you to remove the
clickstream definitions from web.xml and to set the fast jst compiler to
false in resin-web.xml. I didn't do either and haven't seen any problems
other than Gzip issue for which I have a workaround.
For the resin server config I point the debugger at port 6800 and all is
working as expected.
--
View this message in context:
http://www.nabble.com/Getting-Resin-to-work-with-Appfuse-1.9.4-%28Spring-MVC%29-Resin-3.1.1-%28Works-with-some-minimal-config-tweaks%29-tf3812384s2369.html#a10791368
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]