This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Jboss 5 As deployment exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss 5 As deployment exception" Watch "Jboss 5 As deployment exception" New topic
Author

Jboss 5 As deployment exception

Sham Beri
Greenhorn

Joined: Sep 12, 2011
Posts: 4
I am getting the following error when I deploy ejb2.0 in jboss 5.0. Please sugg


DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/Program%20Files/jboss-5.1.0.GA/server/default/deploy/peptide.war/" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: {http://www.jboss.com/xml/ns/javaee}enterprise-bean cannot appear in this position. Expected content of {http://www.jboss.com/xml/ns/javaee}jboss is unordered_sequence: {http://www.jboss.com/xml/ns/javaee}missing-method-permissions-excluded-mode? {http://www.jboss.com/xml/ns/javaee}jacc-context-id? {http://www.jboss.com/xml/ns/javaee}security-domain? {http://www.jboss.com/xml/ns/javaee}exception-on-rollback? {http://www.jboss.com/xml/ns/javaee}enterprise-beans* {http://www.jboss.com/xml/ns/javaee}assembly-descriptor? {http://www.jboss.com/xml/ns/javaee}loader-repository? {http://www.jboss.com/xml/ns/javaee}jndi-binding-policy? {http://www.jboss.com/xml/ns/javaee}enforce-ejb-restrictions? {http://www.jboss.com/xml/ns/javaee}unauthenticated-principal? {http://www.jboss.com/xml/ns/javaee}webservices? {http://www.jboss.com/xml/ns/javaee}resource-managers? {http://www.jboss.com/xml/ns/javaee}jmx-name? {all {http://www.jboss.com/xml/ns/javaee}descriptionGroup}?
Deployment "vfszip:/C:/Program%20Files/jboss-5.1.0.GA/server/default/deploy/aminoacids-ejb.jar/" is in error due to the following reason(s): org.jboss.deployment.DeploymentException: Parameter class not found:
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Looks like your one of your JBoss-specific configuration xml files (possibly jboss-web.xml) is in error. Look for the text "enterprise-bean", according to the error message, that is in the wrong location. I suspect that you forgot to nest enterprise-bean within enterprise-beans.


JBoss In Action
Sham Beri
Greenhorn

Joined: Sep 12, 2011
Posts: 4
I am using jboss.xml but I could not find any missing or testing tags
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Did you do this:
Look for the text "enterprise-bean"

You need to find which of your config files contains this tag, because that tag is in the wrong location.
Sham Beri
Greenhorn

Joined: Sep 12, 2011
Posts: 4
My jboss.xml is as below






I do not have <enterprise-bean> tag
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

Are you sure this is the file, the server is complaining about? The log seems to indicate that the jboss.xml is in some .war file. Note that EJB deployments aren't allowed in .war in JBoss AS5. Make sure that you don't have stale/incorrect jboss.xml somewhere in the deployment.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss 5 As deployment exception
 
Similar Threads
javax.naming.NameNotFoundException: HelloBean not bound
Problem parsing deployment descriptor ejb-jar.xml
EJB 3 and Jboss integration Error
Problem of dependency injection in jboss
Error while deplloying the application on JBoss.