I am trying to add postgreSQL in SQL developer 3.2.
Have read the steps from many reference sites and have even added multiple third party jars for other DB in past.
I am downloading jar from https://jdbc.postgresql.org/download.html
my system is working with jdk 1.7
However, after adding the postgresql jar, I am unable to see postgre tab in new connection dialogue box.
I upgraded the sql developer version to 4.0.1 and that resolved the issue.
Related
I am trying to learn JDBC. The first step is to connect Oracle DB to eclipse. I installed Oracle XE. Now, when I am trying to connect to eclipse, I do not see a list of drivers.
Also, as according to this page, I cannot see Oracle Database Connection. I only see "Oracle"
I also tried opening the eclipse after cleaning (adding -clean in the .ini file) But it didn't work. What am I missing here?
You can download the JDBC driver from OTN and add it to the classpath.
I use netbeans 8.1 and glassfish 4.0.When I click persistence.xml-design tab,a warning appears like The project does not have the target server properly.Java persistence features are server-dependent ...
So I don't use JPQL on persistence.xml
Any suggestion?
I found a solution for my QUESTION. If the project has a server, you will show your server to your ejb project. ejb projcet->properties->run and define your server.
I was having the same problem but with the little difference that mine was caused by attempting to downgrade glassfish from version 5.0.1 to 5.0. I had deployed my application using 5.0.1 but some issues with the jdbc drive occurred so I need to downgrade to Glassfish 5.0 and then this appears "The project does not have the target server properly... ", I checked the run properties and everything was all right.
In order to solve: first go to "project properties" and then to "Run" in the server option select apply changes, restart netbeans, open again and change the server again to glassfish
My tomcat web app isn't loading the oracle driver any longer. I moved tomcat and messed with the server definition. Its up and running but can't connect to Oracle due to a missing driver.
I had similar problem with log4j and other libs but adding the lib into the Deployment Assembly of the web app properties solved those issues.
The Oracle lib is there as is its odbc6.jar.
I also tried copying it to WEB-INF/lib with to no avail.
I have a hunch this is a class path problem but I'm not sure how to fix it. I'm also concerned that tomcat can find other libs but not the oracle liv.
SQLException: No suitable Driver Found for jdbc:oracle:thin:#//localhost:1521/orcl
Fixed. I removed the server from the eclipse server window. Clean the project. Added the server back in. Cleaned and rebuild and it worked.
I have a Java project which uses Struts and Hibernate. I am using PostgreSQL as the database for the project.
I have imported the .jws file in JDeveloper. All the java and jsp files are imported to the project.
When I tried to run the project multiple errors came out. I think it's due to a database connection failure.
Do I need to configure pgsql with the project?
Thanks in advance.
You have to provide more info on what the errors are.
But some common problem in JDeveloper when using the bundled server to test is that (if you are using datasources) you have to place the driver jars in the server lib folder or declare it as a Library by going to Tools->Manage Libraries.
If you post what errors are you receiving and how are you connecting to the database we might be able to help you a little more.
You'll need to add the postgreSQL jdbc jar files to your project and to the embedded WebLogic instance.
Tell us the specific error you are getting and we'll help you more.
I'm starting to use Java EE developing on Eclipse IDE, using GlassFish and the default Java database. What I should do if I want to change the database to Oracle?
The application runs on Glassfish and Google App Engine. But is there a way from Eclipse to deploy it to my own server?
You should be able to deploy locally to Glassfish and Oracle using Eclipse. (It's easy to do with IntelliJ.)
All you have to do to use Oracle is add the JDBC driver JAR to the appropriate spot in your CLASSPATH, use the new driver .class, and change the connection URL.
The driver JAR should match your JDK (e.g., ojdbc6.jar) and database version. It should come with your database or you can download it here.
I don't know if the JAR should go in your WEB-INF/lib or a server /lib; consult your docs to be sure.
One more thing: it goes without saying that you'll have to set up Oracle (e.g., proper credentials), create the new schema, and add the tables and indexes before you run your Java app. I thought I'd spell it out to be safe.