Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6381377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:23:14+00:00 2026-05-25T02:23:14+00:00

I am trying to deploy my J2EE application. In my app, I used CMP

  • 0

I am trying to deploy my J2EE application. In my app, I used CMP so there is a need of jbosscmp-jdbc.xml file. Howerver, when I tried to deploy my app in the Jboss, I got the follwing exception:

 org.jboss.deployment.DeploymentException: Invalid XML:....
!/META-INF/jbosscmp-jdbc.xml; - nested throwable:
    ....
    The content of element type "entity" must match "(ejb-name,datasource?,datasource-mapping?,create-table?,remove-table?,post-table-create?,read-only?,read-time-out?,row-locking?,pk-constraint?,read-ahead?,list-cache-max?,clean-read-ahead-on-load?,fetch-size?,table-name?,cmp-field*,load-groups?,eager-load-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?,optimistic-locking?,audit?)".)
    .......
    Caused by: org.xml.sax.SAXParseException: The content of element type "entity" must match "....

Here is the content of jbosscmp-jdbc.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jbosscmp-jdbc PUBLIC
"-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd" >

<jbosscmp-jdbc>
    <defaults>
        <datasource>Java:/BeansDemoDB</datasource>
        <datasource-mapping>MS SQLSERVER</datasource-mapping>
        <create-table>false</create-table>
    </defaults>
    <enterprise-beans>
        <entity>
            <ejb-name>TUsers</ejb-name>
            <table-name>T_Users</table-name>
            <cmp-field>
                <field-name>username</field-name>
                <column-name>username</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>password</field-name>
                <column-name>password</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>role</field-name>
                <column-name>role</column-name>
            </cmp-field>
        </entity>
        <entity>
            <ejb-name>TStudents</ejb-name>
            <table-name>T_Students</table-name>
            <abstract-schema-name>TStudents</abstract-schema-name>
            <cmp-field>
                <field-name>studentID</field-name>
                <column-name>studentID</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>studentName</field-name>
                <column-name>studentName</column-name>
            </cmp-field>
        </entity>
    </enterprise-beans>
</jbosscmp-jdbc>

I have tried to deploy in both Jboss 4 and 5, but got the same error.
Have tried to google this but no luck.
What’s wrong with my jbosscmp-jdbc.xml?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:23:14+00:00Added an answer on May 25, 2026 at 2:23 am

    Found bug in my jbosscmp-jdbc.xml,
    Remove the element: <abstract-schema-name>TStudents</abstract-schema-name> in the entity TStudents.

    Thanks all for reading my question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy my mvc app into my large web application. I have
I am trying to deploy version 0-8-1-SNAPSHOT of my Java application to Google App
Hi I am trying to deploy an application using webstart. I have a requirement
I'm trying to deploy to a slicehost slice using this config/deploy/production.rb file. I'm clueless
i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting
I'm trying to deploy an application on Azure but I'm facing some problems. on
I'm trying to deploy a Sinatra app to Dreamhost and it says the following:
I'm trying to deploy a Java applet on my website. I also need to
I am trying to deploy a Spring application on WAS 6.0 (JDK 1.4.2). Day
I am trying to deploy my Ruby on Rails application on Media Temple. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.