-
1. Re: Jboss Tools EAR Wizard
beren.beren.patmedia.net Aug 23, 2008 3:47 PM (in response to beren.beren.patmedia.net)I tried seam-gen and I get the same issue with EAR projects.
-
2. Re: Jboss Tools EAR Wizard
beren.beren.patmedia.net Aug 24, 2008 2:46 PM (in response to beren.beren.patmedia.net)I think the issue is the build script that both seam-den and the JBoss Tools wizard uses to build an EAR project. There's a few extra thing added into the components.xml file that cause this error. There's a drools block, some extra events, and there's a security tag added that must be causing my specific error.
I went into the booking example and using the components.xml in that project as a guide I modified my file and now my EAR deploys from both Eclipse and from seam-gen and I can log in.
Many thanks to Christoph foe his excellent tutorial on seam-gen and working with Eclipse:
http://techieexchange.wordpress.com/2008/02/01/how-to-make-jboss-seam-work-with-eclipse-for-windows/
beren
Here's my final components.xml content:
<?xml version="1.0" encoding="UTF-8"?> <components xmlns="http://jboss.com/products/seam/components" xmlns:core="http://jboss.com/products/seam/core" xmlns:persistence="http://jboss.com/products/seam/persistence" xmlns:drools="http://jboss.com/products/seam/drools" xmlns:bpm="http://jboss.com/products/seam/bpm" xmlns:security="http://jboss.com/products/seam/security" xmlns:mail="http://jboss.com/products/seam/mail" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd"> <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/> <core:manager concurrent-request-timeout="500" conversation-timeout="120000" conversation-id-parameter="cid" parent-conversation-id-parameter="pid"/> <persistence:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/SeamGenTestEntityManagerFactory"/> <!-- <drools:rule-base name="securityRules"> <drools:rule-files> <value>/security.drl</value> </drools:rule-files> </drools:rule-base> --> <!-- <security:identity security-rules="#{securityRules}" remember-me="true"/> --> <security:identity authenticate-method="#{authenticator.authenticate}"/> <!-- <event type="org.jboss.seam.security.notLoggedIn"> <action execute="#{redirect.captureCurrentView}"/> </event> <event type="org.jboss.seam.security.loginSuccessful"> <action execute="#{redirect.returnToCapturedView}"/> </event> --> <mail:mail-session host="localhost" port="2525" username="test" password="test" /> <!-- For use with jBPM pageflow or process management --> <!-- <bpm:jbpm> <bpm:process-definitions></bpm:process-definitions> <bpm:pageflow-definitions></bpm:pageflow-definitions> </bpm:jbpm> --> </components>
-
3. Re: Jboss Tools EAR Wizard
pmuir Sep 2, 2008 1:10 PM (in response to beren.beren.patmedia.net)Please move this to the jboss tools forum