Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   jsp and java servlet (http://www.programmingforums.org/showthread.php?t=13244)

cairo May 30th, 2007 11:24 AM

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 ?

msi_333 May 30th, 2007 1:04 PM

Yeah
 
If u using tomcat server , you should do that

cairo May 30th, 2007 1:34 PM

yes i am, do u mean that i need to refresh the apache each time i run the program ?
is quite troublesome for me :(

msi_333 May 30th, 2007 1:46 PM

Quote:

Originally Posted by cairo (Post 128501)
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 May 30th, 2007 6:08 PM

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

cairo May 31st, 2007 2:05 AM

Quote:

Originally Posted by msi_333 (Post 128504)
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 ?


All times are GMT -5. The time now is 2:46 AM.

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