1 Reply Latest reply: Jan 4, 2012 8:42 PM by rp0428 RSS

    Java EE SDK | JavaEE6Tutorial example's "order" example, deploy exception

    895797
      i'm running on JavaEE6Tutorial example's "order" example, it's directory -> glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order

      when i run this example on Netbeans 7.0.1 in normally way, but this errors occure ;

      init:
      deps-module-jar:
      deps-ear-jar:
      deps-jar:
      library-inclusion-in-archive:
      library-inclusion-in-manifest:
      compile:
      compile-jsps:
      In-place deployment at C:\Program Files (x86)\glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order\build\web
      Initializing...
      deploy?DEFAULT=C:\Program Files (x86)\glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order\build\web&name=order&force=true failed on GlassFish Server 3.x
      Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [order] failed.
      Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.ValidationException
      Exception Description: The reference column name [REVISION] mapped on the element [class order.entity.Part] does not correspond to a valid field on the mapping reference.. Please see server.log for more details.
      C:\Program Files (x86)\glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order\nbproject\build-impl.xml:721:
      The module has not been deployed.
           at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
           at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
           at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
           at org.apache.tools.ant.Task.perform(Task.java:348)
           at org.apache.tools.ant.Target.execute(Target.java:390)
           at org.apache.tools.ant.Target.performTasks(Target.java:411)
           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
           at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
           at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
           at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
           at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
      BUILD FAILED (total time: 1 second)

      what's the problem and then solution about this issue?