Is there a workable version of JBossSEAM?
vottak Aug 16, 2006 9:34 PMWell... Downloaded suggested JBossSEAM and one of the nightly builds jboss-seam-CVS.20060809.
Followed short guide. Got 2 *.ear files with different sizes. After deployment both shows ERRORs.
20:34:30,343 ERROR [LocaleUtils] Locale name null or empty, ignoring
20:34:30,859 INFO [StartupServletContextListener] ServletContext 'C:\Program Fi
les\jboss-4.0.4.GA\server\default\.\tmp\deploy\tmp40635jboss-seam-booking.ear-co
ntents\jboss-seam-booking-exp.war\' initialized.
20:34:30,890 INFO [EARDeployer] Started J2EE application: file:/C:/Program File
s/jboss-4.0.4.GA/server/default/deploy/jboss-seam-booking.ear
20:34:30,906 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
boss-4.0.4.GA/server/default/deploy/sample.ear
20:34:30,937 ERROR [MainDeployer] Could not create deployment: file:/C:/Program
Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp40636sample.ear-contents/sampl
eEJB.jar
org.jboss.deployment.DeploymentException: expected one enterprise-beans tag
at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:113)
And at the end.....
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@d6d6ec0b { url=file:/C:/Program Files/jboss-
4.0.4.GA/server/default/deploy/sample.ear }
deployer: org.jboss.deployment.EARDeployer@bf053f
status: Deployment FAILED reason: expected one enterprise-beans tag
state: FAILED
watch: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/sample.ear
altDD: null
lastDeployed: 1155774870921
lastModified: 1155774870890
mbeans:
OK. So I decided to follow JBossSeamGettingStartedGuide.
In step #4 I noticed that I am creating progect "simple" although on the picture there is also a progect "jboss-seam-1.0.1GA. How to create that one using downloaded files? Is that progect important at all?
In step #5 after I typed "seam scaffold-wtp-project sample" I got this:
"BUILD FAILED
C:\jboss\seam\seam-gen\build.xml:71: C:\jboss\seam\seam-gen\src not found."
Also tried to follow JBossSEAMReverseEngineerGuide.
When I generated a skeleton Seam application(from Oracle 9, 1 table only) I got:
import javax.ejb.Interceptors;
Had to change it to:
import javax.interceptor.Interceptors;
after this change I was able to deploy *.ear but it failed during deployment as:
21:24:07,921 ERROR [SchemaExport] invalid schema name: GCORK in statement [creat
e table GCORK.HAZARD_INDEX]
21:24:08,468 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLI
CATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
21:24:08,468 ERROR [[/seamapp]] Exception sending context initialized event to l
istener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalArgumentException: no property for configuration setting: org.j
boss.seam.core.init.managedPersistenceContexts
at org.jboss.seam.Component.initInitializers(Component.java:311)
later I got:
21:24:08,953 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
21:24:09,046 ERROR [LocaleUtils] Locale name null or empty, ignoring
21:24:09,296 INFO [StartupServletContextListener] ServletContext 'C:\Program Fi
les\jboss-4.0.4.GA\server\default\.\tmp\deploy\tmp35721seamapp.ear-contents\seam
app-exp.war\' initialized.
21:24:09,296 ERROR [StandardContext] Error listenerStart
21:24:09,296 ERROR [StandardContext] Context [/seamapp] startup failed due to pr
evious errors
21:24:09,296 WARN [ServiceController] Problem starting service jboss.web.deploy
ment:war=seamapp.war,id=-1894308984
org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss-4.0.4
.GA/server/default/tmp/deploy/tmp35721seamapp.ear-contents/seamapp-exp.war/ depl
oyment failed
Later:
21:24:09,296 ERROR [MainDeployer] Could not start deployment: file:/C:/Program F
iles/jboss-4.0.4.GA/server/default/tmp/deploy/tmp35721seamapp.ear-contents/seama
pp.war
and at the end I got:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@751eba08 { url=file:/C:/Program Files/jboss-
4.0.4.GA/server/default/deploy/seamapp.ear }
deployer: org.jboss.deployment.EARDeployer@bf053f
status: Deployment FAILED reason: URL file:/C:/Program Files/jboss-4.0.4.GA/se
rver/default/tmp/deploy/tmp35721seamapp.ear-contents/seamapp-exp.war/ deployment
failed
state: FAILED
watch: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/seamapp.ear
altDD: null
lastDeployed: 1155777846484
lastModified: 1155777845937
mbeans:
persistence.units:ear=seamapp.ear,jar=seamapp.ejb3.jar,unitName=entityManage
r state: Started
jboss.j2ee:ear=seamapp.ear,jar=seamapp.ejb3,name=HazardIndexEditorBean,servi
ce=EJB3 state: Started
jboss.j2ee:ear=seamapp.ear,jar=seamapp.ejb3,name=HazardIndexFinderBean,servi
ce=EJB3 state: Started
jboss.j2ee:ear=seamapp.ear,jar=seamapp.ejb3,name=DefaultHazardIndexSelector,
service=EJB3 state: Started
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=seamapp.war,id=-1894308984
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/j
boss-4.0.4.GA/server/default/tmp/deploy/tmp35721seamapp.ear-contents/seamapp-exp
.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=seamapp.war,id=-1894308984
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/j
boss-4.0.4.GA/server/default/tmp/deploy/tmp35721seamapp.ear-contents/seamapp-exp
.war/ deployment failed
Anyway... I killed a couple of days to get these results while I expected to get some working code. So here is a question:
Can anyone point me to the right direction on how to make it work or where to get workable versions which are working as it is described in Guides?
All responses are highly appreciated. Thank you very much.