Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

my.classpath.Servletname was found, but is corrupted: SRVE0227E:

I have received the following error when trying to deploy a servlet to 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.*

I have checked the servlet as per the error message, but could not find the issue.

like image 798
Chris Snow Avatar asked Feb 11 '23 05:02

Chris Snow


2 Answers

The problem was simply because I was compiling my web application using a 1.8 JDK when I should have been using a 1.7 JDK. As soon as I swapped the JDK, the problem was fixed.

The error message threw me because it was very specific, but didn't mention anything about class versions.

like image 154
Chris Snow Avatar answered Feb 13 '23 21:02

Chris Snow


Issue is with java version,which you already sorted out.\

Just incase some one needs more details on this error,can follow below link:

http://www.coderanch.com/t/359899/Servlets/java/Servlet-corrupt-message

like image 21
Anand Avatar answered Feb 13 '23 19:02

Anand