配置JPETSTORE时的几处错误,刚刚接触JDON,无法处理

07-04-06 00ooo00
如源码中的步骤进行配置,只是到了第5步,我省略了这一步:
5. using Ant compile the project,
因为实在是基础太差。Ant不会用,也不太理解这句话的意思,是要用Ant去编译完整的jpetstore文件里的所有文件吗。

其他完成后。导入数据时也有错误,如下:
ERROR 1062 (23000): Duplicate entry 'K9-PO-02' for key 1
ERROR 1062 (23000): Duplicate entry 'K9-DL-01' for key 1
ERROR 1062 (23000): Duplicate entry 'K9-RT-01' for key 1
ERROR 1062 (23000): Duplicate entry 'K9-RT-02' for key 1
ERROR 1062 (23000): Duplicate entry 'K9-CW-01' for key 1
ERROR 1062 (23000): Duplicate entry 'RP-SN-01' for key 1
ERROR 1062 (23000): Duplicate entry 'RP-LI-02' for key 1
ERROR 1062 (23000): Duplicate entry 'FL-DSH-01' for key 1
ERROR 1062 (23000): Duplicate entry 'FL-DLH-02' for key 1
ERROR 1062 (23000): Duplicate entry 'AV-CB-01' for key 1
ERROR 1062 (23000): Duplicate entry 'AV-SB-02' for key 1
ERROR 1050 (42S01): Table 'profile' already exists
ERROR 1062 (23000): Duplicate entry 'j2ee' for key 1
ERROR 1062 (23000): Duplicate entry 'ACID' for key 1
ERROR 1050 (42S01): Table 'sequence' already exists
ERROR 1062 (23000): Duplicate entry 'ordernum' for key 1
ERROR 1062 (23000): Duplicate entry 'linenum' for key 1
ERROR 1050 (42S01): Table 'signon' already exists
ERROR 1062 (23000): Duplicate entry 'j2ee' for key 1
ERROR 1062 (23000): Duplicate entry 'ACID' for key 1
ERROR 1050 (42S01): Table 'supplier' already exists
ERROR 1062 (23000): Duplicate entry '1' for key 1
ERROR 1062 (23000): Duplicate entry '2' for key 1
(错误信息-完)

[该贴被00ooo00于2007年04月06日 20:39修改过]

00ooo00
2007-04-06 20:50
设计到访问数据库的页面。tomcat都会提示错误信息
xceptionHandler - ExceptionHandler caught this exception:
java.lang.Exception: getPageIterator's result is null, check your ModelListActio
n subclass
at com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:67)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodin
gFilter.java:92)
(一部分)
找了小半天错误,始终找不到原因。如何解决

banq
2007-04-07 11:03
安装手册一再提醒:打开server.log日志,找到第一个错误 ERROR

getPageIterator's result is null, check your ModelListActio
只是由于前面错误引起得结果错误。

00ooo00
2007-04-08 00:34
ERROR错误信息:
2007-04-08 00:25:42,317 [http-8080-Processor24] ERROR com.jdon.framework.samples
.jpetstore.service.bo.ProductManagerImp - Dao error : com.ibatis.dao.client.Dao
Exception: Error starting SQL Map transaction. Cause: java.sql.SQLException: In
valid authorization specification, message from server: "Access denied for user
'banq'@'localhost' (using password: YES)"


banq
2007-04-08 10:23
>Access denied for user'banq'@'localhost' (using password: YES)
你的数据库无法登录,检查数据库用户名和密码 以及jboss/server/default/deploy/mysql-ds.xml中配置对应

猜你喜欢