2 Replies Latest reply on Jul 21, 2009 4:57 PM by kmagdy

    Could not instantiate Seam component: helloworldEntityManagerFactory

    mpssantos.mpssantos.gmail.com

      Hi there everyone.


      Im a newbie on seam framework. I just follow the instruction on the Seam manual on chapter 3 - Getting started with Seam, using JBoss Tools.


      Im using Eclipse 3.4 and JBoss Tools 3.0.0.CR1. I have create the project helloworld with no changes. But when i deploy it on the JBoss AS 4.2 it gives me this exception:


      17:14:16,874 ERROR ((/helloworld)) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: helloworldEntityManagerFactory
              at org.jboss.seam.Component.newInstance(Component.java:2106)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
              at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
              at org.jboss.seam.init.Initialization.init(Initialization.java:735)
      ............
      ............
      ............
      Caused by: javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/msantos/My Documents/workspace3.4/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss4.2Server/deploy/helloworld.war/WEB-INF/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/msantos/My Documents/workspace3.4/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss4.2Server/deploy/helloworld.war/WEB-INF/classes
              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:252)
              at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
      ..........
      ..........
      ..........
      Caused by: java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/msantos/My Documents/workspace3.4/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss4.2Server/deploy/helloworld.war/WEB-INF/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/msantos/My Documents/workspace3.4/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss4.2Server/deploy/helloworld.war/WEB-INF/classes
              at org.hibernate.ejb.packaging.JarVisitor.getVisitor(JarVisitor.java:100)
              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:226)


      Does anyone knows what this mean and what am i missing?


      Thanks a lot