hibernate - Build failure using maven, servlet, jsp and java -
i error shown below, me trace problem. working on maven project using jsp, servelt wildfly , hibernate. project in initial development.
13:13:15,694 error [org.jboss.msc.service.fail] (msc service thread 1-6) msc000001: failed start service jboss.deployment.unit."kinagroup.war".install: org.jboss.msc.service.startexception in service jboss.deployment.unit."kinagroup.war".install: wflysrv0153: failed process phase install of deployment "kinagroup.war" @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:163) @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1948) @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1881) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: org.jboss.as.server.deployment.deploymentunitprocessingexception: wflyejb0406: no ejb found interface of type 'kina.member.bean.memberbeani' binding kina.member.action.memberaction/memberbean @ org.jboss.as.ejb3.deployment.processors.ejbinjectionsource.getresourcevalue(ejbinjectionsource.java:90) @ org.jboss.as.ee.component.deployers.modulejndibindingprocessor.addjndibinding(modulejndibindingprocessor.java:212) @ org.jboss.as.ee.component.deployers.modulejndibindingprocessor$1.handle(modulejndibindingprocessor.java:183) @ org.jboss.as.ee.component.classdescriptiontraversal.run(classdescriptiontraversal.java:54) @ org.jboss.as.ee.component.deployers.modulejndibindingprocessor.processclassconfigurations(modulejndibindingprocessor.java:151) @ org.jboss.as.ee.component.deployers.modulejndibindingprocessor.deploy(modulejndibindingprocessor.java:144) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:156) ... 5 more 13:13:15,741 error [org.jboss.as.controller.management-operation] (management-handler-thread - 61) wflyctl0013: operation ("redeploy") failed - address: ([("deployment" => "kinagroup.war")]) - failure description: { "wflyctl0080: failed services" => {"jboss.deployment.unit.\"kinagroup.war\".install" => "org.jboss.msc.service.startexception in service jboss.deployment.unit.\"kinagroup.war\".install: wflysrv0153: failed process phase install of deployment \"kinagroup.war\" caused by: org.jboss.as.server.deployment.deploymentunitprocessingexception: wflyejb0406: no ejb found interface of type 'kina.member.bean.memberbeani' binding kina.member.action.memberaction/memberbean"}, "wflyctl0180: services missing/unavailable dependencies" => [ "jboss.deployment.unit.\"kinagroup.war\".batch.environment missing [jboss.deployment.unit.\"kinagroup.war\".beanmanager]", "jboss.deployment.unit.\"kinagroup.war\".weld.weldclassintrospector missing [jboss.deployment.unit.\"kinagroup.war\".beanmanager]" ] } 13:13:15,743 error [org.jboss.as.server] (management-handler-thread - 61) wflysrv0011: redeploy of deployment "kinagroup.war" rolled following failure message: { "wflyctl0080: failed services" => {"jboss.deployment.unit.\"kinagroup.war\".install" => "org.jboss.msc.service.startexception in service jboss.deployment.unit.\"kinagroup.war\".install: wflysrv0153: failed process phase install of deployment \"kinagroup.war\" caused by: org.jboss.as.server.deployment.deploymentunitprocessingexception: wflyejb0406: no ejb found interface of type 'kina.member.bean.memberbeani' binding kina.member.action.memberaction/memberbean"}, "wflyctl0180: services missing/unavailable dependencies" => [ "jboss.deployment.unit.\"kinagroup.war\".batch.environment missing [jboss.deployment.unit.\"kinagroup.war\".beanmanager]", "jboss.deployment.unit.\"kinagroup.war\".weld.weldclassintrospector missing [jboss.deployment.unit.\"kinagroup.war\".beanmanager]" ] } 13:13:15,743 info [org.jboss.as.jpa] (serverservice thread pool -- 203) wflyjpa0011: stopping persistence unit (phase 1 of 2) service 'kinagroup.war#primary' 13:13:15,758 info [org.jboss.as.server.deployment] (msc service thread 1-8) wflysrv0028: stopped deployment kinagroup.war (runtime-name: kinagroup.war) in 15ms 13:13:15,760 error [org.jboss.as.controller.management-operation] (management-handler-thread - 61) wflyctl0190: step handler org.jboss.as.server.deployment.deploymenthandlerutil$4@76005c00 operation {"operation" => "full-replace-deployment","address" => [],"name" => "kinagroup.war","runtime-name" => "kinagroup.war","content" => [{"input-stream-index" => 0}],"operation-headers" => {"caller-type" => "user","access-mechanism" => "native"},"enabled" => undefined,"persistent" => true,"owner" => undefined} @ address [] failed handling operation rollback -- java.util.nosuchelementexception: no child 'name' exists: java.util.nosuchelementexception: no child 'name' exists @ org.jboss.dmr.modelvalue.requirechild(modelvalue.java:377) @ org.jboss.dmr.objectmodelvalue.requirechild(objectmodelvalue.java:299) @ org.jboss.dmr.modelnode.require(modelnode.java:870) @ org.jboss.as.server.deployment.deploymenthandlerutil$4$1.handleresult(deploymenthandlerutil.java:259) @ org.jboss.as.controller.abstractoperationcontext$step.invokeresulthandler(abstractoperationcontext.java:1401) @ org.jboss.as.controller.abstractoperationcontext$step.handleresult(abstractoperationcontext.java:1381) @ org.jboss.as.controller.abstractoperationcontext$step.finalizeinternal(abstractoperationcontext.java:1332) @ org.jboss.as.controller.abstractoperationcontext$step.finalizestep(abstractoperationcontext.java:1307) @ org.jboss.as.controller.abstractoperationcontext$step.access$300(abstractoperationcontext.java:1180) @ org.jboss.as.controller.abstractoperationcontext.docompletestep(abstractoperationcontext.java:621) @ org.jboss.as.controller.abstractoperationcontext.completestepinternal(abstractoperationcontext.java:354) @ org.jboss.as.controller.abstractoperationcontext.executeoperation(abstractoperationcontext.java:330) @ org.jboss.as.controller.operationcontextimpl.executeoperation(operationcontextimpl.java:1183) @ org.jboss.as.controller.modelcontrollerimpl.internalexecute(modelcontrollerimpl.java:362) @ org.jboss.as.controller.modelcontrollerimpl.execute(modelcontrollerimpl.java:218) @ org.jboss.as.controller.remote.modelcontrollerclientoperationhandler$executerequesthandler.doexecute(modelcontrollerclientoperationhandler.java:201) @ org.jboss.as.controller.remote.modelcontrollerclientoperationhandler$executerequesthandler.access$300(modelcontrollerclientoperationhandler.java:128) @ org.jboss.as.controller.remote.modelcontrollerclientoperationhandler$executerequesthandler$1$1.run(modelcontrollerclientoperationhandler.java:150) @ org.jboss.as.controller.remote.modelcontrollerclientoperationhandler$executerequesthandler$1$1.run(modelcontrollerclientoperationhandler.java:146) @ java.security.accesscontroller.doprivileged(native method) @ javax.security.auth.subject.doas(subject.java:422) @ org.jboss.as.controller.accessauditcontext.doas(accessauditcontext.java:92) @ org.jboss.as.controller.remote.modelcontrollerclientoperationhandler$executerequesthandler$1.execute(modelcontrollerclientoperationhandler.java:146) @ org.jboss.as.protocol.mgmt.abstractmessagehandler$2$1.doexecute(abstractmessagehandler.java:298) @ org.jboss.as.protocol.mgmt.abstractmessagehandler$asynctaskrunner.run(abstractmessagehandler.java:518) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) @ org.jboss.threads.jbossthread.run(jbossthread.java:320) //my bean package kina.member.bean; import java.util.list; import javax.inject.inject; import kina.member.dao.memberdaoi; import kina.member.model.member; public class memberbean implements memberbeani{ @inject private memberdaoi memberdao; public void add(member member) { // todo auto-generated method stub } public list<member> list() { // todo auto-generated method stub return null; } }
//this interface implementing bean
package kina.member.bean; import java.util.list; import kina.member.model.member; public interface memberbeani { void add(member member); list<member> list(); }
//this dao
package kina.member.dao; import java.util.list; import kina.member.model.member; public class memberdao implements memberdaoi{ public member add(member member) { // todo auto-generated method stub return null; } public member load(member member) { // todo auto-generated method stub return null; } public list<member> list(member filter) { // todo auto-generated method stub return null; } public void delete(long memberid) { // todo auto-generated method stub } }
//my dao interface this
package kina.member.dao; import java.util.list; import kina.member.model.member; public interface memberdaoi { member add(member member); member load(member member); list<member> list(member filter); void delete(long memberid); }
//my model this
package kina.member.model; import javax.annotation.generated; import javax.persistence.column; import javax.persistence.entity; import javax.persistence.generatedvalue; import javax.persistence.generationtype; import javax.persistence.id; import javax.persistence.table; @entity @table(name = "memb_members") public class member { @id@generatedvalue(strategy = generationtype.auto) private long id; @column(name = "name") private string name; @column(name = "national_id") private long memberid; public long getid() { return id; } public void setid(long id) { this.id = id; } public string getname() { return name; } public void setname(string name) { this.name = name; } public long getmemberid() { return memberid; } public void setmemberid(long nationalid) { this.memberid = nationalid; } }
//i have persistence.xml this
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="primary" transaction-type="jta"> <jta-data-source>java:jboss/datasources/kinagroupds</jta-data-source> <properties> <!-- database connection settings --> <property name="hibernate.dialect" value="org.hibernate.dialect.mysql5innodbdialect" /> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.driver" /> <property name="hibernate.archive.autodetection" value="class, hbm" /> <!-- disable second-level cache. --> <property name="cache.provider_class" value="org.hibernate.cache.nocacheprovider" /> <property name="cache.use_query_cache" value="false" /> <property name="cache.use_minimal_puts" value="false" /> <!-- print sql stdout. --> <property name="show_sql" value="true" /> <property name="format_sql" value="true" /> <!-- update schema on sessionfactory build --> <property name="hibernate.hbm2ddl.auto" value="update" /> </properties> </persistence-unit> </persistence>
my standalone.xml this. have defined datasource
jdbc:h2:mem:test;db_close_delay=-1;db_close_on_exit=false h2 sa sa jdbc:mysql://localhost:3306/trip_ticket?usessl=false mysql root sam123#@! jdbc:mysql://localhost:3306/kina_group?usessl=false mysql root sam123#@! org.h2.jdbcx.jdbcdatasource com.mysql.jdbc.driver
try injecting implementation of bean servlet. or import package of bean implementation if have done previous step.
Comments
Post a Comment