karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-827) Karaf Web deployer (Pax-Web) always tries to deploy the deploy/README file
Date Thu, 25 Aug 2011 19:22:29 GMT

    [ https://issues.apache.org/jira/browse/KARAF-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091235#comment-13091235
] 

Achim Nierbeck commented on KARAF-827:
--------------------------------------

This issue is not really fixable.

Following does prevent this issue for beeing really fixable. 
The WarDeployer canHandle method retrieves a File artifact. 
This artifact is tried to be inspected by the JarFile class which is not applicable for 
std. Files but for exploded Jar-files 
The actual creation of JarFile(artifact) throws an exception since it is not a JarFile. 
So the only way of fixing this is to set the loglevel for tracing the exception to TRACE.


If someone is in need for knowing the reason of failure on this part the loglevel must be
set to TRACE for org.ops4j.pax.web.deployer.*

> Karaf Web deployer (Pax-Web) always tries to deploy the deploy/README file
> --------------------------------------------------------------------------
>
>                 Key: KARAF-827
>                 URL: https://issues.apache.org/jira/browse/KARAF-827
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webcontainer
>    Affects Versions: 2.2.2
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Achim Nierbeck
>            Priority: Trivial
>             Fix For: 2.2.3, 3.0.0
>
>
> The Karaf web deployer (powered by Pax-Web) always try to deploy the deploy/README file:
> 2011-08-25 08:52:30,219 | DEBUG | raf-2.2.2/deploy | WarDeployer                    
 | eb.deployer.internal.WarDeployer   62 | 78 - org.ops4j.pax.web.pax-web-deployer - 1.0.4
| Can't handle file README
> java.util.zip.ZipException: error in opening zip file
>         at java.util.zip.ZipFile.open(Native Method)[:1.6.0_26]
>         at java.util.zip.ZipFile.<init>(ZipFile.java:127)[:1.6.0_26]
>         at java.util.jar.JarFile.<init>(JarFile.java:135)[:1.6.0_26]
>         at java.util.jar.JarFile.<init>(JarFile.java:99)[:1.6.0_26]
>         at org.ops4j.pax.web.deployer.internal.WarDeployer.canHandle(WarDeployer.java:40)[78:org.ops4j.pax.web.pax-web-deployer:1.0.4]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:467)[6:org.apache.felix.fileinstall:3.1.10]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:415)[6:org.apache.felix.fileinstall:3.1.10]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)[6:org.apache.felix.fileinstall:3.1.10]
> From a general purpose, the web deployer should check if the artifact handled is really
a zip file and doesn't display the whole stack strace in that case.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message