You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by joe user <pa...@yahoo.com> on 2003/07/01 03:00:07 UTC

Using a custom class loader to load webapp classes

Hello Tomcatters,

I have an unusual question.  I have a webapp which
needs to load its classes from a source other than a
regular .jar file or a .class file.  It needs to get
them out of some other storage system, such as a
database.  Don't ask me why I need to do this strange
thing; I have my reasons for it.

I have written a subclass of ClassLoader which does
this.  The question is, how do I get this to work with
Tomcat?  I was looking at the Tomcat source, and it
looks like all Webapp classes are loaded by
org.apache.catalina.loader.WebappClassLoader, which is
a subclass of URLClassLoader.  I can easily write a
subclass of WebappClassLoader which does what I need
it to do.  The question is, how do I get Tomcat to use
my new subclass instead of the default
WebappClassLoader itself?

I looked in org.apache.catalina.loader.WebappLoader,
and see that it picks the webapp class loader by name,
and it has a method like this:

    public void setLoaderClass(String loaderClass) {
        this.loaderClass = loaderClass;
    }

Is there somewhere in the Tomcat config files where I
could set a string which gets passed to this method? 
Also, if I do make my own subclass of
WebappClassLoader (call it SecureWebappClassLoader),
where should that class be put into the Tomcat
directory structure so that it can get loaded?

Thanks for any advice on this unusual question.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: HTTP Status 404 - /HelloServlet

Posted by Camron Levanger <ca...@cicbiz.com>.
Have you properly set things up in your web.xml file?   Also have you 
modified sever.xml if needed?

Cam

Naveen My wrote:
> Hello,
> I have installed Tomcat 4.1.x on JDK 1.4.x.
> I am able to run Tomcat and also view example JSP/servlets.....
>  
> I set all class paths according to the notes and trying to run simple "helloWorld" example....
>  
> I am getting 
> HTTP Status 404 - /HelloWorld  error....
> I am going crazy....
>  
>  
> Please help and Please..please..
> naveen
>  
>  
> Is there any Tomcat tutorial which wud help set by step ....
> .thanks again..
> 
> 
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: HTTP Status 404 - /HelloServlet

Posted by John Turner <to...@johnturner.com>.
FAQ

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Mon, 30 Jun 2003 23:21:26 -0700 (PDT), Naveen My <pe...@yahoo.com> 
wrote:

> Hello,
> I have installed Tomcat 4.1.x on JDK 1.4.x.
> I am able to run Tomcat and also view example JSP/servlets.....
> I set all class paths according to the notes and trying to run simple 
> "helloWorld" example....
> I am getting HTTP Status 404 - /HelloWorld  error....
> I am going crazy....
>
> Please help and Please..please..
> naveen
>
> Is there any Tomcat tutorial which wud help set by step ....
> .thanks again..
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: HTTP Status 404 - /HelloServlet

Posted by John Turner <to...@johnturner.com>.
FAQ

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Mon, 30 Jun 2003 23:54:26 -0700 (PDT), Naveen My <pe...@yahoo.com> 
wrote:

> http://12.206.145.47/servlet/HelloServlet
>
> I am following the below example from web....
> http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test- 
> Servlets
>
>
> Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
> how r u calling ur servlet, can u send ur URL.
>
> -----Original Message-----
> From: Naveen My [mailto:perlnaveen@yahoo.com]
> Sent: Tuesday, July 01, 2003 11:51 AM
> To: Tomcat Users List
> Subject: HTTP Status 404 - /HelloServlet
>
>
> Hello,
> I have installed Tomcat 4.1.x on JDK 1.4.x.
> I am able to run Tomcat and also view example JSP/servlets.....
>
> I set all class paths according to the notes and trying to run simple
> "helloWorld" example....
>
> I am getting
> HTTP Status 404 - /HelloWorld error....
> I am going crazy....
>
>
> Please help and Please..please..
> naveen
>
>
> Is there any Tomcat tutorial which wud help set by step ....
> .thanks again..
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: HTTP Status 404 - /HelloServlet

Posted by Naveen My <pe...@yahoo.com>.
http://12.206.145.47/servlet/HelloServlet
 
 
I am following the below example from web....
 
http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: HTTP Status 404 - /HelloServlet

Posted by John Turner <to...@johnturner.com>.
FAQ

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Mon, 30 Jun 2003 23:55:43 -0700 (PDT), Naveen My <pe...@yahoo.com> 
wrote:

> http://12.206.145.47/servlet/HelloServlet
>
> I am following the below example from web....
> http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test- 
> Servlets
>
>
> Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
> how r u calling ur servlet, can u send ur URL.
>
> -----Original Message-----
> From: Naveen My [mailto:perlnaveen@yahoo.com]
> Sent: Tuesday, July 01, 2003 11:51 AM
> To: Tomcat Users List
> Subject: HTTP Status 404 - /HelloServlet
>
>
> Hello,
> I have installed Tomcat 4.1.x on JDK 1.4.x.
> I am able to run Tomcat and also view example JSP/servlets.....
>
> I set all class paths according to the notes and trying to run simple
> "helloWorld" example....
>
> I am getting
> HTTP Status 404 - /HelloWorld error....
> I am going crazy....
>
>
> Please help and Please..please..
> naveen
>
>
> Is there any Tomcat tutorial which wud help set by step ....
> .thanks again..
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: HTTP Status 404 - /HelloServlet

Posted by John Turner <to...@johnturner.com>.
FAQ

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Tue, 1 Jul 2003 12:33:49 +0530, Deepak Nagpal 
<de...@intersolutions.stpn.soft.net> wrote:

> I am not sure  try to give the POrt No 8080. then check.
> http://12.206.145.47:8080/servlet/HelloServlet
>
> In the mean while i will check the link.
>
>
>
> -----Original Message-----
> From: Naveen My [mailto:perlnaveen@yahoo.com]
> Sent: Tuesday, July 01, 2003 12:26 PM
> To: Tomcat Users List
> Subject: RE: HTTP Status 404 - /HelloServlet
>
>
> http://12.206.145.47/servlet/HelloServlet
>
>
> I am following the below example from web....
>
> http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test- 
> Servlets
>
>
> Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
> how r u calling ur servlet, can u send ur URL.
>
> -----Original Message-----
> From: Naveen My [mailto:perlnaveen@yahoo.com]
> Sent: Tuesday, July 01, 2003 11:51 AM
> To: Tomcat Users List
> Subject: HTTP Status 404 - /HelloServlet
>
>
> Hello,
> I have installed Tomcat 4.1.x on JDK 1.4.x.
> I am able to run Tomcat and also view example JSP/servlets.....
>
> I set all class paths according to the notes and trying to run simple
> "helloWorld" example....
>
> I am getting
> HTTP Status 404 - /HelloWorld error....
> I am going crazy....
>
>
> Please help and Please..please..
> naveen
>
>
> Is there any Tomcat tutorial which wud help set by step ....
> .thanks again..
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: HTTP Status 404 - /HelloServlet

Posted by Holger Klawitter <li...@klawitter.de>.
Hi,

you have either to enable the "invoker" or you have to create a 
servlet-mapping in your web.xml. This is a common mistake with tomcat 4.1.x.

Mit freundlichem Gruß / With kind regards
	Holger Klawitter
--
lists <at> klawitter <dot> de


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: HTTP Status 404 - /HelloServlet

Posted by Deepak Nagpal <de...@intersolutions.stpn.soft.net>.
check ur web.xml file.
what u have specified as the servlet mapping.

<servlet-mapping>
  	<servlet-name>HelloServlet</servlet-name>
  	<url-pattern>/servlet/HelloServlet</url-pattern>
</servlet-mapping>

Is it so ?
then chenge ur URL accordingly.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:40 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/bat/

check this link...
The first file in the directory listing is HelloServlet class

Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
I am not sure try to give the POrt No 8080. then check.
http://12.206.145.47:8080/servlet/HelloServlet

In the mean while i will check the link.



-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:26 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/servlet/HelloServlet


I am following the below example from web....

http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: HTTP Status 404 - /HelloServlet

Posted by Deepak Nagpal <de...@intersolutions.stpn.soft.net>.
try

http://12.206.145.47/bat/servlet/HelloServlet

then tell what happened.


-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:40 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/bat/

check this link...
The first file in the directory listing is HelloServlet class

Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
I am not sure try to give the POrt No 8080. then check.
http://12.206.145.47:8080/servlet/HelloServlet

In the mean while i will check the link.



-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:26 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/servlet/HelloServlet


I am following the below example from web....

http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: HTTP Status 404 - /HelloServlet

Posted by Naveen My <pe...@yahoo.com>.
http://12.206.145.47/bat/
 
check this link...
The first file in the directory listing is HelloServlet class

Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
I am not sure try to give the POrt No 8080. then check.
http://12.206.145.47:8080/servlet/HelloServlet

In the mean while i will check the link.



-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:26 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/servlet/HelloServlet


I am following the below example from web....

http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: HTTP Status 404 - /HelloServlet

Posted by Naveen My <pe...@yahoo.com>.
I set my default port to 80.


Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
I am not sure try to give the POrt No 8080. then check.
http://12.206.145.47:8080/servlet/HelloServlet

In the mean while i will check the link.



-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:26 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/servlet/HelloServlet


I am following the below example from web....

http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: HTTP Status 404 - /HelloServlet

Posted by Deepak Nagpal <de...@intersolutions.stpn.soft.net>.
I am not sure  try to give the POrt No 8080. then check.
http://12.206.145.47:8080/servlet/HelloServlet

In the mean while i will check the link.



-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 12:26 PM
To: Tomcat Users List
Subject: RE: HTTP Status 404 - /HelloServlet


http://12.206.145.47/servlet/HelloServlet


I am following the below example from web....

http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: HTTP Status 404 - /HelloServlet

Posted by Naveen My <pe...@yahoo.com>.
http://12.206.145.47/servlet/HelloServlet
 
 
I am following the below example from web....
 
http://javaboutique.internet.com/tutorials/Tomcat/compile.html#Test-Servlets


Deepak Nagpal <de...@intersolutions.stpn.soft.net> wrote:
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: HTTP Status 404 - /HelloServlet

Posted by Deepak Nagpal <de...@intersolutions.stpn.soft.net>.
how r u calling ur servlet, can u send ur URL.

-----Original Message-----
From: Naveen My [mailto:perlnaveen@yahoo.com]
Sent: Tuesday, July 01, 2003 11:51 AM
To: Tomcat Users List
Subject: HTTP Status 404 - /HelloServlet


Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....

I set all class paths according to the notes and trying to run simple
"helloWorld" example....

I am getting
HTTP Status 404 - /HelloWorld  error....
I am going crazy....


Please help and Please..please..
naveen


Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


HTTP Status 404 - /HelloServlet

Posted by Naveen My <pe...@yahoo.com>.
Hello,
I have installed Tomcat 4.1.x on JDK 1.4.x.
I am able to run Tomcat and also view example JSP/servlets.....
 
I set all class paths according to the notes and trying to run simple "helloWorld" example....
 
I am getting 
HTTP Status 404 - /HelloWorld  error....
I am going crazy....
 
 
Please help and Please..please..
naveen
 
 
Is there any Tomcat tutorial which wud help set by step ....
.thanks again..


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Using a custom class loader to load webapp classes

Posted by Bill Barker <wb...@wilshire.com>.
It is supposed to be supported by something like:
  <Context .....>
     <Loader className="com.myfirm.mypackage.MyLoader" ... />
  </Context>

Never actually tried it myself, however.

"joe user" <pa...@yahoo.com> wrote in message
news:20030701010007.25938.qmail@web20421.mail.yahoo.com...
> Hello Tomcatters,
>
> I have an unusual question.  I have a webapp which
> needs to load its classes from a source other than a
> regular .jar file or a .class file.  It needs to get
> them out of some other storage system, such as a
> database.  Don't ask me why I need to do this strange
> thing; I have my reasons for it.
>
> I have written a subclass of ClassLoader which does
> this.  The question is, how do I get this to work with
> Tomcat?  I was looking at the Tomcat source, and it
> looks like all Webapp classes are loaded by
> org.apache.catalina.loader.WebappClassLoader, which is
> a subclass of URLClassLoader.  I can easily write a
> subclass of WebappClassLoader which does what I need
> it to do.  The question is, how do I get Tomcat to use
> my new subclass instead of the default
> WebappClassLoader itself?
>
> I looked in org.apache.catalina.loader.WebappLoader,
> and see that it picks the webapp class loader by name,
> and it has a method like this:
>
>     public void setLoaderClass(String loaderClass) {
>         this.loaderClass = loaderClass;
>     }
>
> Is there somewhere in the Tomcat config files where I
> could set a string which gets passed to this method?
> Also, if I do make my own subclass of
> WebappClassLoader (call it SecureWebappClassLoader),
> where should that class be put into the Tomcat
> directory structure so that it can get loaded?
>
> Thanks for any advice on this unusual question.
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org