9 Replies Latest reply on Sep 24, 2007 10:04 AM by éKökjhlkj HJéLKJH

    cannot start with Seam and JSF and Facelets, that is no EJB

    éKökjhlkj HJéLKJH Newbie

      Hi all,

      There seem to be quite some tutorials around to start with Seam and EJB3, with JSP and all that which is supposed to be not essential for using Seam. Much less info without those. No wonder I can't get a simple web application up and running to save my life...

      I had an Eclipse 3.2.2 with a trivial web project: a backing session bean displaying text with a facelet. Running fine as such, no Seam yet.
      Then I installed the Seam plugin 2.0.0.beta1 with the Eclipse Update (as you probably noticed Eclipse 3.3 cannot install the Seam plugins because of dependencies on 3.2.0), and I put annotations to my backing bean the way the IBM tutorial says (Seamless JSF series, see http://www.ibm.com/developerworks/java/library/j-seam1/index.html). I also edited accordingly facelets-config.xml and web.xml, and aded seam.properties. I also added the seam jars in the lib.
      Yay, now I cannot even start the application: some annotations are not found (java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy, but it won't say which annotation is not found). Playing with the versions of the libraries (myfaces, jsf, whatnot) seems to influence the amount of errors, but I couldn't find a working combination of them.

      Then I even downloaded the sample project from the site, which doesn't work either (NoClassDefFoundError without saying WHICH class, again). True, that one was based on Seam 1.1.6, but as it downloaded with Maven all its dependencies I was somehow expecting it to find its stuff around.

      I know tutorials are not really your problem, however, can anybody suggest me a startup project, a tutorial, or whatever, which DOES work and doesn't require Application Servers???? I know I could have dumped here all the config files and libraries versions, but I thought I can sort it out by myself...

      Many thanks in advance,