[JBoss Seam] - Re: Hibernate and regular JSF validation and EntityHome prob
by hstang
"gavin.king(a)jboss.com" wrote : The reason for (2) is that s:validateAll ONLY adds a (Hibernate) validator if you didn't specify any validators yourself. Since you have your own JSF validator, you need to specify <s:validate/> in addition to the JSF validator.
|
Thanks--that solves (2). But this case isn't documented, and would certainly cause confusion for those who encounter similar troubles down the road by trying to mix s:validateAll and regular-JSF validators, which isn't that uncommon. The Seam validation reference documentation may need a slight enhancement:
| However, it is not much less verbose than what we started with, so let's try <s:validateAll>..
| /* example with s:validateAll here */
| This tag simply adds an <s:validate> to every input in the form. For a large form, it can save a lot of typing!
|
"gavin.king(a)jboss.com" wrote :
| As for (1), I thought you just reported in JIRA that this problem was solved for you.
I reported this on JIRA this morning on my home PC, but prior to posting this thread I had tested (1) at work literally 15-20 times (with the most up-to-date Seam-CVS) just to make sure I'm not imagining things. The problem still exists on my end. My earlier report that it was fixed was erroneous, and I apologize if I had responded too quickly. I think I lost some credibility here, so maybe I need someone to vouch for me on this issue when they encounter it. =)
"gavin.king(a)jboss.com" wrote :
| Oh and shouldn't your EntityHome be conversation scoped?
|
EntityHome is, by default, conversation-scoped right? I am assuming my declaration in components.xml as [fwk:entity-home name="personHome" entity-class="Person"] wouldn't change the default scope. Anyhow, I doubled-check and ensured that when the long-running conversation started, the EntityHome was joining that conversation properly (as per debug.seam)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055386#4055386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055386
18Â years, 10Â months
[JBoss Portal] - Classpath problem with GATE
by KevinNCSU
Hello,
The application I'm working on requires a file gate.jar to be listed on the classpath as it needs to load classes dynamically. This seems to be causing my portal to throw exceptions when I try to view it, though the JBoss AS boots up without errors.
If gate.jar is removed from the JBOSS_CLASSPATH environment variable the portal works fine. Also the application I'm developing works fine on same JBoss AS without the portal installed and said environment variables set.
Any suggestions on how to get this jar file so it can load classes dynamically from it and still have my portal running would be much appreciated!
Information and stack trace follows:
JBoss AS / Portal:
Installed bundled JBoss AS 4.0.4GA with Portal 2.4.0GA using the portal profile in the jems-installer-1.2.0BETA2
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal].[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.setCharacterEncoding(Ljava/lang/String;)V
at org.jboss.portal.theme.LayoutDispatcher.include(LayoutDispatcher.java:122)
at org.jboss.portal.theme.impl.JSPLayout.assembleResponse(JSPLayout.java:34)
at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:360)
at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
at org.jboss.portal.core.CoreController.handle(CoreController.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
at $Proxy133.handle(Unknown Source)
at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:92)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055383#4055383
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055383
18Â years, 10Â months