Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tomcat error "Unable to process Jar entry" for all javassist classes #29

Closed
ryber opened this issue Feb 2, 2015 · 10 comments
Closed

Tomcat error "Unable to process Jar entry" for all javassist classes #29

ryber opened this issue Feb 2, 2015 · 10 comments

Comments

@ryber
Copy link

ryber commented Feb 2, 2015

Hello, I recently upgraded javassist in a project that was moving to Java 8. When tomcat starts we get errors for what looks like every class in javassist. I'm pretty sure it's just because tomcat is looking for servlets and such (which it's not going to find anyway) but it's concerning anyway. Here is the error:

13:03:26 starting axplatq
13:03:26 Using CATALINA_BASE: /www/axplatq
13:03:26 Using CATALINA_HOME: /www/tomcat/apache-tomcat-7.0.54
13:03:26 Using CATALINA_TMPDIR: /www/axplatq/temp
13:03:26 Using JRE_HOME: /www/java/jdk1.8.0_05
13:03:26 Using CLASSPATH: /www/java/jdk1.8.0_05/lib/tools.jar:/www/tomcat/apache-tomcat-7.0.54/bin/bootstrap.jar:/www/tomcat/apache-tomcat-7.0.54/bin/tomcat-juli.jar
13:03:26 Using CATALINA_PID: /www/axplatq/logs/tomcat.pid
13:03:26 Tomcat started.
13:03:26 INIT: 2015-02-02 12:58:26-06:00
13:03:26 INIT: start() by a909179
13:03:26 INFO: Loaded APR based Apache Tomcat Native library 1.1.30 using APR version 1.3.9.
13:03:26 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
13:03:26 INFO: Initializing ProtocolHandler ["http-apr-8070"]
13:03:26 INFO: Initialization processed in 1241 ms
13:03:26 INFO: Starting service Catalina
13:03:26 INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
13:03:26 INFO: Deploying web application archive /www/axplatq/webapps/platform.war
13:03:26 SEVERE: Unable to process Jar entry [javassist/ByteArrayClassPath.class] from Jar [jar:file:/www/axplatq/webapps/platform/WEB-INF/lib/javassist-3.19.0-GA.jar!/] for annotations
.... on and on

@yamass
Copy link

yamass commented Mar 24, 2015

@ryber Have you been able to solve the problem? I am facing the same...

@ryber
Copy link
Author

ryber commented Mar 24, 2015

We excluded the Jar from Tomcat's scanning: https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scan-filter.html

@yamass
Copy link

yamass commented Mar 24, 2015

@ryber I solved my problem by updating to apache-tomcat-7.0.59

@chibash chibash closed this as completed May 27, 2015
@DaiDongLiang
Copy link

I have encountered the same problem in tomcat 8.0.9.
How to solve this problem?

@chibash
Copy link
Member

chibash commented Apr 23, 2016

Can't you fix the problem by substituting javassist-3.20.0-GA.jar for 3.19.0?

@jsandeepm
Copy link

jsandeepm commented Apr 26, 2016

Below exclusion fixed my problem. It might help you.

<dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>5.1.0.Final</version>
            <exclusions>
                <exclusion>
                    <groupId>org.javassist</groupId>
                    <artifactId>javassist</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

@zhangfan2015
Copy link

I have involved with it too,updating to tomcat-8.0.33 ,it solved.

@finansistpavel
Copy link

You can add tomcat.util.scan.StandardJarScanFilter.jarsToSkip= ...,javassist-*.jar to catalina.properties file in your tomcat conf folder

@Valexx55
Copy link

Valexx55 commented Jun 10, 2017

Any of previous replies solved my situation. Using Hibernate, is mandatory to include a javassist jar Deploying my app into an openshift server, i was getting the same error and could solve it magically, adding explicitly the redhat maven's javassist dependency below:
<dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>3.18.1.GA-redhat-1</version> </dependency>

@ppazos
Copy link

ppazos commented Aug 10, 2017

https://issues.apache.org/jira/browse/WW-4637

catalina.properties file:

tomcat.util.scan.DefaultJarScanner.jarsToSkip=javassist-*.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants