You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Lott, Carey" <ca...@eds.com> on 2003/01/16 19:12:49 UTC

Classes not being found in app's WEB-INF directory.

Hi,
I am running tomcat4.0.4 as a standalone on Solaris 7.  Simple servlets that
don't need any custom built classes run fine within the
$CATALINA_HOME/webapps/esd/WEB-INF/classes directory.  However, servlets
that are dependent on other custom classes will not run when all of the
needed classes are found within the
$CATALINA_HOME/webapps/esd/WEB-INF/classes directory, but they do run when
the dependent classes are found within the $CATALINA_HOME/classes directory.
I don't understand.  I thought by default it always looks in the
WEB-INF/classes and WEB-INF/lib directories before looking anywhere else for
needed classes.  

The fact that it does run is great, but since we have to have the classes in
$CATALINA_HOME/classes the automatic reload function doesn't work.  And for
some reason stopping and starting tomcat doesn't reload the classes in
$CATALINA_HOME/classes either.  Does anybody have any ideas what I am
missing?  I know it has to be something in the configuration, but I don't
know what.  

Thanks in advance for the help!!!

- Carey - 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: jk_ajp_common.c errors - issues with mod_jk receiving messages from tomcat

Posted by Harippriya Sivapatham <hs...@pingtel.com>.
I found the solution for my problems and i thought that i will record it for
future visitors ...

----- Original Message -----
From: "Harippriya Sivapatham" <hs...@pingtel.com>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Thursday, January 16, 2003 1:33 PM
Subject: jk_ajp_common.c errors - issues with mod_jk receiving messages from
tomcat


> Hi everyone,
> We are using Tomcat 3.2.3 and Apache 2.0.43 on Linux. I downloaded and
> installed mod_jk-2.0.43.so and everything seemed to work fine (atleast on
> IE).
>
> However, when I looked at the mod_jk log and i saw the following errors:
>
> [Thu Jan 16 12:23:49 2003]  [jk_ajp_common.c (681)]: ERROR: can't receive
> the response message from tomcat, network problems or tomcat is down.
> [Thu Jan 16 12:23:49 2003]  [jk_ajp_common.c (1050)]: Error reading reply
> from tomcat. Tomcat is down or network problems.
> [Thu Jan 16 12:23:49 2003]  [jk_ajp_common.c (1187)]: ERROR: Receiving
from
> tomcat failed, recoverable operation. err=0
>
> What do these errors mean and how can i fix them?

I was using the workers.properties that was shipped with tomca (not a wise
thing) but everything worked. But when i modified it to suit my environment,
these errors vanished.

>
> I was tracking down a strange problem and that's when i happened to see
the
> log. I would be glad if anyone had any insights into this and if the
errors
> seen in mod_jk were responsible for the problems i am facing:
>
> On our website, we use the following redirection:
> User login:   /pds/login/login.html -- Works fine
> Redirects to: /pds/login/j_security_check -- Works fine
> Redirects to: /pds/initialize/initialize.jsp -- Redirects fine
> Redirects to: /pds/ui/index.jsp
>
> the last redirect to index.jsp works fine and Apache gives a 200 response.
> On IE, the page is loaded fine. But on Netscape, it says the following:
>
> HTTP/1.1 200 Date: Thu, 16 Jan 2003 15:04:24 GMT Server: Apache/2.0.43
> (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6b mod_jk/1.2.2 Content-Length: 1371
> Last-Modified: Wed, 15 Jan 2003 16:03:10 GMT Keep-Alive: timeout=15,
max=96
> Connection: Keep-Alive Content-Type: text/html; charset=ISO-8859-1
>
> >From the apache access logs, it appears as though the index.jsp was not
> processed. However, if i hit the 'go' button on the address bar, the page
is
> loaded fine.

mod_ssl seams to have problems with HTTP 1.1 Hence it forces IE browsers to
use HTTP 1.0. When i did the same for Netscape browsers too in ssl.conf
file, the page content was displayed successfully.

>
> One small note: I am using mod_jk binary i downloaded from the
> jakarta-connectors area instead of the one that is available under
tomcat's
> bin directory. Does is make a difference?
>
> Thanks for your help in advance.
>
> Hari
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


jk_ajp_common.c errors - issues with mod_jk receiving messages from tomcat

Posted by Harippriya Sivapatham <hs...@pingtel.com>.
Hi everyone,
	We are using Tomcat 3.2.3 and Apache 2.0.43 on Linux. I downloaded and
installed mod_jk-2.0.43.so and everything seemed to work fine (atleast on
IE).

	However, when I looked at the mod_jk log and i saw the following errors:

[Thu Jan 16 12:23:49 2003]  [jk_ajp_common.c (681)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down.
[Thu Jan 16 12:23:49 2003]  [jk_ajp_common.c (1050)]: Error reading reply
from tomcat. Tomcat is down or network problems.
[Thu Jan 16 12:23:49 2003]  [jk_ajp_common.c (1187)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=0

	What do these errors mean and how can i fix them?

	I was tracking down a strange problem and that's when i happened to see the
log. I would be glad if anyone had any insights into this and if the errors
seen in mod_jk were responsible for the problems i am facing:

On our website, we use the following redirection:
User login:   /pds/login/login.html -- Works fine
Redirects to: /pds/login/j_security_check -- Works fine
Redirects to: /pds/initialize/initialize.jsp -- Redirects fine
Redirects to: /pds/ui/index.jsp

the last redirect to index.jsp works fine and Apache gives a 200 response.
On IE, the page is loaded fine. But on Netscape, it says the following:

HTTP/1.1 200 Date: Thu, 16 Jan 2003 15:04:24 GMT Server: Apache/2.0.43
(Unix) mod_ssl/2.0.43 OpenSSL/0.9.6b mod_jk/1.2.2 Content-Length: 1371
Last-Modified: Wed, 15 Jan 2003 16:03:10 GMT Keep-Alive: timeout=15, max=96
Connection: Keep-Alive Content-Type: text/html; charset=ISO-8859-1

>From the apache access logs, it appears as though the index.jsp was not
processed. However, if i hit the 'go' button on the address bar, the page is
loaded fine.

	One small note: I am using mod_jk binary i downloaded from the
jakarta-connectors area instead of the one that is available under tomcat's
bin directory. Does is make a difference?

Thanks for your help in advance.

Hari


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Classes not being found in app's WEB-INF directory.

Posted by Erik Price <ep...@ptc.com>.

Lior Shliechkorn wrote:
> I had a bunch of problems with that until I packaged the classes and then it had no problem finding the class files. Give that a try.

I too made the mistake of putting all of my classes directly under 
WEB-INF/classes.  Now I would like to put them into a proper package, 
but cannot -- CVS knows the directory structure that I have now, and if 
I move the classes into a new directory structure (the package directory 
structure "com/ptc/appname") then CVS will get all gorked up.

Does anyone have advice for this scenario?  Surely I must not be the 
first person who needed to rearrange directories for a webapp using CVS...


Erik


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Classes not being found in app's WEB-INF directory.

Posted by Lior Shliechkorn <li...@yahoo.com>.
I had a bunch of problems with that until I packaged the classes and then it had no problem finding the class files. Give that a try.
Hope it helps
 "Lott, Carey" <ca...@eds.com> wrote:Hi,
I am running tomcat4.0.4 as a standalone on Solaris 7. Simple servlets that
don't need any custom built classes run fine within the
$CATALINA_HOME/webapps/esd/WEB-INF/classes directory. However, servlets
that are dependent on other custom classes will not run when all of the
needed classes are found within the
$CATALINA_HOME/webapps/esd/WEB-INF/classes directory, but they do run when
the dependent classes are found within the $CATALINA_HOME/classes directory.
I don't understand. I thought by default it always looks in the
WEB-INF/classes and WEB-INF/lib directories before looking anywhere else for
needed classes. 

The fact that it does run is great, but since we have to have the classes in
$CATALINA_HOME/classes the automatic reload function doesn't work. And for
some reason stopping and starting tomcat doesn't reload the classes in
$CATALINA_HOME/classes either. Does anybody have any ideas what I am
missing? I know it has to be something in the configuration, but I don't
know what. 

Thanks in advance for the help!!!

- Carey - 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now