[JBoss Seam] - Re: Validation messages with Seam 2.0 and Richfaces 3.1.0
by pdhaigh
Interestingly, this only seems to affect <s:validateAll>... if I put <s:validate/> within a component, it works.
So, to summarise:
This doesn't work:
<h:form>
| <f:facet name="afterInvalidField">
| <h:panelGroup><br/><s:message/></h:panelGroup>
| </f:facet>
| <f:facet name="aroundInvalidField">
| <s:span styleClass="error"/>
| </f:facet>
| <s:validateAll>
|
| <rich:tabPanel contentClass="tabbedpanel" switchType="client" selectedTab="#{customerManager.selectedTab}">
| <rich:tab label="General" name="General" >
| <h:outputText value="First name: "/>
| <s:decorate id="firstname">
| <h:inputText label="Customer first name" value="#{customer.firstName}" required="true">
| <a4j:support event="onblur" reRender="firstname" ajaxSingle="true"/>
| </h:inputText>
| </s:decorate>
| </rich:tab>
| </rich:tabPanel>
| </s:validateAll>
|
| </h:form>
This does:
| <h:form>
| <f:facet name="afterInvalidField">
| <h:panelGroup><br/><s:message/></h:panelGroup>
| </f:facet>
| <f:facet name="aroundInvalidField">
| <s:span styleClass="error"/>
| </f:facet>
| <s:validateAll>
|
| <rich:tabPanel contentClass="tabbedpanel" switchType="client" selectedTab="#{customerManager.selectedTab}">
| <rich:tab label="General" name="General" >
| <h:outputText value="First name: "/>
| <s:decorate id="firstname">
| <h:inputText label="Customer first name" value="#{customer.firstName}" required="true">
| <a4j:support event="onblur" reRender="firstname" ajaxSingle="true"/>
| <s:validate/>
| </h:inputText>
| </s:decorate>
| </rich:tab>
| </rich:tabPanel>
| </s:validateAll>
| </h:form>
|
Which leads me to suspect that this is in fact a bug.. although whether it's RichFaces or Seam I have no clue ;-)
cheers
phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086213#4086213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086213
18 years, 10 months
[JBoss Seam] - Complex EL Expressions in JPDL decisions aren't being evalua
by dheggie
Since upgrading to 2.0.0 CR1 (from BETA1) some of the el expressions in my jpdl decisions are causing exceptions. Example:
| org.jbpm.JbpmException: couldn't evaluate expression '#{simpleStateMachine.addressValid and empty simpleStateMachine.addressList}'
| org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:43)
| org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:30)
| org.jbpm.graph.node.Decision.execute(Decision.java:95)
| org.jbpm.graph.def.Node.enter(Node.java:318)
| org.jbpm.graph.def.Transition.take(Transition.java:151)
| org.jbpm.graph.def.Node.leave(Node.java:393)
| org.jbpm.graph.exe.Token.signal(Token.java:194)
| org.jbpm.graph.exe.Token.signal(Token.java:157)
| org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:282)
| org.jboss.seam.pageflow.Pageflow.signal(Pageflow.java:477)
| org.jboss.seam.pageflow.Pageflow.navigate(Pageflow.java:336)
| org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:40)
| org.test.navigation.BackNavigationHandler.handleNavigation(BackNavigationHandler.java:30)
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:119)
| javax.faces.component.UICommand.broadcast(UICommand.java:383)
| org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186)
| org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164)
| org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352)
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
| org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
|
| root cause
|
| javax.el.ELException: Not a Valid Method Expression: ${simpleStateMachine.addressValid and empty simpleStateMachine.addressList}
| org.jboss.el.lang.ExpressionBuilder.createMethodExpression(ExpressionBuilder.java:210)
| org.jboss.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:57)
| org.jboss.seam.bpm.SeamExpressionEvaluator$1.initMethodExpression(SeamExpressionEvaluator.java:54)
| org.jboss.seam.bpm.SeamExpressionEvaluator$1.evaluate(SeamExpressionEvaluator.java:69)
| org.jboss.seam.bpm.SeamExpressionEvaluator.evaluate(SeamExpressionEvaluator.java:35)
| org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:39)
| org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:30)
| org.jbpm.graph.node.Decision.execute(Decision.java:95)
| org.jbpm.graph.def.Node.enter(Node.java:318)
| org.jbpm.graph.def.Transition.take(Transition.java:151)
| org.jbpm.graph.def.Node.leave(Node.java:393)
| org.jbpm.graph.exe.Token.signal(Token.java:194)
| org.jbpm.graph.exe.Token.signal(Token.java:157)
| org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:282)
| org.jboss.seam.pageflow.Pageflow.signal(Pageflow.java:477)
| org.jboss.seam.pageflow.Pageflow.navigate(Pageflow.java:336)
| org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:40)
| org.test.navigation.BackNavigationHandler.handleNavigation(BackNavigationHandler.java:30)
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:119)
| javax.faces.component.UICommand.broadcast(UICommand.java:383)
| org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186)
| org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164)
| org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352)
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
| org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
|
Looking into this further I noticed that the culprit is this method in the org.jboss.seam.bpm.SeamExpressionResolver
| public Object evaluate(VariableResolver resolver) throws ELException
| {
| try
| {
| try
| {
| if (me==null && ve==null) initMethodExpression();
| if (me!=null && ve==null) return me.invoke( createELContext(resolver, mapper), new Object[0] );
| }
| catch (javax.el.MethodNotFoundException mnfe)
| {
| if (ve==null) initValueExpression();
| if (ve!=null) return ve.getValue( createELContext(resolver, mapper) );
| }
| throw new ELException();
| }
| catch (javax.el.ELException vele)
| {
| throw new ELException(vele);
| }
| }
|
The initMethodExpression() method call tries to create a method expression and fails, throwing a ELException which causes us to miss trying to create a value expression. What I think should be changed is rather than catching the javax.el.MethodNotFoundException we should just catch a javax.el.ELException so we have 2 goes at evaluating the expression.
What do people think?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086210#4086210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086210
18 years, 10 months
[JBoss Seam] - Getting same error screen no matter what Exception is thrown
by daverdoo
Hi all,
I have been using seam for a while now and really like it. It makes JSF so much more usable.
My question is, no matter what exception is thrown, I keep getting the same error screen. My pages.xml file refers to several different redirects for exceptions yet I keep getting the same "An error occurred: entityManager is null" screen. The stack trace also displays the same wrapper exception which references a seam generated entity that has no relevance to the current exception.
Here is my pages.xml file:
<exception class="org.jboss.seam.framework.EntityNotFoundException">
| <redirect view-id="/error.xhtml">
| <message>Not found<</message>>
| </redirect>
| </exception>
|
|
| <exception class="javax.persistence.NoResultException">
| <redirect view-id="/error.xhtml">
| <message>Dealer Not found</message>
| </redirect>
| </exception>
|
| <exception class="javax.persistence.EntityNotFoundException">
| <redirect view-id="/error.xhtml">
| <message>Not found</message>
| </redirect>
| </exception>
|
| <exception class="javax.persistence.OptimisticLockException">
| <redirect view-id="/error.xhtml">
| <message>Another user changed the same data, please try again</message>
| </redirect>
| </exception>
|
| <exception class="org.jboss.seam.security.AuthorizationException">
| <redirect>
| <message>You don't have permission to do this</message>
| </redirect>
| </exception>
|
| <exception class="org.jboss.seam.security.NotLoggedInException">
| <redirect view-id="/home.xhtml">
| <message>Please log in first</message>
| </redirect>
| </exception>
|
| <exception class="java.lang.RuntimeException">
| <redirect view-id="/error.xhtml">
| <message>Unexpected error, please try again</message>
| </redirect>
| </exception>
|
| <exception>
| <redirect view-id="/error.xhtml">
| <message>Unexpected error, please try again</message>
| </redirect>
| </exception>
|
Here is the stack trace I get for then throwing a test runtime exception:
java.lang.IllegalStateException: entityManager is null
| at org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:33)
| 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.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
| at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
| at com.autotrader.entitybeans.dealerprofile.AppliedTransactionsList_$$_javassist_5.validate(AppliedTransactionsList_$$_javassist_5.java)
| 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.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
| at org.jboss.seam.Component.newInstance(Component.java:1961)
| at org.jboss.seam.Component.getInstance(Component.java:1858)
| at org.jboss.seam.Component.getInstance(Component.java:1825)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)
| at org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:132)
| at org.jboss.seam.navigation.Pages.getStringValuesFromModel(Pages.java:674)
| at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:50)
| at org.jboss.seam.ui.renderkit.LinkRendererBase.doEncodeBegin(LinkRendererBase.java:26)
| at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:280)
| at org.richfaces.renderkit.html.ToolBarRendererBase.encodeChildren(ToolBarRendererBase.java:81)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
| at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:253)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:210)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:164)
| at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
| at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
The AppliedTransactionList entity in the stack trace is the unrelated (seam generated) element.
Any help would be greatly appreciated.
Thanks,
Dave Berry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086209#4086209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086209
18 years, 10 months
[JBoss Getting Started Documentation] - Error: Start JBoss -> log4j:ERROR setFile(null, false) call f
by auduwage
I am trying setup a jboss in Linux box, I install j2sdk, and jboss on root and then moved /usr/local/j2sdk, /usr/local/jboss then I set the paths for JAVA_HOME, and JBOSS_HOME
such as /usr/local/j2sdk1.4.2_15/bin:JBOSS_HOME=/usr/local/jboss/jboss-4.2.0.GA/bin
I didn't set the JAVA_OPT and also I haven't installed ANT but I thought I dont have to do those two things just to fireup the JBOSS. But I am getting bellow mentioned error...
Can someone help..?
[administrator@linuxtest bin]$ sh run.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/local/jboss/jboss-4.2.0.GA
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /usr/local/jboss/jboss-4.2.0.GA/bin/run.jar
=========================================================================
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /usr/local/jboss/jboss-4.2.0.GA/server/default/log/boot.log (Permission denied)
at gnu.java.nio.channels.FileChannelImpl.open (libgcj.so.7)
at gnu.java.nio.channels.FileChannelImpl. (libgcj.so.7)
at java.io.FileOutputStream. (libgcj.so.7)
at java.io.FileOutputStream. (libgcj.so.7)
at org.apache.log4j.FileAppender.setFile (FileAppender.java:289)
at org.apache.log4j.FileAppender.activateOptions (FileAppender.java:168)
at org.apache.log4j.config.PropertySetter.activate (PropertySetter.java:258)
at org.apache.log4j.config.PropertySetter.setProperties (PropertySetter.java:133)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086207#4086207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086207
18 years, 10 months
[JBoss Seam] - Re: Problem running integration test
by nayanj
Hi Pete,
Thanks for the reply. You may be right. My test environment config may not be correct.. I get following messages when container starts up. note that seam complains that is find 2 instances of identity component.. I am not sure why this happens..
| [Parser] Running:
| [testng] ...\test\testng.xml
| [testng] 09:49:08,621 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam.jar
| [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
| [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
| [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
| [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
| [testng] 09:49:08,653 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| [testng] 09:49:08,653 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
| [testng] 09:49:08,653 INFO [Scanner] scanning: projectdir\WebContent\WEB-INF\classes
| [testng] 09:49:08,668 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-ui.jar
| [testng] 09:49:08,668 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-debug.jar
| [testng] 09:49:08,684 INFO [Initialization] reading jar:file:/projectdir/WebContent/WEB-INF/lib/jboss-seam.jar!/META-INF/components.xml
| [testng] 09:49:08,825 INFO [Initialization] reading properties from: /seam.properties
| [testng] 09:49:08,825 INFO [Initialization] reading properties from: /jndi.properties
| [testng] 09:49:08,840 INFO [Initialization] initializing Seam
| [testng] 09:49:08,887 INFO [Scanner] scanning: projectdir\WebContent\WEB-INF\classes
| [testng] 09:49:08,903 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-ui.jar
| [testng] 09:49:09,200 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-debug.jar
| [testng] 09:49:09,231 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam.jar
| [testng] 09:49:10,293 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
| [testng] 09:49:10,372 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| [testng] 09:49:10,418 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| [testng] 09:49:10,450 INFO [Initialization] Installing components...
| [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
| [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
| [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
| [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
| [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
| [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
| [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
| [testng] 09:49:10,528 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
| [testng] 09:49:10,528 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
| [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
| [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
| [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodContext
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
| [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| [testng] 09:49:10,606 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
| [testng] 09:49:10,606 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
| [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
| [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
| [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
| [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
| [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
| [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
| [testng] 09:49:10,762 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
| [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
| [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
| [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
| [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.servlet.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
| [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.servlet.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
| [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.servlet.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
| [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
| [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverter
| [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverterStore
| [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.DynamicImageResource
| [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.DynamicImageStore
| [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
| [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.servlet.exceptionFilter
| [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.dynamicImageResource
| [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.servlet.multipartFilter
| [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
| [testng] 09:49:10,825 INFO [Lifecycle] starting up: org.jboss.seam.servlet.redirectFilter
| [testng] 09:49:10,825 INFO [Initialization] done initializing Seam
| [testng] 09:49:11,059 ERROR [SeamLoginModule] Error invoking login method
|
I have included files in embedded-ejb/conf in my classpath. I am not sure how to customize login-config.xml. Also adding or removing <core:ejb/> to components.xml does not seem to make any difference.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086206#4086206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086206
18 years, 10 months