[java ee programming] Re: Servlet Basics Lab Exercise

2009-08-21 Thread Prathibha H M
Hi All,
Thanks for the responses.I was able to run the project successfully.

So Lessons learnt in this exercise :

*Web.xml*

servlet-mapping
   servlet-nameGreeting Servlet/servlet-name
   url-pattern/greetings2/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nameResponse Servlet/servlet-name
   url-pattern/response2/url-pattern
   /servlet-mapping

*Request dispatcher URL *in the response servlet java file

RequestDispatcher dispatcher =
getServletContext()
.getRequestDispatcher(/response2);

 *Project-Properties - Run*

*Context Path*: /MyHello2
*Relative URL* : /greetings2

If there are any discrepencies in any of the above, the project cannot be
deployed.

I checked all these, enter the correct values. Finally clean and build, Run,
it was successful.

Thanks,
Prathibha



 --
 Date: Fri, 21 Aug 2009 03:28:39 +0800
 Subject: [java ee programming] Servlet Basics Lab Exercise
 From: prathibha...@gmail.com
 To: java-ee-j2ee-programming-with-passion@googlegroups.com


 Hi All,

 In Servlet_Basics homework, I modified the existing code of Hello2 project
 and it was successful.

 I tried to create a new project MyHello2 and copied the 2 servlet
 files(GreetingServlet and ResponseServlet) and modified the new web.xml.

 Build is successful. But When I run the project I get the following error :

 *D:\netbeans_projects\J2EE\MyHello2\nbproject\build-impl.xml:545: The
 module has not been deployed.*

 I have set the context path as /MyHello2 and URL as /greetings2 . Is there
 any other change to be done?

 Please can anybody help me on this.

 Thank you

 Regards,
 Prathibha H.M.


 

 --
 With Windows Live, you can organize, edit, and share your photos. Click
 here. http://www.windowslive.com/Desktop/PhotoGallery


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Servlet Basics Lab Exercise

2009-08-20 Thread Diane Ramsey

 

Prathibha,

 

I think I had a similar problems at one point. Not sure if it was the exact 
same thing. But I removed the welcome-file-list elements from the web.xml. 
Also check the web.xml and make sure your servlets are defined only once and 
that only valid servlets are defined. Netbeans can automatically add tags to 
the web.xml.

 

Also check the configuration files against your original working hello2 project 
to see if you can spot an error.

Make sure you do a clean before you try to run.  (I don't build separately I 
just choose clean and then run.)

 

There is also info in various support forums on this. Some contain the same 
info as above; others recommend you clean, build and manually deploy. Actually 
someone stated they had to log into the admin console undeploy the module and 
then redeploy it from netbeans.

 

 

Hope this helps,

 

diane 


Date: Fri, 21 Aug 2009 03:28:39 +0800
Subject: [java ee programming] Servlet Basics Lab Exercise
From: prathibha...@gmail.com
To: java-ee-j2ee-programming-with-passion@googlegroups.com

Hi All,

In Servlet_Basics homework, I modified the existing code of Hello2 project and 
it was successful.

I tried to create a new project MyHello2 and copied the 2 servlet 
files(GreetingServlet and ResponseServlet) and modified the new web.xml.

Build is successful. But When I run the project I get the following error :

D:\netbeans_projects\J2EE\MyHello2\nbproject\build-impl.xml:545: The module has 
not been deployed. 

I have set the context path as /MyHello2 and URL as /greetings2 . Is there any 
other change to be done?

Please can anybody help me on this.

Thank you

Regards,
Prathibha H.M.




_
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---