Two Laptop Bag*
The moose likes JBoss/WildFly and the fly likes java.lang.NoSuchMethodError: org.jboss.metadata.ear.jboss.JBossAppMetaData.getModuleOrderEnum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.NoSuchMethodError: org.jboss.metadata.ear.jboss.JBossAppMetaData.getModuleOrderEnum" Watch "java.lang.NoSuchMethodError: org.jboss.metadata.ear.jboss.JBossAppMetaData.getModuleOrderEnum" New topic
Author

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

Ashutosh Sh
Greenhorn

Joined: Sep 19, 2013
Posts: 9
HI,

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

Can some please help..
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9941
    
159

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)

[My Blog] [JavaRanch Journal]
Ashutosh Sh
Greenhorn

Joined: Sep 19, 2013
Posts: 9
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
Marshal

Joined: Jul 20, 2005
Posts: 9941
    
159


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

Joined: Sep 19, 2013
Posts: 9
HI Jaikiran,

Below is the contant of jboss-app.xml

Ashutosh Sh
Greenhorn

Joined: Sep 19, 2013
Posts: 9
And application.xml


Ashutosh Sh
Greenhorn

Joined: Sep 19, 2013
Posts: 9

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
Marshal

Joined: Jul 20, 2005
Posts: 9941
    
159

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

Joined: Sep 19, 2013
Posts: 9
Hi,

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


Ashutosh Sh
Greenhorn

Joined: Sep 19, 2013
Posts: 9
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

Joined: Sep 19, 2013
Posts: 9
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoSuchMethodError: org.jboss.metadata.ear.jboss.JBossAppMetaData.getModuleOrderEnum
 
Similar Threads
Exception in Jboss
Deployment error in jboss5.1.0
High Java.exe CPU usage after JBoss service install
Error While deploying EAR application
JBoss 5.1.0 won't start as a service but will do so when you run it from the command prompt