RSS Feed
15
October
2003

Restarting a webapp via RMIAdapter: why doesn't it work for me?

Posted by woeye | Comments: 0

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?

15
October
2003

Minor JavaScript bug fixed

Posted by woeye | Comments: 0

The comment link was broken on Mozilla. Thanks to JavaScript guru pulsar this nasty bug was easy to fix.

15
October
2003

OGNL and Struts

Posted by woeye | Comments: 1

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)"/>

15
October
2003

JBoss, Jetty, welcome-file and index.do

Posted by woeye | Comments: 4

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.do
would 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 =)

15
October
2003

RSS feed still buggy?

Posted by woeye | Comments: 0

My generator seems still to be buggy because the items are listed twice on javablogs.com. Sorry!

« 1 2 3 ...  25 26 27 28 29 30 »