[JBoss Seam] - Validation messages
by nstoddar
How much customization is possible in Seam for annotated Hibernate validations? I read the documentation, so I know that I can change the resource key to have a separate message rendered on the screen.
My problem is this: in some cases I want a message "Contact first name is required.", but in other cases I might want to provide another context to the same validation, e.g. "Billing first name is required.".
Is this even possible using the Hibernate Validation/Seam? To the best of my knowledge, it looks like I would have to have a 1-to-1 mapping between HTML form and Seam components for this to happen (in other words, no reuse of Seam components since there's no way to customize validation messages to this extent). ... Also a bummer since this precludes my ability to use my JPA model classes.
Any ideas, or comments on this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037059#4037059
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037059
19 years
[JBossCache] - TimeoutException occuring on one node of jboss cache
by raghavendray
hi,
we are facing a problem with jboss cache which is running on 4 nodes with Websphere Application server 5.0.2. One of the nodes gives the following error.
[2007-04-12 15:22:38,369] [WARN ][org.jboss.cache.interceptors.ReplicationInterceptor#390] - runPreparePhase() failed. Transaction is marked
as rolled back
org.jboss.cache.lock.TimeoutException: rsp=sender=toledo:39243, retval=null, received=false, suspected=false
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2186)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2208)
at org.jboss.cache.interceptors.ReplicationInterceptor.runPreparePhase(ReplicationInterceptor.java:479)
at org.jboss.cache.interceptors.ReplicationInterceptor$SynchronizationHandler.beforeCompletion(ReplicationInterceptor.java:383)
at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:71)
at com.ibm.ejs.jts.jta.TransactionImpl$SyncronizationWrapper.before_completion(TransactionImpl.java:1285)
at com.ibm.ejs.jts.jts.CoordinatorImpl$Sync.beforePrepare(CoordinatorImpl.java:1250)
at com.ibm.ejs.jts.tran.EventCallback.executeCallback(EventCallback.java:166)
at com.ibm.ejs.jts.tran.EventCallback.executeCallbackTree(EventCallback.java:132)
at com.ibm.ejs.jts.tran.EventPrepare.ExecuteBeforePrepareCallbacks(EventPrepare.java:307)
at com.ibm.ejs.jts.tran.EventPrepare.event_LocalPrepareWork(EventPrepare.java:287)
at com.ibm.ejs.jts.tran.EventPrepare.event_BecomeCoordinator(EventPrepare.java:970)
at com.ibm.ejs.jts.tran.EventControl.event_EndTopLevel(EventControl.java:295)
at com.ibm.ejs.jts.tran.TrecInterface.end(TrecInterface.java:94)
at com.ibm.ejs.jts.jts.TerminatorImpl.commit(TerminatorImpl.java:105)
at com.ibm.ejs.jts.jts.CurrentImpl.commit(CurrentImpl.java:250)
at com.ibm.ejs.jts.jts.CurrentSet.commit(CurrentSet.java:316)
at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:628)
at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:153)
at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:540)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3040)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:2914)
at com.orange.fraud.fpc.service.maintainprofile.EJSRemoteStatelessMaintainProfileBean_2efad162.startProfileCache(Unknown Source)
at com.orange.fraud.fpc.service.maintainprofile._MaintainProfile_Stub.startProfileCache(Unknown Source)
at com.orange.fraud.fpc.startup.FpcStartupServlet.init(FpcStartupServlet.java:47)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1370)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:286)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:418)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:220)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1051)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:419)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:272)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:250)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:134)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:128)
at java.lang.Thread.run(Thread.java:479)
This happens only on one node when ever it is brought up or when the cache alone is restarted. We are using the cache in REPL_SYNC mode.
Has someone faced similar problems with Jboss cache? any help is greatly appreciated.
Thanks in advance
Raghu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037057#4037057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037057
19 years