Skip to main content

Tips to troubleshoot why automatic publishing still occurs in Rational Application Developer when publishing option is set to "Never publish automatically"


Technote (troubleshooting)


Problem(Abstract)

If you have set the publishing option to "Never publish automatically" in the server configuration editor,
when you make a change in your project, the project still automatically publishes to the local
application server inside Rational Application Developer.

Symptom

The project will automatically publish even if you did not specify the Automatically publish option in the server configuration editor.


Cause

There are other places where publishing options are set by default that may override the server configuration editor publishing option. To truly stop all automatic publishing activities, all automatic publishing options should be disabled. The server configuration editor option applies to automatic publish when the application is already published to a started server and a change is made.

Diagnosing the problem

These is the information to be captured

1. From your workspace location, there is .metadata folder

metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.wst.server.core.prefs
metadata\.plugins\org.eclipse.wst.server.core\servers.xml

2. Help->Performance->Generate diagnostic Information->WorkSpace and System Summary

3. Workspace log and server logs

4. Trace the server tool component with your scenario.
Note: the trace strings documented in the technote will be applicable to RAD 7555 as well.

http://www-01.ibm.com/support/docview.wss?uid=swg21606310


Resolving the problem

Turning off automatic publishing

There are three places where the publishing option can be disabled.

To ensure that there is no automatic publishing, you may want to disable all the automatic publish options.

The publishing options from the server configuration editor

You should set to Never publish automatically



Publishing options from server configuration editor

The publishing options from the server configuration editor are the ones users typically use to disable incremental publish (i.e. to make publish manually when the server is started and the application is already published to the server).

However, there are other ways for publishing to occur.

Server Preference Page

Windows->Preference->Server->Launching

Automatically publish to server when started option from preferences page

From the preferences page, the option selected above can also cause a publish. A scenario where this may come up is if the server is started, the user has made changes that require a republish, then suddenly the server connection fails (the server will go from stopped to started). In that case, a publish will occur. To avoid confusion, this option should be disabled to ensure automatic publishing will not occur when the server switches to a starting or started state.


Server View - Add and Remove Projects

In the Servers View, right click on the Server, select Add and Remove Projects





Add and remove dialog

The option for "If server is started, publish changes immediately" may be another place that causes confusion. When a module is added and the "If server is started, publish changes immediately" is enabled, the module will be published immediately (even if the automatic publish option is disabled in the server configuration editor). To disable this automatic publish, ensure the option "If server is started, publish changes immediately" is disabled.

To truly disable all automatic publishing, all three options should be disabled.

If the problem still exists, please follow the instructions in the Diagnosing your problem section to

capture the required information and contact IBM Rational Application Server Support for assistance.


https://www-947.ibm.com/support/servicerequest/Home.action



Related information

Limitations and Trouble Shooting tips for Server Tools
publishing your application
Server start up documentation
Server configuration Options
Annotation and publishing
trace RAD

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational Application Developer for WebSphere Software

Server Tooling


Software version:
7.5.5.5, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.4.1, 8.5


Operating system(s):
Windows


Software edition:
Enterprise


Reference #:
1606324


Modified date:
2013-01-21

Translate my page

Content navigation