Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / January 2004

Tip: Looking for answers? Try searching our database.

Servlet can't communicate with 'Database made using XML' !

Thread view: 
Abhishek Agrawal - 26 Jan 2004 07:38 GMT
Iam making an application in which the user logs in by entering
username and password through a Servlet ,

Usernames and passwords are already stored in an XML document on the
server , the Servlet has to just parse the XML document and verify the
username and password

iam using 'Apache Tomcat 4.1.12' and 'JAXP api for XML' processing

THE PROBLEM IS THAT WHILE RUNNING THE SERVLET IT IS THROWING
EXCEPTIONS(NULL POINTER EXCEPTION) THAT IT WAS UNABLE TO PARSE THE XML
FILE !
IT ALSO GIVES 'http-ERROR 500'

PLEASE IF ANY ONE CAN HELP
Christophe Vanfleteren - 26 Jan 2004 10:14 GMT
> Iam making an application in which the user logs in by entering
> username and password through a Servlet ,
[quoted text clipped - 11 lines]
>
> PLEASE IF ANY ONE CAN HELP>>>>>>>>>

Please don't use all caps. It makes you look rude.

Anyway, you'll need to show us your code + xml file, otherwise noone here
will be able to tell what you're doing wrong.

Have you tried parsing the xml file in an ordinary class? If you can get it
to work there, then you might try in a servlet. This method will be faster
to try/debug.

Signature

Kind regards,
Christophe Vanfleteren



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.