[Management, JMX/JBoss] - StandardMBean's implementation of the DynamicMBean interface
by rydenius
Hi. Hope someone can share a little light on this:
In JBoss 3.2.8, all implementations of the DynamicMBean interface in the class javax.management.StandardMBean except for getMBeanInfo() throw IllegalStateException("Do not invoke directly"). In JBoss 4.0.5 on the other hand, StandardMBean provides a DynamicMBean implementation as expected, so this is only a 3.x issue.
My application runs on several platforms and I need to put a dyanmic proxy (with DynamicMBean as proxy interface) in front of the MBeans (including StandardMBeans) to ensure that all invokes use the correct context classloader. But this of course fails on 3.2.8 since all DynamicMBean methods will throw IllegalStateExceptions.
Which class actually implements the DynamicMBean methods if StandardMBean does not. And how does JBoss avoid invoking the DynamicMBean methods internally? Special handling for "instanceof StandardMBean", or what?
Regards, Jörgen Rydenius
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985469#3985469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985469
19Â years, 7Â months
[Security & JAAS/JBoss] - not able to get the prompt asking for user password
by SantoshKumar
trying to test for secure a web application in JBoss AS.
added given entry in the following files
1. web.xml (under mywebapp/WEB-INF)
-------------
<servlet-name>Hello</servlet-name>
<servlet-class>HelloServlet</servlet-class>
<display-name></display-name>
<security-role-ref>
<role-name>user</role-name>
<role-link>user</role-link>
</security-role-ref>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>tw-app</realm-name>
</login-config>
<security-constraint>
<web-resource-collection>
<url-pattern>/hello</url-pattern>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-role>
<role-name>user</role-name>
</security-role>
<error-page>
<error-code>401</error-code>
/error/401.html
</error-page>
2. jboss-web.xml(under mywebapp/WEB-INF)
-------------------
<jboss-web>
<security-domain>java:/jaas/tw-app</security-domain>
</jboss-web>
3. login-config.xml (under servername\conf\login-config.xml)
----------------------
<application-policy name = "tw-app">
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">props/tw-appUsers.properties</module-option>
<module-option name="rolesProperties">props/tw-appRoles.properties</module-option>
</login-module>
</application-policy>
my problem is that, while invoking the hello servlet, I am not being prompt for the user name and password as expecting to be. I am given error 404 , page not found.
but when I comment all these things, I am getting the hello msg by the hello servlet.
could any one please tell me, if I am still missing anything in any config file to get browser prompt for user name and password.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985467#3985467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985467
19Â years, 7Â months
[JBoss Seam] - Re: Ajax4jsf does no work
by m.schuetz
The web.xml:
| <?xml version="1.0"?>
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
| !-- other faces configuration files -->
| <context-param>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>/WEB-INF/navigation.xml</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>com.sun.facelets.FaceletViewHandler</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.REFRESH_PERIOD</param-name>
| <param-value>2</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>org.jboss.seam.core.init.debug</param-name>
| <!-- when true, seam will catch exceptions and shows debug page -->
| <param-value>false</param-value>
| </context-param>
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>
| org.jboss.seam.servlet.SeamRedirectFilter
| </filter-class>
| </filter>
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>
| org.jboss.seam.servlet.SeamExceptionFilter
| </filter-class>
| </filter>
|
| <!-- filter for ajax4jsf -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| <dispatcher>REQUEST</dispatcher>
| <dispatcher>FORWARD</dispatcher>
| <dispatcher>INCLUDE</dispatcher>
| </filter-mapping>
| <listener>
| <listener-class>
| org.jboss.seam.servlet.SeamListener
| </listener-class>
| </listener>
| <listener>
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
|
| <!-- Faces Servlet -->
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.jsf</url-pattern>
| </servlet-mapping>
|
| <!-- welcome file -->
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| </welcome-file-list>
| <login-config>
| <auth-method>BASIC</auth-method>
| </login-config>
| </web-app>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985465#3985465
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985465
19Â years, 7Â months