Empty bundle dependecies after upgrading VTS to 3.5.0.M2 [message #812756] |
Sun, 04 March 2012 03:36  |
Eclipse User |
|
|
|
Hi all,
I have just upgraded virgo tomcat server from 3.0.2.release to 3.5.m2, also uninstalled virgo tooling milestone version and installed snapshot version.
After the upgrade, the bundle dependencies in the package explorer are empty, the dependencies are not resolved in the workspace.
this is my .classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.virgo.ide.jdt.core.MANIFEST_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
and .project :
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.osgi.web</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.virgo.ide.facet.core.bundlenature</nature>
<nature>com.springsource.server.ide.facet.core.plannature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.virgo.ide.facet.core.plannature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
Thank you.
Jay
|
|
|
|
|
|
|
|
|
Re: Empty bundle dependecies after upgrading VTS to 3.5.0.M2 [message #831137 is a reply to message #814965] |
Wed, 28 March 2012 10:15   |
Eclipse User |
|
|
|
Hi everybody,
@ Miles:
Quote:wiki.eclipse.org/Virgo/Tooling#Special_Note.
I think the anchor Special_Note does not exist on that website...
@ Leo:
Quote:Today's snapshot builds have some fixes to better support Virgo 3.5. Definitely update if you get a chance.
I suppose the "Installation Steps (for the snapshot builds)" on the above site should include the Virgo update site: ...virgo/updatesite/3.5.0.M03 (M03 instead of M02).
@ My Problem:
I keep having the problem that my Bundle Dependencies are empty: in project properties, Java Build Path, Libraries, Bundle Dependencies: contains no JARs or referenced projects. Sometimes only JARs are missing but referenced projects are there. But the same JARs are there for other bundle projects (having the same runtime configuration)
Therefore, when I press 'Add' in the Manifest's Wizard, I see no packages to add. Existing imports are often marked as missing. Removing them and adding them (manually, in the textual view) sometimes solves the problem. However, next time I start Eclipse, the problem is usually back.
I tried to vary the following:
IDEs:
- Eclipse (eclipse-jee-indigo-SR1-win32-x86_64)
- SpringSource Tool Suite (springsource-tool-suite-2.9.1.RELEASE-e3.7.2-win32-x86_64)
Virgo:
- virgo-tomcat-server-3.0.2.RELEASE
- virgo-tomcat-server-3.5.0.M03
Tooling: (cf. wiki.eclipse.org/Virgo/Tooling)
- Installation Steps (for the milestone builds)
- Installation Steps (for the snapshot builds) --- except that I used the update site for 3.5.0.M03 (as I wrote above)
Can anybody give me a hint in which combination of IDE/Virgo/Tooling it should work best? Or which log files should I look into?
Thanks in advance for your replies!
All the best,
Martin
|
|
|
|
|
Re: Empty bundle dependecies after upgrading VTS to 3.5.0.M2 [message #832767 is a reply to message #832209] |
Fri, 30 March 2012 11:04   |
Eclipse User |
|
|
|
Thanks Leo! I also tried with M02 version of server and snapshot Virgo tooling now. I checked the Target Runtimes and Bundle Dependencies... No success. 
Take a look at the attached screenshot: I have two bundles, both require dependencies from a Jena library, which I put in the repository. Both bundles can be deployed and started successfully. Still, for one of the two bundles, the wizard tells me that the Import-Packages cannot be resolved.
(I created a Jena-Library-JAR using bndtools, all required dependencies were taken from the SpringSource Bundle Repository. I used a fresh installation of Eclipse with the latest snapshot of Virgo Tooling, and in the workspace there are only one server and only one server runtime environment.)
Interestingly, the very same bundles work perfectly fine with an old installation of SpringSource Tool Suite 2.8.1, Virgo 3.0.1, and Virgo tooling 1.0.0.201110312003-SNAPSHOT. I just tried once again, starting from a fresh workspace in that installation. Everything is fine there. (EDIT: Web Application Bundles seem to make trouble already with Virgo 3.0.2 and this version of tooling.)
Afterwards, I started the other installation with 1.0.0.201203202115-SNAPSHOT, created a new 3.5.0.M03 server (same files in repository/usr), and imported all the bundles form the first workspace. I can clean, build, and deploy my bundles - no errors occur so far. Also after restarting Eclipse.
However: Once I open the wizard for one of my manifests and add a whitespace somewhere, and save the file: the errors are back: "Import-Package: ... cannot be resolved" and bundle dependencies are empty again. (There are no errors in the workspace .metadata/.log)
Should I file a bug?
All the best,
Martin
[Updated on: Fri, 30 March 2012 12:53] by Moderator
|
|
|
|
Re: Empty bundle dependecies after upgrading VTS to 3.5.0.M2 [message #834514 is a reply to message #832767] |
Sun, 01 April 2012 23:16   |
Eclipse User |
|
|
|
Martin W. wrote on Fri, 30 March 2012 11:04Thanks Leo! I also tried with M02 version of server and snapshot Virgo tooling now. I checked the Target Runtimes and Bundle Dependencies... No success. 
Take a look at the attached screenshot: I have two bundles, both require dependencies from a Jena library, which I put in the repository. Both bundles can be deployed and started successfully. Still, for one of the two bundles, the wizard tells me that the Import-Packages cannot be resolved.
(I created a Jena-Library-JAR using bndtools, all required dependencies were taken from the SpringSource Bundle Repository. I used a fresh installation of Eclipse with the latest snapshot of Virgo Tooling, and in the workspace there are only one server and only one server runtime environment.)
Interestingly, the very same bundles work perfectly fine with an old installation of SpringSource Tool Suite 2.8.1, Virgo 3.0.1, and Virgo tooling 1.0.0.201110312003-SNAPSHOT. I just tried once again, starting from a fresh workspace in that installation. Everything is fine there. (EDIT: Web Application Bundles seem to make trouble already with Virgo 3.0.2 and this version of tooling.)
Afterwards, I started the other installation with 1.0.0.201203202115-SNAPSHOT, created a new 3.5.0.M03 server (same files in repository/usr), and imported all the bundles form the first workspace. I can clean, build, and deploy my bundles - no errors occur so far. Also after restarting Eclipse.
However: Once I open the wizard for one of my manifests and add a whitespace somewhere, and save the file: the errors are back: "Import-Package: ... cannot be resolved" and bundle dependencies are empty again. (There are no errors in the workspace .metadata/.log)
Should I file a bug?
All the best,
Martin
I am having the same problem with 3.5.0.M2, sometimes changing something in MANIFET.MF, changing it back and saving it resolves the error, but sometimes don't, especially when your server is up.
|
|
|
|
|
Re: Empty bundle dependecies after upgrading VTS to 3.5.0.M2 [message #837178 is a reply to message #837063] |
Thu, 05 April 2012 07:11  |
Eclipse User |
|
|
|
Martin W. wrote on Thu, 05 April 2012 04:25Hooray! I found a workaround.
Just put all the libraries in /repository/ext (and put nothing at all in
/repository/usr). Then everything works as it should.
Jay, could you test if that also works for you? Thx!
All the best,
Martin
Hi Martin, yes i've been doing it as i noticed only the libraries in /repository/usr are being complained. cheers.
|
|
|
Powered by
FUDForum. Page generated in 0.10573 seconds