users@glassfish.java.net

EJB insert into database runtime fail

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Sep 2010 04:50:01 PDT

Hello

I'm new to EJB development. I wrote a small application (IDE: Netbeans 6.9; server:Glassfish 2.1) to insert 1 row of data into a table in an Oracle database. When I run the executable file I get the following error message: "Exception: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource". It falls over when it attempts to run the following line: itemType = (ItemTypesInterface)ctx.lookup(ItemTypesInterface.class.getName());

Please help.

Thank you in advance.
[Message sent by forum member 'nmmaphumulo']

http://forums.java.net/jive/thread.jspa?messageID=482821