isso. Em 28 de julho de 2010 21:55, Felipe Costa <[email protected]>escreveu:
> Como vc rodou o projeto? Voce baixou no site e importou ele pelo eclipse > direto? > > Abs > -- > Felipe Costa > Undergraduating in Computer Science at UFRJ > Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on > JavaBlackBelt <http://www.blackbeltfactory.com/ui#User/fcosta> > > > > 2010/7/28 Romulo Freires <[email protected]> > >> Eu só achei uma solução, excluir a linha no zk.xml >> >> <value>comp2web_persistence_unit</value> >> >> no zk.xml, alguém pode me dizer se isso vai causar alguma complicação lá >> frente? >> >> Em 28 de julho de 2010 21:01, Romulo Freires >> <[email protected]>escreveu: >> >> Já que eu não consigo fazer um projeto que funcione o zk e JPA Eu peguei >>> aquele projeto com2web, já que ele já tinha os arquivos de zk e JPA e to >>> refazendo meu projeto nele. >>> >>> mas qualquer vista que elaboro dar esse erro aqui quando eu dou run >>> >>> *type* Exception report >>> >>> *message* ** >>> >>> *description* *The server encountered an internal error () that >>> prevented it from fulfilling this request.* >>> >>> *exception* >>> >>> javax.servlet.ServletException: Servlet execution threw an exception >>> >>> *root cause* >>> >>> java.lang.ExceptionInInitializerError >>> >>> org.zkoss.zkplus.jpa.JpaUtil.createEntityManagerFactory(JpaUtil.java:260) >>> org.zkoss.zkplus.jpa.JpaUtil.initEntityManagerFactory(JpaUtil.java:213) >>> org.zkoss.zkplus.jpa.JpaUtil.createEntityManager(JpaUtil.java:272) >>> org.zkoss.zkplus.jpa.JpaUtil.initEntityManger(JpaUtil.java:232) >>> org.zkoss.zkplus.jpa.JpaUtil.getEntityManager(JpaUtil.java:142) >>> >>> org.zkoss.zkplus.jpa.OpenEntityManagerInViewListener.init(OpenEntityManagerInViewListener.java:72) >>> >>> org.zkoss.zk.ui.util.Configuration.invokeExecutionInits(Configuration.java:817) >>> org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:333) >>> org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:286) >>> >>> org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:237) >>> >>> org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:159) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> >>> *root cause* >>> >>> javax.persistence.PersistenceException: No Persistence provider for >>> EntityManager named comp2web_persistence_unit >>> >>> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54) >>> >>> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32) >>> >>> org.zkoss.zkplus.jpa.JpaUtil.createEntityManagerFactory(JpaUtil.java:252) >>> org.zkoss.zkplus.jpa.JpaUtil.initEntityManagerFactory(JpaUtil.java:213) >>> org.zkoss.zkplus.jpa.JpaUtil.createEntityManager(JpaUtil.java:272) >>> org.zkoss.zkplus.jpa.JpaUtil.initEntityManger(JpaUtil.java:232) >>> org.zkoss.zkplus.jpa.JpaUtil.getEntityManager(JpaUtil.java:142) >>> >>> org.zkoss.zkplus.jpa.OpenEntityManagerInViewListener.init(OpenEntityManagerInViewListener.java:72) >>> >>> org.zkoss.zk.ui.util.Configuration.invokeExecutionInits(Configuration.java:817) >>> org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:333) >>> org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:286) >>> >>> org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:237) >>> >>> org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:159) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> >>> >>> Alguém sabe resolver? >>> >>> Em 28 de julho de 2010 15:42, Felipe Costa >>> <[email protected]>escreveu: >>> >>> Lembrando que com o ZK, voce pode usar a classe JPAUtil pra pegar o >>>> EntityManager. >>>> Voce não vão precisar pegar o EntityManagerFactory e nem usar >>>> transacation, desde que tudo esteja configurado no zk.xml. ;-) >>>> >>>> >>>> Abs >>>> -- >>>> Felipe Costa >>>> Undergraduating in Computer Science at UFRJ >>>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on >>>> JavaBlackBelt <http://www.blackbeltfactory.com/ui#User/fcosta> >>>> >>>> >>>> >>>> 2010/7/28 Romulo Freires <[email protected]> >>>> >>>>> vlw felipe >>>>> >>>>> Em 28 de julho de 2010 15:17, Felipe Costa <[email protected] >>>>> > escreveu: >>>>> >>>>> Voce vai criar o projeto em ZK normalmente. >>>>>> Na pasta src voce vai colocar o o arquivo persistence.xml na pasta >>>>>> META-INF e log.xml(ou algo assim). >>>>>> Depois disso voce vai ter que configurar zk.xml pra usar o JPA. Dá uma >>>>>> olhada no projeto que tá no site, lá ta tudo configurado! >>>>>> >>>>>> Abs >>>>>> -- >>>>>> Felipe Costa >>>>>> Undergraduating in Computer Science at UFRJ >>>>>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on >>>>>> JavaBlackBelt <http://www.blackbeltfactory.com/ui#User/fcosta> >>>>>> >>>>>> >>>>>> >>>>>> 2010/7/28 Peter P. Lupo <[email protected]> >>>>>> >>>>>> Parte do exemplo do Felipe que tem tudo. ;-) >>>>>>> >>>>>>> Depois eu posso explicar como faz pra criar do zero, mas agora não >>>>>>> dá. Tô de saída. >>>>>>> >>>>>>> Abraço >>>>>>> >>>>>>> Peter P. Lupo >>>>>>> http://craftnicely.blogspot.com - >>>>>>> http://sites.google.com/site/pplupo >>>>>>> <http://sites.google.com/site/pplupo>MPS.BR Authorized >>>>>>> Implementation >>>>>>> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>- >>>>>>> Certified >>>>>>> ScrumMaster<http://www.scrumalliance.org/pages/certified_scrummaster> >>>>>>> <http://www.scrumalliance.org/pages/certified_scrummaster>Sun >>>>>>> Certified Java >>>>>>> Associate<http://www.sun.com/training/certification/java/scja.xml>- Java >>>>>>> Black Belt <http://www.blackbeltfactory.com/ui#%21User/pplupo> >>>>>>> <http://www.blackbeltfactory.com/ui#%21User/pplupo>+55 (021) >>>>>>> 81742487 >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2010/7/28 Romulo Freires <[email protected]> >>>>>>> >>>>>>> Agora eu to con dificuldade em ter um projeto zk e que também tenha >>>>>>>> os arquivos do jpa. >>>>>>>> >>>>>>>> O eclipse dar a opção de criar um zk projeto e também JPA projeto, >>>>>>>> mas é um ou outro. >>>>>>>> >>>>>>>> Quando eu levo o modelo e o controlador para o projeto zk, nada de >>>>>>>> JPA é reconhecido. >>>>>>>> >>>>>>>> Alguém tem uma solução? >>>>>>>> >>>>>>>> :) não consegui sair nem desta parte simples ^^ >>>>>>>> >>>>>>>> Em 28 de julho de 2010 08:47, Romulo Freires < >>>>>>>> [email protected]> escreveu: >>>>>>>> >>>>>>>> vlw >>>>>>>>> >>>>>>>>> Em 27 de julho de 2010 22:59, Felipe Costa < >>>>>>>>> [email protected]> escreveu: >>>>>>>>> >>>>>>>>> Esse "alguma coisa" é o nome do projeto. Voce pode ver isso no >>>>>>>>>> arquivo web.xml, no começo dele tem o nome do projeto. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Abs >>>>>>>>>> -- >>>>>>>>>> Felipe Costa >>>>>>>>>> Undergraduating in Computer Science at UFRJ >>>>>>>>>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on >>>>>>>>>> JavaBlackBelt <http://www.blackbeltfactory.com/ui#User/fcosta> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 2010/7/27 Romulo Freires <[email protected]> >>>>>>>>>> >>>>>>>>>>> eu já configurei, agora eu quero ver um projeto(vista) na web >>>>>>>>>>> , acho que tinha algo do tipo http://localhost:8080/algumacoisana >>>>>>>>>>> aula de zk >>>>>>>>>>> >>>>>>>>>>> to tentado ver aquele "primeiros passos" que você colocou no >>>>>>>>>>> site. >>>>>>>>>>> Em 27 de julho de 2010 19:05, Felipe Costa < >>>>>>>>>>> [email protected]> escreveu: >>>>>>>>>>> >>>>>>>>>>> Dá uma olhada no slide, eu coloquei um passo a passo lá pra essa >>>>>>>>>>>> parte de configuração. >>>>>>>>>>>> >>>>>>>>>>>> Abs >>>>>>>>>>>> -- >>>>>>>>>>>> Felipe Costa >>>>>>>>>>>> Undergraduating in Computer Science at UFRJ >>>>>>>>>>>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on >>>>>>>>>>>> JavaBlackBelt <http://www.blackbeltfactory.com/ui#User/fcosta> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> 2010/7/27 Romulo Freires <[email protected]> >>>>>>>>>>>> >>>>>>>>>>>>> Felipe >>>>>>>>>>>>> >>>>>>>>>>>>> Eu já instalei o tomcat 6, agora o que falta fazer? >>>>>>>>>>>>> >>>>>>>>>>>>> E como eu vejo um projeto na web? >>>>>>>>>>>>> >>>>>>>>>>>>> Estou dando run nos exemplo do site. >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>>>> Google Groups "Comp 2 - Geral" group. >>>>>>>>>>>>> To post to this group, send email to >>>>>>>>>>>>> [email protected]. >>>>>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>>>>> [email protected]<comp2-geral%[email protected]> >>>>>>>>>>>>> . >>>>>>>>>>>>> For more options, visit this group at >>>>>>>>>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>>> Google Groups "Comp 2 - Geral" group. >>>>>>>>>>>> To post to this group, send email to >>>>>>>>>>>> [email protected]. >>>>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>>>> [email protected]<comp2-geral%[email protected]> >>>>>>>>>>>> . >>>>>>>>>>>> For more options, visit this group at >>>>>>>>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>> Google Groups "Comp 2 - Geral" group. >>>>>>>>>>> To post to this group, send email to >>>>>>>>>>> [email protected]. >>>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>>> [email protected]<comp2-geral%[email protected]> >>>>>>>>>>> . >>>>>>>>>>> For more options, visit this group at >>>>>>>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>>> Groups "Comp 2 - Geral" group. >>>>>>>>>> To post to this group, send email to [email protected] >>>>>>>>>> . >>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>> [email protected]<comp2-geral%[email protected]> >>>>>>>>>> . >>>>>>>>>> For more options, visit this group at >>>>>>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "Comp 2 - Geral" group. >>>>>>>> To post to this group, send email to [email protected]. >>>>>>>> To unsubscribe from this group, send email to >>>>>>>> [email protected]<comp2-geral%[email protected]> >>>>>>>> . >>>>>>>> For more options, visit this group at >>>>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "Comp 2 - Geral" group. >>>>>>> To post to this group, send email to [email protected]. >>>>>>> To unsubscribe from this group, send email to >>>>>>> [email protected]<comp2-geral%[email protected]> >>>>>>> . >>>>>>> For more options, visit this group at >>>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Comp 2 - Geral" group. >>>>>> To post to this group, send email to [email protected]. >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected]<comp2-geral%[email protected]> >>>>>> . >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Comp 2 - Geral" group. >>>>> To post to this group, send email to [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]<comp2-geral%[email protected]> >>>>> . >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/comp2-geral?hl=en. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Comp 2 - Geral" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]<comp2-geral%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/comp2-geral?hl=en. >>>> >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Comp 2 - Geral" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<comp2-geral%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/comp2-geral?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Comp 2 - Geral" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<comp2-geral%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/comp2-geral?hl=en. > -- You received this message because you are subscribed to the Google Groups "Comp 2 - Geral" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/comp2-geral?hl=en.
