Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1442

seam-gen fails when when setup hasn't been previously run

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      seam-gen fails when chaining new-project after setup as in the release-process.txt:

      [orb@78 jboss-seam]$ ./seam setup new-project
      Buildfile: build.xml

      setup:
      [echo] Welcome to seam-gen
      [input] Enter your Java project workspace (the directory that contains your Seam projects) [C:/Projects]
      /tmp/x
      [input] Enter your JBoss home directory [C:/Program Files/jboss-4.0.5.GA]
      /Users/orb/java/jboss-4.2.0.GA/
      [input] Enter the project name [myproject]

      [input] Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support) [ear] (ear,war,)

      [input] Enter the Java package name for your session beans [com.mydomain.myproject]

      [input] Enter the Java package name for your entity beans [com.mydomain.myproject]

      [input] Enter the Java package name for your test cases [com.mydomain.myproject.test]

      [input] What kind of database are you using? [hsql] (hsql,mysql,oracle,postgres,mssql,db2,sybase,enterprisedb,)

      [input] Enter the Hibernate dialect for your database [org.hibernate.dialect.HSQLDialect]

      [input] Enter the filesystem path to the JDBC driver jar [lib/hsqldb.jar]

      [input] Enter JDBC driver class for your database [org.hsqldb.jdbcDriver]

      [input] Enter the JDBC URL for your database [jdbc:hsqldb:.]

      [input] Enter database username [sa]

      [input] Enter database password []

      [input] Enter the database schema name (it is OK to leave this blank) []

      [input] Enter the database catalog name (it is OK to leave this blank) []

      [input] Are you working with tables that already exist in the database? [n] (y,n,)

      [input] Do you want to drop and recreate the database tables and data in import.sql each time you deploy? [n] (y,n,)

      [propertyfile] Creating new property file: /Users/orb/seam-build/jboss-seam/seam-gen/build.properties
      [echo] Installing JDBC driver jar to JBoss server
      [echo] Type 'seam new-project' to create the new project

      validate-workspace:

      validate-project:

      copy-lib:
      [echo] Copying Seam jars to the ${workspace.home}/${project.name}/lib directory...
      [copy] Copying 58 files to /Users/orb/seam-build/jboss-seam/seam-gen/${workspace.home}/${project.name}/lib
      [echo] Copying Embeddable EJB3 configuration to the ${workspace.home}/${project.name}/embedded-ejb directory...
      [copy] Copying 9 files to /Users/orb/seam-build/jboss-seam/seam-gen/${workspace.home}/${project.name}/embedded-ejb

      file-copy-war:

      file-copy-ear:
      [echo] Copying resources needed for EAR deployment to the ${workspace.home}/${project.name}/resources directory...

      setup-filters:

      file-copy:

      new-project:
      [echo] A new Seam project named 'myproject' was created in the C:/Projects directory
      [echo] Type 'seam explode' and go to http://localhost:8080/myproject
      [echo] Eclipse Users: Add the project into Eclipse using File > New > Project and select General > Project (not Java Project)
      [echo] NetBeans Users: Open the project in NetBeans

      BUILD SUCCESSFUL
      Total time: 18 seconds

      The newly-created build.properties values are not used by new-project target.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                norman.richards Norman Richards
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: