• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.lang.IllegalStateException: Unabled to find an EOClassDescription for objects of class Server ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.IllegalStateException: Unabled to find an EOClassDescription for objects of class Server ...


  • Subject: Re: java.lang.IllegalStateException: Unabled to find an EOClassDescription for objects of class Server ...
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 4 Jun 2007 15:47:50 -0700

Hi Chris,


On Jun 4, 2007, at 2:22 PM, Chris * wrote:

Hello Everyone!
While deploying my first WO Application, I get the
following exception:

java.lang.IllegalStateException: Unabled to find an
EOClassDescription for objects of class Server ...

Right off the bat, Server seems like a generic sort of name that others may have chosen. There may be a different Server class on the classpath. Are your EO classes in packages?



The class "Server" is generated by EOModeler from the
Entity of the same name. The exception ocurrs when I
instatiate the class:
...

Session session = (Session)session();
EOEditingContext editingContext =
session.defaultEditingContext();

Try this:

NSLog.out.appendln("Server class " + Server.class.getName());


EOClassDescription serverCD =
EOClassDescription.classDescriptionForEntityName("Server");

That is an odd thing to do. Not wrong, just odd. Why are you getting the class description?



Server server = new Server();

Try Server server = (Server) EOUtilities.createAndInsertInstance (editingContext, "Server");




editingContext.insertObject(server); ...

"EOModelGroup.defaultGroup().modelNames()" contained
the Model with the entity server.

Get a reference to that model. Does it contain the Server entity? No, really, check it.



When I use Direct2Web, I can connect to the DB, create
and search for "Server" entries, so I don't think it's
related to the MySQL Setup, or a flaw in the
EOModeling.

More likely to be a classpath or permissions issue or an empty model that got deployed.



Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >java.lang.IllegalStateException: Unabled to find an EOClassDescription for objects of class Server ... (From: Chris * <email@hidden>)

  • Prev by Date: Re: java.lang.IllegalStateException: Unabled to find an EOClassDescription for objects of class Server ...
  • Next by Date: Re: Linux
  • Previous by thread: Re: java.lang.IllegalStateException: Unabled to find an EOClassDescription for objects of class Server ...
  • Next by thread: Making a WO app look pretty
  • Index(es):
    • Date
    • Thread