What does the following command output?
jar -tf m3z-miami.ear
Also, have you made a ejb module entry in the application.xml in your EAR?
anonymous wrote : can you recomend me any online example, i think im missing something on
my ear file or in the configuration
I would have recommended the EJB3Trail at
http://trailblazer.demo.jboss.com/EJB3Trail/,
but for some reason it's been down since many days.
Here's how i would package the application in an EAR:
| m3z-miami.ear
| |
| |--- META-INF
| | |
| | |--- application.xml
| | |
| | |--- jboss-app.xml
| |
| |
| |--- miami-ejb.jar
| | |
| | |--- META-INF
| | | |
| | | |--- ejb-jar.xml
| | |
| | |
| | |--- [the ejb related classes]
| |
| |
| |--- MyApp.war (if you have any war files)
| | |
| | |--- WEB-INF
| | | |
| | | |--- classes
|
|
The application.xml, in the META-INF folder of the EAR, would then look like:
<?xml version="1.0" encoding="UTF-8"?>
|
| <application>
| <display-name>miami</display-name>
|
| <module>
| <ejb>miami-ejb.jar</ejb>
| </module>
|
| <!-- If any WAR files, then map them -->
| <module>
| <web>
| <web-uri>MyApp.war</web-uri>
| <context-root>/MyApp</context-root>
| </web>
| </module>
|
| </application>
|
The jboss-app.xml (for classloading configuration):
| <jboss-app>
|
| <loader-repository>
| miami:loader=MiamiClassloader
| <loader-repository-config>
| java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
|
| </jboss-app>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174007#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...