This discussion is archived
0 Replies Latest reply: Jul 8, 2012 10:59 PM by newbieRyan RSS

having problem depolying app in glassfish

newbieRyan Newbie
Currently Being Moderated
I wrote a simple app that enter data to DB and populate it in html
however, I can 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"/>


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