users@glassfish.java.net

Re: Unreliable deployment of war files

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Aug 2007 14:23:42 PDT

Great! Thanks for confirming!

According to:

  https://glassfish.dev.java.net/issues/show_bug.cgi?id=2439
  ("Add support for context.xml")

context.xml is supported in GlassFish, in order to make transition from Tomcat smooth(er).

However, Tomcat's org.apache.catalina.core.StandardContext defines an addWatchedResource() method, which hasn't been ported to GlassFish yet.

This is why you were getting this error:

  java.lang.NoSuchMethodException: No such accessible method: addWatchedResource() on object: com.sun.enterprise.web.WebModule

when your context.xml was processed.

Let us investigate the implications of adding a addWatchedResource() method to GlassFish's version of org.apache.catalina.core.StandardContext. Once it has been added, you won't have to remove your context.xml.

We'll get back to you.

Thanks,

Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=231892