You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mário Gamito <ga...@gmail.com> on 2006/10/31 15:37:00 UTC
war file
Hi,
I've installed Tomcat and now i have this contineo.war file in the webapps
directory that it is supposed to become a web site.
Of course i'm a Tomcat newbie :(
Asking for your apologies in advance for such a newbie question, what am i
supposed to do with this file ?
Any help would be appreciated.
Best regards,
Mário Gamito
Re: war file
Posted by Mário Gamito <ga...@gmail.com>.
Hi,
On 10/31/06, Mikolaj Rydzewski <mi...@ceti.pl> wrote:
>
> Mário Gamito wrote:
> > It asks me for a login and a password which i don't know :(
> > I've defined a user with the admin role in tomcat-users.xml, but
> > they're not
> > the right credentials :(
> It should me manager role, not admin one.
> Yes, i already have this lines in tomcat-users.xml:
<role rolename="manager"/>
<user username="manager" password="123qwe" roles="manager"/>
but i can't login, i don't know why :(
Any ideas ?
Warm Regards,
Mário Gamito
Re: war file
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Mário Gamito wrote:
> It asks me for a login and a password which i don't know :(
> I've defined a user with the admin role in tomcat-users.xml, but
> they're not
> the right credentials :(
It should me manager role, not admin one.
--
Mikolaj Rydzewski <mi...@ceti.pl>
Re: war file
Posted by Mário Gamito <ga...@gmail.com>.
Hi,
For manager, it's the manager role that is needed, not the admin role.
My tomcat-users.xml file is:
----------------------------------------
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="manager" password="123qwe" roles="manager"/>
</tomcat-users>
----------------------------------------
but i can't login as manager :(
Is there anything wrong with it ?
Warm Regards,
Mário Gamito
Re: war file
Posted by David Delbecq <de...@oma.be>.
For manager, it's the manager role that is needed, not the admin role.
for 404, it says what it should, no such file :D
When you access manager you will see where it is mapped. There is a link
for all webapp deployed. I suggest you read the doc about the manager i
gave you a link to.
Mário Gamito a écrit :
> Hi David,
>
> On 10/31/06, David Delbecq <de...@oma.be> wrote:
>>
>> I bet you put a .war file an expected to see the site working. It's not
>> that easy :)
>>
>> The easiest way to deploy you .war in tomcat is to go to the manager
>> webapp (http://<your host>:<your port>/manager/html) and use the
>> 'deploy' part.
>
> It asks me for a login and a password which i don't know :(
> I've defined a user with the admin role in tomcat-users.xml, but
> they're not
> the right credentials :(
>
> The one thing i've done was placing the .war file in the webapps
> directory,
> then restart the server.
> This way, it created a new directory with all the files.
> Unfortunatelly, i get a 404.
>
> I've copied this directory to webapps/ROOT, but got the 404 all the same.
>
> Any ideas ?
>
> Best Regards,
> Mário Gamito
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: war file
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mário Gamito [mailto:gamito@gmail.com]
> Subject: Re: war file
>
> The one thing i've done was placing the .war file in the
> webapps directory, then restart the server.
That should be sufficient, if autoDeploy is enabled (it is by default).
> This way, it created a new directory with all the files.
Where did it create the new directory? This should only happen if unpackWars is set to true.
> Unfortunatelly, i get a 404.
What is the name of the .war file? What URL do you use to try to access it? What's in the WEB-INF/web.xml file inside the .war?
> I've copied this directory to webapps/ROOT
A completely incorrect thing to do. You need to clean out that mess before proceeding.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: war file
Posted by Mário Gamito <ga...@gmail.com>.
Hi David,
On 10/31/06, David Delbecq <de...@oma.be> wrote:
>
> I bet you put a .war file an expected to see the site working. It's not
> that easy :)
>
> The easiest way to deploy you .war in tomcat is to go to the manager
> webapp (http://<your host>:<your port>/manager/html) and use the
> 'deploy' part.
It asks me for a login and a password which i don't know :(
I've defined a user with the admin role in tomcat-users.xml, but they're not
the right credentials :(
The one thing i've done was placing the .war file in the webapps directory,
then restart the server.
This way, it created a new directory with all the files.
Unfortunatelly, i get a 404.
I've copied this directory to webapps/ROOT, but got the 404 all the same.
Any ideas ?
Best Regards,
Mário Gamito
Re: war file
Posted by David Delbecq <de...@oma.be>.
I bet you put a .war file an expected to see the site working. It's not
that easy :)
The easiest way to deploy you .war in tomcat is to go to the manager
webapp (http://<your host>:<your port>/manager/html) and use the
'deploy' part. For the manager to allow you to work on tomcat
configuration, you need first to define an administrator account (and of
course install the manager web application if not already done).
All instructions here:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
Mário Gamito a écrit :
> Hi,
>
> I've installed Tomcat and now i have this contineo.war file in the
> webapps
> directory that it is supposed to become a web site.
> Of course i'm a Tomcat newbie :(
>
> Asking for your apologies in advance for such a newbie question, what
> am i
> supposed to do with this file ?
>
> Any help would be appreciated.
>
> Best regards,
> Mário Gamito
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org