论坛首页 Web前端技术论坛

[Extjs4.0] keel_jdbc2.0后台管理模块 (包含前后台源码)

浏览 17576 次
精华帖 (0) :: 良好帖 (4) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-05-30  
yiye 写道
介意lz搞个mysql版的

我也是这个意思。。。
0 请登录后投票
   发表时间:2011-05-30  
期待牛人的作品!
0 请登录后投票
   发表时间:2011-05-30  
cjh_ubuntu 写道
谢谢你的分享,不过我启动tomcat时,报错。
log4j:ERROR Failed to excute sql
com.microsoft.sqlserver.jdbc.SQLServerException: 到主机  的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at org.apache.log4j.jdbc.JDBCAppender.getConnection(JDBCAppender.java:197)
at org.apache.log4j.jdbc.JDBCAppender.execute(JDBCAppender.java:160)
at org.apache.log4j.jdbc.JDBCAppender.flushBuffer(JDBCAppender.java:235)
at org.apache.log4j.jdbc.JDBCAppender.append(JDBCAppender.java:131)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:194)
at org.apache.log4j.Category.forcedLog(Category.java:379)
at org.apache.log4j.Category.info(Category.java:654)
at keel.pool.DbPoolMgr.init(DbPoolMgr.java:42)
at keel.pool.DbPoolMgr.<init>(DbPoolMgr.java:37)
at keel.pool.DbPoolMgr.getInstance(DbPoolMgr.java:88)
at keel.util.KeelPoolContextListener.contextInitialized(KeelPoolContextListener.java:16)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

这个问题如何解决?用的是sql server 2005,tomcat 5,jdk 1.5.



数据库连接地址改了没有?
0 请登录后投票
   发表时间:2011-05-30  
ASCII 写道
yiye 写道
介意lz搞个mysql版的

我也是这个意思。。。



大家改一下就可以了,只是一个小小的模块,模块不多,换一个mysql.jar就可以了,用到分页查询的改一下就可以了(刚刚开始为了快速,没有做数据库之间的兼容)
这个模块主要用来测试Ext4的。
0 请登录后投票
   发表时间:2011-05-31  
我初步看了还是很不错的。支持一下,继续发扬开源精神。
0 请登录后投票
   发表时间:2011-06-01  
joeyhacker 写道
czpae86 写道
archerfrank 写道
楼主是用的Ext4的MVC架构做的么?


MVC架构?应该说思想吧?
没有用,我觉得分开不好找


用ext3太久了, 最近看了4里面的MVC, 搞得太复杂了, 大多数的组件都变了,而且多了一堆莫名其妙的属性还没时间看, 就算自己懂了, 新手上来肯定一头雾水... 以前封装的grid, form .. 貌似都没法用了.  再三考虑还是等4稳定下来再说吧, 升级的成本太大~


我在试用中发现很多有趣的地方,以前用习惯的方法属性很多都改了,但可以看API的.
可惜在中国IE6还是很牛的,但Ext4没有优先考虑IE6了,毕竟IE6已经退役了.
0 请登录后投票
   发表时间:2011-06-02  
这种效果ext2.2.1的时候我就做的一摸一样了,不知道楼主为什么要用ext4
0 请登录后投票
   发表时间:2011-06-03  
wj539h 写道
这种效果ext2.2.1的时候我就做的一摸一样了,不知道楼主为什么要用ext4

以前jsp+bean也能够做出好的系统来,那为什么现在都用ssh什么的了呢?
0 请登录后投票
   发表时间:2011-06-03   最后修改:2011-06-03

貌似连接数据库真的有问题哦,总是提示TCP/IP连接失败,所用的用户角色登录都失败,但我的其它项目连接又正常,换了这个net.sourceforge.jtds.jdbc.Driver驱动也不行,不知是不数据库还原出现了问题呢???

 

log4j:ERROR Failed to excute sql
com.microsoft.sqlserver.jdbc.SQLServerException: 到主机  的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
	at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)

	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at org.apache.log4j.jdbc.JDBCAppender.getConnection(JDBCAppender.java:197)
	at org.apache.log4j.jdbc.JDBCAppender.execute(JDBCAppender.java:160)
	at org.apache.log4j.jdbc.JDBCAppender.flushBuffer(JDBCAppender.java:235)
	at org.apache.log4j.jdbc.JDBCAppender.append(JDBCAppender.java:131)
	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)

	at org.apache.log4j.Category.callAppenders(Category.java:194)
	at org.apache.log4j.Category.forcedLog(Category.java:379)

	at org.apache.log4j.Category.info(Category.java:654)
	at keel.pool.DbPoolMgr.init(DbPoolMgr.java:150)
	at keel.pool.DbPoolMgr.<init>(DbPoolMgr.java:53)
	at keel.pool.DbPoolMgr.getInstance(DbPoolMgr.java:29)
	at keel.util.KeelPoolContextListener.contextInitialized(KeelPoolContextListener.java:16)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4701)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5204)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5199)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
 

 

0 请登录后投票
   发表时间:2011-06-03   最后修改:2011-06-03

再看了下代码,终于找到问题所在了,原来在Log4j里面还在配置数据库连接啊,呵呵

 

不过又遇到了个编码问题哦,错误如下,这个暂时没有找到解决办法哦,LZ帮忙看看

 

java.io.CharConversionException: Not an ISO 8859-1 character: 登
	at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:77)
	at keel.util.KeelServlet.response(KeelServlet.java:168)
	at keel.util.KeelServlet.doPost(KeelServlet.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
 
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics