Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss 5 As deployment exception

 
Sham Beri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sham Beri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jboss.xml but I could not find any missing or testing tags
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My jboss.xml is as below






I do not have <enterprise-bean> tag
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic