订阅所有JSP/Servlet的日志 订阅 | 这是最新一篇日志 上一篇 | 下一篇日志 下一篇 ]
j2ee-8

jsp访问数据库异常

附件
02182701940.jar(500.7 K)
 
切换到幻灯片模式

使用jsp访问mysql数据库,出现了连接失败的异常:
java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream

** BEGIN NESTED EXCEPTION **

java.io.IOException
MESSAGE: Unexpected end of input stream

STACKTRACE:

java.io.IOException: Unexpected end of input stream
at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1096)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:626)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562)
at com.mysql.jdbc.Connection.<init>(Connection.java:491)
。。。。


** END NESTED EXCEPTION **


at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:699)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562)
at com.mysql.jdbc.Connection.<init>(Connection.java:491)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at org.apache.jsp.dbjsp_jsp._jspService(dbjsp_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
。。。。。。。
==========
telnet localhost 3306出现如下显示:

A
5.0.27-community-ntcg[qIURx,*b0f6uoMrv{'

失去了跟主机的连接。

有乱码这是怎么回事啊????
都说是驱动的问题,找了好久都没有找到mysql5.1的驱动,mysql官方网站一直登入不了,驱动啊????



终于找到一个可以用的驱动了,但是为什么驱动jar包放在tomcat的lib目录下,还是不行呢?
后来我给他放到web应用的WEB-INF/lib下之后就读出数据库数据了,虽然有乱码???
附件: mysql5驱动

平均得分
(0 次评分)





文章来自: 本站原创
标签: jdbc JSP mysql5.1驱动 
评论: 48 | 查看次数: 2106
  • 共有 48 条评论
  • 1
  • 2
  • 3
  • 4
  • |
  • >>
luckyoyo123 [2010-06-23 14:54:27]
Gucci Bags
The ordinary bat that flies around at night, who is a remarkable nimble
pandora jewellery
creature in the air, cannot take off from a level place. If it is placed on the floor or
Cheap Louis Vuitton Handbags
flat ground, all it can do is to shuffle about helplessly and, no doubt, painfully, until

it reaches some slight elevation from which it can throw itself into the air. Then, at

once, it takes off like a flash. louis vuitton Taschen
kuailele [2010-06-23 13:18:34]
Ghd, the top hair Straighteners brand in the world, is always preferred by the world’s top hairdressers,Louis Vuitton On Sale celebrities and supermodels. Insisting upon by the top hair fashion stylists, Ghd has revolutionized louis vuitton watches
Cheap True Religion Jeansstyling with its multipurpose products. Ghd’s ceramic hairstyling iron features a unique built-in microprocessor which conducts heat fast and retains it more effectively. Special materials can succeed in smoothing hair and creatingEd Hardy Jeans On Sale luscious curls, twirls or flicks.
kuailele [2010-06-22 17:35:07]
China rubber flooring design network, a place to find rubber flooring inspiration! Provide the most valuable design rubberUk Ghd flooring rubber network in Hunan Hunan rubber industry portal, providing rubber Hunan, Zhangjiajie rubber products, rubber products in Phoenix, Changsha rubber products, rubber products, Ed Hardy Schuhe
louis vuitton handbagsSouthern Mountain, Shaoshan all aspects of rubber products such as rubber Product information terminal. want to know Xiaoaiping film products Xiaoaiping presentation, and more on Xiaoaiping film-related news, to make films in XAP Net. As the name suggests is the network of disinfectant, is a disinfectant customers Network disinfectant media, networked hardy Schuhe operators as one disinfectant
kuailele [2010-06-01 13:21:25]
Yes, the student I have learned a lot, really good, next time I come to Austria, can not complain that I'm sick of Austria. 're louis vuitton handbags
louis vuitton wallets
gucci handbags In business.
游客 [2009-01-17 10:39:20]
游客 [2009-01-17 10:37:45]
shhere168 hfsmxln 亿人购物商城 日日美 RRM 雪纺上衣 休闲外套 连帽大衣 牛仔裤 波西米亚上衣 打底衫 全棉衬衫 格子衬衫 毛衣外套 针织毛衣 圆领上衣 立领上衣 少女装 休闲女装 休闲长裤 休闲短裤 牛仔裙 连衣裙 休闲短裙 休闲长裙 时装裙 波西米亚短裙 港版T恤 韩版T恤 打底裤 麻格围巾 旗袍 项链 上衣 衬衫 配饰 马夹
游客 [2008-12-24 13:22:04]
螺旋输送机|除尘器布袋骨架|卸料器螺旋输送机压绉厂急救箱离心风机|屋顶风机 风机厂分割器|凸轮|凸轮分割器私人侦探|婚姻调查|调查私人侦探 衬衫衬衫拖链拖链|软管|垫铁|输送链|排屑机|排屑器|钢制拖链垫铁软管老虎机上分器|游戏机上分器|水果机定位器|老虎机破解器|老虎机干扰器|游戏机破解器|老虎机遥控器老虎机上分器|老虎机定位器|老虎机干扰器|老虎机遥控器|游戏机上分器|游戏机干扰器拉力机|拉力试验机|万能材料试验机|万能试验机|材料试验机|电子拉力试验机万能材料试验机水处理设备液压千斤顶千斤顶|液压千斤顶|油缸|液压缸|液压工具|电动泵减肥方法如何减肥减肥方法|如何减肥|减肥药|最有效的减肥药|最好的减肥药|最有效的减肥产品|有效的减肥产品|唯美减肥药冷却塔冷却塔心理咨询婚外情心理咨询|婚外情粉碎机|分级机整流器搅拌机|搅拌器|混合机混合机搅拌机器guangzhou hotel|hotels in Guangzhou|garden hotel guangzhou|dongfang hotel guangzhoukwh meter|electricity meter 北京商铺卷帘门卷帘门生产线|输送机|涂装设备卷扬机|启闭机启闭机 北京厂房同声传译|同传设备|会议翻译同声传译无转子硫化仪|硫化仪|橡胶硫化仪 强力机|电子拉力机|电脑拉力机|橡胶拉力机减速机|齿轮减速机|蜗轮减速机|齿轮减速器齿轮减速机 无纺布|滤布|筛网|涤纶滤布|工业滤布|不锈钢筛网|不锈钢冲孔网无纺布|滤布|筛网|工业滤布老化试验箱东阳木雕风口|消声器|空调机组|防火阀|球型喷口混流风机排烟阀衬布轴流式风机 仿古家具软件加密 风机盘管|中央空调末端设备木工机械卷扬机风机齿轮泵|不锈钢齿轮泵点钞机 冲击试验机拉力机|拉力试验机 万能试验机龙猫市场调查讨债翻译公司钢结构
游客 [2008-12-12 11:25:55]
游客 [2008-12-03 15:30:15]
瑞士签证 美国签证 加拿大签证
最贴身的欧洲旅游资料手册和旅友交流区, 在英国申请瑞士签证.
阳光假期(中国)签证网专业代办瑞士签证.并为客户提供详细的瑞士签证.资料,旅游攻略资讯等,签好付款,品质保证。
第一次美国签证,因公护照面签的成功率有95%以上,但因私护照面签的成功率不到50 %。
美国签证权威咨询博客,提供美国商务旅游签证、美国移民签证、美国工作签证和美国留学签证咨询服务,美成达代办美国签证,不成功不收费,签证热线:020-38841196。
广航旅旅游网&港中旅集团招商国旅提供:加拿大签证,专业代办加拿大签证,包括加拿大旅游签证加拿大商务签证加拿大探亲签证-提供加拿大签证在材料、费用及申请表下载,2006年6月14日 ... 加拿大签证:随着人们生活水平的不断提高和社会的持续发展,中国的家长 ... 一、满足加拿大签证政策的基本要求。
游客 [2008-12-03 10:46:17]
游客 [2008-11-27 14:17:08]
游客 [2008-10-30 14:16:16]
8GB MP3 PLAYER
Beyond knowing your limitations. apple ipod it's important to be able to size up opponents . Bluetooth Headset at a glance. Bluetooth Headsets Knowing their class is the first step, understanding. canon digital camera your places in a rock-paper-scissors scenario. cell phone accessories More important, however, is the estimation . digital camcorder of gear. digital camcorders. As much as skill and class balance . digital camera plays a part in the outcome . digital cameras of combat, gear is a major differentiator that makes up for shortcomings in other areas. dvd player In fact, with . dvd players the introduction of Resilience, gear more than . ipod shuffle ever plays a more substantial part in PvP. ipod touch In an Arena match, the very first thing we . mp3 scope out is gear. mp3 mp4 player Through quick tab-selection viewing . mp3 mp4 player of character portraits, we generally . mp3 mp4 player have a good idea of the classes we're up against if they keep their helm graphic on. mp3 player accessories If they are wearing Season 3 shoulders, then we know . mp3 player accessory their relative experience. mp3 player kaufen This is why the visual i. mp3 player mpact of Arena shoulders is so important. mp4 It immediately gives you a general idea of how tough the match will be. portable dvd player Players in full S3 will likely have over 10k hp and over. portable dvd players 400 Resilience, depending on the class and spec. zubehoer mp3 player A full S3 SL/SL Warlock, for example, will easily have. about 12-13k hp and over 400 Resilience. Identifying weapons is slightly more . difficult but will also give a general idea of an enemy's strength. Season 1 and 2 weapons share the same graphics, so it's harder to identify. Season 3 weapons, on the other hand, are distinctive and share models with Black Temple and Mount Hyjal weapons. which have relatively the same power. A review of Brutal Gladiator weapons will come in handy because these will be the most common way to identify opponents of relative skill. With the new mechanics. in place for Arenas, Season 4 will more . or . less weed out the chaff from the grain.
游客 [2008-10-30 14:14:02]
1GB MP3 PLAYER My wife is a shrewd little fox. 2GB MP3 PLAYER She knows just how much I love the fact. 2GB MP3 PLAYER that she plays the game with me so sometimes, when we have our little domestic arguments, she makes sure. 4GB MP3 PLAYER to cancel her WoW account just to drive home a point. 4GB MP3 PLAYER Of course, it doesn't mean much since we're both paid up for the next few months, but the message is clear -- "we make up (or you see things my way). baladeur MP3 or I'm quitting the game!" Of course, we don't reconcile merely because I'll be losing my . baladeurs MP3 favorite playing partner, but I have to confess that it doesn't make . cell phones me happy one bit. cheap cell phones For parents, World of Warcraft can be a . digital mp3 player useful bargaining chip for their kids with the parental . ipod controls feature. ipod nano It's easy enough to control WoW time if kids aren't doing their homework, floundering in school, or simply not. ipods doing their chores. lecteur mp3 Conversely, a friend . lecteurs mp3 of mine gave his son a WoW subscription when . mp3 mp4 he did well in school. mp3 mp4 player World of Warcraft can be so. mp3 mp4 player much fun and addicting that it's . mp3 player often used as a social tool, and it's often upsetting when our. mp3 player kaufen friends quit playing the game. mp3 player wholesale How many of us have . mp3 players had friends whose significant others have "allowed" them to. mp4 player play the game after, say, a wonderful date. phones cell I'm not sure if it only applies to me, but . portable mp3 player because I play the game with many of my RL friends . and my family, I use the lure of WoW . to full effect. I once had my brother do a specific task for . the promise of an upgrade to The Burning Crusade. A little before he finished what I asked him to do, I secretly upgraded his account. so he could finally make his Blood Elf Priest. Kind of manipulative, I know, but we did end up having . a lot of fun leveling our alts together. How about you. How much a part of your life is WoW and has it . ever been used as a bargaining . chip in your social life.
游客 [2008-10-30 14:10:22]
1GB MP3 PLAYER A couple of people . 1gb mp3 players have posted about the Shattered Sun Peacekeepers slacking off on their jobs lately. best mp3 player quite possibly thanks . buy mp3 player to something Blizzard fed them . buy mp3 players in PatchIn their reports, they complain about Peacekeepers. cheap mp3 player attacking them for no reason, sometimes not even in retaliation for attacking (or defending yourself against). cheap mp3 players a member of the opposing faction. eve isk I can actually empathize with this as. gold wow I encountered the ill-placed wrath of the Peacekeepers myself when I rezzed my wife's toon in front of . hdro gold the Staging Area. lotro gold Without having done anything other. lotro gold than rezz, the Peacekeepers promptly charged . mp3 player and made short work of me. mp3 players
In my experience, I have found that the Peacekeepers around . mp4 player the Shattered Sun Staging Area have . mp4 players been slacking off. portable mp3 players In fact, my wife's toon was ganked right in front . wow of the building and the so-called Peacekeepers . wow gold did absolutely nothing. wow gold Sensing a bug, my wife . wow gold wrote a ticket and got a somewhat rude e-mail response saying that -- you guessed it -- it was working as intended. wow gold An Alliance . wow leveling guild on my server seemed to be aware of the fact and exploited it to full effect, killing solo players who could seek no refuge under the apathetic -- or even hostile -- Peacekeepers. wow oro According to reports, it's a known bug -- one player even . wow powerleveling made a video to document it -- but so far Blizzard . has turned a blind eye to it. I got a more sympathetic response from my GM who at least. mentioned he'd look into the situation. An in-game GM even reset the Peacekeepers in order to see if it would change anything (it didn't). I don't mind gankage.
游客 [2008-10-30 14:08:11]
buy wow gold Remember the WoW account hacking. buying gold world of warcraft If you're a WoW player. cheap wow gold you couldn't have missed . cheap wow gold any of the articles posting this issue. cheap wow gold Well, as it turns out, an article posted by . cheapest wow gold grimwell says that someone might have found the problem behind all the . eve isk account hacking, stealing and selling even 5 year's worth items. free online games A piece of the BBC news article says:"Analysis [. free online war games mp3 mp3 player ] showed that. mp3 players it lay dormant on a victims . mp4 machine until . online games they ran World of Warcraft (WoW) at which point it captured login data and sent it to. play war games the hacking group. sell wow gold The group's enthusiastic use of the cursor flaw suggests it is trying to . world of warcraft gold do the same again. wow The online fantasy game . wow gold now has more than eight million active players around the world. wow gold Research by security firm Symantec . wow gold suggests that the raw value of a WoW account is now higher. wow gold than a credit card and its associated verification data. wow gold "Normally, as a WoW player, you'd know about the risks involved when creating an online account, yet some were . wow gold lazy enough not to check on their accounts every once in a while, thus resulting in their items . wow gold kaufen and WoW currency being stolen. wow gold kaufen Everyone knows that . stuff like that happen, some. even managed to hack the Superbowl website and use it . to host code for spyware, so monitor the hell out of your computer!In an article I wrote yesterday. about hackers seeing console users as the new target, there is a comment coming from Stefana Muller.
  • 共有 48 条评论
  • 1
  • 2
  • 3
  • 4
  • |
  • >>
发表评论
昵 称:  登录
内 容:
选 项:
字数限制 1000 字 | UBB代码 开启 | [img]标签 开启