JBoss cache class files?

I am struggling with a strange problem: when I make changes to POJO or Seam Component in my Jhost instance for the local host, reload it and load the page, this change is visible. However, on our server running the same version of JBoss, when I stop the instance, delete the WAR file, load the latest version and restart JBoss, it will not show some of the new server-side features.

In particular, this change relates to the POJO class, which implements the javax.faces.validator.Validator class. It is then used in the XHTML Facelet as follows:

<h:inputText value="#{outsideaccount.accountOrganizationEmail}" maxlength="50" id="txtOrganizationSupportEmail" validatorMessage="Organization Support Email is not valid. It must be in the pattern ' some_id@some _domain.com'."> <f:validator validatorId="AnyEmailValidator"/> </h:inputText> 

I can correctly use the email checker on my local JBoss host; on the development server, it throws a validation error using the same email address on the same page. Very strange. Is JBoss caching class files? How to clear all contents of JBoss development server cache?

I use Win XP Pro locally; the development server uses JBoss 4.2.3.GA on JVM version 1.5.0_16-b02, with Unix SunOS 5.10. Thanks.

+4
source share
1 answer

JBoss has working directories and tmp, which you can remove to make sure everything is clean. They can be cached there, so you can clear them during deployment if you have any problems. There is also an option to make this happen automatically at the end of JBoss. If the problem is related to the problem of clearing the cache, this will help to solve it.

Another possibility is that you have two copies of this war deployed on JBoss, although this should give you some errors when deployed during production.

+6
source

All Articles