[JBoss Seam] - i dont get it
by nittm
hi.
we decided to develop something using jboss as + jboss seam.
since we're new to jboss as and seam we took one of the examples from seam (the dvd store) and trying to create our code by it.
we have a few problems but the the one we just can't understand is this:
we used ant to build the dvd-store example and it worked great on the jboss as and now, out of the blue it stoped working! we have no idea why because we dont remember changing anything in the jboss as or the example itself...
when we run the jboss as we get this exception:
anonymous wrote : DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] Failed to invoke ctor(MBeanInvoker) for: class org.jboss.jmx.connector.invoker.AuthenticationInterceptor
| java.lang.NoSuchMethodException: org.jboss.jmx.connector.invoker.AuthenticationInterceptor.(org.jboss.mx.server.MBeanInvoker)
any ideas of why this happens now even though it didnt use to heppen?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985433#3985433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985433
19Â years, 7Â months
[JBoss Portal] - Re: Single Signon - Where do I start
by bmcgovern
Ok I got a little farther. Hopefully someone can help now that i've added more details. My goal is to set up DB Authentication.
I get the ugly login box popping up as you'd expect but at first it was throwing this exception, missing a few user and role properties files, which I added and got rid of error.
| 13:58:50,015 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
|
Now I don't get a successfull login OR anything in the logs. Im at a stand still.
I have 2 basic questions:
-How do i enable logging so I can see what its trying to do in the console?
-What am i doing wrong?
jboss-web.xml
<jboss-web><security-domain>java:jaas/myauth</security-domain></jboss-web>
web-inf/login-config.xml
<policy>
| <!-- For the JCR CMS -->
| <application-policy name="myauth">
| <authentication>
| <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
| <module-option name = "unauthenticatedIdentity">guest</module-option>
| <module-option name = "dsJndiName">java:/PortalDS</module-option>
| <module-option name = "principalsQuery">SELECT jbp_uname, jbp_password FROM jbp_users WHERE jbp_uname=?</module-option>
| <module-option name = "rolesQuery">SELECT jbp_rid, 'Roles' FROM Jbp_roles WHERE jbp_uid=?</module-option>
|
| </login-module>
| </authentication>
| </application-policy>
|
|
| </policy>
web.xml
|
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>myauth</web-resource-name>
| <url-pattern>/*</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <role-name>Users</role-name>
| </auth-constraint>
| </security-constraint>
|
| <login-config>
| <auth-method>BASIC</auth-method>
| <realm-name>myauth</realm-name>
| </login-config>
|
| <security-role>
| <description>The role required to access restricted content</description>
| <role-name>Users</role-name>
| </security-role>
|
jbossweb-tomcat55.sar/server.xml
| <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
|
jbossweb-tomcat55.sar/META-INF/jboss-service.xml
| <attribute name="Authenticators" serialDataType="jbxb">
| <java:properties xmlns:java="urn:jboss:java-properties"
| xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
| xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
| <java:property>
| <java:key>BASIC</java:key>
| <java:value>org.apache.catalina.authenticator.BasicAuthenticator</java:value>
| </java:property>
| <java:property>
| <java:key>CLIENT-CERT</java:key>
| <java:value>org.apache.catalina.authenticator.SSLAuthenticator</java:value>
| </java:property>
| <java:property>
| <java:key>DIGEST</java:key>
| <java:value>org.apache.catalina.authenticator.DigestAuthenticator</java:value>
| </java:property>
| <java:property>
| <java:key>FORM</java:key>
| <java:value>org.apache.catalina.authenticator.FormAuthenticator</java:value>
| </java:property>
| <java:property>
| <java:key>NONE</java:key>
| <java:value>org.apache.catalina.authenticator.NonLoginAuthenticator</java:value>
| </java:property>
| </java:properties>
| </attribute>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985432#3985432
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985432
19Â years, 7Â months