开发者

faces-config strange configuration problem?

I have a seam project (you should not be blocked to answer just because it's seam, consider it beeing a jsf one) and all works great with jboss 5.1 until I add this to the faces-config.xml

<faces-config>    
<validator>
      <validator-id>passwordValidator</validator-id>
      <validator-class>com.mydomain.seam_icefaces_test.action.PasswordValidator</validator-class>
     </validator>

.....

</faces-config>

to configure a validator (I know I can use a seam validator but I just want to use a jsf one).

At this moment jboss continuously deploy and un开发者_如何学Cdeploy my app automatically - which is very strange of course...

Do you know why?


Is this happening when you deploy using a local server in Eclipse? I used to get this issue of constant deploying & undeploying - it was caused by an Eclipse versioning file in the deployment.

Every time you change a config file (like faces-config.xml) Eclipse creates a versioning file, to revert to if necessary. This screws up JBoss. Simply delete this file - it'll be called faces-config.xxxxx where xxxx is something other than xml.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜