4 Replies Latest reply on Jul 9, 2007 2:29 AM by Gavin King

    Where is seam-gen getting

    Jeff Mutonho Newbie

      I just setup a small project as shown below :

      C:\devenv\jboss-seam-2.0.0.BETA1>seam setup
      Buildfile: C:\devenv\jboss-seam-2.0.0.BETA1\seam-gen\build.xml

      [echo] Welcome to seam-gen :-)
      [input] Enter your Java project workspace (the directory that contains your
      Seam projects) [C:/projects] [C:/projects]

      [input] Enter your JBoss home directory [c:/jboss-4.0.5.GA] [c:/jboss-4.0.5.

      [input] Enter the project name [shoppingcart] [shoppingcart]

      [input] Is this project deployed as an EAR (with EJB components) or a WAR (w
      ith no EJB support) [war] (ear, [war], )
      [input] Enter the Java package name for your session beans [com.introspect.s
      hoppingcart] [com.introspect.shoppingcart]

      [input] Enter the Java package name for your entity beans [com.introspect.sh
      oppingcart] [com.introspect.shoppingcart]

      [input] Enter the Java package name for your test cases [com.introspect.shop
      pingcart.test] [com.introspect.shoppingcart.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] [org.hibernate.dialect.HSQLDialect]

      [input] Enter the filesystem path to the JDBC driver jar [c:/devenv/lib/hsql
      db.jar] [c:/devenv/lib/hsqldb.jar]

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

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

      [input] Enter database username [sa] [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 imp
      ort.sql each time you deploy? [n] (y, [n], )

      [propertyfile] Updating property file: C:\devenv\jboss-seam-2.0.0.BETA1\seam-gen
      [echo] Installing JDBC driver jar to JBoss server
      [echo] Type 'seam new-project' to create the new project

      Total time: 1 minute 3 seconds

      However , when i open this project in Eclipse and the build and deploy is launched , the path to my JBoss is incorrect as it now has an "Applications" added to it .The output says :

      [copy] Copying 1 file to C:\Applications\jboss-4.2.0.GA\server\default\deploy

      [mkdir] Created dir: C:\Applications\jboss-4.2.0.GA\server\default\deploy\shoppingcart.war
      [copy] Copying 44 files to C:\Applications\jboss-4.2.0.GA\server\default\deploy\shoppingcart.war
      [copy] Copied 8 empty directories to 1 empty directory under C:\Applications\jboss-4.2.0.GA\server\default\deploy\shoppingcart.war

      Checking the build.properties in the genereated project shows this entry :
      jboss.home = /Applications/jboss-4.2.0.GA

      Where's SEAM-GEN getting this from?