Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350004 - "TldConfig tldScanJar WARNING: Failed to process JAR" is thrown when osgi.resolverMode is strict
Summary: "TldConfig tldScanJar WARNING: Failed to process JAR" is thrown when osgi.res...
Status: CLOSED FIXED
Alias: None
Product: Gemini.Web
Classification: RT
Component: unknown (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0.0.M02   Edit
Assignee: Violeta Georgieva CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-22 02:42 EDT by Violeta Georgieva CLA
Modified: 2011-07-01 09:43 EDT (History)
1 user (show)

See Also:


Attachments
Patch proposal (6.06 KB, patch)
2011-06-22 02:47 EDT, Violeta Georgieva CLA
glyn.normington: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Violeta Georgieva CLA 2011-06-22 02:42:02 EDT
org.apache.catalina.startup.TldConfig tldScanJar
WARNING: Failed to process JAR [jar:reference:file:<path>/javax.el/javax.el-2.2.0.jar!/null] for TLD files
java.io.IOException
	at org.eclipse.osgi.framework.internal.core.ReferenceInputStream.read(ReferenceInputStream.java:32)
	at java.io.InputStream.read(Unknown Source)
	at java.io.InputStream.read(Unknown Source)
	at sun.net.www.protocol.jar.URLJarFile$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
	at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
	at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:507)
	at org.apache.catalina.startup.TldConfig.access$100(TldConfig.java:59)
	at org.apache.catalina.startup.TldConfig$TldJarScannerCallback.scan(TldConfig.java:332)
	at org.eclipse.gemini.web.tomcat.internal.BundleDependenciesJarScanner.scanBundleUrl(BundleDependenciesJarScanner.java:127)
	at org.eclipse.gemini.web.tomcat.internal.BundleDependenciesJarScanner.scanJarUrlConnection(BundleDependenciesJarScanner.java:100)
	at org.eclipse.gemini.web.tomcat.internal.BundleDependenciesJarScanner.scanBundle(BundleDependenciesJarScanner.java:87)
	at org.eclipse.gemini.web.tomcat.internal.BundleDependenciesJarScanner.scanDependentBundles(BundleDependenciesJarScanner.java:78)
	at org.eclipse.gemini.web.tomcat.internal.BundleDependenciesJarScanner.scan(BundleDependenciesJarScanner.java:70)
	at org.eclipse.gemini.web.tomcat.internal.ChainingJarScanner.scan(ChainingJarScanner.java:45)
	at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:306)
Comment 1 Violeta Georgieva CLA 2011-06-22 02:46:56 EDT
The implementation of
org.eclipse.osgi.framework.internal.core.ReferenceInputStream.read()

is

/* This method should not be called.
 */
public int read() throws IOException {
  throw new IOException();
}

I prepared a patch for this issue. Can you review it.

Regards
Vily
Comment 2 Violeta Georgieva CLA 2011-06-22 02:47:28 EDT
Created attachment 198370 [details]
Patch proposal
Comment 3 Violeta Georgieva CLA 2011-06-27 09:38:01 EDT
(In reply to comment #2)
> Created attachment 198370 [details]
> Patch proposal

Change committed, tested and pushed.
Commit Id:dde53cacd7a2706c77642b69f58d145b0bb3028c