This discussion is archived
2 Replies Latest reply: Jul 10, 2012 2:19 AM by rukbat RSS

it's fail to depoly application

newbieRyan Newbie
Currently Being Moderated
it may be off-topic, but i don't know where i can post
I wrote a simple app that enter data to DB and populate it in html
however, It can't depoly it. Could you point out the error?

Publishing failed
Could not publish to the server.
Could not publish to the server.
cannot Deploy BookWeb
Deployment Error for module: BookWeb: Error occurred during deployment: Exception while deploying the app [BookWeb] : org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 15; Deployment descriptor file META-INF/persistence.xml in archive [classes]. cvc-complex-type.2.4.a: Invalid content was found starting with element 'Properties'. One of '{"":class, "":exclude-unlisted-classes, "":shared-cache-mode, "":validation-mode, "":properties}' is expected.. Please see server.log for more details.

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=""

<persistence-unit name="chapter10PU" transaction-type="JTA">
<Property name="eclipselink.ddl-generation" value="create-tables"/>
<Property name="eclipselink.logging.level" value="INFO"/>
  • 1. Re: it's fail to depoly application
    gimbal2 Guru
    Currently Being Moderated
    Since you're configuring JTA I'm guessing this is going to be deployed on some form of application server, so the Enterprise Javabeans forum would have been a closer fit. But when you're not sure play it safe: post in Java programming. Also when posting any type of code, put it between \
     tags to make it readable.
    As for the error, the message itself already points out what is the problem. You are putting Properties (upper case) and properties (lowercase) is expected. You'd better learn to read and interpret error messages AND be precise when you want to further your career as a programmer, in this rare case the error message is even nice enough to mention what is expected so you don't have to do any guesswork or research, normally you don't have that luxury.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
  • 2. Re: it's fail to depoly application
    rukbat Guru Moderator
    Currently Being Moderated
    it may be off-topic, but i don't know where i can post
    Post has now been moved from the JDBC forum to the EJB forum for topic alignment.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points