Bonjour,
Je fais un développement avec struts et maintenant je dois finaliser celui-ci dans un fichier .war.
Je dois faire un test de déploiement sur ce fichier et pour cela je veux utiliser Tomcat.
Je n'arrive pas a le faire, aussi bien en mode statique que en mode manager.
J'ai manifestement un problème de droit avec, car je ne passe pas la barriere de la donnée des nom et password.
Le serveur marche et je le démarre avec startup.bat sur windows.
Est-ce que quelqu'un pourrait me corriger le fichier tomcat-user.xml suivant :
Ce que je cherche à faire est décrit dans ce tuto : http://stackoverflow.com/questions/5...le-in-tomcat-7
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <!-- NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. It is strongly recommended that you do NOT use one of the users in the commented out section below since they are intended for use with the examples web application. --> <!-- NOTE: The sample user and role entries below are intended for use with the examples web application. They are wrapped in a comment and thus are ignored when reading this file. If you wish to configure these users for use with the examples web application, do not forget to remove the <!.. ..> that surrounds them. You will also need to set the passwords to something appropriate. --> <!-- <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager-gui"/> <user username="admin" password="admin" roles="manager-gui"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="<must-be-changed>" roles="tomcat,role1"/> <user username="role1" password="<must-be-changed>" roles="role1"/> --> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="adm" roles="manager-gui"/> <user username="admin" password="adm" roles="manager-script"/> <user username="admin" password="adm" roles="manager-jmx"/> <user username="admin" password="adm" roles="manager-status"/> </tomcat-users>
Apparemment il manque quelque chose
merci pour votre aide
Partager