1

i am new to JAVA and AppEngine. I have installed JDK-1.6, but still that exception occurs. Project files are deployed on server without any errors, but when open link, then it gives an error. In my application logs it shows only one exception which is "unsupportefclassversionerror". i have installed JDK-1.6, but its not working. I have also installed JDK-1.5 but at deploying stage it gives "All Permutation not compiled" error. My project XML files are below

XML files are

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee">

  <!-- Servlets -->
  <servlet>
    <servlet-name>greetServlet</servlet-name>
    <servlet-class>com.google.mystorage.server.GreetingServiceImpl</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>greetServlet</servlet-name>
    <url-pattern>/mystorage/greet</url-pattern>
  </servlet-mapping>

  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

</web-app>



appengine-web.xml

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>cloudisapp</application>
  <version>2</version>

  <!--
    By default, App Engine sends requests serially to a given web server.
    To allow App Engine to send multiple requests in parallel specify:

      <threadsafe>true</threadsafe>
  -->

  <!-- Configure serving/caching of GWT files -->
  <static-files>
    <include path="**" />
    <include path="favicon.ico"/>
    <!-- The following line requires App Engine 1.3.2 SDK -->
    <include path="**.nocache.*" expiration="0s" />

    <include path="**.cache.*" expiration="365d" />
    <exclude path="**.gwt.rpc" />
  </static-files>

  <!-- Configure java.util.logging -->
  <system-properties>
    <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
  </system-properties>
  <sessions-enabled>true</sessions-enabled>
</appengine-web-app>



datastore-indexes.xml

<?xml version="1.0" encoding="UTF-8"?>
<datastore-indexes  autoGenerate="true">
</datastore-indexes> 

Please help me

gr8sniper
  • 49
  • 3
  • 7
  • 1
    Didn't you already ask this in: http://stackoverflow.com/questions/8563817/the-server-encountered-an-error-and-could-not-complete-your-request-on-appengi – RichW Dec 19 '11 at 21:58
  • 1
    @RichW Um, no he didn't. READ the questions.Just because the same guy posted 2 "I am new to java" intros doesn't mean they're the same question. – Chris E Dec 19 '11 at 22:03
  • I don't know, what google is doing with my project. Sick of that exception – gr8sniper Dec 19 '11 at 22:06

2 Answers2

3

You have compiled for Java 7 which Java 6 cannot understand.

Recompile with a Java 6 javac.

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
1

I had the same problem with a shared project. Try deleting all the compiled classes (everything under the war/WEB-INF/classes directory that looks like the compiled version of your sources).