File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 5836
    
    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: 5836
    
    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: 10201
    
166

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