My.classpath.Servletname found but corrupted: SRVE0227E:

When trying to deploy a servlet on bluemix, I got the following error:

SRVE0227E: make sure the class is in the correct package directory. SRVE0228E: Make sure the class name is defined in the server using the correct enclosure and fully matching package. SRVE0229E: Make sure the class was migrated to the filesystem using binary file transfer mode. SRVE0230E: make sure the class was compiled using (as defined in the class definition). SRVE0231E: Check that the class file was not renamed after it was compiled. *

I checked the servlet according to the error message but couldn't find the problem.

+3


source to share


2 answers


The problem was simply that I was composing my web application using 1.8 JDK when I had to use 1.7 JDK. As soon as I changed the JDK, the problem was fixed.



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

+3


source


The problem is with the java version you have already sorted. \

Just take care that someone needs more information about this error, you can follow the link below:



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

+1


source







All Articles