Sun Java System Portal Server 7.1 Deployment Planning Guide

Troubleshooting Portal Server

This sections contains troubleshooting information for Sun Java System Portal Server.

Troubleshooting the Portal Server Installation

Examining the Portal Server log files helps you to identify errors that might have occurred during the installation phase of your Portal Server deployment. The following sections discuss the log file locations and information:

Installation Log Files

The Java Enterprise System installer log files are located in:

/var/sadm/install/logs/. These log files contain information about the portal packages installed and the basic configuration status. The files are:

ProcedureTo Check for Install Errors

    Use the following command to view install errors:

    grep -i failed /var/sadm/install/logs/*


Example B–1 Java Enterprise System Install Logs


 Java_Enterprise_System_5_Summary_Report_install.timestamp 
***********extract************ 
Sun Java(TM) System Access Manager 7.1 : Installed, Configured 
Service Registry 3.1 : Installed, Configure After Install 
Sun Java(TM) System Portal Server 7.1 : Installed, Configuration Failed 
Sun Java(TM) System Portal Server Secure Remote Access 7.1 : Installed, Configuration 
Failed 
*************************

JavaES_Install_log.timestamp 
***********extract************ 
Creating Portals 
Successfully created Portal: portal1|#] 
[#|2006-11-21T14:22:15+00:00|WARNING|JavaES|JavaESInstall|
_versionID=1.0;_threadID=13;_SourceJavaFile=EntsysConfigurator;
_SourceMethodName=executeCmd(cmdArray);_JavaESMessageID=;_JavaESResourceBundle=| 
Configuration Failed : com.sun.portal.fabric.tasks.ConfigurationException: 
javax.management.MBeanException: 
Exception thrown in operation createAndFinalizeInstance|#] 
****************************

Portal Configuration Log Files

The Portal Server configuration log files are located in:

/var/opt/SUNWportal/logs/config/portal.fabric.0.0.log

The following example show a portion of the Portal Configuration log file.


***********extract************
[#|2006-11-21T14:22:14.109+0000|INFO|SJS Portal Server|
debug.com.sun.portal.fabric.config|
ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; 
MethodName=configurePortal; |PSFB_CSPFC0032:Creating Portal Instances|#]
                                                                                
[#|2006-11-21T14:22:14.509+0000|SEVERE|SJS Portal Server|
debug.com.sun.portal.fabric.config|
ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; 
MethodName=createPortalInstances; |PSFB_CSPFC0041:Failed invoking mbean action : 
create instance.
javax.management.MBeanException: Exception thrown in operation 
createAndFinalizeInstance
        at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke
(StandardMetaDataImpl.java:435)
Caused by: com.sun.portal.admin.common.PSMBeanException: 
com.sun.portal.fabric.tasks.ValidationException: Could not fetch 
the value of Platform. Please check wadm username and password
****************************

Portal Admin and MBeans Log Files

The Portal admin and MBeans logs are available at:

/var/opt/SUNWportal/logs/admin/portal.0.0.log

Checking the Configured Portals

You can find which portals are configured using the psadmin command. The following command shows which portals are configured.

Input

PATH=/opt/SUNWportal/bin:/usr/jdk/entsys-j2se/bin:${PATH};export PATH

psadmin list-portals -u amadmin -f /tmp/passwd

Output


Domain: defaultDomain
============================================
Portal: portal1
============================================

Checking Unix Processes

For the portal to be functioning properly, check that the following root-owned processes are running. Use the ps command to see this output.

Sun Java System Directory Server:

ps -ef | grep dsee

ns-slap -D /var/opt/SUNWdsee/dsins 1 -i /var/opt/SUNWdsee/dsins1/logs/pid

Sun Java System Access Manager:

Check for web container processes (webserver)

ps -ef | grep webserv

webservd -d /var/opt/SUNWwbsvr7/https-xxxx.pstest.com/config -r /opt/SUNWwb

Sun Java System Portal Server:

Check for web container processes (Application Server)

ps -ef | grep appserver

/opt/SUNWappserver/appserver/lib/appservDAS domain1

Cacao Server:

Verify that the cacao process is running

/usr/ucb/ps -auxww | grep cacao

/usr/jdk/jdk1.5.0_09/bin/java -Xms 128M -Xmx256M ...-classpath .../usr/lib/cacao/lib/cacao_cacao.jar ... Dcacao.config.dir=/etc/cacao/instances/default ...

Derby database:

ps -ef | grep derby

Admin Web Server (optional, but usually running):

./uxwdog -d web-container-install-root/SUNWam/servers/https-admserv/config
ns-httpd -d web-container-install-root/SUNWam/servers/https-admserv/config

Runtime Log Files

Examine the following log files for errors.

Access Manager logs are located in:

/var/opt/SUNWam/debug

Runtime Portal Server logs:

Runtime Portal instance logs are available at:

/var/opt/SUNWportal/portals/portal-server-ID/logs

Restarting Processes

The following tasks describe how you restart some of the component processes.

ProcedureTo Restart the Web Server

  1. Use the following command to go to the Web Server instance directory.

    cd /var/opt/SuNWwbsvr7/https-instance-name.pstest.com/bin.

  2. Stop the Web Server.

    ./stopserv.

  3. Start the Web Server.

    ./startserv.

    The following message will be displayed when the portal module is loaded.

    info: WEB0100: Loading web module in virtual server [xxxx.pstest.com] at [/portal]

ProcedureTo Restart Cacao

  1. Use the following command to go to the cacao directory:

    cd /usr/lib/cacao/bin.

  2. Stop the cacao server.

    ./cacaoadm stop.

  3. Start the cacao server.

    ./cacaoadm start.

ProcedureTo Restart the Directory Server

    Use the following command to restart the Directory Server.

    Directory-Server-install-dir/SUNWdsee/ds6/bin/dsame start /var/optSUNWdsee/dsins1

Working with the Display Profile

If you need to troubleshoot the XML contents of your portal’s display profile, extract the contents to a file for examination. At some point in the troubleshooting process, it might be useful to reload the display profile.

ProcedureTo Extract the Display Profile

  1. Login as administrator.

  2. Use the psadmin command to extract the display profile. For example:

    psadmin list-display-profile -u uid=amadmin,ou=People,dc=pstest,dc=com -f /tmp/passwd -p portal1 -o /tmp/global_dp.xml -g

    This example puts the contents of the display profile into the /tmp/global_dp.xml file.

ProcedureTo Reload the Display Profile

  1. Login as administrator.

  2. Use the psadmin command to reload the display profile. For example:

    psadmin modify-display-profile -u uid=amadmin,ou=People, dc=pstest,dc=com -f /tmp/passwd -d uid=user001,ou=People,o=DeveloperSample,dc=pstest,dc=com -p portal1 /tmp/updated_display.xml

    This example reloads the contents of the display profile from the /tmp/updated_displayxml file.

Configuring an HTTP Proxy

If the Portal Server software is installed on a host that cannot directly access certain portions of the Internet or your intranet, you can receive errors. For example, when using the SampleSimpleWebService provider, you might see the following error when the proxy has not been configured:


HTTP transport error: java.net.ConnectException: Connection refused

ProcedureTo Configure Usage of an HTTP Proxy for a Portal Server Instance

The following procedure describes how to configure an HTTP Proxy for a Portal Server instance on Sun Java System Web Server.

  1. Change directories to the web container data directory containing the configuration for the instance.

    cd webcontainer-install-root/SUNWwbsvr7/https-instance-name/config

    For example: /var/opt/SUNWwbsvr7/https-siroe.com/config

  2. Edit the server.xml file within this directory and add the following lines:


    <jvm-options>-Dhttp.proxyHost=proxy-host</jvm-options>

    <jvm-options>-Dhttp.proxyPort=proxy-port</jvm-options>

    <jvm-options>-Dhttp.nonProxyHosts=portal-host</jvm-options>

    Where proxy-host is the fully-qualified domain name of the proxy host, proxy-port is the port on which the proxy is run, and portal-host is the fully qualified domain name of the portal host.

  3. Restart the webcontainer for the changes to take affect.