简体   繁体   English

NoClassDefFoundError:javax / servlet / Filter(Objectify升级)

[英]NoClassDefFoundError: javax/servlet/Filter (Objectify Upgrade)

How can I upgrade from V3 to V4 (and ultimately 5). 如何从V3升级到V4(最终是5)。

Following the upgrade instructions, I get an error: 按照升级说明,出现错误:

Unable to find Objectify.gwt.xml on your classpath 在类路径上找不到Objectify.gwt.xml

Adding objectify-gwt-1.2.1.jar to my classpath solved that, but then I get the servlet filter error: 将objectify-gwt-1.2.1.jar添加到我的类路径中可以解决此问题,但随后出现servlet过滤器错误:

NoClassDefFoundError: javax/servlet/Filter NoClassDefFoundError:javax / servlet / Filter

Filters were working fine before, so I assume objectify-gwt is the cause. 过滤器之前运行良好,所以我认为是objectify-gwt造成的。 Do I have the wrong version? 我的版本是否错误? How can I resolve this? 我该如何解决?

This is using the com.google.appengine.tools.development.gwt.AppEngineLauncher developer mode server 这是使用com.google.appengine.tools.development.gwt.AppEngineLauncher开发人员模式服务器

EDIT: This is hell. 编辑:这是地狱。 Adding the servlet-api jar to the bootclasspath of the Appengine Developer Server gave me an error that some appengine jar couldn't be found . 将servlet-api jar添加到Appengine Developer Server的bootclasspath时,出现一个错误,提示找不到某些appengine jar。 I changed and then re-added the AppEngine version in the project set up to make sure they were there but the error remained so I added the AppEngine libraries to the bootclaspath list instead of the client list (in the run configurations [for the Appengine Dev Server] classpath tab). 我进行了更改,然后在项目设置中重新添加了AppEngine版本,以确保它们在那里,但是仍然存在错误,因此我将AppEngine库添加到了bootclaspath列表中,而不是客户端列表中(在运行配置中[适用于Appengine开发人员服务器] classpath选项卡)。 Now I have a: 现在我有一个:

java.lang.ExceptionInInitializerError at com.google.appengine.tools.util.Logging.initializeLogging com.google.appengine.tools.util.Logging.initializeLogging上的java.lang.ExceptionInInitializerError

When you solved the classpath error I think you've overwritten the previous classpath specified by dot. 解决类路径错误时,我认为您已经覆盖了点指定的先前的类路径。 You have to have the current path in the classpath (specified by dot) alongwith the path to any other external jar file that you are using. 您必须在类路径(由点指定)中具有当前路径,以及正在使用的任何其他外部jar文件的路径。

Solution was to create a new run configuration. 解决方案是创建一个新的运行配置。

In the Eclipse Top Menu choose RUN --> Run Configurations --> Web Application --> New 在Eclipse Top Menu中,选择RUN-> Run Configurations-> Web Application-> New

Not sure if it was related to the order I had set, or what but it created a new config that ran straight away. 不知道它是否与我设置的顺序有关,或者与之相关,但是它创建了一个立即运行的新配置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring Boot - NoClassDefFoundError: javax/servlet/Filter && 尝试使用 Netty 时无法启动 ServletWebServerApplicationContext - Spring Boot - NoClassDefFoundError: javax/servlet/Filter && Unable to start ServletWebServerApplicationContext when trying to use Netty Objectify NoClassDefFoundError - Objectify NoClassDefFoundError java.lang.NoClassDefFoundError: javax/servlet/ServletContext - java.lang.NoClassDefFoundError: javax/servlet/ServletContext 升级到 WAS 7 后的 javax.servlet.UnavailableException - javax.servlet.UnavailableException after an upgrade to WAS 7 刚刚从Spring Boot 2.7.4升级到Spring Boot 3.0.0,导致报错 Caused by: java.lang.NoClassDefFoundError: javax.servlet.Filter - Just upgraded from Spring Boot 2.7.4 to Spring Boot 3.0.0, caused error Caused by: java.lang.NoClassDefFoundError: javax.servlet.Filter javax.servlet.ServletException:java.lang.NoClassDefFoundError:javax / servlet / ServletInputStream - javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream javax.servlet.ServletException:java.lang.NoClassDefFoundError:javax / servlet / jsp / jstl / core / ConditionalTagSupport - javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport SpringMVC-java.lang.NoClassDefFoundError:javax / servlet / ServletContext - SpringMVC - java.lang.NoClassDefFoundError: javax/servlet/ServletContext Swagger 与 Jersey 2 抛出 java.lang.NoClassDefFoundError: javax/servlet/ServletConfig - Swagger with Jersey 2 throws java.lang.NoClassDefFoundError: javax/servlet/ServletConfig java.lang.NoClassDefFoundError:javax / servlet / ServletContextListener错误 - java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM