Bonjour,

J'essaye de déployer Sonar sur un server Tomcat 5.5. 2 jours que je bataille avec et rien à faire : erreur 404 La ressource demandée (/sonar/) n'est pas disponible.

J'avoue que je ne connais pas très bien Tomcat, venant plutôt du monde .NET alors si il y a des spécialistes ici je serai heureux de profiter de votre savoir

Voici le web.xml de sonar, je suppose que le problème vient de là. Manque t'il quelque chose ?

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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">

  <context-param>
    <param-name>jruby.standalone</param-name>
    <param-value>true</param-value>
  </context-param>

  <context-param>
    <param-name>rails.env</param-name>
    <param-value>production</param-value>
  </context-param>

  <context-param>
    <description>Maximum number of jruby runtimes in the pool,
      created runtimes will never be discarded even when not used since a long time
    </description>
    <param-name>jruby.pool.maxActive</param-name>
    <param-value>5</param-value>
  </context-param>

  <context-param>
    <description>Minimum number of jruby runtimes in the pool</description>
    <param-name>jruby.pool.minIdle</param-name>
    <param-value>2</param-value>
  </context-param>

  <env-entry>
    <description>JNDI logback logging context</description>
    <env-entry-name>logback/context-name</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>Sonar</env-entry-value>
  </env-entry>

  <filter>
    <filter-name>CompressingFilter</filter-name>
    <filter-class>com.planetj.servlet.filter.compression.CompressingFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>CompressingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>


  <servlet>
    <servlet-name>rails</servlet-name>
    <servlet-class>org.jruby.webapp.RailsServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>files</servlet-name>
    <servlet-class>org.jruby.webapp.FileServlet</servlet-class>
  </servlet>

  <!-- Handle static files with the file servlet -->

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/404.html</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/500.html</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/favicon.ico</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/images/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/javascripts/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/robots.txt</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/stylesheets/*</url-pattern>
  </servlet-mapping>

  <!-- maven local repository files serving -->
  <servlet-mapping>
    <servlet-name>files</servlet-name>
    <url-pattern>/maven/*</url-pattern>
  </servlet-mapping>

  <!-- Allow Rails to handle everything else -->
  <servlet-mapping>
    <servlet-name>rails</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>

  <listener>
    <listener-class>org.sonar.web.listeners.ApplicationListener</listener-class>
  </listener>
  <listener>
    <listener-class>ch.qos.logback.classic.selector.servlet.ContextDetachingSCL</listener-class>
  </listener>
  <listener>
    <listener-class>org.jruby.webapp.RailsContextListener</listener-class>
  </listener>

  <!-- resource-ref>
     <description>Sonar datasource</description>
     <res-ref-name>jdbc/sonar</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
   </resource-ref-->

  <session-config>
    <session-timeout>30</session-timeout>
  </session-config>

  <!-- uncomment and setup a realm named "sonar realm" in the JEE
        container config to secure the web interface -->
  <!--security-constraint>
     <display-name>Restricted access</display-name>
     <web-resource-collection>
       <web-resource-name>Sonar web pages</web-resource-name>
       <url-pattern>/*</url-pattern>
       <http-method>get</http-method>
       <http-method>post</http-method>
     </web-resource-collection>
     <auth-constraint>
       <role-name>sonar</role-name>
     </auth-constraint>
   </security-constraint>

   <security-constraint>
     <display-name>Free access</display-name>
     <web-resource-collection>
       <web-resource-name>Sonar web services interface</web-resource-name>
       <url-pattern>/rules_config/checkstyle.xml</url-pattern>
       <url-pattern>/rules_config/pmd.xml</url-pattern>
       <url-pattern>/batch_job/measures_calculations</url-pattern>
       <http-method>get</http-method>
       <http-method>post</http-method>
     </web-resource-collection>
   </security-constraint>

   <login-config>
     <auth-method>BASIC</auth-method>
     <realm-name>sonar realm</realm-name>
   </login-config>

   <security-role>
     <role-name>sonar</role-name>
   </security-role-->
</web-app>
Je sais, c'est un peu lourd de mettre une masse de code pareil mais comme je n'ai pas la moindre idée d'où peut bien venir le soucis...