Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: Jáder on October 30, 2009, 07:19:03 PM
-
I´m a complete newbie on JAVA.
I follow this howto: http://wiki.contribs.org/Tomcat
And have tomcat working (I access http://ip_server:8080 and get tomcat page.
BUT
I cannot access manager (saw message about authorization file and configurated it with a user/pwd), I´m getting a permission error:
"HTTP Status 403 - Access to the requested resource has been denied"
I´ve tryed to chmod tomcat:shared and other crazy things... but nothing works.
I´m out of tricks... can someone point me in some direction ?
My final goal is to run FreeRapid Downloader http://wordrider.net/freerapid/ (http://wordrider.net/freerapid/) to download HD movies from Rapidshare & Megaupload on my SME server with access from outside (tunnel ssh or VPN access, no external ports will be opened!)
Thanks
Jáder
-
Jader, there is a file under /conf named user.conf or user.xml (I don't remember) Edit this file and restart tomcat.
-
Normando
[Jader, there is a file under /conf named user.conf or user.xml (I don't remember) Edit this file and restart tomcat.
I saw this:
(saw message about authorization file and configurated it with a user/pwd),
the file is /opt/tomcat/conf/tomcat-users.xml
mine is:
<tomcat-users>
<role rolename="tomcat"/>
<user username="jader" password="xxxx" roles="tomcat"/>
</tomcat-users>
I was able to do login sometimes... I think was when changed group from tomcat to shared.
Now getting 403 only.
Thanks
Jáder
-
ha, yes, ensure you have tomcat chowned all tomcat files:
chown -R tomcat.tomcat /opt/tomcat
Also you must ensure you have the role "manager" defined, also "admin".
This is my file:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="normando" password="xxxxxxxx" roles="manager,admin"/>
<user username="admin" password="xxxxxxxxxx" roles="manager,admin"/>
</tomcat-users>
Restart tomcat and try again
-
Normando
Create the admin and manager roles solve my problems.
Now I have manager interface running.
Let me see if I can run .jar files as I wish.
Thanks.