For the record, this is the first set of errors I get:
11 Sep 2007 16:17:03 INFO org.apache.myfaces.config.FacesConfigurator - Reading config jar:file:/C:/WorkspacePoC/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/testpoc/WEB-INF/lib/jboss-seam.jar!/META-INF/faces-config.xml
11 Sep 2007 16:17:03 ERROR org.apache.commons.digester.Digester - Parse Error at line 2 column 14: Document is invalid: no grammar found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
I would recommend starting with JBoss AS 4.2.1.GA, Seam 2 beta and the reference manual and examples in your download. When you want to create your own project try seam-gen.
N.B. Seam works best with an application server, but if you really just want to run tomcat, then perhaps the hibernate2 example will help
Thank you, it's just that the example(s) wouldn't compile under Java 1.5.0_06-b05 and Ant 1.5.4:
C:\jboss-seam-2.0.0.BETA1\examples\hibernate2>ant tomcat Buildfile: build.xml compile: [javac] Compiling 9 source files to C:\jboss-seam-2.0.0.BETA1\examples\hibernate2\build\classes [javac] C:\jboss-seam-2.0.0.BETA1\examples\hibernate2\src\org\jboss\seam\example\hibernate\AuthenticatorAction.java:3: identifier expected [javac] import static org.jboss.seam.ScopeType.SESSION; [javac] ^ [javac] C:\jboss-seam-2.0.0.BETA1\examples\hibernate2\src\org\jboss\seam\example\hibernate\AuthenticatorAction.java:3: '.' expected [javac] import static org.jboss.seam.ScopeType.SESSION; [javac] ^
Seam requires Ant 1.6
But Ant 1.7 and 1.6.5 give exactly the same message...
Are you sure you have Java 1.5.0_06-b05 installed correctly?
javac -source 1.5
If you get
javac: invalid source release: 1.5
If because your PATH locates a compiler that doesn't support java 1.5
I think this is the problem because
[javac] import static org.jboss.seam.ScopeType.SESSION;
The static import is a new feature in JDK 1.5
Hope this helps
That was ok, but it hinted me to take a look at the environment variables and guess which version was JAVA_HOME pointing to...
Thank you very very much for your help :) now it compiles at least.
For the record: the missing annotation messages come because of the missing jar jboss-j2ee.jar
I couldn't make Seam work in an existing project with Facelets (no JSP), backing beans (no Spring, no EJB) and the Eclipse plugin (no seam-gen). My aim was not to start from scratch but to convert an existing application. Apparently nobody else tried that.
Well, I'll look again into version 3.