File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes error when deploying stateless session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "error when deploying stateless session bean" Watch "error when deploying stateless session bean" New topic
Author

error when deploying stateless session bean

Ayub ali khan
Ranch Hand

Joined: Oct 20, 2005
Posts: 379
    
    2
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


SCEA part I,TOGAF Foundation
Aleksandar Kocic
Greenhorn

Joined: May 02, 2006
Posts: 2
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

Joined: Oct 20, 2005
Posts: 379
    
    2
Thank you. I will verify it again to check.

Thanks for replying!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error when deploying stateless session bean
 
Similar Threads
unable to deploy stateless session bean using weblogic 7
unable to laod a class specifeid in ejb-jar.xml
Local Home JNDI Not Found
DataSource in ejb-jar.xml
Deployment time NameNotFoundException