2 problem with j2ee [message #1015752] |
Sat, 02 March 2013 08:24 |
pippuccio76 ... Messages: 9 Registered: November 2012 |
Junior Member |
|
|
hi ,sorry for english,i installed eclipse ee and tomcat server to create jsp page , i have 2 problem with 2 pc:
first problem : so ubuntu ,eclipse juno ,tomcat 7 when i run a jsp page i have thi problem :
Starting Tomcat v7.0 Server at localhost' has encountered a problem.
i change the server.xml with several port but the problem remains.
second problem : so windows 7 ,eclipse juno ,tomcat 7 ,i have a jsp page :
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page language="java" import="java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="utente" scope="session" class="mucca.InfoUtente" >
</jsp:useBean>
<%= utente.getNome() %>
<%
Class.forName("com.mysql.jdbc.Driver") ; // Imposta la connessione al server e al database
Connection connect = DriverManager.getConnection("jdbc:mysql://localhost/java_db","root",""); // N.B. la password vuota si scrive password=
%>
<a href="index.jsp">Torna a index</a>
</body>
</html>
I have an exception at this row :
Class.forName("com.mysql.jdbc.Driver") ;
the same page workly perfect in netbeans...
[Updated on: Sat, 02 March 2013 08:25] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02572 seconds