1
resposta

Erro ao adicionar o vraptor simple mail

Quando eu adiciono a dependencia pelo mvn da o seguinte erro:

mar 12, 2017 2:58:49 PM org.apache.catalina.loader.WebappClassLoaderBase modified
INFORMAÇÕES: One or more JARs have been added to the web application [/vraptor-produtos]
mar 12, 2017 2:58:49 PM org.apache.catalina.core.StandardContext reload
INFORMAÇÕES: Reloading Context with name [/vraptor-produtos] has started
mar 12, 2017 2:58:49 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
ADVERTÊNCIA: The web application [vraptor-produtos] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
mar 12, 2017 2:58:49 PM org.apache.catalina.core.StandardContext reload
GRAVE: Exception starting Context with name [/vraptor-produtos]
org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@67e2b2]
    at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
    at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:708)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4832)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4964)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3772)
    at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:293)
    at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5535)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1388)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1392)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1392)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1360)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid CEN header (bad signature)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:113)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
    ... 14 more
Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
    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 java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:110)
    ... 15 more

mar 12, 2017 2:58:49 PM org.apache.catalina.core.StandardContext reload
INFORMAÇÕES: Reloading Context with name [/vraptor-produtos] is completed
1 resposta

Geralmente quando dá esse erro, pelo menos quando aconteceu comigo, tinha relação com um jar corrompido no repo do maven ou no próprio projeto, no caso de jars controlados por vc..

Eu apagaria o repo do maven e geraria as configurações de novo... Se for local, eu apagaria o jar e baixaria de novo.