• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error when deploying stateless session bean

 
Ranch Hand
Posts: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. I will verify it again to check.

Thanks for replying!!
reply
    Bookmark Topic Watch Topic
  • New Topic