Portal: Setting the JVM Proxy settings in Sun Application Server 8.1

There are times when the JVM needs to access content through a proxy server. An example of this is when an organization deploys a provider such as the URL Scraper or XML Provider that gets content from an external source. If these external sites are only accessible through a proxy server, then the JVM settings need to be configured with the proxy information.

Setting JVM Proxy Options

The JVM Proxy Options can be set using the Application Server Administration Console.
  1. Log in to the admin console
  2. Navigate to your server instance, expand that node, and click on JVM Settings
  3. Click on the JVM Options tab
  4. Add entries as follows
    • -Dhttp.nonProxyHosts=amserver.company.com|ldapserver.company.com|mailserver.company.com|localhost
      These are internal hosts that the portal needs access to. You should always include the names of the Access Manager, LDAP Server, and other servers in your network that are utilized by the portal.
    • -Dhttp.proxyHost=webcache.east.sun.com
      This is the name of you proxy server
    • -Dhttp.proxyPort=8080
      This is the port that the proxy server listens on

Modifying the Server Startup Options

There is a bug in SJS Application Server 8.1 (6372759) that will prevent the server from starting once these changes are made to the JVM Options. A configuration file must be changed to correct the problem. This is not an issue in SJS Application Server 9.0.
  1. Open a terminal window on the application server
  2. Edit the file /opt/SUNWappserver/appserver/config/asenv.conf
  3. Change AS_NATIVE_LAUNCHER="true" to be AS_NATIVE_LAUNCHER="false"
A restart of the application server is required to make the changes effective.
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12622652

Search

Categories
Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today