This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Is there something wrong with this .ear archive? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Is there something wrong with this .ear archive?" Watch "Is there something wrong with this .ear archive?" New topic

Is there something wrong with this .ear archive?

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hi guys. I'm having a problem deploying an ear file in JBoss.

application.xml defines the three modules I have in the EAR file (two beans and 1 java -client.jar)
1o.) entity.jar:
It's got the 3 classes needed for this entity bean. Plus the manifest, ejb-jar.xml and JBoss.xml (do I need Jboss.xml in this jar??
my ejb-jar.xml is:

2o.) client.jar
the client is a java class that connects to the session bean. I have an application-client.xml file inside it, which references the session bean. I do not have JBoss.xml in this jar (not quite sure about this...)
3o.) userMgmt.jar
3 java classes that compose the session bean, a manifest, ejb-jar.xml, and jboss.xml (not quite sure if I should place jboss.xml here)
The error I'm getting is the following:

what I understand is that if I have, for example, 3 ejb jar files I should have 3 ejb-jar.xml files,right?
and what about the JBoss.xml?? should it be on the root of my EAR file??
any help is highly appreciated

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
I corrected some errors. I'm using ant and was putting the xml files in a wrong directory. I put them in meta-inf\ and cleaned couple of errors. Now I'm only getting this one:

my application-client.xml is:

any ideas??
hithesh gazzala

Joined: Jan 06, 2004
Posts: 2
did u happen to fix the problem for this,i so pleaze help me out
norman richards
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
You should post your application.xml.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Is there something wrong with this .ear archive?
It's not a secret anymore!