[jboss-user] [JBoss Seam] - Where is seam-gen getting

ejbengine do-not-reply at jboss.com
Sun Jul 8 09:42:44 EDT 2007


I just setup a small project as shown below :

anonymous wrote : C:\devenv\jboss-seam-2.0.0.BETA1>seam setup
  | Buildfile: C:\devenv\jboss-seam-2.0.0.BETA1\seam-gen\build.xml
  | 
  | setup:
  |      [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.
  | GA]
  | 
  |     [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], )
  | 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
  | rg.hsqldb.jdbcDriver]
  | 
  |     [input] Enter the JDBC URL for your database [jdbc:hsqldb:data] [jdbc:hsqldb
  | :data]
  | 
  |     [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
  | \build.properties
  |      [echo] Installing JDBC driver jar to JBoss server
  |      [echo] Type 'seam new-project' to create the new project
  | 
  | BUILD SUCCESSFUL
  | 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 :

anonymous wrote : 
  | datasource:
  |         [copy] Copying 1 file to C:\Applications\jboss-4.2.0.GA\server\default\deploy
  | 
  | explode:
  |        [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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061707#4061707

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061707



More information about the jboss-user mailing list