tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Montgomery, Kendal L" <kendal.montgom...@qwest.com>
Subject RE: servlet deployment
Date Tue, 22 May 2001 14:10:33 GMT
Thank you... that worked... for some reason I didn't even think to use the
full class name.



Kendal L. Montgomery
Qwest - eFlow Development Team
614-215-4937


		-----Original Message-----
		From:	William Kaufman [mailto:WKaufman@viquity.com]
		Sent:	Tuesday, May 22, 2001 10:04 AM
		To:	'tomcat-user@jakarta.apache.org'
		Subject:	RE: servlet deployment

		Try

		    http://myserver:8080/servlet/dummy.HelloWorld

		1) 8080 is the default port for Tomcat: you can change it in
server.xml.
		2) All servlets (by default--settable in web.xml) appear
under /servlet.
		3) After that comes the full class name.

	
-- Bill K.


		> -----Original Message-----
		> From: Montgomery, Kendal L
[mailto:kendal.montgomery@qwest.com]
		> Sent: Tuesday, May 22, 2001 6:43 AM
		> To: Tomcat-User (E-mail)
		> Cc: Sharma, Puneet
		> Subject: servlet deployment
		> 
		> 
		> Hello all,
		> 
		> I am just wandering how I deploy a servlet that is part of
a 
		> package, and
		> how to reference it.  For example.. say you take the
HelloWorldExample
		> servlet that comes with and modify it.  Rename the source
to
		> HelloWorld.java, and change the file appropriately,
including 
		> adding a line
		> at the top:
		> 
		> package dummy;
		> 
		> so, it is in the dummy class.
		> 
		> When I deploy this "new" HelloWorld servlet, I put it in
		>
...webapps/examples/WEB-INF/classes/dummy/HelloWorld.class.  Now, to
		> reference this, I expected to be able to go to my browser
and hit
		> http://myserver/examples/servlet/dummy/HelloWorld
		> <http://myserver/examples/servlet/dummy/HelloWorld> .
That 
		> did not work.
		> So, what do I have to do to make this work?
		> 
		> By the way, I am running Apache 1.3.19 and Tomcat
3.2.1.fasdf
		> 
		> Thanks..
		> 
		> Kendal L. Montgomery
		> Qwest - eFlow Development Team
		> 614-215-4937
		> 

Mime
View raw message