Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.1
  • 6.1.2
  • 6.1.5
  • 6.1.5.1
  • 7.0
  • Ajax
  • Alerts
  • Annotations
  • attachment
  • best practices
  • BlackBerry
  • builder
  • builder faq
  • builders
  • charts
  • Code samples
  • Connections
  • css
  • Custom builder
  • CustomBuilder
  • dashboard
  • Data Access
  • data access faq
  • Data and variables
  • Database
  • Databases
  • Debugging
  • demo
  • demo models
  • demo projects
  • demo widget
  • demos
  • deployment
  • deployment faq
  • Deployment scenarios
  • development
  • dojo
  • Domino
  • faq
  • fixpack
  • General FAQ
  • getting started
  • Help
  • HTML
  • html templates
  • ILOG
  • integration
  • iPhone
  • JViews
  • Learning
  • Logging
  • lotus connections
  • Lotus Widget Factory
  • media dashboard
  • media pf
  • media widget
  • mobile
  • mobile smartphone development
  • Model development
  • new
  • Notifications
  • overview
  • page automation
  • Portal
  • Portal Integration
  • portal integration faq
  • Portlet
  • Portlet Factory 7
  • presentation
  • presentation faq
  • Profiling
  • Quickr
  • REST
  • rest faq
  • REST Service Call
  • restructure handler
  • rich ui
  • sample
  • sample application
  • samples
  • schema
  • Security
  • Smartphones
  • SOA
  • social
  • Source Control
  • sql
  • summary and drilldown
  • Team development
  • Troubleshooting
  • ui
  • User Interface
  • video
  • web 2.0
  • Web Experience Factory
  • Web Experience Factory 8
  • Web Services
  • websphere dashboard framework
  • wef
  • wpf
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > FAQs > Diagnosing JMX publishing problems with WebSphere Portlet Factory
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Diagnosing JMX publishing problems with WebSphere Portlet Factory 

expanded Abstract
collapsed Abstract
This article provides information on diagnosing problems with the JMX-based publish configurations in WebSphere Portlet Factory
WebSphere Portlet Factory uses the WebSphere JMX client to publish projects to WebSphere AppServer and WebSphere Portal.  This article describes how to diagnose problems publishing from WebSphere Portlet Factory.
 
The following steps apply to WebSphere Portlet Factory 7.0 and earlier:
The first step to diagnosing publishing problems with WebSphere Portlet Factory is to restart the Designer using some additional command line arguments.  Modify the command line or your launch shortcut to include the following command line arguments: -debug -consolelog.  For example:
    eclipse.exe -debug -consolelog
 
If your existing command line contains a -vmargs argument, the -debug and -consolelog arguments must appear BEFORE the -vmargs argument.  For example:
    eclipse.exe -debug -consolelog -vmargs -Xmx384m
 
If your version of Eclipse has an eclipsec.exe executable, then use eclipsec.exe rather than eclipse.exe.
 
After restarting the WebSphere Portlet Factory Designer, you should see that Eclipse is logging data to the console window where the Designer was launched from.  When Eclipse is restarted, make note of the -vm parameter echoed in the console window.  If the -vm parameter points to a javaw executable, like this:
    -vm C:\IBM\SDP\jdk\jre\bin\javaw.exe
Then you will need to also add a -vm argument to the command line to specify that Eclipse should use java instead of javaw.  For example:
    eclipsec.exe -debug -consolelog -vm C:\IBM\SDP\jdk\jre\bin\java.exe -vmargs -Xmx384m

Now, re-try the publish operation and examine the data that Eclipse logs to the console.
 
Web Experience Factory 7.0.1 and newer does not require any re-configuration.  Publish results are automatically logged to a log file in WebContent/WEB-INF/logs in your project.  Look for a log file named publish_.log.
 
 
Some common problems are:
 
You see an exception with the following message:
Caused by: java.net.UnknownHostException: myhost.ibm.com
 
This indicates that you have some name resolution issues.  In the WebSphere Portlet Factory Designer you enter the connection details using an IP address or hostname for the remote server.  WebSphere Portlet Factory then uses this IP address or hostname to make the initial connection to the remote server.  Any problem with this IP address or hostname here will show up when using the Test Connection button in the configuration dialog.  However, during the publishing process, once the initial connection has been made, the WebSphere server requests that the JMX client (WebSphere Portlet Factory Designer) use a different hostname to communicate with the server.  If this alternate hostname returned by the WebSphere server cannot be resolved on the client, or resolves to a different IP address, then publishing will fail.
 
To see the hostname that WebSphere is requesting that the JMX client use, you can look in your app server's profile/config/cells/cellname/nodes/nodename/serverindex.xml file.  Locate the serverEntries tag for your target server.  Under this serverEntries tag, there should be a specialEndpoints tag for the SOAP_CONNECTOR_ADDRESS endpoint.  The host defined under this tag is the hostname that WebSphere will request that the JMX client use for all subsequent communication.  For example:
<serverEntries xmi:id="ServerEntry_1270442010323" serverName="WebSphere_Portal" serverType="APPLICATION_SERVER">
    ...
    <specialEndpoints xmi:id="NamedEndPoint_1270442010324" endPointName="SOAP_CONNECTOR_ADDRESS">
        <endPoint xmi:id="EndPoint_1270442010324" host="myhost.ibm.com" port="10033"/>
    </specialEndpoints>
    ...

 
Make sure that your machine (where WebSphere Portlet Factory is installed) can resolve this hostname and that it resolves it to the same IP address that you're using in the deployment configuration panel.  If not, then you'll need to add it to your operating system's hosts file.  On windows, you can add this to c:\windows\system32\drivers\etc\hosts.  On linux, you can add this to /etc/hosts.
 
 
You see an exception with the following message:
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket:
java.net.SocketException: java.lang.ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.SocketException: java.lang.ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory]


This indicates that the JRE that Eclipse is using is not an IBM JRE.  Only an IBM JRE can properly load the SSL classes required for secure communication with the WebSphere AppServer.  Restart the WebSphere Portlet Factory Designer using an IBM JRE.  WebSphere Portlet Factory ships with a compatible IBM JRE which can be used.
 
 
You see an exception with the following message:
javax.management.InstanceNotFoundException: WebSphere:process=WebSphere_Portal,type=ConfigService,*

 
This indicates that you are attempting to publish to a WebSphere cluster.  WebSphere Portlet Factory does not support publishing to a WebSphere cluster for development.

expanded Article information
collapsed Article information
Category:
FAQs, Web Experience Factory,
Tags:

This Version: Version 11 December 6, 2011 9:52:00 AM by Kevin Tapperson  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (11)
collapsed Versions (11)
Version Comparison     
Version Date Changed by               Summary of changes
This version (11) Dec 6, 2011 9:52:00 AM Kevin Tapperson  
10 Nov 10, 2010 9:59:52 AM Kevin Tapperson  
9 Jun 16, 2010 7:06:38 PM Kevin Tapperson  
8 Apr 19, 2010 1:42:47 PM Kevin Tapperson  
7 Apr 19, 2010 1:42:11 PM Kevin Tapperson  
6 Apr 19, 2010 1:41:19 PM Kevin Tapperson  
5 Apr 19, 2010 1:40:09 PM Kevin Tapperson  
4 Apr 19, 2010 1:37:39 PM Kevin Tapperson  
3 Apr 19, 2010 1:36:38 PM Kevin Tapperson  
2 Apr 19, 2010 1:33:56 PM Kevin Tapperson  
1 Apr 19, 2010 1:33:09 PM Kevin Tapperson  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use