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

META-INF/application.xml

 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi all.

I am trying a EJB application using JBOSS server and Eclipse IDE.
Following all the instruction from http://www.devx.com/Java/Article/21065/0/page/1.
I created XDOCLET configuration and Package Configuratio which was successful.Finally when i started by server ,it gives me the following error.


The i googled my error.I got some links that give some solution for this problem but it is not solving mine.

When i unzipped my ear file.

Name ........... Path
MANIFEST.MF ............ META-INF\
application.xml........... application.xml\

Whether there should be some other files also when in unzip my EAR file.
Any hint or help will be really useful.

Thanks
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Did you follow the procedure explained here :
http://www.devx.com/Java/Article/21065/0/page/6

It clearly says :
2. Right click on Stock.ear and choose Add File. Click Project Folder, and select application.xml under the /META-INF directory. In the Prefix, type: META-INF, and click OK.

Please try to rebuild your EAR from the beginning, by following the procedure described in the article.
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This is how my package configuration looks

Stock.ear
/MyStrutsEJB/META-INF/application.xml->application.xml

I read this from one forum.
when I unzip and rezip it with power archiever it works great! ( strange!!! ) Is power archiver magical and better than jar.exe???

I dont know what they mean by this.
I also tried to unzip by ear and rezipped by ear....but i was not lucky.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by meena latha:
Hi all.

I am trying a EJB application using JBOSS server and Eclipse IDE.
Following all the instruction from http://www.devx.com/Java/Article/21065/0/page/1.
I created XDOCLET configuration and Package Configuratio which was successful.Finally when i started by server ,it gives me the following error.


The i googled my error.I got some links that give some solution for this problem but it is not solving mine.

When i unzipped my ear file.

Name ........... Path
MANIFEST.MF ............ META-INF\
application.xml........... application.xml\

Whether there should be some other files also when in unzip my EAR file.
Any hint or help will be really useful.

Thanks





hi,
i'm suffering from same problem, so if u got the solution, then, plz send it to me at my id :- nikhil_manish@yahoo.co.in
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
<<Name ........... Path
MANIFEST.MF ............ META-INF\
application.xml........... application.xml\
>>

The application.xml should be under folder meta-inf, in which case .ear will appear as:
MANIFEST.MF ............ META-INF\
application.xml........... META-INF\


Padma
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello,

I've had the same error and, after some research, I've solved the problem by using the "ear" ant task instead of "jar" when building my application's ear.
It works just fine.

Here's an example:

<target name="ear" description="creates the EAR" depends="clean,compile,lib,ejb,war">
<copyfile dest="${target}\application.xml" src=".\${project.distname}\src\application.xml"/>
<ear
destfile="${target}/${project.distname}.ear"
appxml="${target}\application.xml">
<fileset dir="${target}">
<exclude name="*.xml,*.class"/>
</fileset>
</ear>
</target>

Regards,
Dan
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Dan, welcome to Java Ranch.

Please do not wake the zombies. Instead, ask your question in a new post.
 
    Bookmark Topic Watch Topic
  • New Topic