Skip to content
Advertisement

Tag: tomcat7

Java ClassVersionError although version seems to be okay

I’m getting the following error in my java web app (The application launches okay but when I click a button following error occurs). I’m using Tomcat (7.0.109) to run this application. java.lang.UnsupportedClassVersionError: FileDetailsServlet has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions

Caused by: java.lang.NoClassDefFoundError: io/jsonwebtoken/Jwts

i am using jjwt-0.9.1.jar and runtime gives this exception for jersey reset API call. When i use this code using java main() method, its works perfectly but when i call from servlet to that class, the method throws exception. When call servlet to java class method i.e.createJWTToken() gives following exception in tomcat. Answer The exception is java.lang.NoClassDefFoundError: io/jsonwebtoken/Jwts Check the

ClassNotFoundException oracle.i18n.util.LocaleMapper on tomcat TLD scanning. ojdbc7 maven dep (xmlparserv2-12.1.0.2.jar transitive) causes this error

I am receiving an error when running my spring-boot application with embedded-tomcat (haven’t tried with server tomcat yet). On further inspection, It appears as though the previous version of the orai18n.jar depended on by the ojdbc7 maven dep contained this class in vesion 11.2.0.3 but the newer (12.1.0.2) file does not contain it. Answer It’s a conflict with xmlparserv2. Try

DispatcherServlet and web.xml in Spring Boot

I’m currently trying to move my project from Java EE to Spring Boot project. However, i’ve been stucked and confused on the part with dispatcher servlet and web.xml and it seems like web.xml is no longer being read by the project anymore. The current project is running on tomcat 7. In my web.xml file, I have lots of servlet, servlet-mapping,

Websocket Client Could not find an implementation class

I will preface this with I am not using any maven dependencies, yet I know that I am missing a jar file wls-api.jar (at least that is what I have read). To remedy this I downloaded the oracle-weblogic-7.9.jar but the problem persists. The exception is thrown at this line Can anyone tell me why this line continuously fails? UPDATE: upon

ServletContextListener SEVERE: Error configuring application listener of class marktest.Config

My Java servlet appears to be complaining that it can’t find a file which is included in the package (marktest). Im using Eclipse (Indigo) to develop and Tomcat7. Here is the error: Here is Config.java which contains the class implementing ServletContextListener which it says it can’t find in the error: and here is web.xml I’m rather stumped even after much

Advertisement