3 Replies Latest reply on Mar 17, 2007 12:03 AM by eeckmann

    Error when deploying to Tomcat

    mlh496

      I've been struggling for several hours trying to get my Seam app to run on Tomcat. I've hit a brick wall. I get the following error in the catalina.log file:

      SEVERE: Error Rendering View[/home.xhtml]
      javax.faces.el.EvaluationException: Cannot get value for expression '#{testList.firstResult}'
      ...
      ...
      Caused by: java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI
      ...
      ...
      Caused by: javax.naming.NameNotFoundException: myappEntityManagerFactory not bound

      Any ideas on what is causing this?

      Many thanks,
      -Michael

        • 1. Re: Error when deploying to Tomcat
          holtak

          Just deploy to JBoss and it`ll work ;-)
          You need an EJB3 container for EntityManager to work.

          • 2. Re: Error when deploying to Tomcat
            mlh496

            Unfortunately, for reasons I won't list, I need to deploy to Tomcat. :-(

            What I find frustrating is I was able to deploy the Seam examples to Tomcat with no problem. I have been comparing my config files with those from the Booking and DVD examples, and so far I cannot find a difference that would explain my apps error messages.

            I know there are 2 directions here: either take a simple example that successfully deploys to Tomcat and grow from that. What I did was use the Seam command line tool to generate an app and to generate the entities from an existing database. I've been working to modify the auto-generated app to deploy on Tomcat. 2 days later, much frustration and no luck... But I'm stubborn, so I'm going to work some more on it. If I find how to get it to work, I'll pass along my lessons learned.

            -Michael

            • 3. Re: Error when deploying to Tomcat
              eeckmann

              I have the same problem with jboss-seam from head.