Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error when deploying stateless session bean

 
Ayub ali khan
Ranch Hand
Posts: 394
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please help me in resolving this issue.

I am trying to deploy Stateless Session bean on weblogic 7. This is an example given in EdRoman 3rd edition.(From chapter Writing your own Bean).

When I try to deploy using Weblogic 7 (using the brower to browse the jar file ). I read no deployment found at d:\bea\user_projects\mydomain\HelloWorld.jar error message

Following are the contents of HelloWorld.jar

Remote Interface Hello.java
Local Interface HelloLocal.java
Home Interface HelloHome.java
Local Home Interface HelloLocalHome.java
EJB HelloBean.java
ejb-jar.xml
manifest.mf
weblogic-ejb-jar.xml

following are the contents of weblogic-ejb-jar file.

<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>StatelessSession</ejb-name>
<jndi-name>HelloHome</jndi-name>
<local-jndi-name>HelloLocalHome</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>


ejb-jar.xml
--------------

<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>Hello</ejb-name>
<home>examples.HelloHome</home>
<remote>examples.Hello</remote>
<local-home>examples.HelloLocalHome</local-home>
<local>examples.HelloLocal</local>
<ejb-class>examples.HelloBean</ejb-class>
<session-type>stateless</session-type>
<transaction-type>container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor></assembly-descriptor>
</ejb-jar>

I would appreciate any clues as to what is going wrong here. I would appreciate if any one here could point me the steps that need to be taken to deploy the statless session bean on weblogic 7.

Thanks and Best Regards

Ayub
 
Aleksandar Kocic
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible that your directory structure is wrong. It should be like this:
HelloWorld.jar
|+examples (folder)
|+<your java classes>
|+META-INF (folder)
|+<your descriptor files>
 
Ayub ali khan
Ranch Hand
Posts: 394
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I will verify it again to check.

Thanks for replying!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic