Dúvida Curso: Loja Virtual completa com JavaEE e JavaSE
Olá boa tarde estou fazendo o curso Loja Virtual completa com JavaEE e JavaSE estou na aula 6 e estou obtendo o seguinte erro abaixo quanto tento fazer deploy da aplicação dei uma pesquisada na Net mais não consegui identificar o porque, também já revisei as aulas de 01 a 06 e ainda não consegui identificar onde estou errando:
Deployment localizado em D:\Java\Projetos Netbeans\Curso Loja Virtual JavaEE and JavaSE\EcommerceDevemida\build\web Initializing... deploy?DEFAULT=D:\Java\Projetos Netbeans\Curso Loja Virtual JavaEE and JavaSE\EcommerceDevemida\build\web&name=EcommerceDevemida&force=true falhou em GlassFish Server 3.1 Erro durante a implementação: Exception while preparing the app : Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [EcommerceDevemidaPU] failed. Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ValidationException Exception Description: The reference column name [id] mapped on the element [field creditCard] does not correspond to a valid field on the mapping reference.. Consulte o server.log para obter mais detalhes D:\Java\Projetos Netbeans\Curso Loja Virtual JavaEE and JavaSE\EcommerceDevemida\nbproject\build-impl.xml:722: O módulo não foi implementado. 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.GeneratedMethodAccessor320.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:613) 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) FALHA NA CONSTRUÇÃO (tempo total: 4 segundos)
Rogério Martins
Curtidas 0
Respostas
Robson Teixeira
30/10/2011
Verifique se na hora de dar clean e build se o glassfish esta parado pois as vezes o netbeans naum consegue dar clean e build se o glassfish estiver rodando.
att
robson
att
robson
GOSTEI 0
Luciano Martins
30/10/2011
olá boa tarde estou fazendo o curso loja virtual completa com javaee e javase estou na aula 6 e estou obtendo o seguinte erro abaixo quanto tento fazer deploy da aplicação dei uma pesquisada na net mais não consegui identificar o porque, também já revisei as aulas de 01 a 06 e ainda não consegui identificar onde estou errando:
deployment localizado em d:\java\projetos netbeans\curso loja virtual javaee and javase\ecommercedevemida\build\web
initializing...
deploy?default=d:\java\projetos netbeans\curso loja virtual javaee and javase\ecommercedevemida\build\web&name=ecommercedevemida&force=true falhou em glassfish server 3.1
erro durante a implementação: exception while preparing the app : exception [eclipselink-28018] (eclipse persistence services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.entitymanagersetupexception
exception description: predeployment of persistenceunit [ecommercedevemidapu] failed.
internal exception: exception [eclipselink-7333] (eclipse persistence services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.validationexception
exception description: the reference column name [id] mapped on the element [field creditcard] does not correspond to a valid field on the mapping reference.. consulte o server.log para obter mais detalhes
d:\java\projetos netbeans\curso loja virtual javaee and javase\ecommercedevemida\nbproject\build-impl.xml:722:
o módulo não foi implementado.
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.generatedmethodaccessor320.invoke(unknown source)
at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
at java.lang.reflect.method.invoke(method.java:613)
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)
falha na construção (tempo total: 4 segundos)
verifique o nome dos campos se estão iguais no mapeamento pq o erro é esse
deployment localizado em d:\java\projetos netbeans\curso loja virtual javaee and javase\ecommercedevemida\build\web
initializing...
deploy?default=d:\java\projetos netbeans\curso loja virtual javaee and javase\ecommercedevemida\build\web&name=ecommercedevemida&force=true falhou em glassfish server 3.1
erro durante a implementação: exception while preparing the app : exception [eclipselink-28018] (eclipse persistence services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.entitymanagersetupexception
exception description: predeployment of persistenceunit [ecommercedevemidapu] failed.
internal exception: exception [eclipselink-7333] (eclipse persistence services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.validationexception
exception description: the reference column name [id] mapped on the element [field creditcard] does not correspond to a valid field on the mapping reference.. consulte o server.log para obter mais detalhes
d:\java\projetos netbeans\curso loja virtual javaee and javase\ecommercedevemida\nbproject\build-impl.xml:722:
o módulo não foi implementado.
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.generatedmethodaccessor320.invoke(unknown source)
at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
at java.lang.reflect.method.invoke(method.java:613)
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)
falha na construção (tempo total: 4 segundos)
GOSTEI 0
Rogério Martins
30/10/2011
Galera eu paro o GlassFish, limpo e contruo o projeto, e mando implantar e o mesmo erro acontece a cada tentativa, porém, cada vez com uma entity diferente revi todas as aulas namente e conferi o codigo e os relacionamentos estão exatamente iguais ao das video aulas, alguem tem mais alguma dica?
GOSTEI 0
Wanderson Pimenta
30/10/2011
Estou passando pelo mesmo problema.
Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The reference column name [id] mapped on the element [field sell] does not correspond to a valid field on the mapping reference.. Consulte o server.log para obter mais detalhes
Usando Netbeans 7.0.1
Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The reference column name [id] mapped on the element [field sell] does not correspond to a valid field on the mapping reference.. Consulte o server.log para obter mais detalhes
Usando Netbeans 7.0.1
GOSTEI 0
Wanderson Pimenta
30/10/2011
Resolvi meu problema mudando a declaração da propriedade id;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name=id)
@Basic(optional=false)
private Integer id;
GOSTEI 0
Dyego Carmo
30/10/2011
Resolvido o problema ?
Qualquer coisa estou a disposição :)
Se sim , poderia fechar o chamado ?
Qualquer coisa estou a disposição :)
Se sim , poderia fechar o chamado ?
GOSTEI 0
Rogério Martins
30/10/2011
Resolvido conforme demostrado pelo Wanderson Divino Pimenta. Realmente faltava a propriedade name das anotações @Column das chaves primárias
Pode Fechar o Post! Obrigado galera...
@Column (name=id)
Pode Fechar o Post! Obrigado galera...
GOSTEI 0