p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Apache Tomcat (http://p2p.wrox.com/forumdisplay.php?f=107)
-   -   Not able to Deploy my First Web Application (http://p2p.wrox.com/showthread.php?t=10169)

shankarnj March 6th, 2004 04:13 AM

Not able to Deploy my First Web Application
 
Hello,

   I am not able to deploy and run my web application using Tomcat 5.0.10, Java 1.4., Windows-2000

Proessional
   My Deployment details are as below

%tomcat-home%\webapps\greeting src\HelloWorld.java
                              index.html
                              web-inf\classes\HelloWorld.class
                                     \web.xml

   But if i modify the Provided example and which is in the
%tomcathome%\web-app\servlet-example\web-inf\classes and access through it will work.

*********************************************
 ERROR STATUS
*********************************************

HTTP Status 404 - /greeting/servlet/HelloWorld

With Pleasing Request

Shankar

Shankar

prasanthrc June 16th, 2004 06:16 AM

Hi,

 You just add the HelloWorld.class path to your CLASSPATH variable.
 For adding CLASSPATH:
  ->Right Click on MuComputer Select Properties
  ->then click on advanced tab and environment variables
 -> then add CLASSPATH at System variables
                    OR
Do it at dos prompt:
CLASSPATH=%CLASSPATH%;%tomcat-home%\webapps\greeting\web-inf\classes


pls let me know the progress.

Prasanth.C


prasanth.c

amith_pj June 18th, 2004 02:05 PM

Hi,
U mean we need to add classpath for every servlet application we write. That's gonna be painful. Is there any other way out ???

juliasia July 23rd, 2004 03:22 AM

Pls. try to modify the web.xml under your application directory to define a URL mapping!


gokul_blr August 13th, 2004 12:28 AM

Remove the your application folder manaually and try to depoly.

<<TOMCAT Ins>>\server\default\depoly\<<Your app. folder>>



muthukutta1 February 28th, 2017 09:57 AM

Quote:

Originally Posted by shankarnj (Post 10169)
Hello,

   I am not able to deploy and run my web application using Tomcat 5.0.10, Java 1.4., Windows-2000

Proessional
   My Deployment details are as below

%tomcat-home%\webapps\greeting src\HelloWorld.java
                              index.html
                              web-inf\classes\HelloWorld.class
                                     \web.xml

   But if i modify the Provided example and which is in the
%tomcathome%\web-app\servlet-example\web-inf\classes and access through it will work.

*********************************************
 ERROR STATUS
*********************************************

HTTP Status 404 - /greeting/servlet/HelloWorld

With Pleasing Request

Shankar

Shankar



Hi

May i too be helped for deploying the web



On trying Chapter_08
and using command
tomcat7 generate:web i get the following erroro
Please correct me





C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\bin>tomcat7 g
rate:web
[2017-02-28 19:10:44] [error] [ 3420] Unrecognized cmd option generate:web
[2017-02-28 19:10:44] [error] [ 3420] Invalid command line arguments
[2017-02-28 19:10:44] [error] [ 3420] Commons Daemon procrun failed with exit
lue: 1 (Failed to parse command line arguments)
Thanks
As
muthukutta1


All times are GMT -4. The time now is 08:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.