• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Error in connecting oracle 10g XE with java

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi


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


Thanks in advance.
 
P Arunkumar
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic