jsf 2.2 - The class 'org.javassist.tmp.java.lang.Object_$$_javassist_seam_2' does not have the property -
i learning seam framework , going through examples given seam package. trying declare property in seam component , refer in jsf. but, getting error saying class not have property.
my seam component follows:
register.java interface
package org.jboss.seam.example.registration; import javax.ejb.local; @local public interface register { public string register(); }
registeraction.java class
@stateless @name("register") public class registeraction implements register { private string college; public string getcollege() { return college; } public void setcollege(string college) { this.college = college; }
register.xhtml file
<h:inputtext id="college" value="#{register.college}" required="true"/>
while deploying application , accessing link: http://localhost:8080/seam-registration/register.seam
i getting below error:
context path:/seam-registration servlet path:/register.seam path info:null query string:null stack trace javax.servlet.servletexception: /register.xhtml @24,99 value="#{register.college}": class 'org.javassist.tmp.java.lang.object_$$_javassist_seam_2' not have property 'college'. javax.faces.webapp.facesservlet.service(facesservlet.java:671) io.undertow.servlet.handlers.servlethandler.handlerequest(servlethandler.java:85) io.undertow.servlet.handlers.security.servletsecurityrolehandler.handlerequest(servletsecurityrolehandler.java:62) io.undertow.servlet.handlers.servletdispatchinghandler.handlerequest(servletdispatchinghandler.java:36) org.wildfly.extension.undertow.security.securitycontextassociationhandler.handlerequest(securitycontextassociationhandler.java:78) io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) io.undertow.servlet.handlers.security.sslinformationassociationhandler.handlerequest(sslinformationassociationhandler.java:131) io.undertow.servlet.handlers.security.servletauthenticationcallhandler.handlerequest(servletauthenticationcallhandler.java:57) io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) io.undertow.security.handlers.abstractconfidentialityhandler.handlerequest(abstractconfidentialityhandler.java:46) io.undertow.servlet.handlers.security.servletconfidentialityconstrainthandler.handlerequest(servletconfidentialityconstrainthandler.java:64) io.undertow.security.handlers.authenticationmechanismshandler.handlerequest(authenticationmechanismshandler.java:60) io.undertow.servlet.handlers.security.cachedauthenticatedsessionhandler.handlerequest(cachedauthenticatedsessionhandler.java:77) io.undertow.security.handlers.notificationreceiverhandler.handlerequest(notificationreceiverhandler.java:50) io.undertow.security.handlers.abstractsecuritycontextassociationhandler.handlerequest(abstractsecuritycontextassociationhandler.java:43) io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) org.wildfly.extension.undertow.security.jacc.jacccontextidhandler.handlerequest(jacccontextidhandler.java:61) io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) io.undertow.servlet.handlers.servletinitialhandler.handlefirstrequest(servletinitialhandler.java:292) io.undertow.servlet.handlers.servletinitialhandler.access$100(servletinitialhandler.java:81) io.undertow.servlet.handlers.servletinitialhandler$2.call(servletinitialhandler.java:138) io.undertow.servlet.handlers.servletinitialhandler$2.call(servletinitialhandler.java:135) io.undertow.servlet.core.servletrequestcontextthreadsetupaction$1.call(servletrequestcontextthreadsetupaction.java:48) io.undertow.servlet.core.contextclassloadersetupaction$1.call(contextclassloadersetupaction.java:43) io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) io.undertow.servlet.handlers.servletinitialhandler.dispatchrequest(servletinitialhandler.java:272) io.undertow.servlet.handlers.servletinitialhandler.access$000(servletinitialhandler.java:81) io.undertow.servlet.handlers.servletinitialhandler$1.handlerequest(servletinitialhandler.java:104) io.undertow.server.connectors.executeroothandler(connectors.java:202) io.undertow.server.httpserverexchange$1.run(httpserverexchange.java:805) java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) java.lang.thread.run(thread.java:748)
the server log below:
09:26:52,777 severe [javax.enterprise.resource.webcontainer.jsf.application] (default task-12) error rendering view[/register.xhtml]: javax.el.propertynotfoundexception: /register.xhtml @24,99 value="#{register.college}": class 'org.javassist.tmp.java.lang.object_$$_javassist_seam_2' not have property 'college'. @ com.sun.faces.facelets.el.tagvalueexpression.getvalue(tagvalueexpression.java:111) @ javax.faces.component.componentstatehelper.eval(componentstatehelper.java:194) @ javax.faces.component.componentstatehelper.eval(componentstatehelper.java:182) @ javax.faces.component.uioutput.getvalue(uioutput.java:174) @ javax.faces.component.uiinput.getvalue(uiinput.java:291) @ com.sun.faces.renderkit.html_basic.htmlbasicinputrenderer.getvalue(htmlbasicinputrenderer.java:205) @ com.sun.faces.renderkit.html_basic.htmlbasicrenderer.getcurrentvalue(htmlbasicrenderer.java:355) @ com.sun.faces.renderkit.html_basic.htmlbasicrenderer.encodeend(htmlbasicrenderer.java:164) @ javax.faces.component.uicomponentbase.encodeend(uicomponentbase.java:920) @ com.sun.faces.renderkit.html_basic.htmlbasicrenderer.encoderecursive(htmlbasicrenderer.java:312) @ com.sun.faces.renderkit.html_basic.gridrenderer.renderrow(gridrenderer.java:185) @ com.sun.faces.renderkit.html_basic.gridrenderer.encodechildren(gridrenderer.java:129) @ javax.faces.component.uicomponentbase.encodechildren(uicomponentbase.java:890) @ org.jboss.seam.ui.util.cdk.rendererbase.renderchild(rendererbase.java:186) @ org.jboss.seam.ui.util.cdk.rendererbase.renderchildren(rendererbase.java:166) @ org.jboss.seam.ui.renderkit.validateallrendererbase.doencodechildren(validateallrendererbase.java:35) @ org.jboss.seam.ui.util.cdk.rendererbase.encodechildren(rendererbase.java:92) @ javax.faces.component.uicomponentbase.encodechildren(uicomponentbase.java:890) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1856) @ javax.faces.render.renderer.encodechildren(renderer.java:176) @ javax.faces.component.uicomponentbase.encodechildren(uicomponentbase.java:890) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1856) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1859) @ com.sun.faces.application.view.faceletviewhandlingstrategy.renderview(faceletviewhandlingstrategy.java:458) @ com.sun.faces.application.view.multiviewhandler.renderview(multiviewhandler.java:134) @ org.jboss.seam.jsf.seamviewhandler.renderview(seamviewhandler.java:188) @ javax.faces.application.viewhandlerwrapper.renderview(viewhandlerwrapper.java:337) @ javax.faces.application.viewhandlerwrapper.renderview(viewhandlerwrapper.java:337) @ com.sun.faces.lifecycle.renderresponsephase.execute(renderresponsephase.java:120) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:219) @ javax.faces.webapp.facesservlet.service(facesservlet.java:659) @ io.undertow.servlet.handlers.servlethandler.handlerequest(servlethandler.java:85) @ io.undertow.servlet.handlers.security.servletsecurityrolehandler.handlerequest(servletsecurityrolehandler.java:62) @ io.undertow.servlet.handlers.servletdispatchinghandler.handlerequest(servletdispatchinghandler.java:36) @ org.wildfly.extension.undertow.security.securitycontextassociationhandler.handlerequest(securitycontextassociationhandler.java:78) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.servlet.handlers.security.sslinformationassociationhandler.handlerequest(sslinformationassociationhandler.java:131) @ io.undertow.servlet.handlers.security.servletauthenticationcallhandler.handlerequest(servletauthenticationcallhandler.java:57) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.security.handlers.abstractconfidentialityhandler.handlerequest(abstractconfidentialityhandler.java:46) @ io.undertow.servlet.handlers.security.servletconfidentialityconstrainthandler.handlerequest(servletconfidentialityconstrainthandler.java:64) @ io.undertow.security.handlers.authenticationmechanismshandler.handlerequest(authenticationmechanismshandler.java:60) @ io.undertow.servlet.handlers.security.cachedauthenticatedsessionhandler.handlerequest(cachedauthenticatedsessionhandler.java:77) @ io.undertow.security.handlers.notificationreceiverhandler.handlerequest(notificationreceiverhandler.java:50) @ io.undertow.security.handlers.abstractsecuritycontextassociationhandler.handlerequest(abstractsecuritycontextassociationhandler.java:43) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ org.wildfly.extension.undertow.security.jacc.jacccontextidhandler.handlerequest(jacccontextidhandler.java:61) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.servlet.handlers.servletinitialhandler.handlefirstrequest(servletinitialhandler.java:292) @ io.undertow.servlet.handlers.servletinitialhandler.access$100(servletinitialhandler.java:81) @ io.undertow.servlet.handlers.servletinitialhandler$2.call(servletinitialhandler.java:138) @ io.undertow.servlet.handlers.servletinitialhandler$2.call(servletinitialhandler.java:135) @ io.undertow.servlet.core.servletrequestcontextthreadsetupaction$1.call(servletrequestcontextthreadsetupaction.java:48) @ io.undertow.servlet.core.contextclassloadersetupaction$1.call(contextclassloadersetupaction.java:43) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.handlers.servletinitialhandler.dispatchrequest(servletinitialhandler.java:272) @ io.undertow.servlet.handlers.servletinitialhandler.access$000(servletinitialhandler.java:81) @ io.undertow.servlet.handlers.servletinitialhandler$1.handlerequest(servletinitialhandler.java:104) @ io.undertow.server.connectors.executeroothandler(connectors.java:202) @ io.undertow.server.httpserverexchange$1.run(httpserverexchange.java:805) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:748) caused by: javax.el.propertynotfoundexception: class 'org.javassist.tmp.java.lang.object_$$_javassist_seam_2' not have property 'college'. @ javax.el.beanelresolver.getbeanproperty(beanelresolver.java:568) @ javax.el.beanelresolver.getvalue(beanelresolver.java:229) @ com.sun.faces.el.demuxcompositeelresolver._getvalue(demuxcompositeelresolver.java:176) @ com.sun.faces.el.demuxcompositeelresolver.getvalue(demuxcompositeelresolver.java:203) @ org.jboss.el.parser.astpropertysuffix.getvalue(astpropertysuffix.java:53) @ org.jboss.el.parser.astvalue.getvalue(astvalue.java:67) @ org.jboss.el.valueexpressionimpl.getvalue(valueexpressionimpl.java:186) @ org.jboss.weld.el.weldvalueexpression.getvalue(weldvalueexpression.java:50) @ com.sun.faces.facelets.el.tagvalueexpression.getvalue(tagvalueexpression.java:109) ... 69 more 09:26:52,779 error [io.undertow.request] (default task-12) ut005023: exception handling request /seam-registration/register.seam: javax.servlet.servletexception: /register.xhtml @24,99 value="#{register.college}": class 'org.javassist.tmp.java.lang.object_$$_javassist_seam_2' not have property 'college'. @ javax.faces.webapp.facesservlet.service(facesservlet.java:671) @ io.undertow.servlet.handlers.servlethandler.handlerequest(servlethandler.java:85) @ io.undertow.servlet.handlers.security.servletsecurityrolehandler.handlerequest(servletsecurityrolehandler.java:62) @ io.undertow.servlet.handlers.servletdispatchinghandler.handlerequest(servletdispatchinghandler.java:36) @ org.wildfly.extension.undertow.security.securitycontextassociationhandler.handlerequest(securitycontextassociationhandler.java:78) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.servlet.handlers.security.sslinformationassociationhandler.handlerequest(sslinformationassociationhandler.java:131) @ io.undertow.servlet.handlers.security.servletauthenticationcallhandler.handlerequest(servletauthenticationcallhandler.java:57) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.security.handlers.abstractconfidentialityhandler.handlerequest(abstractconfidentialityhandler.java:46) @ io.undertow.servlet.handlers.security.servletconfidentialityconstrainthandler.handlerequest(servletconfidentialityconstrainthandler.java:64) @ io.undertow.security.handlers.authenticationmechanismshandler.handlerequest(authenticationmechanismshandler.java:60) @ io.undertow.servlet.handlers.security.cachedauthenticatedsessionhandler.handlerequest(cachedauthenticatedsessionhandler.java:77) @ io.undertow.security.handlers.notificationreceiverhandler.handlerequest(notificationreceiverhandler.java:50) @ io.undertow.security.handlers.abstractsecuritycontextassociationhandler.handlerequest(abstractsecuritycontextassociationhandler.java:43) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ org.wildfly.extension.undertow.security.jacc.jacccontextidhandler.handlerequest(jacccontextidhandler.java:61) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.server.handlers.predicatehandler.handlerequest(predicatehandler.java:43) @ io.undertow.servlet.handlers.servletinitialhandler.handlefirstrequest(servletinitialhandler.java:292) @ io.undertow.servlet.handlers.servletinitialhandler.access$100(servletinitialhandler.java:81) @ io.undertow.servlet.handlers.servletinitialhandler$2.call(servletinitialhandler.java:138) @ io.undertow.servlet.handlers.servletinitialhandler$2.call(servletinitialhandler.java:135) @ io.undertow.servlet.core.servletrequestcontextthreadsetupaction$1.call(servletrequestcontextthreadsetupaction.java:48) @ io.undertow.servlet.core.contextclassloadersetupaction$1.call(contextclassloadersetupaction.java:43) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.api.legacythreadsetupactionwrapper$1.call(legacythreadsetupactionwrapper.java:44) @ io.undertow.servlet.handlers.servletinitialhandler.dispatchrequest(servletinitialhandler.java:272) @ io.undertow.servlet.handlers.servletinitialhandler.access$000(servletinitialhandler.java:81) @ io.undertow.servlet.handlers.servletinitialhandler$1.handlerequest(servletinitialhandler.java:104) @ io.undertow.server.connectors.executeroothandler(connectors.java:202) @ io.undertow.server.httpserverexchange$1.run(httpserverexchange.java:805) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:748) caused by: javax.el.propertynotfoundexception: /register.xhtml @24,99 value="#{register.college}": class 'org.javassist.tmp.java.lang.object_$$_javassist_seam_2' not have property 'college'. @ com.sun.faces.facelets.el.tagvalueexpression.getvalue(tagvalueexpression.java:111) @ javax.faces.component.componentstatehelper.eval(componentstatehelper.java:194) @ javax.faces.component.componentstatehelper.eval(componentstatehelper.java:182) @ javax.faces.component.uioutput.getvalue(uioutput.java:174) @ javax.faces.component.uiinput.getvalue(uiinput.java:291) @ com.sun.faces.renderkit.html_basic.htmlbasicinputrenderer.getvalue(htmlbasicinputrenderer.java:205) @ com.sun.faces.renderkit.html_basic.htmlbasicrenderer.getcurrentvalue(htmlbasicrenderer.java:355) @ com.sun.faces.renderkit.html_basic.htmlbasicrenderer.encodeend(htmlbasicrenderer.java:164) @ javax.faces.component.uicomponentbase.encodeend(uicomponentbase.java:920) @ com.sun.faces.renderkit.html_basic.htmlbasicrenderer.encoderecursive(htmlbasicrenderer.java:312) @ com.sun.faces.renderkit.html_basic.gridrenderer.renderrow(gridrenderer.java:185) @ com.sun.faces.renderkit.html_basic.gridrenderer.encodechildren(gridrenderer.java:129) @ javax.faces.component.uicomponentbase.encodechildren(uicomponentbase.java:890) @ org.jboss.seam.ui.util.cdk.rendererbase.renderchild(rendererbase.java:186) @ org.jboss.seam.ui.util.cdk.rendererbase.renderchildren(rendererbase.java:166) @ org.jboss.seam.ui.renderkit.validateallrendererbase.doencodechildren(validateallrendererbase.java:35) @ org.jboss.seam.ui.util.cdk.rendererbase.encodechildren(rendererbase.java:92) @ javax.faces.component.uicomponentbase.encodechildren(uicomponentbase.java:890) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1856) @ javax.faces.render.renderer.encodechildren(renderer.java:176) @ javax.faces.component.uicomponentbase.encodechildren(uicomponentbase.java:890) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1856) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1859) @ com.sun.faces.application.view.faceletviewhandlingstrategy.renderview(faceletviewhandlingstrategy.java:458) @ com.sun.faces.application.view.multiviewhandler.renderview(multiviewhandler.java:134) @ org.jboss.seam.jsf.seamviewhandler.renderview(seamviewhandler.java:188) @ javax.faces.application.viewhandlerwrapper.renderview(viewhandlerwrapper.java:337) @ javax.faces.application.viewhandlerwrapper.renderview(viewhandlerwrapper.java:337) @ com.sun.faces.lifecycle.renderresponsephase.execute(renderresponsephase.java:120) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:219) @ javax.faces.webapp.facesservlet.service(facesservlet.java:659) ... 38 more caused by: javax.el.propertynotfoundexception: class 'org.javassist.tmp.java.lang.object_$$_javassist_seam_2' not have property 'college'. @ javax.el.beanelresolver.getbeanproperty(beanelresolver.java:568) @ javax.el.beanelresolver.getvalue(beanelresolver.java:229) @ com.sun.faces.el.demuxcompositeelresolver._getvalue(demuxcompositeelresolver.java:176) @ com.sun.faces.el.demuxcompositeelresolver.getvalue(demuxcompositeelresolver.java:203) @ org.jboss.el.parser.astpropertysuffix.getvalue(astpropertysuffix.java:53) @ org.jboss.el.parser.astvalue.getvalue(astvalue.java:67) @ org.jboss.el.valueexpressionimpl.getvalue(valueexpressionimpl.java:186) @ org.jboss.weld.el.weldvalueexpression.getvalue(weldvalueexpression.java:50) @ com.sun.faces.facelets.el.tagvalueexpression.getvalue(tagvalueexpression.java:109) ... 69 more
the exception speaking itself, seam proxy class , mapp interface result #{register} value expression refers interface not contain getter/setter college field. don't need use ejb of time remove interface , use class only.
@name("register") //or better @name("registeraction") @scope(conversation) public class registeraction { private string college; public string getcollege() { return college; } public void setcollege(string college) { this.college = college; } }
Comments
Post a Comment