Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 30th, 2007, 10:24 AM   #1
cairo
Newbie
 
Join Date: Dec 2005
Posts: 18
Rep Power: 0 cairo is on a distinguished road
jsp and java servlet

why every time i want to run my program again i need to refresh my apache server(compile java servlets )? if i didn't do that it will cause me these errors

Quote:


java.lang.NullPointerException
coreservlets.Database.doGet(Database.java:79)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
any one can tell me whats going on ?
should i show my code as well ?
cairo is offline   Reply With Quote
Old May 30th, 2007, 12:04 PM   #2
msi_333
Newbie
 
msi_333's Avatar
 
Join Date: May 2007
Location: Egypt
Posts: 19
Rep Power: 0 msi_333 is on a distinguished road
Send a message via Yahoo to msi_333
Yeah

If u using tomcat server , you should do that
msi_333 is offline   Reply With Quote
Old May 30th, 2007, 12:34 PM   #3
cairo
Newbie
 
Join Date: Dec 2005
Posts: 18
Rep Power: 0 cairo is on a distinguished road
yes i am, do u mean that i need to refresh the apache each time i run the program ?
is quite troublesome for me
cairo is offline   Reply With Quote
Old May 30th, 2007, 12:46 PM   #4
msi_333
Newbie
 
msi_333's Avatar
 
Join Date: May 2007
Location: Egypt
Posts: 19
Rep Power: 0 msi_333 is on a distinguished road
Send a message via Yahoo to msi_333
Quote:
Originally Posted by cairo View Post
yes i am, do u mean that i need to refresh the apache each time i run the program ?
is quite troublesome for me
No , Not every time you run a program , But u refresh i when u make a change in a code and you want to see the changes ,
msi_333 is offline   Reply With Quote
Old May 30th, 2007, 5:08 PM   #5
msi_333
Newbie
 
msi_333's Avatar
 
Join Date: May 2007
Location: Egypt
Posts: 19
Rep Power: 0 msi_333 is on a distinguished road
Send a message via Yahoo to msi_333
You Can

You Can Use NetBeans IDE and it will make 90% easier to u , Because it contain Tomcat sever built in , so u don't have to refresh the server any more ,when i started JSP application i was doing like u , but after some days i turned to NetBeans :p
msi_333 is offline   Reply With Quote
Old May 31st, 2007, 1:05 AM   #6
cairo
Newbie
 
Join Date: Dec 2005
Posts: 18
Rep Power: 0 cairo is on a distinguished road
Quote:
Originally Posted by msi_333 View Post
No , Not every time you run a program , But u refresh i when u make a change in a code and you want to see the changes ,


i know what u mean, but the fact is although i didn't change my program, i still need to refresh the apache tomcat to run the program again, am i missing something ?
cairo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:48 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC