如何将具有数据库连接的应用程序转换为war文件? [英] How to convert an application with database connectivity into a war file?

查看:73
本文介绍了如何将具有数据库连接的应用程序转换为war文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在使用cloudbees来部署我自己开发的应用程序。我正在尝试使用

数据库连接部署一个jsp应用程序(使用derby db和netbeans 7.0.1 IDE)。但是当我部署时,我得到一个异常抛出的
。我不知道解决方案。

我应该如何使用db开发一个jsp应用程序并将其转换为war文件

以便在部署时我不会有这个问题。请帮帮我。

这是抛出的异常:





例外



Hello,

I am using cloudbees to deploy applications which
i develop on my own. I am trying to deploy a jsp application with
database connectivity (am using derby db and netbeans 7.0.1 IDE). But
when i deploy, i get an exception thrown. I don''t know the solution.
How should i develop a jsp app with db and convert it into a war file
so that when deployed i don''t have this problem. Please help me in this regard.
This is the exception thrown:


exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /chatpage.jsp at line 19

16: %>
17: <%
18: Class.forName("org.apache.derby.jdbc.ClientDriver");
19: con=DriverManager.getConnection("jdbc:derby://localhost:1527/sample","app","app");
20: %>
21: <%
22: String str=request.getParameter("msg1");





关于,

Jannani



With regards,
Jannani

推荐答案

你好,



你的战争档案必须缺少db-derby-10.9.1.0.jar。将它包含在war文件的lib文件夹中。它应该工作。请查看[ ^ }文章。



问候,
Hello,

Your war file must be missing db-derby-10.9.1.0.jar. Include it in the lib folder of your war file & it should work. Please have a look at this[^} article.

Regards,


这篇关于如何将具有数据库连接的应用程序转换为war文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆