Portal 7.1 and SJSAS 9.1

Is it possible to run portal 7.1 on top of SJSAS 9.1 ?
[61 byte] By [Claudio4Ja] at [2007-11-27 6:05:37]
# 1

Below are the steps with some workarounds

* Install DS in configure now mode.

* Install AS9.1. Download glassfish from http://java.sun.com/javaee/downloads/index.jsp without JDK. This is because we want to use the JDK that comes with the JES installer.

* Run 'chmod 755 java_ee_sdk-5_03-preview-solaris-i586-nojdk.bin'

* Run ./java_ee_sdk-5_03-preview-solaris-i586-nojdk.bin -javahome /usr/jdk/entsys-j2se

* Stop the application server if it is running.

* Run ./asadmin change-master-password and provide the passwords on the prompt which you wish.

* Open AS_INSTALL_DIR/config/asenv.conf and change AS_NSS=/opt/AS/lib to AS_NSS=/usr/lib/mps/secv1. If this is not done then AM wont be installed properly.

* Start the application server.

* Install AM and PS in configure later mode.

* Modify amsamplesilent under /opt/SUNWam/bin with the appropriate values(choose AS8 as the WebContainer)

* Run ./amconfig -s amsamplesilent

* Changes to domain.xml:

o Since JSF based portlets(like community/guessnumber) use JSF Portlet Bridge 1.1, it will not work on Appserver 9.

These have to updated to use JSF Portlet Bridge 1.2. This can be downloaded from https://jsfportletbridge.dev.java.net/public/Download_jar.html?url=https://jsfp ortletbridge.dev.java.net/files/documents/5355/51319/jsf-portlet.jar. Add it to the classpath suffix in domain.xml.

o NOTE: Adding jsf-portlet.jar to the classpath can be a post-installation step. Not adding this will not stop the configuration but without this jar accessing communityportlets and guessnumber portlet will throw error in the corresponding portlet channels in desktop.

* If the jar is added then currently we have an issue that psconsole and admin page (http://<host>:4848) of AS which are lockhart based, wont work

o The following entry should be added to the <java-config>...</java-config> in domain.xml: server-classpath is not present at all. This has to be added manually.

+ server-classpath="${com.sun.aas.installRoot}/lib/install/applications/jmsra/imq jmsra.jar${path.separator} ${com.sun.aas.imqLib}/jaxm-api.jar${path.separator}${com.sun.aas.imqLib}/fscont ext.jar${path.separator} ${com.sun.aas.antLib}/ant.jar${path.separator}${com.sun.aas.hadbRoot}/lib/hadbj dbc4.jar${path.separator} ${com.sun.aas.jdmkHome}/lib/jdmkrt.jar${path.separator}${com.sun.aas.mfwkHome}/ lib/mfwk_instrum_tk.jar"

o Add above to classpath prefix also.

* Restart AS

* Modify example14.xml and run ./psconfig --config example14.xml

* NOTE: The three things that should be taken care when modifying the container properties in example14.xml are WebContainerInstallDir, WebContainerInstanceDir and WebContainerDocRoot. By default the install dir for AS9.1 is /opt/SUNWappserver, the instance directory is /opt/SUNWappserver/domains/domain1 and the docroot is /opt/SUNWappserver/domains/domain1/docroot.

* After config is over go to psconsole web-app directory i.e AS_VAR_DIR/domains/domain1/applications/j2ee-modules/psconsole/sra/sra-config.x ml. Open that file and search for 'noble'. Remove this and take care to remove blank spaces. Restart Application Server. This is bug which has to be filed. Otherwise psconsole will give exception while accessing.

* Given below is a sample example14.xml.

<?xml version = "1.0" encoding = "UTF-8"?>

<PortalServerConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="file:///space/PS/SUNWportal/lib/psconfig.xsd" SchemaVersion="1.0">

<Configure ConfigurationHostName="pradeep.india.sun.com" SystemUser="root" SystemGroup="other" Validate="true">

<SharedComponents

JavaHome="/usr/jdk/entsys-j2se"

CacaoProdDir="/usr/lib/cacao"

CacaoConfigDir="/etc/cacao/instances/default"

SharedLibDir="/usr/share/lib"

PrivateLibDir="/usr/share/lib"

JDMKLibDir="/opt/SUNWjdmk/5.1/lib"

NSSLibDir="/usr/lib/mps/secv1"

JSSJarDir="/usr/share/lib/mps/secv1"

WebNFSLibDir="/opt/SUNWebnfs"

DerbyLibDir="/opt/SUNWjavadb/lib"

AntLibDir="/usr/sfw/lib/ant"

AntHomeDir="/usr/sfw"

RegistryLibDir="/space/RS/SUNWsrvc-registry/lib"

MFWKLibDir="/opt/SUNWmfwk/lib"

MFWKBinDir="/opt/SUNWmfwk/bin"

JAXLibDir="/opt/SUNWjax/share/lib"

/>

<AccessManager>

<InstallationDirectory

ProdDir="/space/AM/SUNWam"

DataDir="/var/opt/SUNWam"

ConfigDir="/etc/opt/SUNWam/config"

ConfigFile="AMConfig.properties"

/>

<UserCredentials

AdministratorUID="amadmin"

AdministratorUserPassword="ampassword"

LDAPUserId="amldapuser"

LDAPUserIdPassword="password"

DirectoryManagerDn="cn=Directory Manager"

DirectoryManagerPassword="dmpassword"/>

</AccessManager>

<PortalConfiguration>

<InstallationDirectory

ProdDir="/space/PS/SUNWportal"

DataDir="/var/opt/SUNWportal"

ConfigDir="/etc/opt/SUNWportal"/>

<ComponentsToConfigure>

<component>portalserver</component>

</ComponentsToConfigure>

<SearchServer SearchServerID="mySearch">

<WebContainerProperties

Host="pradeep.india.sun.com"

Port="8080"

Scheme="http"

WebContainerInstallDir="/space/AS/appserver"

WebContainerInstanceName="server"

WebContainerDomainName="domain1"

WebContainerInstanceDir="/space/AS/appserver/domains/domain1"

WebContainerDocRoot="/space/AS/appserver/domains/domain1/docroot"

WebContainerAdminHost="pradeep.india.sun.com"

WebContainerAdminPort="4849"

WebContainerAdminScheme="https"

WebContainerAdminUid="admin"

WebContainerAdminPassword="password"

WebContainerMasterPassword="password"

WebContainerType="SJSAS81"

/>

</SearchServer>

<PortalServer PortalAccessURL="http://pradeep.india.sun.com:8080/portal"

PortalID="myPortal"

PortalWebappURI="/portal"

SearchServerID="mySearch">

<SamplePortal>

<Sample Name="DeveloperPortal"/>

<Sample Name="EnterprisePortal"/>

<Sample Name="CommunityPortal"/>

</SamplePortal>

<Instance InstanceID="myInstance">

<WebContainerProperties

Host="pradeep.india.sun.com"

Port="8080"

Scheme="http"

WebContainerInstallDir="/space/AS/appserver"

WebContainerInstanceName="server"

WebContainerDomainName="domain1"

WebContainerInstanceDir="/space/AS/appserver/domains/domain1"

WebContainerDocRoot="/space/AS/appserver/domains/domain1/docroot"

WebContainerAdminHost="pradeep.india.sun.com"

WebContainerAdminPort="4849"

WebContainerAdminScheme="https"

WebContainerAdminUid="admin"

WebContainerAdminPassword="password"

WebContainerMasterPassword="password"

WebContainerType="SJSAS81"

/>

</Instance>

</PortalServer>

</PortalConfiguration>

</Configure>

</PortalServerConfiguration>

AjitKamblea at 2007-7-12 16:51:57 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2
Wow, thank you very much. I will try it.
Claudio4Ja at 2007-7-12 16:51:57 > top of Java-index,Web & Directory Servers,Portal Servers...