Seam 2.2.0GA + JBoss AS 5.1GA + Postgres 8.4
rgoytacaz Aug 30, 2009 8:43 AMHello Seam users,
I've been trying unsuccessfully to get started with this configuration, but I've been facing countless problems.
Iḿ in deeply need of help, if you have some experience please hang in there. It seems like a big wall of text, but its mostly logs from the whole process.
Basically I started by downloading and installing, Seam 2.2.0GA, AS 5.1GA, Postgres 8.4. I'm using JDK 1.6.
*First I ran ./seam setup, this is my ~/progs/seam2.2.0ga/seam-gen/build.properties*
Generated by seam setup
Sat Aug 29 19:12:18 BRT 2009
hibernate.connection.password=abc123
workspace.home=/home/rgoytacaz/workspace
hibernate.connection.dataSource_class=org.postgresql.ds.PGConnectionPoolDataSource
model.package=com.atom.Commerce.model
hibernate.default_catalog=PostgreSQL
driver.jar=/home/rgoytacaz/postgresql-8.4-701.jdbc4.jar
action.package=com.atom.Commerce.action
test.package=com.atom.Commerce.test
database.type=postgres
richfaces.skin=glassX
glassfish.domain=domain1
hibernate.default_schema=Core
database.drop=n
project.name=Commerce
hibernate.connection.username=postgres
glassfish.home=C\:/Program Files/glassfish-v2.1
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
jboss.domain=default
project.type=ear
icefaces.home=
database.exists=y
jboss.home=/srv/jboss-5.1.0.GA
driver.license.jar=
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.url=jdbc\:postgresql\:Atom
icefaces=n
*And ./seam create-project output*
SEAM_HOME: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA
Using seam-gen sources from: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen
Buildfile: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen/build.xml
init:
init-properties:
[echo] /srv/jboss-5.1.0.GA
validate-workspace:
validate-project:
icefaces-staging-copy:
initcopy:
initpoms:
[echo] Setting up dependencies
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[artifact:install] [INFO] Installing /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms/root.pom to /home/rgoytacaz/.m2/repository/org/jboss/seam/root/2.2.0.GA/root-2.2.0.GA.pom
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[artifact:install] [INFO] Installing /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms/parent.pom to /home/rgoytacaz/.m2/repository/org/jboss/seam/parent/2.2.0.GA/parent-2.2.0.GA.pom
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
copyseam:
copyseamdependencies:
copyjbossembedded:
copy-icefaces-home:
copy-icefaces-maven:
copy-lib:
[echo] Copying Seam and dependencies to the /home/rgoytacaz/workspace/Commerce/lib directory...
[copy] Copying 141 files to /home/rgoytacaz/workspace/Commerce/lib
[echo] Copying JBoss Embedded configuration to the /home/rgoytacaz/workspace/Commerce/bootstrap directory...
[copy] Copying 30 files to /home/rgoytacaz/workspace/Commerce/bootstrap
file-copy-war:
file-copy-ear:
[echo] Copying build scripts for EAR deployment to the /home/rgoytacaz/workspace/Commerce directory...
[copy] Copying 1 file to /home/rgoytacaz/workspace/Commerce
[echo] Copying resources needed for EAR deployment to the /home/rgoytacaz/workspace/Commerce/resources directory...
setup-filters:
file-copy:
create-project:
[echo] A new Seam project named 'Commerce' was created in the /home/rgoytacaz/workspace directory
[echo] Type './seam explode' and go to http://localhost:8080/Commerce
[echo] Eclipse Users: Import the project using File > Import... > Existing Projects into Workspace, set the root directory to /home/rgoytacaz/workspace, then select the project named Commerce
[echo] NetBeans Users: Open the project using File > Open project... and select the project folder /home/rgoytacaz/workspace/Commerce
[echo] IDEA Users: Open the project using File > Open project... and select the file /home/rgoytacaz/workspace/Commerce/Commerce.ipr
*Now this when the problems started, I already have 3 tables in postgres. When I run ./seam generate-entities, this is my output.*
SEAM_HOME: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA
Using seam-gen sources from: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen
Buildfile: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen/build.xml
init:
init-properties:
[echo] /srv/jboss-5.1.0.GA
validate-workspace:
validate-project:
init-generate:
generate-model:
[echo] Reverse engineering database using JDBC driver /home/rgoytacaz/postgresql-8.4-701.jdbc4.jar
[echo] project=/home/rgoytacaz/workspace/Commerce
[echo] model=com.atom.Commerce.model
*[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)
[hibernate] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
[hibernate] log4j:WARN Please initialize the log4j system properly.
[javaformatter] Java formatting of 4 files completed. Skipped 0 file(s).
*
generate-ui:
[echo] Building project 'Commerce' to generate views and controllers
init:
groovy.compile:
groovy.copy:
compile:
[javac] Compiling 4 source files to /home/rgoytacaz/workspace/Commerce/exploded-archives/Commerce.ear/Commerce_jar
copyclasses:
jar:
[hibernate] Executing Hibernate Tool with a JPA Configuration
[hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
[hibernate] 3. task: generic exportertemplate: view/view.page.xml.ftl
[hibernate] 4. task: generic exportertemplate: view/edit.xhtml.ftl
[hibernate] 5. task: generic exportertemplate: view/edit.page.xml.ftl
[hibernate] 6. task: generic exportertemplate: src/EntityList.java.ftl
[hibernate] 7. task: generic exportertemplate: view/list.page.xml.ftl
[hibernate] 8. task: generic exportertemplate: src/EntityHome.java.ftl
[hibernate] 9. task: generic exportertemplate: view/layout/menu.xhtml.ftl
[javaformatter] Java formatting of 8 files completed. Skipped 0 file(s).
[echo] Type './seam restart' and go to http://localhost:8080/Commerce
generate:
generate-entities:
BUILD SUCCESSFUL
Total time: 12 seconds
*Log4j is showing that appender error, what is that?How to fix it?*
I've been trying unsuccessfully to get started with this configuration, but I've been facing countless problems.
Iḿ in deeply need of help, if you have some experience please hang in there. It seems like a big wall of text, but its mostly logs from the whole process.
Basically I started by downloading and installing, Seam 2.2.0GA, AS 5.1GA, Postgres 8.4. I'm using JDK 1.6.
*First I ran ./seam setup, this is my ~/progs/seam2.2.0ga/seam-gen/build.properties*
Generated by seam setup
Sat Aug 29 19:12:18 BRT 2009
hibernate.connection.password=abc123
workspace.home=/home/rgoytacaz/workspace
hibernate.connection.dataSource_class=org.postgresql.ds.PGConnectionPoolDataSource
model.package=com.atom.Commerce.model
hibernate.default_catalog=PostgreSQL
driver.jar=/home/rgoytacaz/postgresql-8.4-701.jdbc4.jar
action.package=com.atom.Commerce.action
test.package=com.atom.Commerce.test
database.type=postgres
richfaces.skin=glassX
glassfish.domain=domain1
hibernate.default_schema=Core
database.drop=n
project.name=Commerce
hibernate.connection.username=postgres
glassfish.home=C\:/Program Files/glassfish-v2.1
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
jboss.domain=default
project.type=ear
icefaces.home=
database.exists=y
jboss.home=/srv/jboss-5.1.0.GA
driver.license.jar=
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.url=jdbc\:postgresql\:Atom
icefaces=n
*And ./seam create-project output*
SEAM_HOME: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA
Using seam-gen sources from: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen
Buildfile: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen/build.xml
init:
init-properties:
[echo] /srv/jboss-5.1.0.GA
validate-workspace:
validate-project:
icefaces-staging-copy:
initcopy:
initpoms:
[echo] Setting up dependencies
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[artifact:install] [INFO] Installing /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms/root.pom to /home/rgoytacaz/.m2/repository/org/jboss/seam/root/2.2.0.GA/root-2.2.0.GA.pom
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[artifact:install] [INFO] Installing /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms/parent.pom to /home/rgoytacaz/.m2/repository/org/jboss/seam/parent/2.2.0.GA/parent-2.2.0.GA.pom
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
[copy] Copying 1 file to /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/classes/poms
copyseam:
copyseamdependencies:
copyjbossembedded:
copy-icefaces-home:
copy-icefaces-maven:
copy-lib:
[echo] Copying Seam and dependencies to the /home/rgoytacaz/workspace/Commerce/lib directory...
[copy] Copying 141 files to /home/rgoytacaz/workspace/Commerce/lib
[echo] Copying JBoss Embedded configuration to the /home/rgoytacaz/workspace/Commerce/bootstrap directory...
[copy] Copying 30 files to /home/rgoytacaz/workspace/Commerce/bootstrap
file-copy-war:
file-copy-ear:
[echo] Copying build scripts for EAR deployment to the /home/rgoytacaz/workspace/Commerce directory...
[copy] Copying 1 file to /home/rgoytacaz/workspace/Commerce
[echo] Copying resources needed for EAR deployment to the /home/rgoytacaz/workspace/Commerce/resources directory...
setup-filters:
file-copy:
create-project:
[echo] A new Seam project named 'Commerce' was created in the /home/rgoytacaz/workspace directory
[echo] Type './seam explode' and go to http://localhost:8080/Commerce
[echo] Eclipse Users: Import the project using File > Import... > Existing Projects into Workspace, set the root directory to /home/rgoytacaz/workspace, then select the project named Commerce
[echo] NetBeans Users: Open the project using File > Open project... and select the project folder /home/rgoytacaz/workspace/Commerce
[echo] IDEA Users: Open the project using File > Open project... and select the file /home/rgoytacaz/workspace/Commerce/Commerce.ipr
*Now this when the problems started, I already have 3 tables in postgres. When I run ./seam generate-entities, this is my output.*
SEAM_HOME: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA
Using seam-gen sources from: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen
Buildfile: /home/rgoytacaz/progs/jboss-seam-2.2.0.GA/seam-gen/build.xml
init:
init-properties:
[echo] /srv/jboss-5.1.0.GA
validate-workspace:
validate-project:
init-generate:
generate-model:
[echo] Reverse engineering database using JDBC driver /home/rgoytacaz/postgresql-8.4-701.jdbc4.jar
[echo] project=/home/rgoytacaz/workspace/Commerce
[echo] model=com.atom.Commerce.model
*[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)
[hibernate] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
[hibernate] log4j:WARN Please initialize the log4j system properly.
[javaformatter] Java formatting of 4 files completed. Skipped 0 file(s).
*
generate-ui:
[echo] Building project 'Commerce' to generate views and controllers
init:
groovy.compile:
groovy.copy:
compile:
[javac] Compiling 4 source files to /home/rgoytacaz/workspace/Commerce/exploded-archives/Commerce.ear/Commerce_jar
copyclasses:
jar:
[hibernate] Executing Hibernate Tool with a JPA Configuration
[hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
[hibernate] 3. task: generic exportertemplate: view/view.page.xml.ftl
[hibernate] 4. task: generic exportertemplate: view/edit.xhtml.ftl
[hibernate] 5. task: generic exportertemplate: view/edit.page.xml.ftl
[hibernate] 6. task: generic exportertemplate: src/EntityList.java.ftl
[hibernate] 7. task: generic exportertemplate: view/list.page.xml.ftl
[hibernate] 8. task: generic exportertemplate: src/EntityHome.java.ftl
[hibernate] 9. task: generic exportertemplate: view/layout/menu.xhtml.ftl
[javaformatter] Java formatting of 8 files completed. Skipped 0 file(s).
[echo] Type './seam restart' and go to http://localhost:8080/Commerce
generate:
generate-entities:
BUILD SUCCESSFUL
Total time: 12 seconds
*Log4j is showing that appender error, what is that?How to fix it?*