Community
Participate
Working Groups
Whether I try to create new WAR product file or "add required" library to the list of libraries, following exception is thrown: java.lang.StringIndexOutOfBoundsException: String index out of range: -34 at java.lang.String.substring(String.java:1937) at org.eclipse.rap.warproducts.core.WARProductUtil.addServletBridgeFromTarget(WARProductUtil.java:52) From what I can see in the source code, this is because my requiredBundles folder is outside of my regular target platform location, as returned by TargetPlatform.getLocation().
Hi Michal, thanks for reporting. Does this mean you just added the folder to your target definition instead of copying the bundles into your target folder? I need to know exactly what you have done with the bundles in the requiredBundles.zip to reproduce the error. Thanks in advance. Regards Holger
That's right, my target definition consists of several software sites and the requiredBundles directory on my local disk. Eclipse stores bundles from the software sites in the .metadata/.plugins/org.eclipse.pde.core/bundle_pool/plugins folder in my workspace which is not where I have the requiredBundles folder.
Ok, thanks for the information. I will take a close look at it during the next week. Regards Holger
Fixed in CVS HEAD.