[Remoting] - remoting-https-service configuration
by monk2005
Hello
I am on trail of a problem that I am facing with JB Messaging and Remoting; Tim from messaging forum suggested that I post here to perhaps resolve this.
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4098850#4098850
Summary of my problem is that I am unable to connect/send JMS messages to a remote machine due https remoting configuration. More details is as follows:
My env...
OS: WinXP
Java: 1.6
JBoss AS: 4.2.2 GA
JBM: 1.4.0.GA
Following is the config part for HTTPS from both remoting-https-service.xml and connection-factories-service.xml files.
For MQ only SSL port (443) was used for all the JMS communication between client and server. I see that for JBM + Remoting it uses one more port other than regular SSL port, 9443 in this case as configured in remoting-https-service.xml. Furthermore, in my case - the server machine only has 443 open and all the other ports are blocked (the network folks gives me the "hairy eyeball" treatment for requesting to open any other port). They ask why can't you configure it so that all the comm takes place using just port 443.
So considering the above, what do you recommend? Is it possible to configure the server so that it uses only port 443? BTW I tried changing the bind port in the "remoting-https-service.xml" to 443, but as expected, the server complained at startup that the port is already occupied etc...
Thanks for your help in advance.
connection-factories-service.xml
| <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=HTTPSConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=https</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <attribute name="JNDIBindings">
| <bindings>
| <binding>/HTTPSConnectionFactory</binding>
| <binding>/XAHTTPSConnectionFactory</binding>
| <binding>java:/HTTPSConnectionFactory</binding>
| <binding>java:/XAHTTPSConnectionFactory</binding>
| </bindings>
| </attribute>
| </mbean>
|
remoting-https-service.xml
| <server>
|
| <!-- Standard bisocket connector - the bisocket transport only opens connection from client->server
| so can be used with firewalls where only outgoing connections are allowed.
| For examples of HTTP and SSL transports see docs/examples -->
|
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.messaging:service=Connector,transport=https"
| display-name="HTTPS transport Connector">
|
| <attribute name="Configuration">
| <config>
| <invoker transport="https">
| <attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="leasePeriod">10000</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="callbackStore">org.jboss.remoting.callback.BlockingCallbackStore</attribute>
| <attribute name="callbackPollPeriod" isParam="true">102</attribute>
| <attribute name="clientLeasePeriod" isParam="true">20000</attribute>
| <attribute name="serverSocketFactory">jboss.messaging:service=ServerSocketFactory,type=SSL</attribute>
| <attribute name="SSLImplementation">org.jboss.remoting.transport.coyote.ssl.RemotingSSLImplementation</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">9443</attribute>
| </invoker>
| <handlers>
| <!--
| <handler subsystem="web">org.jboss.remoting.samples.http.WebInvocationHandler</handler>
|
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| -->
| <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| <!-- This depends is included because need to make sure this mbean is running before configure invoke
| r. -->
| <depends>jboss.messaging:service=ServerSocketFactory,type=SSL</depends>
| </mbean>
|
| </server>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098884#4098884
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098884
18Â years, 6Â months
[JBoss Seam] - Aditional update without press update button
by rbcdexia
I have a relation 1...n between Boleta pojo and Contrapartida pojo. When I want to update the Boleta fields and I have to select a Contrapartida pojo, Seam makes a default update without I have press update button.
I use bypassUpdates="true" with the simple Boleta fields and it works fine(not additional updates). The problem comes when I want to update the Boleta pojo setting a new Contrapartida When I return from Auditoria Select page to Boleta Edit page it makes an additional update without I have pressed any button.
How can I change this? How can I controll the transaction? Why does seam realice this additional update?
This is my BoletaEdit.page.xml.
| <page no-conversation-view-id="/BoletaList.xhtml"
| login-required="true">
|
| <begin-conversation join="true"/>
|
| <action execute="#{boletaHome.wire}"/>
|
| <param name="boletaFrom"/>
| <param name="boletaBoletaid" value="#{boletaHome.boletaBoletaid}"/>
| <param name="contrapartidaFrom"/>
| <param name="contrapartidaContrapartidaid" value="#{contrapartidaHome.contrapartidaContrapartidaid}"/>
|
| <navigation from-action="#{boletaHome.persist}">
| <end-conversation/>
| <redirect view-id="/Boleta.xhtml"/>
| </navigation>
|
| <navigation from-action="#{boletaHome.update}">
| <end-conversation/>
| <redirect view-id="/Boleta.xhtml"/>
| </navigation>
|
|
| <navigation from-action="#{boletaHome.remove}">
| <end-conversation/>
| <redirect view-id="/BoletaList.xhtml"/>
| </navigation>
|
| </page>
|
This is my BoletaEdit.xhtml
| <ui:define name="body">
|
| <h:messages globalOnly="true" styleClass="message" id="globalMessages"/>
|
| <h:form id="boleta" styleClass="edit">
|
| <rich:panel>
| <f:facet name="header">#{messages['Edit']} #{messages['Boleta']}</f:facet>
| <s:decorate id="loginDecoration" template="layout/edit.xhtml">
| <ui:define name="label">#{messages['Usuario']}</ui:define>
| <h:inputText id="login"
| required="true"
| size="12"
| maxlength="12"
| value="#{boletaHome.instance.login}">
| <a:support event="onblur" reRender="loginDecoration" bypassUpdates="true"/>
| </h:inputText>
| </s:decorate>
|
|
| <s:decorate id="tipoopeDecoration" template="layout/edit.xhtml">
| <ui:define name="label">#{messages['Tipo operación']}</ui:define>
| <h:inputText id="tipoope"
| required="true"
| size="2"
| maxlength="2"
| value="#{boletaHome.instance.tipoope}">
| <a:support event="onblur" reRender="tipoopeDecoration" bypassUpdates="true"/>
| </h:inputText>
| </s:decorate>
|
| <div style="clear:both">
| <span class="required">*</span>
| #{messages['required.fields']}
| </div>
|
| </rich:panel>
|
| <div class="actionButtons">
|
| <h:commandButton id="save"
| value="#{messages['Save']}"
| action="#{boletaHome.persist}"
| disabled="#{!boletaHome.wired}"
| rendered="#{!boletaHome.managed}"/>
|
| <h:commandButton id="update"
| value="#{messages['Update']}"
| action="#{boletaHome.update}"
| rendered="#{boletaHome.managed}"/>
|
| <s:button id="done"
| value="#{messages['Done']}"
| propagation="end"
| view="/Boleta.xhtml"
| rendered="#{boletaHome.managed}"/>
|
| <s:button id="cancel"
| value="#{messages['Cancel']}"
| propagation="end"
| view="/#{empty boletaFrom ? 'BoletaList' : boletaFrom}.xhtml"
| rendered="#{!boletaHome.managed}"/>
|
| </div>
| </h:form>
|
| <rich:tabPanel switchType="ajax">
| <rich:tab label="#{messages['Contrapartida']} *" labelClass="required">
| <div class="association" id="contrapartidaParent">
|
| <h:outputText value="#{messages['No hay asociada una contrapartida']}"
| rendered="#{boletaHome.instance.contrapartida == null}"/>
|
| <rich:dataTable var="contrapartida"
| value="#{boletaHome.instance.contrapartida}"
| rendered="#{boletaHome.instance.contrapartida != null}"
| rowClasses="rvgRowOne,rvgRowTwo"
| id="contrapartidaTable">
| <h:column>
| <f:facet name="header">#{messages['Nombre']}</f:facet>
| #{contrapartida.nombre}
| </h:column>
| <h:column>
| <f:facet name="header">#{messages['Cuenta']}</f:facet>
| #{contrapartida.cuenta}
| </h:column>
| <h:column>
| <f:facet name="header">#{messages['BIC']}</f:facet>
| #{contrapartida.bic}
| </h:column>
| <h:column>
| <f:facet name="header">#{messages['action']}</f:facet>
| <s:link view="/Contrapartida.xhtml"
| id="viewcontrapartida"
| value="#{messages['View']}"
| propagation="none">
| <f:param name="contrapartidaContrapartidaid"
| value="#{contrapartida.contrapartidaid}"/>
| </s:link>
| </h:column>
| </rich:dataTable>
|
| <div class="actionButtons">
| <s:button value="#{messages['Select']} #{messages['Contrapartida']}"
| view="/ContrapartidaList.xhtml">
| <f:param name="from" value="BoletaEdit"/>
| </s:button>
| </div>
|
| </div>
| </rich:tab>
| </rich:tabPanel>
| </ui:define>
|
| </ui:composition>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098881#4098881
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098881
18Â years, 6Â months
[Installation, Configuration & DEPLOYMENT] - Re: Want to set Expires and Cache-control HTTP headers for b
by JonathansCorner.com
Here are the contents of server/default/deploy/ROOT.war/WEB-INF/web.xml and jboss-web.xml:
server/default/deploy/ROOT.war/WEB-INF/web.xml wrote : <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app 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" version="2.4">
|
| <filter-name>Auto Login Filter</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.autologin.AutoLoginFilter</filter-class>
|
|
| <filter-name>CAS Filter</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.sso.cas.CASFilter</filter-class>
|
|
| <filter-name>Compression Filter</filter-name>
| <filter-class>com.liferay.filters.compression.CompressionFilter</filter-class>
|
|
| <filter-name>Double Click Filter</filter-name>
| <filter-class>com.liferay.filters.doubleclick.DoubleClickFilter</filter-class>
|
|
| <filter-name>Header Filter</filter-name>
| <filter-class>com.liferay.filters.header.HeaderFilter</filter-class>
| <init-param>
| <param-name>Cache-Control</param-name>
| <param-value>max-age=172801, public</param-value>
| </init-param>
| <init-param>
| <param-name>Expires</param-name>
| <param-value>172801</param-value>
| </init-param>
|
|
| <filter-name>Layout Cache Filter - Friendly</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class>
| <init-param>
| <param-name>pattern</param-name>
| <param-value>0</param-value>
| </init-param>
|
|
| <filter-name>Layout Cache Filter - Layout</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class>
| <init-param>
| <param-name>pattern</param-name>
| <param-value>1</param-value>
| </init-param>
|
|
| <filter-name>Layout Cache Filter - Resource</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class>
| <init-param>
| <param-name>pattern</param-name>
| <param-value>2</param-value>
| </init-param>
|
|
| <filter-name>Ntlm Filter</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter</filter-class>
|
|
| <filter-name>Secure MainServlet Filter</filter-name>
| <filter-class>com.liferay.filters.secure.SecureFilter</filter-class>
| <init-param>
| <param-name>portal_property_prefix</param-name>
| <param-value>main.servlet.</param-value>
| </init-param>
|
|
| <filter-name>Session Id Filter</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.sessionid.SessionIdFilter</filter-class>
|
|
| <filter-name>Strip Filter</filter-name>
| <filter-class>com.liferay.filters.strip.StripFilter</filter-class>
|
|
| <filter-name>Velocity Filter</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.velocity.VelocityFilter</filter-class>
| <init-param>
| <param-name>pattern</param-name>
| <param-value>(.+)/css/main.css(.+)</param-value>
| </init-param>
|
|
| <filter-name>Virtual Host Filter</filter-name>
| <filter-class>com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter</filter-class>
|
| <filter-mapping>
| <filter-name>Session Id Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Virtual Host Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>CAS Filter</filter-name>
| <url-pattern>/c/portal/login</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>CAS Filter</filter-name>
| <url-pattern>/c/portal/logout</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Ntlm Filter</filter-name>
| <url-pattern>/c/portal/login</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/c/portal/change_password</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/c/portal/fckeditor</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/c/portal/layout</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/c/portal/login</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/c/portal/render_portlet</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/group/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/user/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Auto Login Filter</filter-name>
| <url-pattern>/web/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Layout Cache Filter - Friendly</filter-name>
| <url-pattern>/group/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Layout Cache Filter - Friendly</filter-name>
| <url-pattern>/user/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Layout Cache Filter - Friendly</filter-name>
| <url-pattern>/web/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Layout Cache Filter - Layout</filter-name>
| <url-pattern>/c/portal/layout</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Layout Cache Filter - Resource</filter-name>
| <url-pattern>/c/portal/css_cached</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Layout Cache Filter - Resource</filter-name>
| <url-pattern>/c/portal/javascript_cached</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Double Click Filter</filter-name>
| <url-pattern>/c/portal/layout</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Double Click Filter</filter-name>
| <url-pattern>/group/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Double Click Filter</filter-name>
| <url-pattern>/user/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Double Click Filter</filter-name>
| <url-pattern>/web/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Secure MainServlet Filter</filter-name>
| <url-pattern>/c/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Secure MainServlet Filter</filter-name>
| <url-pattern>/group/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Secure MainServlet Filter</filter-name>
| <url-pattern>/user/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Secure MainServlet Filter</filter-name>
| <url-pattern>/web/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>/c/portal/css_cached</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>/c/portal/javascript_cached</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>/image/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>/language/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>*.css</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>*.gif</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>*.html</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>*.jpg</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>*.js</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Header Filter</filter-name>
| <url-pattern>*.png</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>/c/portal/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>/group/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>/user/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>/web/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>*.css</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>*.html</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>*.js</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Compression Filter</filter-name>
| <url-pattern>*.jsp</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>/c/portal/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>/group/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>/user/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>/web/*</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>*.css</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>*.html</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>*.js</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>Strip Filter</filter-name>
| <url-pattern>*.jsp</url-pattern>
| </filter-mapping>
|
| <listener-class>com.liferay.portal.servlet.PortalSessionListener</listener-class>
|
|
| <listener-class>com.liferay.portal.kernel.servlet.PortletSessionListenerManager</listener-class>
|
|
| <listener-class>com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener</listener-class>
|
|
| <servlet-name>MainServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.MainServlet</servlet-class>
| <init-param>
| <param-name>config</param-name>
| <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-ext.xml</param-value>
| </init-param>
| <init-param>
| <param-name>debug</param-name>
| <param-value>0</param-value>
| </init-param>
| <init-param>
| <param-name>detail</param-name>
| <param-value>0</param-value>
| </init-param>
| <load-on-startup>1</load-on-startup>
|
|
| <servlet-name>FriendlyURLPrivateGroupServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.FriendlyURLServlet</servlet-class>
| <init-param>
| <param-name>private</param-name>
| <param-value>true</param-value>
| </init-param>
| <init-param>
| <param-name>user</param-name>
| <param-value>false</param-value>
| </init-param>
| <load-on-startup>2</load-on-startup>
|
|
| <servlet-name>FriendlyURLPrivateUserServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.FriendlyURLServlet</servlet-class>
| <init-param>
| <param-name>private</param-name>
| <param-value>true</param-value>
| </init-param>
| <init-param>
| <param-name>user</param-name>
| <param-value>true</param-value>
| </init-param>
| <load-on-startup>3</load-on-startup>
|
|
| <servlet-name>FriendlyURLPublicServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.FriendlyURLServlet</servlet-class>
| <init-param>
| <param-name>private</param-name>
| <param-value>false</param-value>
| </init-param>
| <load-on-startup>4</load-on-startup>
|
|
| <servlet-name>ImageServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.ImageServlet</servlet-class>
| <load-on-startup>5</load-on-startup>
|
|
| <servlet-name>LanguageServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.LanguageServlet</servlet-class>
| <load-on-startup>6</load-on-startup>
|
|
| <servlet-name>LuceneServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.LuceneServlet</servlet-class>
| <load-on-startup>7</load-on-startup>
|
|
| <servlet-name>SitemapServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.SitemapServlet</servlet-class>
| <load-on-startup>8</load-on-startup>
|
|
| <servlet-name>PortalDelegatorServlet</servlet-name>
| <servlet-class>com.liferay.portal.kernel.servlet.PortalDelegatorServlet</servlet-class>
| <load-on-startup>9</load-on-startup>
|
|
| <servlet-name>ResourceProxyServlet</servlet-name>
| <servlet-class>com.liferay.portal.wsrp.servlet.ResourceProxyServlet</servlet-class>
| <load-on-startup>10</load-on-startup>
|
|
| <servlet-name>PortletBridgeServlet</servlet-name>
| <servlet-class>org.portletbridge.portlet.PortletBridgeServlet</servlet-class>
| <init-param>
| <param-name>mementoSessionKey</param-name>
| <param-value>mementoSessionKey</param-value>
| </init-param>
| <init-param>
| <param-name>cssRegex</param-name>
| <param-value>(?:url\((?:'|")?(.*?)(?:'|")?\))|(?:@import\s+[^url](?:'|")?(.*?)(?:'|")|;|\s+|$)</param-value>
| </init-param>
| <init-param>
| <param-name>jsRegex</param-name>
| <param-value>open\('([^']*)'|open\("([^\"]*)"</param-value>
| </init-param>
| <init-param>
| <param-name>ignoreRequestHeaders</param-name>
| <param-value>accept-encoding,connection,keep-alive</param-value>
| </init-param>
| <init-param>
| <param-name>ignorePostToGetRequestHeaders</param-name>
| <param-value>content-type,content-length</param-value>
| </init-param>
| <load-on-startup>11</load-on-startup>
|
|
| <servlet-name>SoftwareCatalogServlet</servlet-name>
| <servlet-class>com.liferay.portal.servlet.SoftwareCatalogServlet</servlet-class>
| <load-on-startup>12</load-on-startup>
|
| <servlet-mapping>
| <servlet-name>MainServlet</servlet-name>
| <url-pattern>/c/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>FriendlyURLPrivateGroupServlet</servlet-name>
| <url-pattern>/group/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>FriendlyURLPrivateUserServlet</servlet-name>
| <url-pattern>/user/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>FriendlyURLPublicServlet</servlet-name>
| <url-pattern>/web/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>ImageServlet</servlet-name>
| <url-pattern>/image/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>LanguageServlet</servlet-name>
| <url-pattern>/language/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>SitemapServlet</servlet-name>
| <url-pattern>/sitemap.xml</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>PortalDelegatorServlet</servlet-name>
| <url-pattern>/delegate/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>ResourceProxyServlet</servlet-name>
| <url-pattern>/wsrp/resource_proxy/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>PortletBridgeServlet</servlet-name>
| <url-pattern>/pbhs/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>SoftwareCatalogServlet</servlet-name>
| <url-pattern>/software_catalog/*</url-pattern>
| </servlet-mapping>
| <session-config>
| <session-timeout>30</session-timeout>
| </session-config>
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| <welcome-file>index.jsp</welcome-file>
| </welcome-file-list>
| <jsp-config>
|
| <taglib-uri>http://displaytag.sf.net</taglib-uri>
| <taglib-location>/WEB-INF/tld/displaytag.tld</taglib-location>
|
|
| <taglib-uri>http://easyconf.sourceforge.net/tags-easyconf</taglib-uri>
| <taglib-location>/WEB-INF/tld/easyconf.tld</taglib-location>
|
|
| <taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
| <taglib-location>/WEB-INF/tld/c-rt.tld</taglib-location>
|
|
| <taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri>
| <taglib-location>/WEB-INF/tld/fmt-rt.tld</taglib-location>
|
|
| <taglib-uri>http://java.sun.com/jstl/sql_rt</taglib-uri>
| <taglib-location>/WEB-INF/tld/sql-rt.tld</taglib-location>
|
|
| <taglib-uri>http://java.sun.com/jstl/xml_rt</taglib-uri>
| <taglib-location>/WEB-INF/tld/x-rt.tld</taglib-location>
|
|
| <taglib-uri>http://java.sun.com/portlet</taglib-uri>
| <taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
|
|
| <taglib-uri>http://liferay.com/tld/portlet</taglib-uri>
| <taglib-location>/WEB-INF/tld/liferay-portlet-ext.tld</taglib-location>
|
|
| <taglib-uri>http://liferay.com/tld/security</taglib-uri>
| <taglib-location>/WEB-INF/tld/liferay-security.tld</taglib-location>
|
|
| <taglib-uri>http://liferay.com/tld/theme</taglib-uri>
| <taglib-location>/WEB-INF/tld/liferay-theme.tld</taglib-location>
|
|
| <taglib-uri>http://liferay.com/tld/ui</taglib-uri>
| <taglib-location>/WEB-INF/tld/liferay-ui.tld</taglib-location>
|
|
| <taglib-uri>http://liferay.com/tld/util</taglib-uri>
| <taglib-location>/WEB-INF/tld/liferay-util.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-bean</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-bean-el</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-bean-el.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-html</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-html-el</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-html-el.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-logic</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-logic-el</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-logic-el.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-nested</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-tiles</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
|
|
| <taglib-uri>http://struts.apache.org/tags-tiles-el</taglib-uri>
| <taglib-location>/WEB-INF/tld/struts-tiles-el.tld</taglib-location>
|
| </jsp-config>
| <resource-ref>
| <res-ref-name>jdbc/LiferayPool</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
| <resource-ref>
| <res-ref-name>mail/MailSession</res-ref-name>
| <res-type>javax.mail.Session</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>/c/portal/protected</web-resource-name>
| <url-pattern>/c/portal/protected</url-pattern>
| <http-method>GET</http-method>
| <http-method>POST</http-method>
| </web-resource-collection>
| <auth-constraint>
| <role-name>users</role-name>
| </auth-constraint>
| <user-data-constraint>
| <transport-guarantee>NONE</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>PortalRealm</realm-name>
| <form-login-config>
| <form-login-page>/c/portal/j_login</form-login-page>
| <form-error-page>/c/portal/j_login_error</form-error-page>
| </form-login-config>
| </login-config>
| <security-role>
| <role-name>users</role-name>
| </security-role>
| </web-app>
server/default/deploy/ROOT.war/WEB-INF/jboss-web.xml wrote : <?xml version="1.0"?>
| <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
|
| <jboss-web>
| <security-domain>java:/jaas/PortalRealm</security-domain>
| <context-root>/</context-root>
| <resource-ref>
| <res-ref-name>jdbc/LiferayPool</res-ref-name>
| <jndi-name>java:/jdbc/LiferayPool</jndi-name>
| </resource-ref>
| <resource-ref>
| <res-ref-name>mail/MailSession</res-ref-name>
| <jndi-name>java:/mail/MailSession</jndi-name>
| </resource-ref>
| </jboss-web>
Do I need to add directives to jboss-web.xml?
Thanks for any help,
[url=http://JonathansCorner.com/]Jonathan Hayward
Jonathan's Corner: A Glimpse into Eastern Orthodox Christianity[/url]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098874#4098874
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098874
18Â years, 6Â months
[Installation, Configuration & DEPLOYMENT] - Want to set Expires and Cache-control HTTP headers for bundl
by JonathansCorner.com
I am presently working with a bundle that includes Liferay 4.3.3 running over JBoss + Tomcat 4.2 (download link). I want to get the server to set far-future Expires and Cache-Control HTTP headers for images and JavaScript files, which I can identify either by MIME type or by file extension.
I'll try to post the contents of server/default/deploy/ROOT.war/WEB-INF/web.xml in a reply to this message, and appears to specify values high enough so that successive visits will load images and JavaScript from the browser cache instead of the server. However, Yslow and page load times both suggest that these files are being downloaded directly from the server and not loaded from cache.
Do you have any suggestions for how I might adjust what I have now so that frequent visitors will load images and external JavaScript files from the cache?
Thank you,
Jonathan Hayward
Jonathan's Corner: A Glimpse into Eastern Orthodox Christianity
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098872#4098872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098872
18Â years, 6Â months