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.- Log in to the admin console
- Navigate to your server instance, expand that node, and click on JVM Settings
- Click on the JVM Options tab
- 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.- Open a terminal window on the application server
- Edit the file
/opt/SUNWappserver/appserver/config/asenv.conf - Change
AS_NATIVE_LAUNCHER="true"to beAS_NATIVE_LAUNCHER="false"