<requires size='16'>
<require> </require>
...//here the version of requires old version
</requires>
</unit>

Then how does p2 knows which category is latest??

Thanks]]>Zhaopeng XUAN2013-11-06T12:36:48-00:00Categories in P2 update sitehttps://www.eclipse.org/forums/index.php/mv/msg/583589/1172542/#msg_1172542
The question is: In one P2 update site , there are lots of version for one same category, how does P2 find the latest one from source code side?

For example:
In source code, I use following code to get the latest category:
QueryUtil.createLatestQuery(QueryUtil.createIUCategoryQuery());
It will return the category with biggest version.

But in fact, I saw the content.xml, for this category, the version of requirements are old rather than the latest version.

So: How do I get the latest categories and feature groups in source code side?

Thanks a lot]]>Zhaopeng XUAN2013-11-06T00:47:22-00:00Publishing non-plugin files in an update site https://www.eclipse.org/forums/index.php/mv/msg/555600/1143059/#msg_1143059

I have this directory containing extra files (but are important user files)
And this folder (together with all those files) needs to be accessible via an update site, so they download it.

I figure that in other application, they come in with addtional files like docs and txt files, so I think we can do this do, but the problem is we don't know how to do it.

May I know how can I publish this directory of ours?

ANY HELP WOULD BE GREATLY APPRECIATED. wE'D BE HAPPY TO TRY ALL THE SUGGESTIONS YOU'LL ALL BE POSTING.

Advance thank you all ]]>Margs E.2013-10-18T01:27:59-00:00Publishing directory to an update sitehttps://www.eclipse.org/forums/index.php/mv/msg/554631/1141985/#msg_1141985

I have a question about using p2.publisher or any p2 tools.

I need to PUBLISH a certain directory.
This directory, however, only includes .txt and configuration files only.
Not the typical, .class and .java codes. And mostly doesn't have a manifest with it.

How can I possibly publish it to an update site? so our users can download it via update site.

Any suggestion, opinion and comment is very welcome. It would be great to try out all of your soon-to-be suggestions.

The site is properly added when the Update site is added. But when I try to install the feature p2 verifies the dependencies and the operation fails because the associated site is not enabled, so it could not find them.

I have seen some other features that have the WTP associated site. And when they are installed, the site is added and during the dependencies discovery the WTP site is enabled.

It works fine, but I need to protect the site with a username and password. This means that I need to programmatically instruct P2 to use the username and password (I have a hardware dongle that will protect the data).

java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at TestConnectionNew.main(TestConnectionNew.java:18)]]>Kumar V2012-04-26T07:36:39-00:00Updating plugins makes jdbc connection disable.https://www.eclipse.org/forums/index.php/mv/msg/331153/846324/#msg_846324
One of my customer suffer jdbc conenction failure after just update plugin:

java.sql.SQLException: IO Exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)

The codes to connect are very formal, and there is no miss configuration in JDBC connection.
Other customers never suffer this problem, and we could not reproduce problem in our lab.

Environment of the customer is pretty restricted. (Closed Network and Some security policy driven)
There is a firewall in server, but it is configured to allow connection.
And It works fine when plugin(any version) is installed first time(not update).

All other functions works well came with updated plugins but just jdbc connection.

Anyone can imagine what can cause this problem?]]>Jeeeyul Lee2012-04-16T01:03:08-00:00Ensuring update path after feature refactoringhttps://www.eclipse.org/forums/index.php/mv/msg/273668/775314/#msg_775314
The idea I came up with is to create a shell feature for the next update of the Linux Tools feature (possibly also the plug-ins) such that the shell feature/plugin requires the new CDT versions. When a user updates, they will require the new CDT feature and from then on they will see updates to it as I intend to let the shell feature be the last release under Linux Tools.

I would like to also prevent the old Autotools from being installed at the same time as the new Autotools but I'm not sure how to specify conflicts or obsoletions.

Any p2 suggestions for this or issues I haven't thought of?]]>Jeff Johnston2012-01-05T18:56:14-00:00