Hello,
I did my custom annotation that references a message wich resides in my custom ValidatorMessages_pt_BR.properties.
If i put a default message by hand in the annotations everything goes ok because I load my bundle after call the validator. But if I try to reference a {validator.mymessage} when the ear is deployed i got an error saying that the annotation cannot be instantiated once it didnt found the resource for this key.
I allready tried to put my property files in deploy, conf, web-inf and web-inf/classes without success.
I would like to now wheres the right place to put this files.
thanks
-----
Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key validator.notempty
at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at org.hibernate.validator.ClassValidator.replace(ClassValidator.java:518)
at org.hibernate.validator.ClassValidator.createValidator(ClassValidator.java:260)
... 110 more
15:51:46,359 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=bescsegadmin.ear,jar=bescsegadmin.ejb3,name=GeralBean,service=EJB3 with dependencies:
15:51:46,359 INFO [JmxKernelAbstraction] persistence.units:ear=bescsegadmin.ear,jar=bescsegadmin.ejb3.jar,unitName=BESCSegAdmin
15:51:46,375 INFO [EJB3Deployer] Deployed: file:/C:/java/jboss-4.0.4.GA/server/default/tmp/deploy/tmp15415bescsegadmin.ear-contents/bescsegadmin.ejb3
15:51:46,375 INFO [TomcatDeployer] deploy, ctxPath=/bescsegadmin, warUrl=.../tmp/deploy/tmp15415bescsegadmin.ear-contents/bescsegadmin-exp.war/
15:51:46,796 INFO [EARDeployer] Started J2EE application: file:/C:/java/jboss-4.0.4.GA/server/default/deploy/bescsegadmin.ear
15:51:46,796 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@ae5937c9 { url=file:/C:/java/jboss-4.0.4.GA/server/default/deploy/ValidatorMessages_pt_BR.properties }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/java/jboss-4.0.4.GA/server/default/deploy/ValidatorMessages_pt_BR.properties
altDD: null
lastDeployed: 1187719433171
lastModified: 1187719433171
mbeans:
org.jboss.deployment.DeploymentInfo@28d75d75 { url=file:/C:/java/jboss-4.0.4.GA/server/default/deploy/ValidatorMessages.properties }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/java/jboss-4.0.4.GA/server/default/deploy/ValidatorMessages.properties
altDD: null
lastDeployed: 1187719438187
lastModified: 1187719438187
mbeans: