File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes could not establish connection using struts to oracle data base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "could not establish connection using struts to oracle data base" Watch "could not establish connection using struts to oracle data base" New topic
Author

could not establish connection using struts to oracle data base

Swetha Bhagavathula
Ranch Hand

Joined: Jan 04, 2011
Posts: 112

Hello .I am facing the following error when trying to insert values from my struts application into oracle database table.please help me to sort out the problem:



Thanks in advance

SCJP5
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

This has nothing to do with Struts and everything to do with how you are connecting to your database. Can you connect with SQLPlus? Can you connect with plain JDBC? Are you using your container's connection pool? If so, does it have a "test connection" function you can use?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Swetha Bhagavathula
Ranch Hand

Joined: Jan 04, 2011
Posts: 112

Thankyou could rectify my error. I need to start the oracle server from services.msc when it is in disabled mode. then could connect my application to database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: could not establish connection using struts to oracle data base
 
Similar Threads
Tomcat 7-WAR file works on Windows XP/Windows 7 but not on Windows Server 2003 R2 Enterprise Edition
Cannot find ActionMapping or ActionFormBean
Tomcat 5.x and 7.0 jar file questions
Tomcat Server StartUp Failed
Problem Deploying a Struts Application in Eclipse