Character encoding JSP -displayed wrong in JSP but not in URL: “á » á é » é”

Try to set URIEncoding in {jboss.server}/deploy/jboss-web.deployer/server.xml. Ex: <Connector port=”8080″ address=”${jboss.bind.address}” maxThreads=”250″ maxHttpHeaderSize=”8192″ emptySessionPath=”true” protocol=”HTTP/1.1″ enableLookups=”false” redirectPort=”8443″ acceptCount=”100″ connectionTimeout=”20000″ disableUploadTimeout=”true” URIEncoding=”UTF-8″ />

Tomcat: hot deploying new jars

Tomcat doesn’t provide any mechanism to reload a single JAR. However, the whole context can be reloaded. You just need to tell Tomcat to watch for your JAR in context.xml, like this, <?xml version=”1.0″ encoding=”UTF-8″?> <Context override=”true” swallowOutput=”true” useNaming=”false”> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>WEB-INF/lib/your.jar</WatchedResource> <Manager pathname=””/> </Context> We do this on production. Tomcat used to have some memory … Read more

SSL, Tomcat and Grails

How to set this up depends how you are deploying your grails app. If you are deploying to a container like tomcat, install and configure SSL as you normally would. Then just build a war file with grails war and deploy normally. For tomcat in particular, open the top level tomcat server.xml and add an … Read more

Understanding contexts in Spring MVC

The whole idea behind this design is to handle different architectural layers in a typical web application and provide for inheritance / override mechanism for beans across contexts. Each type of context in Spring is related to different architectural layer for e.g, web layer, service layer etc. A Spring based web application can have multiple … Read more