[JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)
by forumer
Hi Peter,
Now I understand a bit more about JBoss versions! I understand that you don't want to waste time supporting a non-GA version. Unfortunately, we are in production with CR2 and will certainly be moving to GA as soon as we can.
Your implementation is very crucial to my application. So in an attempt to make it work I have made a few adjustments to a point where I may have it almost working. I'd appreciate if you might have a quick insight into what may be wrong. Please feel free to ignore this if it will take more than a quick tip.
Even though the "factory" variables are being processed out of the database as evidenced by log statements as to the number of items for each of the three. But when it comes to resolving #{discounts}, #{branches}, and #{clientTypes} are coming out as NULL:
|
| 7:44:44,769 INFO [STDOUT] Branch list has 3 entries
| .
| .
| .
| 17:44:44,789 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.IllegalArgumentException: Value binding '#{clientTypes}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /selectite
| ms.xhtml][Class: javax.faces.component.html.HtmlForm,Id: _id3][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id4][Class: javax.faces.component.html.HtmlPanelGroup,Id: _id18]
| [Class: javax.faces.component.html.HtmlSelectOneListbox,Id: client_clientType][Class: javax.faces.component.UISelectItems,Id: _id19]} does not reference an Object of type SelectIte
| m, SelectItem[], Collection or Map but of type : null
| at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:142)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984364#3984364
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984364
19Â years, 6Â months
[Security & JAAS/JBoss] - Re: Why JAAS authenticate() fails?
by benccit
Hi jaikiran,
Thanks for your help in advance.
1. I am using jboss-4.0.3SP1.
The application which I am testing is jbossweb-tomcat55.sar/ROOT.war.
Under ROOT.war/authentik, I have transportation-security-roles.properties and transportation-security-users.properties.
In transportation-security-roles.properties, I have the following line:
joe1=moderator
In transportation-security-users.properties, I have the following line:
joe1=pass
The resources to be secured is the directory ROOT.war/secret.
I used FORM-based authentication method.
The login html file is loginform.html which has action = "j_security_check" with input "j_username" and "j_password".
2. The server/default/conf/login-config.xml contains the following application policy:
<application-policy name = "transportation-security">
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">/authentik/transportation-security-users.properties</module-option>
<module-option name="rolesProperties">/authentik/transportation-security-roles.properties</module-option>
</login-module>
</application-policy>
3. server/default/conf/log4j.xml is configured to have FILE Appender to log message in server.log, and contains the following categories:
<appender-ref ref="FILE"/>
<appender-ref ref="FILE"/>
<appender-ref ref="FILE"/>
4. jboss-web.xml specified the transportation-security policy:
<jboss-web>
<security-domain>java:/jaas/transportation-security</security-domain>
</jboss-web>
5. web.xml related to security configuration:
<security-role>
<role-name>moderator</role-name>
</security-role>
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted Area</web-resource-name>
<url-pattern>/secret/*</url-pattern>
Authorized user only
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>moderator</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/loginform.html</form-login-page>
<form-error-page>/loginerror.html</form-error-page>
</form-login-config>
<realm-name>transportation-security</realm-name>
</login-config>
</web-app>
6. TRACE in jboss.log :
REQUEST URI =/secret/j_security_check
..
20:53:22,166 INFO [[localhost]] parameter=j_username=joe1
20:53:22,166 INFO [[localhost]] parameter=j_password=pass
..
20:53:22,167 INFO [[localhost]] servletPath=/secret/j_security_check
..
20:53:22,183 INFO [[/]] default: DefaultServlet.serveResource: Serving resource '/loginerror.html' headers and data
7. No TRACE message was found in server.log
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984362#3984362
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984362
19Â years, 6Â months