JSP 在weblogic 上不能运行.
ahaw 2003-02-15 10:50:20 运行环境如下:
1)Professioal 2K + Jbuilder 7 + Weblogic 7 + SQL Server 2000
2)Jbuilder中连接数据库没有问题;Weblogic Server 启动也没有问题.
问题:
1)JSP 在Jbuilder 7 中运行出现如下错误:
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Unable to start WebLogic Server!!
WebLogic: license signature validation error!
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
2)将jsp copy到weblogic中也不能运行,同时在weblogic Sever(dos command)中出现异常,可能是没有找到jdbc的driver:com.microsoft.jdbc.sqlserver.SQLServerDriver
请问个位大虾,有什么好建议....
附上代码:
--------------------------------------------------------------------
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "java.sql.*"%>
<html>
<head>
<title>
Jsp1
</title>
</head>
<body>
<h1>
JBuilder Generated JSP
</h1>
<%
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
String url = "jdbc:microsoft.sqldriver://localhost:1433;DatabaseName=Northwind";
String userId = "sa";
String password = "sa";
Connection con = DriverManager.getConnection(url,userId,password);
Statement smt = con.createStatement();
String sql = "Select ShipCity From Orders";
ResultSet rs = smt.executeQuery(sql);
while (rs.next()) {
%>
<%=rs.getString(1) %>
<%
}
rs.close();
smt.close();
con.close();
%>
</body>
</html>
----------------------------------------------------------------------