Restarting a webapp via RMIAdapter: why doesn't it work for me?
Restarting a webapp via HTMLAdapter (jmx-console) works fine. Restarting a webapp via RMIAdapter, however, produces a lot of errors, mostly javax.management.InstanceAlreadyExistsException. Reading through the sources I could not find any serious differences between the way the HTMLAdapter invokes an operation on the MBean and the way RMIAdaptor does. The provided Ant task (jbossjmx-ant.jar) doesn't work either. Perhaps someone has a good hint or tip for me?
Minor JavaScript bug fixed
The comment link was broken on Mozilla. Thanks to JavaScript guru pulsar this nasty bug was easy to fix.
OGNL and Struts
Though I like JSTL I am sometimes missing the feature to call methods. Therefore I have played around a little bit with OGNL and Struts actions and I am very happy with the result. I have written a JSP tag that allows you to execute an OGNL expression. Furthermore I have extended my RequestProcessor once again. Now the action instance is visible to the OGNL tag as well. This allows me to call a method on the action from the OGNL tag! A sample JSP page might look like this:
<ognl:property value="formatTime(#created)"/>
JBoss, Jetty, welcome-file and index.do
Unfortunately it is a little bit tricky to get the default welcome file index.do working with Struts and Jetty. Suppose you have th following web.xml:
... <welcome-file-list> <welcome-file>index.do</welcome-file> </welcome-file-list> ...and you have configured the ActionServlet to listen on *.do requests. Then you would assume that
http://some.url.com/index.dowould work? Right? No! I guess the problem is that the default servlet (which handles the welcome-file stuff) looks for the file index.do on the filesystem. Unless there is no such file the ActionSerlvet will never be called.
The trick is to simply add an empty index.do file in the root directory of your WAR. That's it =)
RSS feed still buggy?
My generator seems still to be buggy because the items are listed twice on javablogs.com. Sorry!