[JBoss/Spring Integration] - Injecting spring bean in jsf controller, ibm jre 1.6.0 and
by rashad_saif@yahoo.com
I'm deploying this managed bean with Spring bean injected.
This web application works fine on Sun-JRE 1.6.6 and Jboss 5.0.1.
Unable to inject the bean when deploying with IBM-JRE 1.6.0 and Jboss 5.0.1 on same windows OS.
This is the requirement from the client.
I would appreciate any help or any lead on this.
This my jsf managed-bean configration
<managed-bean>
| <managed-bean-name>exampleController</managed-bean-name>
| <managed-bean-class>app.ExampleController</managed-bean-class>
| <managed-bean-scope>session</managed-bean-scope>
| <managed-property>
| <property-name>exampleDAO</property-name>
| <property-class>app.dao.ExampleDAO</property-class>
| <value>#{exampleDAO}</value>
| </managed-property>
| </managed-bean>
and this my spring confiration for DAO
<bean id="exampleDAO" class="app.dao.ExampleJpaDAO"/>
This is dao interface code
public interface ExampleDAO extends GenericDAO<ExampleDO, Long> {
|
| }
This exception from the log:
ERROR [managedbean] JSF will be unable to create managed bean exampleController when it is requested. The following problems where found:
| - Unable to Introspect managed bean exampleController
| 09:42:48,531 WARN [lifecycle] Unable to create managed bean exampleController. The following problems were found:
| - Unable to Introspect managed bean exampleController
| com.sun.faces.mgbean.ManagedBeanCreationException: Unable to create managed bean exampleController. The following problems were found:
| - Unable to Introspect managed bean exampleController
| at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:204)
| at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:86)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
| at com.sun.faces.el.ChainAwareVariableResolver.resolveVariable(ChainAwareVariableResolver.java:108)
| at org.springframework.web.jsf.DelegatingVariableResolver.resolveOriginal(DelegatingVariableResolver.java:122)
| at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:107)
| at org.springframework.web.jsf.DelegatingVariableResolver.resolveOriginal(DelegatingVariableResolver.java:122)
| at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:107)
| at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:107)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
| at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
| at org.apache.el.parser.AstValue.getTarget(AstValue.java:63)
| at org.apache.el.parser.AstValue.invoke(AstValue.java:166)
| at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
| at javax.faces.component.UICommand.broadcast(UICommand.java:387)
| at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
| at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
| at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
| at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
| at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
| at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
| at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
| at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
| at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
| at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
| at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
| at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
| at org.springframework.security.util.FilterChainProxy$Vi
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247418#4247418
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247418
15 years, 4 months
[JBoss Getting Started Documentation] - Re: problem building jsfeJB3 application
by DavidMZen
These types of problems trying to run examples are really annoying..
I've spent a lot of time and made some headway with jsfeJB3 (fixed the build and deploy problems mentioned earlier) but now when you try to create a todo or list them it fails with
com.sun.faces.mgbean.ManagedBeanCreationException: Unable to create managed bean todoBean. The following problems were found:
- Bean or property class TodoBean for managed bean todoBean cannot be found.
- Bean or property class TodoBean for managed bean todoBean cannot be found.
- Bean or property class TodoBean for managed bean todoBean cannot be found.
- Bean or property class TodoBean for managed bean todoBean cannot be found.
I've also seen other posts on the web with people struggling with this issue but I have seen no resolution advice to date.
Any help would be much appreciated..
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247411#4247411
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247411
15 years, 4 months
[Management, JMX/JBoss] - messages getting stuck in ESB queue after a period of inacti
by hardew
Hi All,
I have created a MDB to retrieve messages from a remote queue. For that I have configured and included jboss.xml, ejb-jar.xml and application.xml files in the ear file. I have also configured mbean in hajndi-ds.xml and proxy configuration in standardjboss.xml.
I deployed this ear file into jboss\\all\deploy\, I am using Jboss AS 4.2.3. There is a firewall sitting between ESB queue and MDB.
With the above configuration, MDB is able to retrieve and process the messages from remote queue.
The problem is that - messages getting stuck in ESB queue (remote queue) after a period of inactivity.
Thereafter MDB is not able to receive message. I need to restart the JBoss or mdb-proxy-binding from JMX-Console then only it again able to retrieve and process message.
One possible reason is firewall session time out; If this is the case, then how to configure session timeout in MDB?
Please provide pointer/solution for this.
Thanks,
Hardew
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247405#4247405
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247405
15 years, 4 months
[JBoss jBPM] - JBPM + EMF/UML2 Crashes
by waterloo
Hi all,
I'm trying to execute JPDL Process (4.0) that modifies an existing .UML file using the UML2 Library and i have to execute a useless instruction just to somehow get the UML initialized. The code fragment is bellow. If I remove the UMLFactory.eINSTANCE.createClass().setName(""); the code crashes.
It's important to mention that if I remove JPDL, everything runs OK!!
// extremely weird behavior. if I remove the line bellow the code crashes.
// it seems something inside RMf must be initialized.
///////////////////////////////////////////////
UMLFactory.eINSTANCE.createClass().setName("");
///////////////////////////////////////////////
org.eclipse.uml2.uml.Package topPackage = UMLModelWrapper.loadModel(URI.createURI(PATH_NAME).appendSegment(
MODEL_NAME).appendFileExtension(UMLResource.FILE_EXTENSION));
SymbolTable.getInstance().umlModel = topPackage;
cheers
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247403#4247403
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247403
15 years, 4 months