This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Jboss 5 As deployment exception

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using jboss.xml but I could not find any missing or testing tags
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My jboss.xml is as below






I do not have <enterprise-bean> tag
 
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
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic