my.classpath.Servletname 已找到,但已损坏:SRVE0227E:
my.classpath.Servletname was found, but is corrupted: SRVE0227E:
我在尝试将 servlet 部署到 bluemix 时收到以下错误:
SRVE0227E: Check that the class resides in the proper package
directory. SRVE0228E: Check that the classname has been defined in the
server using the proper case and fully qualified package. SRVE0229E:
Check that the class was transferred to the filesystem using a binary
transfer mode. SRVE0230E: Check that the class was compiled using the
proper case (as defined in the class definition). SRVE0231E: Check
that the class file was not renamed after it was compiled.*
我已经根据错误消息检查了 servlet,但找不到问题所在。
问题仅仅是因为我在本应使用 1.7 JDK 时使用 1.8 JDK 编译我的 Web 应用程序。我一交换 JDK,问题就解决了。
错误消息让我很震惊,因为它非常具体,但没有提及任何关于 class 版本的信息。
问题出在 java 版本,您已经解决了。\
以防万一有人需要有关此错误的更多详细信息,可以按照以下内容进行操作link:
http://www.coderanch.com/t/359899/Servlets/java/Servlet-corrupt-message
我在尝试将 servlet 部署到 bluemix 时收到以下错误:
SRVE0227E: Check that the class resides in the proper package directory. SRVE0228E: Check that the classname has been defined in the server using the proper case and fully qualified package. SRVE0229E: Check that the class was transferred to the filesystem using a binary transfer mode. SRVE0230E: Check that the class was compiled using the proper case (as defined in the class definition). SRVE0231E: Check that the class file was not renamed after it was compiled.*
我已经根据错误消息检查了 servlet,但找不到问题所在。
问题仅仅是因为我在本应使用 1.7 JDK 时使用 1.8 JDK 编译我的 Web 应用程序。我一交换 JDK,问题就解决了。
错误消息让我很震惊,因为它非常具体,但没有提及任何关于 class 版本的信息。
问题出在 java 版本,您已经解决了。\
以防万一有人需要有关此错误的更多详细信息,可以按照以下内容进行操作link:
http://www.coderanch.com/t/359899/Servlets/java/Servlet-corrupt-message