-
1. Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
thejavafreak Jan 28, 2008 9:22 PM (in response to jsimone)Did you sun seam setup first?
Did you do as written on the docs? -
2. Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
jsimone Jan 29, 2008 12:38 PM (in response to jsimone)yes, I ran seam setup. It all looks ok to me. Here it is ...
#Generated by seam setup
#Fri Jan 25 11:38:24 EST 2008
hibernate.connection.password=kramerica
workspace.home=/dev/ws/seam
model.package=com.e2msystems.model
driver.jar=/opt/jboss-4.2.2.GA/server/default/lib/mysql-connector-java-5.0.8-bin.jar
action.package=com.e2msystems.action
test.package=com.e2msystems.test
database.type=mysql
richfaces.skin=blueSky
hibernate.default_catalog.null=
hibernate.default_schema.null=test
database.drop=n
project.name=joe2
hibernate.connection.username=seam
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
project.type=ear
icefaces.home=
database.exists=n
jboss.home=/opt/jboss-4.2.2.GA
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.url=jdbc\:mysql\:///test
icefaces=n
Yes, I followed the docs as far as creating the project and then importing into eclipse. I also have the prentice hall "JBoss Seam" book. So are you saying the result of seam-gen should be a working project?
Thanks for listening! -
3. Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
jsimone Jan 29, 2008 6:13 PM (in response to jsimone)I think I found the problem, but I don't know how to remedy the situation.
If I carefully follow the Seam 2.0.1.CR2 docs in section 2.2 (2.2. Setting up a new Eclipse project) then start JBoss 4.2.2.GA I can't access
http://localhost:8080/helloworld
cause this maps to
http://localhost/helloworld/hello.seam
when I try and go to the first URL. However, WEB-INF index.html has this
content="0; URL=home.seam"
So, when I try and go to
http://localhost:8080/helloworld/home.seam
It works and I get the empty project welcome page.
Why does helloworld redirect to helloworld/hello.seam and where is this defined? I can't find hello.seam anywhere in the project.
Are the docs wrong or is seam-gen creating the wrong redirect URL?
Thanks for listening! -
4. Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
jsimone Jan 29, 2008 6:17 PM (in response to jsimone)Copying the facelet home.xhtml in the vew directory to hello.xhtml allow the URL
http://localhost:8080/helloworld
to redirect to
http://localhost:8080/helloworld/hello.seam
seam-gen or the docs are incorrect.
Thanks for listening! -
5. Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
thejavafreak Jan 29, 2008 9:04 PM (in response to jsimone)I think you should learn JSF first and get the notion of it first before trying seam.
-
6. Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
nickarls Jan 30, 2008 2:02 AM (in response to jsimone)"jsimone" wrote:
seam-gen or the docs are incorrect.
Well, web.xml has a list of welcome files which are looked for when a web context is hit without a specific page. It finds index.html which immediately redirects to home.seam (I understand that this mechanism is being improved on in the next Servlet spec).
the ".seam"-extension is mapped to the Seam servlet which means seam starts working on "home.xhtml" or "home.jsp" depending on the configured view technology.