有在SAE上部署JAVA项目的吗? 求帮助

sliwey 2014-02-26 03:49:40
http://sliwey.sinaapp.com/web/front/index.jsp
这是我部署的项目地址

访问数据库时(即点击第二个菜单项)会出错
有人知道吗??

SSH框架版本如下
struts 2.3.15+spring 3.2.5+hibernate 4.2.8

本地一切正常
...全文
331 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
食仁魔法师 2014-05-19
  • 打赏
  • 举报
回复
晓风吹雾,我遇到是和你一样的问题,你的解决了没呢
sliwey 2014-02-26
  • 打赏
  • 举报
回复
引用 7 楼 defonds 的回复:
看看,玩省事,托管,现在遇见问题,叫天天不应叫地地不灵了吧。
菜鸟只能用这种的啊。。。
sliwey 2014-02-26
  • 打赏
  • 举报
回复
引用 8 楼 fangmingshijie 的回复:
你的数据库建在哪里?是建在sae上吗?
恩 是的 他有提供mysql服务
  • 打赏
  • 举报
回复
你的数据库建在哪里?是建在sae上吗?
Defonds 2014-02-26
  • 打赏
  • 举报
回复
看看,玩省事,托管,现在遇见问题,叫天天不应叫地地不灵了吧。
sliwey 2014-02-26
  • 打赏
  • 举报
回复
引用 3 楼 shnulaa 的回复:
mysql Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. Communications link failure, then it means that the DB isn't reachable at all. This can have one or more of the following causes: IP address or hostname in JDBC URL is wrong. Hostname in JDBC URL is not recognized by local DNS server. Port number is missing or wrong in JDBC URL. DB server is down. DB server doesn't accept TCP/IP connections. DB server has run out of connections. Something in between Java and DB is blocking connections, e.g. a firewall or proxy. To solve the one or the other, follow the following advices: Verify and test them with ping. Refresh DNS or use IP address in JDBC URL instead. Verify it based on my.cnf of MySQL DB. Start the DB. Verify if mysqld is started without the --skip-networking option. Restart the DB and fix your code accordingly that it closes connections in finally. Disable firewall and/or configure firewall/proxy to allow/forward the port.
数据库不在本地 数据库地址我也能ping通
sliwey 2014-02-26
  • 打赏
  • 举报
回复
引用 4 楼 defonds 的回复:
[quote=引用 2 楼 u011559804 的回复:] [quote=引用 1 楼 defonds 的回复:] mysql 数据库连接超时了。 编辑 /etc/my.cnf(windows 下为 my.ini),将超时时间设置为 10 年,在 [mysqld] 后面加入: wait_timeout=315360000 然后重启 MySQL # service mysql restart 搞定。然后重启超时的 java 连接池程序吧。
数据库在SAE上啊。。不在本地 这个怎么改?[/quote]你们托管的? 嗨。那就联系他们的技术吧。[/quote] 我一个个人网站。。。根本没人理啊。。。
Defonds 2014-02-26
  • 打赏
  • 举报
回复
引用 2 楼 u011559804 的回复:
[quote=引用 1 楼 defonds 的回复:] mysql 数据库连接超时了。 编辑 /etc/my.cnf(windows 下为 my.ini),将超时时间设置为 10 年,在 [mysqld] 后面加入: wait_timeout=315360000 然后重启 MySQL # service mysql restart 搞定。然后重启超时的 java 连接池程序吧。
数据库在SAE上啊。。不在本地 这个怎么改?[/quote]你们托管的? 嗨。那就联系他们的技术吧。
晓风吹雾 2014-02-26
  • 打赏
  • 举报
回复
mysql Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. Communications link failure, then it means that the DB isn't reachable at all. This can have one or more of the following causes: IP address or hostname in JDBC URL is wrong. Hostname in JDBC URL is not recognized by local DNS server. Port number is missing or wrong in JDBC URL. DB server is down. DB server doesn't accept TCP/IP connections. DB server has run out of connections. Something in between Java and DB is blocking connections, e.g. a firewall or proxy. To solve the one or the other, follow the following advices: Verify and test them with ping. Refresh DNS or use IP address in JDBC URL instead. Verify it based on my.cnf of MySQL DB. Start the DB. Verify if mysqld is started without the --skip-networking option. Restart the DB and fix your code accordingly that it closes connections in finally. Disable firewall and/or configure firewall/proxy to allow/forward the port.
sliwey 2014-02-26
  • 打赏
  • 举报
回复
引用 1 楼 defonds 的回复:
mysql 数据库连接超时了。 编辑 /etc/my.cnf(windows 下为 my.ini),将超时时间设置为 10 年,在 [mysqld] 后面加入: wait_timeout=315360000 然后重启 MySQL # service mysql restart 搞定。然后重启超时的 java 连接池程序吧。
数据库在SAE上啊。。不在本地 这个怎么改?
Defonds 2014-02-26
  • 打赏
  • 举报
回复
mysql 数据库连接超时了。 编辑 /etc/my.cnf(windows 下为 my.ini),将超时时间设置为 10 年,在 [mysqld] 后面加入: wait_timeout=315360000 然后重启 MySQL # service mysql restart 搞定。然后重启超时的 java 连接池程序吧。
内容概要:本文针对无刷直流电机驱动的电子机械制动(EMB)执行器,建立了考虑Stribeck摩擦特性的非线性耦合动力学模型,并在Simulink环境中完成了系统级仿真分析。研究综合集成了电机动力学、齿轮传动机构与制动执行机构的动力学特性,构建了高保真的机电一体化系统模型。重点引入Stribeck摩擦模型以精确描述低速工况下执行器内部存在的静摩擦、粘滞摩擦与库仑摩擦之间的过渡行为,有效提升了系统在启停、反向运动等瞬态过程中的动态响应仿真精度。通过多工况仿真验证了模型的有效性,能够准确反映摩擦引起的爬行、滞后与定位误差等非线性现象,为EMB系统的高性能控制算法设计(如摩擦补偿、滑模控制)与结构优化提供了高可信度的仿真平台。; 适合人群:从事汽车电子制动系统、电机驱动控制、机电系统建模与仿真研究的研究生、科研人员及工程技术人员,需具备扎实的机械动力学、自动控制理论基础和MATLAB/Simulink仿真能力。; 使用场景及目标:①用于高精度电子机械制动系统的设计验证与性能预测;②为消除摩擦非线性影响的先进控制策略(如自适应控制、智能控制)提供精确的被控对象模型;③深入探究Stribeck摩擦等非线性因素对系统动态性能(如响应延迟、稳态误差)的作用机理; 阅读建议:读者应结合提供的Simulink模型文件,深入剖析Stribeck摩擦模块的数学实现与参数辨识方法,建议通过改变输入指令(如阶跃、正弦)和负载条件进行对比仿真,以直观理解非线性摩擦对系统动态特性的影响。

81,111

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧