Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » EclipseRCP + JavaWS (problem with opening one Bundle jar)
EclipseRCP + JavaWS (problem with opening one Bundle jar) [message #662570] Thu, 31 March 2011 07:34
No real name is currently offline No real nameFriend
Messages: 1
Registered: March 2011
Junior Member
Hello everyone.
I am new to EclipseRCP platform. I have project, where I need to start EclipseRCP application with the help of javaws. I have read a lot of tutorials and documentations and finally get it to work, but ...

I am having issues when I try to use JWS + Eclipse RCP.
I have in project some external jars imported(they are osgi correct prepared bundles). Everything works perfectly good, when I run my project from inside
Eclipse IDE. (Product -> overview -> Testing -> Launch an Eclipse application). Everything works good, no exceptions.

Things get complicated, when I export my project to work with JWS(Jawa Web Start). I observe on console such a behaviour:

!ENTRY <my_plugin_name>
!MESSAGE
!STACK 0
java.util.zip.ZipException: Exception in opening zip file: C:\Users\username\Application Data\helloworld\org.eclipse.osgi\bundles\18\1\.cp\my.plugin. name.plugin.jar
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(Secu reAction.java:264)
at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.basicO pen(ZipBundleFile.java:88)
at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getZip File(ZipBundleFile.java:101)
at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.checke dOpen(ZipBundleFile.java:74)
at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getEnt ry(ZipBundleFile.java:246)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:531)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:481)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:469)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:449)
...
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1512)
at com.sun.javaws.Launcher.run(Launcher.java:130)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(Secu reAction.java:251)
... 54 more


When I open my bundle under:
C:\Users\username\Application Data\helloworld\org.eclipse.osgi\bundles\18\1\.cp
and try to unpack it with other tool, it says archive is destroied or not correct.(It's capacity is much smaller from orginal *.jar file, which I have recently imported to my project)

Funny thing is some of the code works fine, some not(even when the exception is thrown).

I don't know what is going on here. Can smby help me? I can give yoiu more details, but I am not sure which one can be helpfull.
Previous Topic:how to remove context menu items of a MultiPageEditor
Next Topic:empty uncloseable views
Goto Forum:
  


Current Time: Fri Apr 19 22:52:05 GMT 2024

Powered by FUDForum. Page generated in 0.02718 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top