Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    java.net.ServerSocket is a restricted class

    I am using SmartGWT 2.3.0 verion on Indigo and GAE as 1.5.2
    When I started the app using run configuration of Eclipse for the sample project builtinds, I get the following error.

    [Server@1c5822c]: [Thread[main,5,main]]: checkRunning(false) entered
    [Server@1c5822c]: [Thread[main,5,main]]: checkRunning(false) exited
    [Server@1c5822c]: Startup sequence initiated from main() method
    [Server@1c5822c]: Loaded properties from [D:\Eclipse\workspace\builtinds\war\server.properties]
    [Server@1c5822c]: Initiating startup sequence...
    Exception in thread "HSQLDB Server @1c5822c" java.lang.NoClassDefFoundError: java.net.ServerSocket is a restricted class. Please see the Google App Engine developer's guide for more details.
    at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
    at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
    at org.hsqldb.Server.openServerSocket(Unknown Source)
    at org.hsqldb.Server.run(Unknown Source)
    at org.hsqldb.Server.access$000(Unknown Source)
    at org.hsqldb.Server$ServerThread.run(Unknown Source)


    Let me know if someone has a solution for this

    #2
    The builtinds project uses SQLDataSource which cannot be used on GAE since there is no SQL support. You need to use the GAEJPADataSource and the GAE sample project. However, we are now recommending Amazon Elastic Beanstalk instead - it's just as a simple and has no such limitations.

    Comment

    Working...
    X