weblogic12c - EJB 2.1 deployment in weblogic 12c issue -


i trying deploy ejb 2.1 wrapped in ear maven app in weblogic 12c, have mentioned prefer ejb 2.1 jar in classpath, still getting below error since referring weblogic ejb jar.

i trying different things still not picking my. please find below xml files , can please me in resolving issue?

i sick of finding root cause :(

there 6 nested errors:    weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, bean class must implement directly or indirectly javax.ejb.sessionbean interface.  	at weblogic.ejb.container.compliance.sessionbeanclasschecker.checkclassimplementssessionbean(sessionbeanclasschecker.java:68)    weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, method gethandle() defined in local interface either not exist in bean class, or not public method. each method in local interface must have corresponding public method in bean class.  	at weblogic.ejb.container.compliance.beanclasschecker.checkbusinessmethods(beanclasschecker.java:328)    weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, method getejbhome() defined in local interface either not exist in bean class, or not public method. each method in local interface must have corresponding public method in bean class.  	at weblogic.ejb.container.compliance.beanclasschecker.checkbusinessmethods(beanclasschecker.java:328)    weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, method getprimarykey() defined in local interface either not exist in bean class, or not public method. each method in local interface must have corresponding public method in bean class.  	at weblogic.ejb.container.compliance.beanclasschecker.checkbusinessmethods(beanclasschecker.java:328)    weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, method isidentical(javax.ejb.ejbobject) defined in local interface either not exist in bean class, or not public method. each method in local interface must have corresponding public method in bean class.  	at weblogic.ejb.container.compliance.beanclasschecker.checkbusinessmethods(beanclasschecker.java:328)    weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, method remove() defined in local interface either not exist in bean class, or not public method. each method in local interface must have corresponding public method in bean class.  	at weblogic.ejb.container.compliance.beanclasschecker.checkbusinessmethods(beanclasschecker.java:328)

application.xml

    <?xml version="1.0" encoding="utf-8"?>`enter code here      <application xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"      	xmlns="http://java.sun.com/xml/ns/javaee"      	xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"      	id="application_id" version="6">      	<display-name>xyz</display-name>      	<module>      		<ejb>logar.jar</ejb>      	</module>      	<library-directory>lib</library-directory>      </application>

weblogic-application.xml

<?xml version='1.0' encoding='utf-8'?>  <weblogic-application  	xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"  	xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"  	xsi:schemalocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.5/weblogic-application.xsd">  	<ejb>  		<start-mdbs-with-application>false  		</start-mdbs-with-application>  	</ejb>  	<application-param>  		<param-name>webapp.encoding.default</param-name>  		<param-value>utf-8</param-value>  	</application-param>  	<prefer-application-packages xsi:type="prefer-application-packagestype">  		<package-name>javax.ejb.*</package-name>  	</prefer-application-packages>  </weblogic-application>

ejb-jar.xml

<?xml version="1.0" encoding="utf-8"?>  <!doctype ejb-jar public '-//sun microsystems, inc.//dtd enterprise javabeans 2.0//en' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>  <!--    ** file automatically generated ejbgen 2.16    ** build: 20031001-1049  -->  <ejb-jar>  	<enterprise-beans>  		<session>  			<ejb-name>monthlysessionstatmgmt</ejb-name>  			<home>com.xyz.monthlysessionstatmgmthome</home>  			<remote>com.xyz.monthlysessionstatmgmt</remote>  			<ejb-class>com.xyz.monthlysessionstatmgmtbean</ejb-class>  			<session-type>stateless</session-type>  			<transaction-type>container</transaction-type>  		</session>  	</enterprise-beans>  	<assembly-descriptor>  		<container-transaction>  			<method>  				<ejb-name>monthlysessionstatmgmt</ejb-name>  				<method-name>*</method-name>  			</method>  	 		<trans-attribute>required</trans-attribute>   		</container-transaction>   	</assembly-descriptor>  </ejb-jar>

weblogic-ejb-jar.xml

<weblogic-ejb-jar>  	<weblogic-enterprise-bean>  		<ejb-name>monthlysessionstatmgmt</ejb-name>  		<stateless-session-descriptor>  			<pool>  				<max-beans-in-free-pool>1000</max-beans-in-free-pool>  				<initial-beans-in-free-pool>0</initial-beans-in-free-pool>  			</pool>  		</stateless-session-descriptor>  		<transaction-descriptor>  			<trans-timeout-seconds>45</trans-timeout-seconds>  		</transaction-descriptor>  		<enable-call-by-reference>true</enable-call-by-reference>  		<jndi-name>com/xyz/monthlysessionstatmgmt</jndi-name>  	</weblogic-enterprise-bean>  </weblogic-ejb-jar>


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -