[JBoss Portal] - Re: Navigation Tabs
by PeterJ
In Portal 2.4 (you never said which version of the portal you are using), the tabs that appear in the navigation portlet correspond to the pages to which the user can navigate. Hence, since 'admin' can navigate to the 'Admin' page, when logged in as 'admin' you see the 'Admin' tab, otherwise you don't.
You can do similar things by defining roles that ca see specific pages. For example, role 'one' can see pages 'aaa' and 'bbb', while role 'two' can see pages 'aaa' and 'ccc'. Then if user 'joe' is in role 'one' and role 'two', 'joe' can see all three pages (all thre tabs show in the navigation portlet). If user 'sue' is only in role 'two', then 'sue' can see only pages 'aaa' and 'ccc' (only those two tabs show in the navigation portlet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997745#3997745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997745
19 years, 3 months
[JBoss jBPM] - Re: invoke called, but our invoker is disconnected
by bertrand.njiipwo
Hello Alex,
Thanx for your reply.
Hier the SOAPMessages logged by the proxy solution in the following order:
After receiving the request from client (process):
Before sending the received Message to the remote service:
Response receive from the remote service:
Response send to the client (ProcessInstance):
| Request Message sent of client:
|
| POST /creditprocess/schufa HTTP/1.1
| SOAPAction: "urn:samples:schufa:validCustomer"
| Content-Type: text/xml; charset=UTF-8
| User-Agent: Java/1.5.0_06
| Host: 127.0.0.1:8081
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Connection: keep-alive
| Content-Length: 784
|
| <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
| <env:Header/>
| <env:Body>
| <soapBodyNS:validCustomer xmlns:soapBodyNS="urn:samples:schufa">
| <_surname xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="urn:samples:loanapproval" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Njipwo</_surname>
| <_firstname xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="urn:samples:loanapproval" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Bertrand</_firstname>
| </soapBodyNS:validCustomer>
| </env:Body>
| </env:Envelope>
|
| Request Message sent to remote Service:
|
| POST /axis/services/SchufaServiceB HTTP/1.1
| User-Agent: Java/1.5.0_06
| SOAPAction: "urn:samples:schufa:validCustomer"
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Host: 127.0.0.1:8081
| Connection: keep-alive
| Content-Type: text/xml; charset=UTF-8
| Content-Length: 784
|
| <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
| <env:Header/>
| <env:Body>
| <soapBodyNS:validCustomer xmlns:soapBodyNS="urn:samples:schufa">
| <_surname xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="urn:samples:loanapproval" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Njipwo</_surname>
| <_firstname xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="urn:samples:loanapproval" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Bertrand</_firstname>
| </soapBodyNS:validCustomer>
| </env:Body>
| </env:Envelope>
|
|
| Response Message received by remote Service:
|
| HTTP/1.1 200 OK
| Server: Apache-Coyote/1.1
| X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
| Content-Type: text/xml;charset=utf-8
| Transfer-Encoding: chunked
| Date: Wed, 03 Jan 2007 21:10:10 GMT
|
| 18e
| <?xml version="1.0" encoding="UTF-8"?>
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <soapenv:Body>
| <validCustomerResponse xmlns="urn:samples:schufa">
| <validCustomerReturn>true</validCustomerReturn>
| </validCustomerResponse>
| </soapenv:Body>
| </soapenv:Envelope>
| 0
|
|
|
| Response Message of remote Host:
|
|
| HTTP/1.1 200 OK
| Server: Apache-Coyote/1.1
| X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
| Content-Type: text/xml;charset=utf-8
| Content-Length: 398
| Date: Wed, 03 Jan 2007 21:10:10 GMT
|
| <?xml version="1.0" encoding="UTF-8"?>
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <soapenv:Body>
| <validCustomerResponse xmlns="urn:samples:schufa">
| <validCustomerReturn>true</validCustomerReturn>
| </validCustomerResponse>
| </soapenv:Body>
| </soapenv:Envelope>
|
|
and hier the first Message sent to the loanprocess service by the XML Spy client and the received Response (use it because it is easy to test deployed web services):
| <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <SOAP-ENV:Body>
| <m:apply xmlns:m="urn:samples:loanapproval">
| <loanRequestParameters>
| <firstName>Bertrand</firstName>
| <lastName>Njipwo</lastName>
| <amount>1000</amount>
| </loanRequestParameters>
| </m:apply>
| </SOAP-ENV:Body>
| </SOAP-ENV:Envelope>
|
|
| <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
| <env:Header/>
| <env:Body>
| <env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
| <faultcode>env:Server</faultcode>
| <faultstring>The service is not in an appropiate state for the requested operation</faultstring>
| </env:Fault>
| </env:Body>
| </env:Envelope>
|
NB: After sending the following message directly to the remote service via the proxy solution (http://127.0.0.1:8081/creditprocess/schufa) the corresponding response ist:
| <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <SOAP-ENV:Body>
| <m:validCustomer xmlns:m="urn:samples:schufa">
| <_surname xsi:type="xsd:string">Njipwo</_surname>
| <_firstname xsi:type="xsd:string">Bertrand</_firstname>
| </m:validCustomer>
| </SOAP-ENV:Body>
| </SOAP-ENV:Envelope>
|
|
|
|
| <?xml version="1.0" encoding="UTF-8"?>
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <soapenv:Body>
| <validCustomerResponse xmlns="urn:samples:schufa">
| <validCustomerReturn>true</validCustomerReturn>
| </validCustomerResponse>
| </soapenv:Body>
| </soapenv:Envelope>
|
One additional information: I have set up my configuration like follow:
the serviceCatalog URL in bpel-application.xml reflect the entries in webservices.xml for the partner service (schufa).
In the WSDL-implementation of the schufa service i have set the soap:address to http://127.0.0.1:8081/creditprocess/schufa but it don't solve the problem.
To let the generated SOAPMessage included in the HTTP Request by the jbpm-bpel module to be sent to http://127.0.0.1:8081/creditprocess/schufa (proxy) i need to swap the AddresseLocation http://milaine:8080/schufa/schufaWS
to :http://127.0.0.1:8081/creditprocess/schufa.
I have send you per email a commented server_log of the process execution (to big to fit in this thread).
I hope you can help.
Thanks once again.
Bertrand
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997744#3997744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997744
19 years, 3 months
[JBoss Seam] - Re: @Out/@DataModelSelection issues when using s:link but no
by cmdrclueless
Here is the relevant section from the XHTML
anonymous wrote :
| <ice:dataTable value="#{slaBeanList}"
| var="slaBean"
| styleClass="wdgt-data-table"
| columnClasses="wdgt-vert-l, widget-box-body, widget-box-body, wdgt-vert-r"
| rowClasses="odd-row, even-row"
| headerClass="wdgt-header"
| footerClass="wdgt-footer">
|
| <ice:column>
| <f:facet name="header">
| <ice:graphicImage url="img/spacer.gif" styleClass="wdgt-hdr-l"/>
| </f:facet>
| <f:facet name="footer">
| <ice:graphicImage url="img/spacer.gif" styleClass="wdgt-ftr-l-even"/>
| </f:facet>
| </ice:column>
|
| <ice:column>
| <f:facet name="header">
| <ice:graphicImage url="img/spacer.gif" styleClass="wdgt-hdr-m"/>
| </f:facet>
| <ice:selectBooleanCheckbox value="#{slaBean.selected}"/>
| <f:facet name="footer">
| <ice:graphicImage url="img/spacer.gif" styleClass="wdgt-ftr-m-even"/>
| </f:facet>
| </ice:column>
|
| <ice:column>
| <f:facet name="header">
| <ice:commandLink action="#{slaManagerAction.sortByColumnAction}"
| styleClass="widget-box-header-text">
|
| <ice:graphicImage rendered="#{slaManagerAction.sortBy == 'name'}"
| styleClass="#{(slaManagerAction.ascending == 'true') ? 'wdgt-hdr-sort-up' : 'wdgt-hdr-sort-down'}"
| url="img/spacer.gif"/>
| <ice:outputText value="Name"/>
| <f:param name="sortColumn" value="name"/>
|
| </ice:commandLink>
| </f:facet>
|
| <!-- This command link was originally a s:link object, but for some reason the
| - the JSF/ICEfaces/SEAM handling of s:link did now work correctly with the
| - SEAM @DataModel & @DataModelSelection in the slaManagerAction. Not sure
| - what the problem is, but perhaps it will get fixed in the next version
| - after 1.1GA
| -
| - s:xxxx might be working as designed... See the following URL
| -
| - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=95978
| - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98321
| -
| -->
| <ice:commandLink value="#{slaBean.serviceLevelAgreement.name}"
| action="#{slaManagerAction.updateSLA}"/>
|
| <f:facet name="footer">
| <h:graphicImage url="img/spacer.gif" styleClass="wdgt-ftr-m-even" />
| </f:facet>
| </ice:column>
|
| <ice:column>
| <f:facet name="header">
| <ice:graphicImage url="img/spacer.gif" styleClass="wdgt-hdr-r" />
| </f:facet>
| <f:facet name="footer">
| <ice:graphicImage url="img/spacer.gif" styleClass="wdgt-ftr-r-even" />
| </f:facet>
| </ice:column>
| </ice:dataTable>
|
The relevant portions from the slaManagerAction
anonymous wrote :
| @DataModel(value="slaBeanList")
| private List slaBeanList;
|
| @DataModelSelection(value="slaBeanList")
| private ServiceLevelAgreementBean selectedBean;
|
| @SuppressWarnings("unused")
| @Out(required=false, value="SLA")
| private ServiceLevelAgreement sla;
|
| @Begin(join=true)
| public String updateSLA()
| {
| logger.debug("#updateSLA()");
| logger.debug("SEAM.isConversationContextActive = {0}", Boolean.toString(Contexts.isConversationContextActive()));
| if (selectedBean == null)
| {
| logger.error("No SLA selection was set via the SEAM data model selection, unable to push 'SLA' into context");
| throw new IllegalStateException("No SLA was selected or set by the conversation manager");
| }
| sla = selectedBean.getServiceLevelAgreement();
| return "UpdateSLA"; // JSF Navigation, see WEB-INF/navigation.xml
| }
|
|
I also just verified that if I change the ice:commandLink to s:link in the XHTML it fails badly! Here is the stack trace showing the IllegalStateExceptoin generated from the updateSLA() method.
anonymous wrote :
| 2007-01-03 17:36:29,281 ERROR [org.jboss.seam.core.Exceptions] redirecting to debug page
| javax.ejb.EJBException: java.lang.IllegalStateException: No SLA was selected or set by the conversation manager
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy126.updateSLA(Unknown Source)
| at com.raritan.ccsd.action.sla.ServiceLevelAgreementManager$$FastClassByCGLIB$$54de4ff3.invoke()
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
| at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
| at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$538b5327.updateSLA()
| 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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
| at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:59)
| at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:71)
| at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:98)
| at org.jboss.seam.core.Pages.callAction(Pages.java:398)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:253)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:201)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:394)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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.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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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)
| Caused by: java.lang.IllegalStateException: No SLA was selected or set by the conversation manager
| at com.raritan.ccsd.action.sla.ServiceLevelAgreementAction.updateSLA(ServiceLevelAgreementAction.java:200)
| 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
| at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
| at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
| at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
| at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at com.raritan.ccsd.action.interceptor.LoggedInInterceptor.checkLoggedIn(LoggedInInterceptor.java:53)
| at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:39)
| at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
| 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:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
| at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 79 more
| 2007-01-03 17:36:29,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.debug.lastException
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997741#3997741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997741
19 years, 3 months
[JBoss Seam] - IceFaces Instalation help
by marcin777
Hi!
I'm newbie in IceFaces and Seam...and have little problem with Seam classloader and IceFaces.
Can anyone post me here link to easy example how to deploy IceFaces & Seam project or help me to resolve my problem.
here is my error:
| 23:06:00,708 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=expertEJB.jar
| java.lang.NoClassDefFoundError: com/icesoft/faces/component/paneltabset/TabChangeListener
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
| at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
| at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
| at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
|
| 23:06:10,793 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:service=EJB3,module=expertEJB.jar
| State: FAILED
| Reason: java.lang.NoClassDefFoundError: com/icesoft/faces/component/paneltabset/TabChangeListener
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.j2ee:service=EJB3,module=expertEJB.jar
| State: FAILED
| Reason: java.lang.NoClassDefFoundError: com/icesoft/faces/component/paneltabset/TabChangeListener
|
Here is my web.xml
| <listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <context-param>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>/WEB-INF/navigation.xml</param-value>
| </context-param>
|
| <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param> <param-name>com.icesoft.faces.doJSFStateManagement</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>com.icesoft.faces.actionURLSuffix</param-name>
| <param-value>.seam</param-value>
| </context-param>
|
| <context-param> <param-name>com.icesoft.faces.synchronousUpdate</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet>
| <servlet-name>Blocking Servlet</servlet-name>
| <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
| <load-on-startup> 1 </load-on-startup>
| </servlet>
|
| <servlet>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>/xmlhttp/*</url-pattern>
| </servlet-mapping>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>*.iface</url-pattern>
| </servlet-mapping>
|
| <!-- Blocking Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Blocking Servlet</servlet-name>
| <url-pattern>/block/*</url-pattern>
| </servlet-mapping>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces -->
| <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <session-config>
| <session-timeout>30</session-timeout>
| </session-config>
|
My application.xml (in ear file)
| <module>
| <ejb>expertEJB.jar</ejb>
| </module>
| <module>
| <java>jboss-seam.jar</java>
| </module>
| <module>
| <java>el-api.jar</java>
| </module>
| <module>
| <java>el-ri.jar</java>
| </module>
|
also in war file/WEB-INF/lib/ have following libs
| commons-fileupload.jar
| icefaces.jar
| icefaces-comps.jar
| icefaces-facelets.jar
| jboss-seam-debug.jar
| jboss-seam-ui.jar
| oscache-2.3.2.jar
|
finally I setted true in
\server\default\deploy\jbossweb-tomcat55.sar\META-INF
jboss-service.xml
seam booking example working fine, but my new project created based on booking can't load libs, why?
Can anyone help me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997735#3997735
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997735
19 years, 3 months