[JBoss Messaging] - Re: Queue/Topic Security Config
by BrentShikoski
Tim,
I looked at the changes you made for this fix and I think you'll want to change what you did in the TopicService class.
It looks like you used the same code from the QueueService class:
| serverPeer.getSecurityManager().setSecurityConfig(true, destination.getName(), destination.getSecurityConfig());
|
The first argument denotes whether or not the destination is a queue or a topic, so for the TopicService class it should be:
| serverPeer.getSecurityManager().setSecurityConfig(false, destination.getName(), destination.getSecurityConfig());
|
Or you could change the code in both places to be:
| serverPeer.getSecurityManager().setSecurityConfig(isQueue(), destination.getName(), destination.getSecurityConfig());
|
Sorry, that probably should have been my suggested solution in the first place.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049905#4049905
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049905
17 years, 6 months
[JBoss Seam] - Re: Seam CVS+JBoss 4.2+Trinidad
by lowecg2004
And it didn't help that I was looking at the original web.xml...
Looking at your new definition, I didn't know about the Seam filters taking care of the A4J stuff. I just tried with my app, but it failed (possibly down to filter order, but I haven't the time to track that down so I'll resort to previous config).
Where are your Trinidad jars being deployed to and which versions are you using? Are there any references to old MyFaces libs still around? Which version of Seam are you using?
Now that JBoss 4.2.0 is using JSF, have you tried the latest Trinidad 1.2 builds (trinidad-*-1.2-07-may-SNAPSHOT.jar)?
In build.xml, I had to make changes for copying my various libs to WEB-INF/lib:
| <copy todir="${war.dir}/WEB-INF/lib">
| <fileset dir="${lib.dir}">
| <include name="ajax4jsf.jar" />
| <include name="oscache*.jar" />
| <include name="jsf-facelets.jar" />
| <include name="jboss-seam-*.jar" />
| <include name="trinidad-*.jar" />
| <exclude name="jboss-seam-gen.jar" />
| <include name="commons-digester-*.jar" />
| <include name="commons-beanutils-*.jar" />
| <include name="commons-collections-*.jar" />
| </fileset>
| </copy>
I believe A4J has trouble with some of the commons-* libraries that are installed with 4.2.0. For the record, the exact versions I am using are:
commons-digester-1.6.jar
commons-beanutils-1.7.0.jar
commons-collections-3.1.jar
I also have the latest version of ajax4jsf (ajax4jsf-1.1.1-SNAPSHOT.jar) taken from the CVS jboss-seam/lib directory.
I *used* to need a4j-trinidad.jar, but I've not had any problems without out it for some time. Maybe that's down to the 1.1.1 version of A4J.
Finally, here's my web.xml. On a general note, with the exception of the Seam filters, all my filters are bound to a servlet name rather than a URL pattern.
<?xml version="1.0"?>
| <web-app version="2.4"
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
|
| <!-- JSF ************************************************************************************ -->
|
| <context-param>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>/WEB-INF/navigation.xml, /WEB-INF/managed-beans.xml,/WEB-INF/con-val.xml</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>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
| <param-value>false</param-value>
| </context-param>
|
|
| <!-- Trinidad ******************************************************************************* -->
|
| <context-param>
| <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
| <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
| <param-value>false</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT</param-name>
| <param-value>true</param-value>
| </context-param>
|
|
| <!-- Facelets ******************************************************************************* -->
|
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/facelets/ripuk.taglib.xml</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.SKIP_COMMENTS</param-name>
| <param-value>false</param-value>
| </context-param>
|
|
| <!-- Filters ******************************************************************************** -->
|
| <!-- ajax4jsf filter - must be before any other filter -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| <init-param>
| <param-name>forceparser</param-name>
| <param-value>false</param-value>
| </init-param>
| </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>
|
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter </filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <filter>
| <filter-name>trinidad</filter-name>
| <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter </filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>trinidad</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
|
| <!-- Listeners ****************************************************************************** -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <!-- JSF RI -->
| <listener>
| <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
| </listener>
|
| <!-- Servlets ******************************************************************************* -->
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
|
| <servlet>
| <servlet-name>resources</servlet-name>
| <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet </servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>resources</servlet-name>
| <url-pattern>/adf/*</url-pattern>
| </servlet-mapping>
|
|
| <!-- Misc *********************************************************************************** -->
|
| <login-config>
| <auth-method>BASIC</auth-method>
| </login-config>
|
| <error-page>
| <error-code>404</error-code>
| <location>/public/home.seam</location>
| </error-page>
|
| <session-config>
| <session-timeout>30</session-timeout>
| </session-config>
| </web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049904#4049904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049904
17 years, 6 months