• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic