aspose file tools*
The moose likes Oracle/OAS and the fly likes Error in connecting oracle 10g XE with java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Error in connecting oracle 10g XE with java" Watch "Error in connecting oracle 10g XE with java" New topic
Author

Error in connecting oracle 10g XE with java

P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119
Hi,

Iam trying to connect oracle 10g XE with java but iam having some confusion please help me to solve my issue.


I am accessing tomcat with: localhost/8080 and oracle 10g with:localhost:80/apex

My schema name is hr password is hr

My code is :




Please guide me iam doing correct or not please help to solve my issue, iam using ojdbc14.jar, servlet-api.jar file

Error is
HTTP Status 404 - /trial/servlet/Login1

--------------------------------------------------------------------------------

type Status report

message /trial/servlet/Login1

description The requested resource (/trial/servlet/Login1) is not available.



Please solve my issue, I not having any one to solve my issue in my office please guide me iam developing alone please solve y issue.


Thanks in advance.
P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119
Hi


Please guide me and solve my issue, please anyone reply for my post, its my request.


Thanks in advance.
P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119
HI

i have tried it is working fine in java but i tried to connect with jsp, servlet + oracle its showing Null pointer Exception.


My Jsp code is working fine

Main.jsp



My servlet code :

Login.java





My oracle DB:

I am accessing tomcat with: localhost/8080 and oracle 10g with:localhost:80/apex


Table name ADDUSER

FIELDS
EMAIL,PASSWORD

Iam getting null pointer exception please solve my issue i can't guess why iam getting error please help me.


thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in connecting oracle 10g XE with java