Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

unix > Apache > Tomcat

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Apache (unix) + mod_ssl + mod_gzip not compressing anything - Hi. I have been trying to get mod_gzip and mod_ssl to work together on Apache. I have been able to get mod_gzip to compress stuff if I am not useing ssl. I can also get mod_ssl to work, but then the ssl is working, then nothing gets (I..

Tomcat 4 and Apache - Hello all. I worked with Apache and Tomcat 3 for a while but never got around to Tomcat 4. My question is how do Apache and Tomcat 4 work together? Is Tomcat 4 a web and app server in one, or maybe Apache has to be to send requests to..

Apache+Tomcat+Cocoon - Anyone ever get those 3 release ever work? I got works fine. But I can't get Cocoon to work. All I got when I did is a directory listing. Helps are greatly PS: Its too confusing to..

Apache and Tomcat integration question - I tried to setup JK2 connector to make apache and tomcat work together. Apache 2.0.47 Tomcat 4.1.27 I followed the and can get apache to talk to tomcat eg: --> calls tomcat however..

apache 1.3.27 + mod_jk 1.1.0 + jakarta tomcat 4.1.27 - Hi I just tries to upgrade my tomcat to but fails 'cause is missing in 4.1.27. Does any one know why they removed this from the tar ball ? (binary, from apache..
Next:  Apache: Apache 2.0 caching dynamic scripts?  
Author Message
suntacnospampl

External


Since: Sep 04, 2003
Posts: 41



(Msg. 1) Posted: Thu Sep 04, 2003 2:00 pm
Post subject: unix > Apache > Tomcat
Archived from groups: alt>apache>configuration (more info?)

I am installing tomcat on a solaris9 box runnign apache.... I placed
the following command in the startup.sh script

JAVA_HOME="/usr/local/j2sdk1.4.1_05";
export JAVA_HOME;

To make sure that the JAVA_HOME variable is set to the correct
location. (Is there a better way to do this?)


When I start tomcat nothing is wrong....
#./startup.sh
Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR /usr/local/jakarta-tomcat-4.1.27
USING JAVA_HOME /usr/local/j2sdk1.4.1_05

When i like to check if the service is runnig by connecting to
http://10.99.1.115:8080 and I do NOT get anything Sad yeah a error
page that the location can not be found.....

So i do ./shutdown.sh and the following is reported:

#./startup.sh
Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR /usr/local/jakarta-tomcat-4.1.27
USING JAVA_HOME /usr/local/j2sdk1.4.1_05
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap


What is the problem? do you have any clue? Please help........

 >> Stay informed about: unix > Apache > Tomcat 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Sep 04, 2003 2:00 pm
Post subject: Re: unix > Apache > Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Johan Louwers <suntacNOSPAMPLEASE DeleteThis @dds.nl> wrote:
 > the following command in the startup.sh script
 > JAVA_HOME="/usr/local/j2sdk1.4.1_05";
 > export JAVA_HOME;

If the startup script doesn't specify bash, the "export" bit
is useless...

 > (Is there a better way to do this?)

Yes, put it in the /where/tomcat/is/bin/startup.sh

 > Exception in thread "main" java.lang.NoClassDefFoundError:
 > org/apache/catalina/startup/Bootstrap

Yes, this is what I get all the time, apparently the startup/shutdown
is able to startup Tomcat but not to shut it down. I have to manually
kill it... annoying...

For the fact that you don't get a response, check if port 8080 is
opened and listening, netstat -an | grep 8080 should tell you.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: unix &gt; Apache &gt; Tomcat 
Back to top
Login to vote
suntacnospampl

External


Since: Sep 04, 2003
Posts: 41



(Msg. 3) Posted: Thu Sep 04, 2003 3:41 pm
Post subject: Re: unix > Apache > Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I made some changes to the JAVA_HOME variable settings... it is now
loaded in /etc/.login and /etc/profile so i have it as a global system
var everywhere in the system Smile

I did a grep on port 8080 and found that it is not listining at all...
The Startup script tells me that it is startign but in fact nothing
happens....... no report in the error log or something... any clue?

Do I have to place the location also in PATH or something like that?




On 4 Sep 2003 10:36:41 GMT, Davide Bianchi
<davideyeahsure DeleteThis @onlyforfun.net> wrote:

 >Johan Louwers <suntacNOSPAMPLEASE DeleteThis @dds.nl> wrote:
  >> the following command in the startup.sh script
  >> JAVA_HOME="/usr/local/j2sdk1.4.1_05";
  >> export JAVA_HOME;
 >
 >If the startup script doesn't specify bash, the "export" bit
 >is useless...
 >
  >> (Is there a better way to do this?)
 >
 >Yes, put it in the /where/tomcat/is/bin/startup.sh
 >
  >> Exception in thread "main" java.lang.NoClassDefFoundError:
  >> org/apache/catalina/startup/Bootstrap
 >
 >Yes, this is what I get all the time, apparently the startup/shutdown
 >is able to startup Tomcat but not to shut it down. I have to manually
 >kill it... annoying...
 >
 >For the fact that you don't get a response, check if port 8080 is
 >opened and listening, netstat -an | grep 8080 should tell you.
 >
 >Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: unix &gt; Apache &gt; Tomcat 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Thu Sep 04, 2003 3:41 pm
Post subject: Re: unix > Apache > Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Johan Louwers <suntacNOSPAMPLEASE.DeleteThis@dds.nl> wrote:
 > I did a grep on port 8080 and found that it is not listining at all...

So it looks like tomcat isn't started or it can't open a port.
What's in the log file? (/where/is/tomcat/logs/catalina.out and
brothers...)

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: unix &gt; Apache &gt; Tomcat 
Back to top
Login to vote
suntacnospampl

External


Since: Sep 04, 2003
Posts: 41



(Msg. 5) Posted: Thu Sep 04, 2003 3:56 pm
Post subject: Re: unix > Apache > Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nothing........!!!! there is no entry in the logs.....!!! I do not
understeand this...... Even the functions that should write the logs
are not working I think...

the only thing I have is the error aboute
java.lang.NoClassDefFound......... etc etc

?? SPOOKY ??


On 4 Sep 2003 10:55:34 GMT, Davide Bianchi
<davideyeahsure RemoveThis @onlyforfun.net> wrote:

 >Johan Louwers <suntacNOSPAMPLEASE RemoveThis @dds.nl> wrote:
  >> I did a grep on port 8080 and found that it is not listining at all...
 >
 >So it looks like tomcat isn't started or it can't open a port.
 >What's in the log file? (/where/is/tomcat/logs/catalina.out and
 >brothers...)
 >
 >Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: unix &gt; Apache &gt; Tomcat 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Thu Sep 04, 2003 3:56 pm
Post subject: Re: unix > Apache > Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Johan Louwers <suntacNOSPAMPLEASE DeleteThis @dds.nl> wrote:
 > Nothing........!!!! there is no entry in the logs.....!!! I do not

Ok. Try to start tomcat by hand and with debug on.
Login as root, then set the JAVA_HOME and add $JAVA_HOME/bin to your
environment, you should be able to do

java -version

and see something like

java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)

(your data could differs)

Then cd in /where/tomcat/is and use ./bin/catalina start debug
and let's see.

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: unix &gt; Apache &gt; Tomcat 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]