-
1. Re: Gavin,Can you tell me how run seam2.0 on tomcat6 ???
michael.yuan Jul 20, 2007 12:21 AM (in response to oncetime2008)To use JPA in Tomcat, you need a JTA transaction manager in JNDI. You need to know how to set it up or use Embeddable JBoss to set it up.
An alternative to JPA is to use plain Hibernate + Seam + JSF on Tomcat 6. You can see an example app in examples/hibernate2 in the Seam distribution. -
2. Re: Gavin,Can you tell me how run seam2.0 on tomcat6 ???
oncetime2008 Jul 20, 2007 3:14 AM (in response to oncetime2008)I can't run it.
Today I waste another day for seam,I don't many time to waste.I just want to say:"I can run jsf+facelets+dynafaces, I can run jpa, why i spend much more time,but i can't run seam."
Before i want to jsf,seam,jpa for my 3 layers javaee program, but now i must find another middleware instead of seam.
Maybe one or two months passed, I will study seam again.But it's not now.I'm a student, and tired. -
3. Re: Gavin,Can you tell me how run seam2.0 on tomcat6 ???
oncetime2008 Jul 20, 2007 3:19 AM (in response to oncetime2008)PS:
I can use JPA with Tomcat.
JPA is a criterion.We can use hibernate,toplink,openjpa as ejb persistence provider. -
4. Re: Gavin,Can you tell me how run seam2.0 on tomcat6 ???
kiekie96 Jul 20, 2007 4:04 AM (in response to oncetime2008)I also cannot run Seam2.0 ... i already develope application using seam 1.2.1 with tomcat 5 and have no problem at all.
I tried to run Seam2.0 registration example in tomcat 5 and 6 .. always get error
INFO: Welcome to Seam 2.0.0.BETA1
Jul 20, 2007 3:02:07 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 20, 2007 3:02:07 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jboss-seam-registration] startup failed due to previous errors
Is there anything i missed ? *weird* -
5. Re: Gavin,Can you tell me how run seam2.0 on tomcat6 ???
smokingapipe Jul 20, 2007 5:27 AM (in response to oncetime2008)I haven't tried running Seam outside of JBoss (ie in standalone) and I haven't yet tried Seam 2. I'll try Seam 1.21 in standalone with EJB3 embedded at some point. It would be quite useful to get that working. Sometimes I really want to use the neat features of Seam and EJB3 without installing a full JBoss.
-
6. Re: Gavin,Can you tell me how run seam2.0 on tomcat6 ???
michael.yuan Jul 20, 2007 9:22 AM (in response to oncetime2008)You tried examples/hibernate2 and it did not work? It works for me on both tomcat 5.5 and tomcat 6. Read the readme.txt file for how to setup the JNDI data source.
Yes, you can run JPA in plain Tomcat but not with Seam. Seam requires the JTA transaction manager for JPA. You need to install embeddeable JBoss to use Seam + JPA on Tomcat.