-
1. Re: SeamLoginModule No authentication method defined
msystems Mar 22, 2008 6:09 PM (in response to clatimer)Is seam.properties included in the ejbapp.jar file?
-
3. Re: SeamLoginModule No authentication method defined
clatimer Mar 22, 2008 6:39 PM (in response to clatimer)Kenneth,
I do have a blank file named seam.properties in the root of my ejb.jar file.
Chris Latimer
-
4. Re: SeamLoginModule No authentication method defined
clatimer Mar 22, 2008 8:11 PM (in response to clatimer)I just noticed something. When I deploy the dvd store example from the SEAM distribution, the initialization contains this message:
[org.jboss.seam.init.Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.securityHowever, when I deploy my application, I get this message:
WARN [Initialization] namespace declared in components.xml does not resolve to a package annotated @Namespace: http://jboss.com/products/seam/securityMaybe I'm missing a JAR in my configuration? I thought they were pretty much in agreement with the dvd example, but looks like I need to double check. Still trying to get to the bottom of this, if anyone has ideas please let me know.
Thanks,
Chris Latimer
-
5. Re: SeamLoginModule No authentication method defined
msystems Mar 22, 2008 8:11 PM (in response to clatimer)Okay, I need some more information, e.g. JBoss AS startup log.
-
6. Re: SeamLoginModule No authentication method defined
msystems Mar 22, 2008 8:13 PM (in response to clatimer)Please show me the components.xml content.
-
7. Re: SeamLoginModule No authentication method defined
msystems Mar 22, 2008 8:21 PM (in response to clatimer)What version of Seam are you using?
-
8. Re: SeamLoginModule No authentication method defined
clatimer Mar 22, 2008 8:28 PM (in response to clatimer)Here is the components.xml:
<?xml version="1.0" encoding="UTF-8"?> <components xmlns="http://jboss.com/products/seam/components" xmlns:core="http://jboss.com/products/seam/core" xmlns:security="http://jboss.com/products/seam/security" xmlns:persistence="http://jboss.com/products/seam/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd http://jboss.com/products/seam/components http://joss.com/products/seam/components-2.0.xsd"> <core:init debug="true" jndi-pattern="vsapp/#{ejbName}/local"/> <security:identity authenticate-method="#{authenticator.authenticate}"/> <persistence:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/vestorwebEntityManagerFactory" /> </components>
Since my original post, I've added a persistence.xml and the peristence: tag to my components.xml to rule that out as the problem.
I just realized I had jboss-seam.jar both in my WEB-INF/lib of the WAR as well as in the root of the EAR. I had written my ant script to exclude the jboss-seam.jar during the war task, but I apparently made a mistake because when I looked inside the WAR, it was still there. Now when I deploy my application, the namespace resolves appropriately, but I'm getting a:
NoClassDefFoundError: org/jboss/el/lang/FunctionMapperImpl
even though I have jboss-el.jar in my WEB-INF/lib. I'm going to need to see what's causing that. I'm getting this exception when I load my first *.seam url, which is earlier than I was previously getting the message about the authenticate method not being mapped. So the namespace message has gone away, but I have to figure out this NoClassDefFoundError before I know if that was the root of the problem. If you see anything incorrect in the components.xml please let me know.
Thanks for looking at this.
Chris Latimer
-
9. Re: SeamLoginModule No authentication method defined
clatimer Mar 22, 2008 8:30 PM (in response to clatimer)Version 2.0.1.GA on JBoss 4.2.2
-
10. Re: SeamLoginModule No authentication method defined
msystems Mar 22, 2008 8:36 PM (in response to clatimer)You need to include the jboss-el.jar in <ear-file>/lib and not in WEB-INF/lib.
-
11. Re: SeamLoginModule No authentication method defined
clatimer Mar 22, 2008 8:43 PM (in response to clatimer)Scratch that. I thought I was using version 2.0.1GA, but upon closer examination, I am using 2.1.0.A1. When I downloaded SEAM, I clicked on version 2.0.1.GA, but SourceForge brings up a list of all versions, with 2.1.0.A1 expanded. I must have downloaded that version by mistake. I'm downloading 2.0.1.GA now to see if it makes any difference using that version.
Chris Latimer
-
12. Re: SeamLoginModule No authentication method defined
clatimer Mar 22, 2008 8:47 PM (in response to clatimer)You my friend are a genius!! It works now!!!
-
13. Re: SeamLoginModule No authentication method defined
msystems Mar 22, 2008 9:02 PM (in response to clatimer)Great - and thank you for all the 'stars' :-)