首页上一页 1 下一页尾页 2 条记录 1/1页
《java项目实例开发自学手册》博客系统问题
发表在Java图书答疑
2011-05-25
是否精华
是
否
版块置顶:
是
否
请问为何我导入这个系统以后 可以正常上传照片 但是浏览照片却不显示?路径没问题其他功能也都正常,浏览照片时控制台信息如下:
011-5-25 16:46:42 org.apache.catalina.core.AprLifecycleListener init
严重: An incompatible version 1.1.1 of the Apache Tomcat Native library is installed, while Tomcat requires version 1.1.8
2011-5-25 16:46:42 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8088
2011-5-25 16:46:42 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 899 ms
2011-5-25 16:46:42 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-5-25 16:46:42 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.14
2011-5-25 16:46:44 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8088
2011-5-25 16:46:44 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-5-25 16:46:44 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2011-5-25 16:46:44 org.apache.catalina.startup.Catalina start
信息: Server startup in 1968 ms
Hibernate: select consumer0_.id as id2_, consumer0_.account as account2_, consumer0_.passWord as passWord2_, consumer0_.name as name2_, consumer0_.sex as sex2_, consumer0_.QQNumber as QQNumber2_, consumer0_.mainPage as mainPage2_, consumer0_.interest as interest2_, consumer0_.EMail as EMail2_ from tb_consumer consumer0_ where consumer0_.account=?
Hibernate: select count(*) as col_0_0_ from tb_photo photo0_
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at com.Hibernate.util.Gethibernate.findPhotoCount(Gethibernate.java:580)
at org.apache.jsp.head_005fphotoSelect_jsp._jspService(head_005fphotoSelect_jsp.java:106)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.wy.tool.Chinese.doFilter(Chinese.java:17)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Hibernate: select top 6 photo0_.id as id5_, photo0_.photoAddress as photoAdd2_5_, photo0_.photoDescription as photoDes3_5_, photo0_.phtoTime as phtoTime5_ from tb_photo photo0_
aaaaaD:\newWorkspace\Webole\WebRoot\file\9.jpg
aaaaaC:/Documents and Settings/diaoweizhuo/My Documents/My Pictures/11.bmp
Hibernate: select discuss0_.id as id3_, discuss0_.discussTitle as discussT2_3_, discuss0_.discussContent as discussC3_3_, discuss0_.discussTime as discussT4_3_ from tb_discuss discuss0_
Hibernate: select vote0_.id as id6_, vote0_.voteNumber as voteNumber6_, vote0_.voteName as voteName6_, vote0_.votedate as votedate6_ from tb_vote vote0_
请问如何解决 谢谢
011-5-25 16:46:42 org.apache.catalina.core.AprLifecycleListener init
严重: An incompatible version 1.1.1 of the Apache Tomcat Native library is installed, while Tomcat requires version 1.1.8
2011-5-25 16:46:42 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8088
2011-5-25 16:46:42 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 899 ms
2011-5-25 16:46:42 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-5-25 16:46:42 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.14
2011-5-25 16:46:44 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8088
2011-5-25 16:46:44 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-5-25 16:46:44 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2011-5-25 16:46:44 org.apache.catalina.startup.Catalina start
信息: Server startup in 1968 ms
Hibernate: select consumer0_.id as id2_, consumer0_.account as account2_, consumer0_.passWord as passWord2_, consumer0_.name as name2_, consumer0_.sex as sex2_, consumer0_.QQNumber as QQNumber2_, consumer0_.mainPage as mainPage2_, consumer0_.interest as interest2_, consumer0_.EMail as EMail2_ from tb_consumer consumer0_ where consumer0_.account=?
Hibernate: select count(*) as col_0_0_ from tb_photo photo0_
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at com.Hibernate.util.Gethibernate.findPhotoCount(Gethibernate.java:580)
at org.apache.jsp.head_005fphotoSelect_jsp._jspService(head_005fphotoSelect_jsp.java:106)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.wy.tool.Chinese.doFilter(Chinese.java:17)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Hibernate: select top 6 photo0_.id as id5_, photo0_.photoAddress as photoAdd2_5_, photo0_.photoDescription as photoDes3_5_, photo0_.phtoTime as phtoTime5_ from tb_photo photo0_
aaaaaD:\newWorkspace\Webole\WebRoot\file\9.jpg
aaaaaC:/Documents and Settings/diaoweizhuo/My Documents/My Pictures/11.bmp
Hibernate: select discuss0_.id as id3_, discuss0_.discussTitle as discussT2_3_, discuss0_.discussContent as discussC3_3_, discuss0_.discussTime as discussT4_3_ from tb_discuss discuss0_
Hibernate: select vote0_.id as id6_, vote0_.voteNumber as voteNumber6_, vote0_.voteName as voteName6_, vote0_.votedate as votedate6_ from tb_vote vote0_
请问如何解决 谢谢