3 Replies Latest reply on Dec 4, 2008 3:43 AM by safa

    Seam Generate Entities crashes

    patpirtle

      When I tried to do a new/Seam Generate Entities, I got the following error:

      Can't generate seam entities
      org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA Configuration
      Could not load JPA Configuration
      org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA Configuration
      Could not load JPA Configuration
      org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
      Could not create JPA based Configuration
      java.lang.reflect.InvocationTargetException: <no message>
      java.lang.reflect.InvocationTargetException
      javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
      java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
      java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
      Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes



      From first glance, it appears that it cannot handle spaces in the filename. Can anybody verify this?

      I'm about out of patience. I've been trying to get a simple seam app going for two weeks, without any success. I may give it a couple more days, but I'm not very hopeful. Nothing seems to work in my environment. I'll probably go back to MyEclipse. I had a lot better luck with them.

      I really wanted Seam to work. It looked so cool on the surface. Alas, I have spent two week fighting the tools and the environment, and accomplished nothing. Perhaps I'll revisit in 6 months. Hopefully things will be better then.

        • 1. Re: Seam Generate Entities crashes
          maxandersen

          1) Yes, Hibernate JPA had an issue with spaces thus we recommend putting your workspace in a non-space path. Yes, I know it sucks and MyEclipse would have the same problem if they supported JPA queries - the bug is fixed in later versions of Hibernate JPA, we just need to get those fixes integrated.

          2) Did you try out the AS adapter we actually told you would work or are you using the one we confirmed has a bug ?

          • 2. Re: Seam Generate Entities crashes
            patpirtle

            Thanks Max. No, I have not tried the other one. I ran into too many problems trying to get it configured. Perhaps there aren't really that many bugs, but I seem to hit all of them. And I have run out of time now. I really don't have time to be trying this and that hoping it will work. I did that for 2 weeks. I was really hoping for it to work right out of the box. This may not be your issue entirely, but unfortunately it is my reality. As I said, I'll check back in about 6 months (maybe sooner if I have time). But right now, I need to get things done and I really can't mess with these tools anymore. Thanks for your help.

            • 3. Re: Seam Generate Entities crashes
              safa

              I had the same issue, and i found the solution:
              I, simply, changed the classpath to my workspace form c:/Document and Settings/workspace to c:/workspace.
              In fact, I noticed this exception : Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
              And I remouved all the 'spaces' in my calsspath.
              And it work fine now