• 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

java.lang.NoSuchMethodError: org.jboss.metadata.ear.jboss.JBossAppMetaData.getModuleOrderEnum

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

I am upgrading jboss version to 5.1 and while deploying my ear getting following error:

Can some please help..
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ashutosh, welcome to the forums!

It looks like there some jar mismatch. Are you packaging any JBoss specific jars within your application?

By the way, JBoss AS 5.1 is very old and is no longer being maintained and it had numerous bugs too. You might want to try the latest released versions from here http://wildfly.org/download/ (Note that JBoss AS has been renamed to WildFly)
 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi jaikiran,

Thanks for reply. Its org decision to upgrade to 5.1 now then to later versions.

I realised that jboss-metadata jar was missing, after i downloaded jboss-metadata-1.0.0.Beta6.jar and copied under LIB, error has changed.

[/code]



 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I realised that jboss-metadata jar was missing, after i downloaded jboss-metadata-1.0.0.Beta6.jar and copied under LIB, error has changed.



You don't have to download additional jars to have the AS functional. If you had to do that, then it might be a sign that you don't have a clean JBoss AS installation or a proper download.


Caused by: org.jboss.xb.binding.JBossXBRuntimeException: module-order not found as a child of jboss-app in unordered_sequence: module* security-role* jmx-name? loader-repository? unauthenticated-principal? security-domain? library-directory? version? {all descriptionGroup}?


What does your jboss-app.xml look like? Perhaps you haven't listed the xml elements in the right order (JBoss AS5 is strict when it comes to xml element ordering).
 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Jaikiran,

Below is the contant of jboss-app.xml

 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And application.xml


 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi

I added below at the top of jboss-app.xml



Now the error message has changed a bit :




I was going through jboss-app_5_0.dtd and i think the element module-order in my case is in correct place (it looks to me because of below line, not sure if its or not).


<!ELEMENT jboss-app (module-order?, security-domain?, unauthenticated-principal?,
loader-repository?, jmx-name?, library-directory?, module*, security-role*)>

Do i need to add 'security-role' as well ?




 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Remove that module-order from the jboss-app.xml. The dtd http://anonsvn.jboss.org/repos/jbossas/projects/metadata/ear/trunk/src/main/resources/dtd/jboss-app_5_0.dtd states:

 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Just to update, Removed module-order, now getting below error.
Trying to find what is the issue now.


 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

Read somewhere because i have .war under <Service> tag in jboss-app.xml, i am getting this error. I have removed all .wars from jboss-app.xml and now the error has changed :



 
Ashutosh Sh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

the detailed error message that i getting now is:




I have removed all war modules from my jboss-app.xml because of the error that i was getting previously, content of jboss-app.xml is given below :




CofiSingleton.sar only has one jboss-service.xml and content of it given below :




I read that clustering works diffrently in 5.1 but i am not sure how to make it work. Can someone please help/explain what CofiSingleton.sar is doing in my case and whether i need it or not? And if I dont need it, i will not have anything in jboss-app.xml.

Regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic