aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 5.5.9 Admin Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5.9 Admin Application" Watch "Tomcat 5.5.9 Admin Application" New topic
Author

Tomcat 5.5.9 Admin Application

Joseph Marques
Greenhorn

Joined: May 01, 2005
Posts: 12
I understand that in Tomcat 5.5 they decided not to install the admin app by default. So, I downloaded it separately (jakarta-tomcat-5.5.9-admin.zip) from the Windows installer (jakarta-tomcat-5.5.9.exe).

However, when I deposit the admin app's conf and server directories into Tomcat's respective directories, I can't access "/admin" in the browser. It reports the error "Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it."

I'm wondering if there is something that I have to do to one or more of the configuration files (admin.xml or others) after putting them in the conf and server directories to get them to correctly map the "/admin" to the installed app.

Also, I performed a search for the exact text of the error, and found one file - index.html - in the {installDir}/webapps/ROOT/admin directory. I tried deleting this file, to see if it would give me a 404 error instead, but the browser just kept feeding me the same "...no longer installed by default..." error - so I'm stumped.

So I have a couple questions:

1) How do I correctly install the admin app for Tomcat 5.5.x?

2) What is the special ROOT directory under {installDir}/webapps used for?

3) What is the difference between the {installDir}/webapps directory and the {installDir}/server/webapps directory?


Any and all help is appreciated.

Thanks in advance,

-joe
Giuseppe Sarno
Greenhorn

Joined: Jul 13, 2005
Posts: 1
i have the same problem too
Joseph Marques
Greenhorn

Joined: May 01, 2005
Posts: 12
I actually solved my issues not too long after I made the post. Here's what worked for me.

Files Needed:
jakarta-tomcat-5.5.9.exe
jakarta-tomcat-5.5.9-admin.zip


1. Install tomcat
2. Unzip the admin package (we'll call it <admin> context)
3. Copy the entire directory <admin>/server/webapps/admin to <catalina_home>/server/webapps
4. Copy the file <admin>/conf/Catalina/localhost/admin.xml to <catalina_home>/conf/Catalina/localhost
5. Restart your server, if it was running


For some reason, I could have swore I did all of that at one point, but I still kept getting the error that I original posted. I suspect that in the course of messing around with server files, I accidentally did something that caused this correct solution not to work. At that point, being a relative novice, I simply uninstalled/reinstalled tomcat (as the simplest solution), and then followed my instructions from step 2.

Let me know if it works for you.

-joe
satish varma dandu
Greenhorn

Joined: Jul 21, 2005
Posts: 2
Thanks Joseph Marques,
great,it worked for me.
Robert Gann
Greenhorn

Joined: Jul 27, 2005
Posts: 3
I've tried to follow this process as precisely as possible a couple times. However, I still get the error indicating that "Tomcat's administration web application is not installed by default."

- I am running Win XP Pro SP2.
- I installed jakarta-tomcat-5.5.9.exe into the c:\tomcat directory.
- I set CATALINA_HOME to c:\tomcat.
- I expanded jakarta-tomcat-5.5.9-admin.zip.
- I copied jakarta-tomcat-5.5.9\conf\Catalina\localhost\admin.xml to the
c:\tomcat\conf\Catalina\localhost directory.
- I copied jakarta-tomcat-5.5.9\server\webapps\admin and all its
subdirectories to c:\tomcat\server\webapps.
- I started the Apache Tomcat service.

The same error appeared. As far as I can see I have done exactly what was suggested. I would greatly appreciate any assistance anyone is able to render.
Robert Gann
Greenhorn

Joined: Jul 27, 2005
Posts: 3
This morning the admin function worked when I turned on my computer and started the Tomcat service.

I, too, could swear that last night I stopped the Tomcat service, installed the administrative function, and then restarted Tomcat. When the administrative function did not work, I rebooted my computer and started Tomcat. Since the administrative function still did not work, I posted my query and turned off my computer.

I now have two queries:

- What is causing this flaky behavior?
- Why was the admin function removed from the defaulty Tomcat 5.5 install?

Thanks!
Dinesh P Loganathan
Greenhorn

Joined: Aug 03, 2005
Posts: 2
hi everyone,
I have installed tomcat 5.5.9 and also configured it correctly so that if we save out class files to one folder it will automatically deploy it..i want to know how to deploy each applications like the example programs given in it... a mixture of jsp,servlets etc
Dinesh P Loganathan
Greenhorn

Joined: Aug 03, 2005
Posts: 2
Hi,

I tried to install tomcat admin package as u guys told.. man it is working... thenak you very much
Manolis Amolochitis
Greenhorn

Joined: Sep 04, 2005
Posts: 3
I ve tried it several times and hopefully the second one it worked.
I would suggest first to uninstall Tomcat and then reinstall it before
you try the admin package. It worked for me that way
By the way, does anyone know what is the default username and password or
at least where can I find it?
Manolis Amolochitis
Greenhorn

Joined: Sep 04, 2005
Posts: 3
Well I just found it, seems it is the same with the one that you
had for the Tomcat server. Dummy me...
by the way in the previous post I meant: "before trying to install the
admin package" to make it clear. Cheerz!!
zra tis
Greenhorn

Joined: Sep 14, 2005
Posts: 1
I'd like to add only one thing to this.

Tomcat doesn't restart very well. Make sure you check if java process is still running, then kill it if it is.

I'm running Linux and after killing the process and restarting Tomcat, only then it started working, especially if you're jumpstarting Tomcat via jsvc.

Regards,
Zratis
Vijay Jagannathan
Greenhorn

Joined: Feb 17, 2003
Posts: 22
I tried all the things listed above.
But still am getting the message

Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it.

Let me know if you managed to hit upon a solution.

Cheers
Vijay
Vijay Jagannathan
Greenhorn

Joined: Feb 17, 2003
Posts: 22
Oops!! Got it working.
I restarted my machine and the admin works now.
Guess it was some kind of cacheing issue.

Thanks a million.

Cheers
Vijay
Byron Gibson
Greenhorn

Joined: Sep 29, 2005
Posts: 1
Thanks for returning and posting your resolution, Joseph. I ran into the same problem, and found this thread near the top of my Google search. Worked like a charm, much appreciated.
tony emond
Greenhorn

Joined: Oct 14, 2005
Posts: 1
Actually it's a simple issue -- you just need to add "/index.jsp" after "/admin".

It IS an annoying bug though.
Haluk ISIKSAL
Greenhorn

Joined: Oct 20, 2005
Posts: 2
Hi I had the same problem.

I just remarqued that the admin application is not deployed as usual means that you copy the "admin" directory under the "webapps" but when you launch Tomcat is not deployed under ".\server\webapps\admin"

So I copied
Haluk ISIKSAL
Greenhorn

Joined: Oct 20, 2005
Posts: 2
Hi I had the same problem.

I just remarqued that the admin application is not deployed as usual. Means that "admin" directory is not automaticaly cretaed under the ".\server\webapps\admin"

So I copied
- images
- WEB-inf
directories from ".\webapps\admin" to the ".\server\webapps\admin"

and restart Tomcat and it works...
Amila Jayatillaka
Greenhorn

Joined: Sep 29, 2006
Posts: 28
Hey it is working when you go like this as tony emond said./



thanks tony


SCJP 1.4, SCMAD 1.0, SCWCD 5.0
Joseph Kampf
Greenhorn

Joined: Mar 04, 2004
Posts: 26
I know this is an old post, but I found it while researching this issue and I found out why I was getting it.

Another cause of this problem....

If your Engine in your server.xml is not "Catalina", you will need to reproduce the directory structure at <CATALINA_HOME>/conf/Catalina as:

<CATALINA_HOME>/conf/<engine name>

The localhost and the xml files have to follow the same directory structure.
Rajiv Bandi
Greenhorn

Joined: Sep 30, 2009
Posts: 1
Guys I think I found the problem.
I was getting this problem in Tomcat 5.5.28 also.

Reason :
In webapps/ROOT, we have a folder called admin. In this by default, we have a index.html file which gives the message 'Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it. '.

This file is used to alert that the admin package should be installed but when you copy the admin package files, there is no instruction to remove this file.

The reason that this file opens up as default index page, when /admin is given in the url, is that the welcome file list contains index.html first and then index.jsp.

That's the reason for the admin page to come up when index.jsp is added to the url.

Solution : Remove /webapps/ROOT/admin/index.html file after admin package is installed to solve this issue.

Note : I noticed that this issue does not show up always.

Sorry for digging an old issue. All feedback is welcome.

'njoy
Rajiv
Olivier Dupuy
Greenhorn

Joined: Nov 08, 2009
Posts: 1
I had some issues too. I had also to restart the tomcat server a couple of times.
After killing the process jqs.exe (Java Quick Starter) it then worked. Not sure if this is related but...

Ultimately do not forget to add a role admin in tomcat-users.xml and associate a user with this role (which shows up in {admin}/WEB-INF/web.xml.
The other administrative functions use the <manager> role
Then start the server and when accessing to http://localhost:8080/admin enter this one and you should be fine


SCEA 1.3, SCWCD 5, SCBCD 1.3, SCJP 5 & 1.2, Spring 3 Core
Santiago Murillo
Greenhorn

Joined: Jul 17, 2013
Posts: 1
Easy, reload navigator (F5 or Ctr-F5 or Ctr-R).
The navigator hold internal cache from previous request.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Welcome to the JavaRanch, Santiago!

I'm afraid that the last time anyone was interested in this thread was 3 years ago. They're probably moved on by now.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5.5.9 Admin Application
 
Similar Threads
Cannot get Tomcat 5.5. Admin App tp work
admin webapp - where to download this from?
Loading a servlet using jdk1.4 in Tomcat
Requesting help with Tomcat admin webapp
Cannot login into Tomcat Webserver Admin