In the Admin Console, you will build a new Context, then configure DataSource below, because it is configured in the page environment, everything is very simple. Then it is tested in JSP to see if the DataSource configuration is successful. Try {INITIALCONTEXT CTX = new initialContext (); context envctx = (context) CTX.lookup ("Java: Comp / ENV");
DS = ("JDBC / SQLSERVER"); connection conn = ds.getConnection (); statement stmt = conn.createstatement (); ........} catch (exception ex) {OUT .print ("Error, INFO =" ex.getMessage ()); EX.PrintStackTrace ();} Perform error: javax.naming.namenotFoundException: Name Java: Comp is Not Bound in this context View Tomat's Server. XML, Web.xml also has Web.xml, how to report this fault. Finally, you can only delete the data source configuration, manually to configure the data source. At first system configuration data source in