You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ralph Schaer <ra...@gmail.com> on 2013/09/25 18:22:55 UTC
FileNotFoundException: JAR entry META-INF/spring.tld not found
Hi
I'm fiddling with the latest Tomcat 8.0.0-RC3 and get the following WARNING
log message. This happens on Windows and on Linux.
I created a simple maven project:
https://github.com/ralscha/tomcat8warning that
demonstrates the problem.
Clone it, create a war with mvn package and copy the war into the webapps
directory. Open conf/server.xml and change unpackWARs to false.
<Host name="localhost" appBase="webapps"
unpackWARs="false" autoDeploy="true">
Then start Tomcat and the following warning message appears in the logs.
This only happens with unpackWARs="false". When this option is true the
warning does not appear.
It also only happens with 8.0.0-RC3. The previous alpha version (8.0.0-RC1)
does not show this warning. Anybody noticed a similar problem?
25-Sep-2013 18:01:52.617 WARNING [localhost-startStop-1]
org.apache.tomcat.util.scan.StandardJarScanner.scan
Failed to scan JAR
[jar:file:/D:/java/apache-tomcat-8.0.0-RC3/webapps/springweb-0.0.1.war!/WEB-INF/lib/spring-webmvc-3.2.4.RELEASE.jar]
from /WEB-INF/lib
java.io.FileNotFoundException: JAR entry META-INF/spring.tld not found in
D:\java\apache-tomcat-8.0.0-RC3\webapps\springweb-0.0.1.war
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:140)
at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
at java.net.URL.openStream(URL.java:1037)
at
org.apache.tomcat.util.descriptor.tld.TldResourcePath.openStream(TldResourcePath.java:109)
at
org.apache.tomcat.util.descriptor.tld.TldParser.parse(TldParser.java:43)
at
org.apache.jasper.servlet.TldScanner.parseTld(TldScanner.java:221)
at
org.apache.jasper.servlet.TldScanner.access$200(TldScanner.java:56)
at
org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan(TldScanner.java:259)
at
org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:300)
at
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:165)
at
org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:208)
at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:96)
at
org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:57)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5265)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:968)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1742)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Re: FileNotFoundException: JAR entry META-INF/spring.tld not found
Posted by Mark Thomas <ma...@apache.org>.
On 25/09/2013 10:11, Mark Thomas wrote:
> On 25/09/2013 09:22, Ralph Schaer wrote:
>> Hi
>>
>> I'm fiddling with the latest Tomcat 8.0.0-RC3 and get the following WARNING
>> log message. This happens on Windows and on Linux.
>> I created a simple maven project:
>> https://github.com/ralscha/tomcat8warning that
>> demonstrates the problem.
>>
>> Clone it, create a war with mvn package and copy the war into the webapps
>> directory. Open conf/server.xml and change unpackWARs to false.
>>
>> <Host name="localhost" appBase="webapps"
>> unpackWARs="false" autoDeploy="true">
>>
>>
>> Then start Tomcat and the following warning message appears in the logs.
>> This only happens with unpackWARs="false". When this option is true the
>> warning does not appear.
>> It also only happens with 8.0.0-RC3. The previous alpha version (8.0.0-RC1)
>> does not show this warning. Anybody noticed a similar problem?
>
> I've been refactoring the resource handling for packed WAR files. It
> looks like this might be related.
>
> I'll take a look.
This should be fixed in trunk.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: FileNotFoundException: JAR entry META-INF/spring.tld not found
Posted by Mark Thomas <ma...@apache.org>.
On 25/09/2013 09:22, Ralph Schaer wrote:
> Hi
>
> I'm fiddling with the latest Tomcat 8.0.0-RC3 and get the following WARNING
> log message. This happens on Windows and on Linux.
> I created a simple maven project:
> https://github.com/ralscha/tomcat8warning that
> demonstrates the problem.
>
> Clone it, create a war with mvn package and copy the war into the webapps
> directory. Open conf/server.xml and change unpackWARs to false.
>
> <Host name="localhost" appBase="webapps"
> unpackWARs="false" autoDeploy="true">
>
>
> Then start Tomcat and the following warning message appears in the logs.
> This only happens with unpackWARs="false". When this option is true the
> warning does not appear.
> It also only happens with 8.0.0-RC3. The previous alpha version (8.0.0-RC1)
> does not show this warning. Anybody noticed a similar problem?
I've been refactoring the resource handling for packed WAR files. It
looks like this might be related.
I'll take a look.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org