Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
tomcat and jdbc connector

tomcat and jdbc connector

2007-10-01       - By David Smith

 Back
I doubt this is tomcat's fault in any way given the code snippet is pure
java and doesn't access the api except for the success message.  Can you
verify the Ubuntu machine really has access to the MS SQL server (no
firewall on either system)?  Also I'm guessing you also verified the
version of Java on that system is really Sun's JVM and not some variant
like GNU Java or Kava.

--David

loredana loredana wrote:
> Hi, I have a small jsp file that test a connection to an sql server 2000
database using ms jdbc drivers. the file is pretty basic:
>
>
>     DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver
.SQLServerDriver());
>     Connection connection = DriverManager.getConnection("jdbc:microsoft
:sqlserver://12.345.67.890\\InstanceName:1433;databaseName=DbName;selectMethod
=cursor;","user","pass");
>     if (connection != null) {
>
>       out.println("Successfully connected");
>
> this jsp file works ok on my computer where I have tomcat 6 installed. I
tried the same project with this jsp to a different computer on the same
network that has Tomcat 6 as well(only that computer runs on Ubuntu, mine on
win xp). And on that computer I get
>
> "javax.servlet.ServletException: java.sql.SQLException: [Microsoft][SQLServer
2000 Driver for JDBC]The requested instance is either invalid or not running."
>
> I posted this message here because a lot of people told me that since both
computers have access to the db(they are on the same network, I tried pinging
etc) and the project is the same, it is most probably from Tomcat(maybe some
configuration files different?).
>
> My tomcat is freshly installed and haven't made any modification to the
configuration files or anything. What could be different on the other Tomcat
instalation that could generate the error?
> Anybody had this kind of problem before? 10x in advance
>
>
>
>
>
>
>
>       __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
__ ____ _____
> Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>  


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.