大哥们,就命呀!!!!!!!!
我在配置 EJB 时出现了如下的问题:
我在教程中跟着如下的叙述做了配置
在Deployment Settings窗口取消Database Table面板里的Create table on deploy和Delete Table on undeploy。按下Database Settings在弹出的窗口里的Database JNDI Name 里填写jdbc/ExampleDB后按OK返回。按下Generate SQL Now 按钮,生成SQL语句。
但当我按下Generate SQL Now 按钮时却出现了错误,说:
ERROR:while generating SQL
javax.ejb.EJBException:nested exception is:java.lang.NoSuchFieldException:__PMPrimartKey
Please make sure the database name/sure/password is valid
and the J2EE server and database are running.
请问是为什么?
我主键是创键了的!可不知道是什么问题