[CentOS] Tomcat 6 and Java 1.6
CentOS List
centoslist at gmail.com
Tue Aug 25 19:04:03 UTC 2009
>>>>>>>>> I did a yum -y install tomcat5 and tomcat got installed with
>> openjdk.
>>>>>>>>> But
>>>>>>>>> somehow if I goto http://localhost:8080
>>>>>>>>> I am unable to get to the tomcat default site.
>>>>>>
>>>>>>>>> Correction. I got to a blank page.
>>>>>>> Do a 'yum search tomcat' and note that there are several packages.
If
>>>>>>> you want the admin site and sample webapps you have to install the
>>>>>>> corresponding packages.
>>>>>> Results as follows:-
>>>>>>
>>>>>> =============================== Matched: tomcat
>>>>>> ================================
>>>>>> tomcat5-admin-webapps.i386 : The administrative web applications for
>>>> Jakarta
>>>>>> : Tomcat
>>>>>> tomcat5-webapps.i386 : Web applications for Jakarta Tomcat
>>>>> Are these two installed? Or do you want them? If you are going to
>>>>> supply your own ROOT application you shouldn't need them, but if you
>>>>> want to see something by default or have web administration access you
>>>>> would.
>>>> Yes those are installed. I will need to have the administration site
>>>> To manage. But it wont show up. Just a blank page
>>> Have you installed anything else that might conflict or replace
>>> components? Does 'java -version' show
>>> java version "1.6.0"?
>>> The default page should be what is at
>>> /var/lib/tomcat5/webapps/ROOT/index.jsp. Does that look normal? Do you
>>> get something at http://localhost:8080/admin or
>>> http://localhost:8080/manager/html?
>>
>> [root at localhost ~]# java -version
>> java version "1.6.0"
>> OpenJDK Runtime Environment (build 1.6.0-b09)
>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
>>
>> I do have a /var/lib/tomcat5/webapps but it does not has the ROOT folder
>>
>> [root at localhost webapps]# ls -la
>> total 16
>> drwxrwxr-x 2 root tomcat 4096 Jul 28 05:24 .
>> drwxr-xr-x 6 root root 4096 Aug 26 04:17 ..
>>
>> Since there isn't a ROOT folder, I guess I cannot access to admin
>> or the manager site. But how come I don't have the ROOT folder and I am
>> unable
>> to locate it anywhere.
>
> Try an "rpm -e tomcat5-webapps" and let yum install it again.
Thanks a lot! It is working now
More information about the CentOS
mailing list