mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixes to allow Alfresco to run with latest JBoss Portal + Jboss AS
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2067 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -60,7 +60,7 @@ public class Application
|
||||
|
||||
public static final String MESSAGE_BUNDLE = "alfresco.messages.webclient";
|
||||
|
||||
private static boolean inPortalServer = true;
|
||||
private static boolean inPortalServer = false;
|
||||
private static StoreRef repoStoreRef;
|
||||
private static String rootPath;
|
||||
private static String companyRootId;
|
||||
|
@@ -60,9 +60,7 @@ import org.springframework.web.context.WebApplicationContext;
|
||||
public class AlfrescoFacesPortlet extends MyFacesGenericPortlet
|
||||
{
|
||||
public static final String INSTANCE_NAME = "AlfrescoClientInstance";
|
||||
public static final String WINDOW_NAME = "AlfrescoClientWindow";
|
||||
public static final String MANAGED_BEAN_PREFIX = "javax.portlet.p." + INSTANCE_NAME +
|
||||
"." + WINDOW_NAME + "?";
|
||||
public static final String MANAGED_BEAN_PREFIX = "javax.portlet.p." + INSTANCE_NAME + "?";
|
||||
|
||||
private static final String ERROR_PAGE_PARAM = "error-page";
|
||||
private static final String ERROR_OCCURRED = "error-occurred";
|
||||
|
26
source/web/WEB-INF/alfresco-object.xml
Normal file
26
source/web/WEB-INF/alfresco-object.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<deployments>
|
||||
<deployment>
|
||||
<if-exists>overwrite</if-exists>
|
||||
<parent-ref>default</parent-ref>
|
||||
<properties/>
|
||||
<page>
|
||||
<page-name>Alfresco</page-name>
|
||||
<properties/>
|
||||
<window>
|
||||
<window-name>AlfrescoClientWindow</window-name>
|
||||
<instance-ref>AlfrescoClientInstance</instance-ref>
|
||||
<default>true</default>
|
||||
<region>center</region>
|
||||
<height>0</height>
|
||||
</window>
|
||||
</page>
|
||||
</deployment>
|
||||
<deployment>
|
||||
<if-exists>overwrite</if-exists>
|
||||
<instance>
|
||||
<instance-name>AlfrescoClientInstance</instance-name>
|
||||
<component-ref>alfresco.AlfrescoClient</component-ref>
|
||||
</instance>
|
||||
</deployment>
|
||||
</deployments>
|
@@ -1,13 +0,0 @@
|
||||
<pages>
|
||||
<portal-name>default</portal-name>
|
||||
<page>
|
||||
<page-name>Alfresco</page-name>
|
||||
<window>
|
||||
<window-name>AlfrescoClientWindow</window-name>
|
||||
<instance-ref>/alfresco.AlfrescoClient.AlfrescoClientInstance</instance-ref>
|
||||
<default>true</default>
|
||||
<region>center</region>
|
||||
<height>0</height>
|
||||
</window>
|
||||
</page>
|
||||
</pages>
|
3
source/web/WEB-INF/jboss-app.xml
Normal file
3
source/web/WEB-INF/jboss-app.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<jboss-app>
|
||||
<app-name>alfresco</app-name>
|
||||
</jboss-app>
|
@@ -1,2 +0,0 @@
|
||||
<server>
|
||||
</server>
|
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" standalone="yes"?>
|
||||
<instances>
|
||||
<instance>
|
||||
<instance-name>AlfrescoClientInstance</instance-name>
|
||||
<component-ref>AlfrescoClient</component-ref>
|
||||
</instance>
|
||||
</instances>
|
@@ -1,10 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
|
||||
<portlet>
|
||||
<description>Alfresco Client Portlet</description>
|
||||
<portlet-name>AlfrescoClient</portlet-name>
|
||||
<display-name>Alfresco Portlet</display-name>
|
||||
<portlet-class>org.alfresco.web.app.portlet.AlfrescoFacesPortlet</portlet-class>
|
||||
|
||||
<init-param>
|
||||
|
@@ -82,11 +82,6 @@
|
||||
-->
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>Mode Detection Filter</filter-name>
|
||||
<filter-class>org.alfresco.web.app.servlet.ModeDetectionFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>WebDAV Authentication Filter</filter-name>
|
||||
<filter-class>org.alfresco.repo.webdav.auth.AuthenticationFilter</filter-class>
|
||||
@@ -111,11 +106,6 @@
|
||||
<url-pattern>/navigate/*</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>Mode Detection Filter</filter-name>
|
||||
<url-pattern>/faces/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>WebDAV Authentication Filter</filter-name>
|
||||
|
Reference in New Issue
Block a user