LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Tomcat6 error (http://www.linuxquestions.org/questions/solaris-opensolaris-20/tomcat6-error-745536/)

srinivasmiriyalu 08-06-2009 05:53 AM

Tomcat6 error
 
I have installed tomcat6 by using CLI btw i am using solaris express developer edition 1/08 and it installed without any problems ,after that I enabled tomcat6 service by typing below command in CLI

Code:

bash-3.2# svcadm enable svc:/network/cswtomcat6:default
when i typed in web-browser it is not coming btw i have already installed apache with port number:80,while installing tomcat6 system has not shown any assigned port.so what i have to do

bathory 08-06-2009 09:10 AM

I haven't use the CSWtomcat6 package, but I think the service name should be tomcat6.
Anyway the following commands should tell you if tomcat is running and listening on the default port (8080)
Code:

ps -ef|grep tomcat
netstat -an|grep 8080

If it isn't running, you can use
Code:

svcs -xv <servicename>
to see more details why it fails (replace servicename with the correct name of the tomcat6 service).

srinivasmiriyalu 08-07-2009 01:11 AM

Tomcat6 error
 
thanks for your reply and only thing i did blindly is i have already installed apache with port number 8080,and tomcat also taken 8080 port number,once i stopped the apache server and i started tomcat6 ,its working and now i have two services running on same port ,can you tell me how can i change port number for any of these two services and which one is better to change

bathory 08-07-2009 03:11 AM

I guess that you have to change apache port back to the default for webserver port 80. To do this edit httpd.conf, find the "Listen" directive and edit it accordingly.
If you want to change the tomcat default port read this.

Regards

srinivasmiriyalu 08-07-2009 05:23 AM

Thanks bathory
I changed the apache port number now both are working fine


All times are GMT -5. The time now is 11:59 AM.