IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JSF Java Discussion :

problème déploiement JSF sur serveur


Sujet :

JSF Java

  1. #1
    Membre à l'essai
    Inscrit en
    Juillet 2007
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 25
    Points : 23
    Points
    23
    Par défaut problème déploiement JSF sur serveur
    Bonjour,
    Je ne sais pas où ça doit être ce sujet, mais vu que c'est une application JSF, je le poste ici.

    J'ai développé une application JSF en utilisant mysql comme sgbd, apache Tomcat 6.
    je veux déployer (je ne sais pas si c'est le mot exact) mon travail sur un serveur de telle sorte qu'elle soit consultable sur le réseau local.
    le problème c'est que quand j'accède depuis une machine client au serveur (où j'ai stocké les fichiers jsf) il m'affiche le code source au lieu de l'exécuter.
    comme le montre l'image :


    sachant que sur le serveur j'ai installé Apache HTTP server 2.2 ainsi que mysql bien entendu.

    pouvez vous m'aider SVP.

  2. #2
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Visiblement c apache qui te repond, et non tomcat, à voir par le port. peux tu regarder dans ton server.xml de tomcat et voir sous quel port http est il censé repondre aux requetes de ton appli?
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  3. #3
    Membre à l'essai
    Inscrit en
    Juillet 2007
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 25
    Points : 23
    Points
    23
    Par défaut
    voici le contenu du fichier server.xml
    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
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
     
      <?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.
     
     
      --> 
    - <!-- 
     Note:  A "Server" is not itself a "Container", so you may not
         define subcomponents such as "Valves" at this level.
         Documentation at /docs/config/server.html
     
     
      --> 
    - <Server port="8005" shutdown="SHUTDOWN">
    - <!-- APR library loader. Documentation at /docs/apr.html 
      --> 
      <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 
    - <!-- Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html 
      --> 
      <Listener className="org.apache.catalina.core.JasperListener" /> 
    - <!--  JMX Support for the Tomcat server. Documentation at /docs/non-existent.html 
      --> 
      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> 
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> 
    - <!-- 
     Global JNDI resources
           Documentation at /docs/jndi-resources-howto.html
     
     
      --> 
    - <GlobalNamingResources>
    - <!-- 
     Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
     
     
      --> 
      <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> 
      </GlobalNamingResources>
    - <!-- 
     A "Service" is a collection of one or more "Connectors" that share
           a single "Container" Note:  A "Service" is not itself a "Container", 
           so you may not define subcomponents such as "Valves" at this level.
           Documentation at /docs/config/service.html
     
     
      --> 
    - <Service name="Catalina">
    - <!-- The connectors can use a shared executor, you can define one or more named thread pools
      --> 
    - <!-- 
        <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
            maxThreads="150" minSpareThreads="4"/>
     
     
      --> 
    - <!-- 
     A "Connector" represents an endpoint by which requests are received
             and responses are returned. Documentation at :
             Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
             Java AJP  Connector: /docs/config/ajp.html
             APR (HTTP/AJP) Connector: /docs/apr.html
             Define a non-SSL HTTP/1.1 Connector on port 8080
     
     
      --> 
      <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> 
    - <!--  A "Connector" using the shared thread pool
      --> 
    - <!-- 
        <Connector executor="tomcatThreadPool"
                   port="8080" protocol="HTTP/1.1" 
                   connectionTimeout="20000" 
                   redirectPort="8443" />
     
     
      --> 
    - <!-- 
     Define a SSL HTTP/1.1 Connector on port 8443
             This connector uses the JSSE configuration, when using APR, the 
             connector should be using the OpenSSL style configuration
             described in the APR documentation 
     
      --> 
    - <!-- 
        <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
                   maxThreads="150" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS" />
     
     
      --> 
    - <!--  Define an AJP 1.3 Connector on port 8009 
      --> 
      <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> 
    - <!-- 
     An Engine represents the entry point (within Catalina) that processes
             every request.  The Engine implementation for Tomcat stand alone
             analyzes the HTTP headers included with the request, and passes them
             on to the appropriate Host (virtual host).
             Documentation at /docs/config/engine.html 
     
      --> 
    - <!-- 
     You should set jvmRoute to support load-balancing via AJP ie :
        <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">         
     
     
      --> 
    - <Engine name="Catalina" defaultHost="localhost">
    - <!-- 
    For clustering, please take a look at documentation at:
              /docs/cluster-howto.html  (simple how to)
              /docs/config/cluster.html (reference documentation) 
     
      --> 
    - <!-- 
          <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
     
     
      --> 
    - <!-- 
     The request dumper valve dumps useful debugging information about
               the request and response data received and sent by Tomcat.
               Documentation at: /docs/config/valve.html 
     
      --> 
    - <!-- 
          <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
     
     
      --> 
    - <!-- 
     This Realm uses the UserDatabase configured in the global JNDI
               resources under the key "UserDatabase".  Any edits
               that are performed against this UserDatabase are immediately
               available for use by the Realm.  
     
      --> 
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> 
    - <!-- 
     Define the default virtual host
               Note: XML Schema validation will not work with Xerces 2.2.
     
     
      --> 
    - <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
    - <!-- 
     SingleSignOn valve, share authentication between web applications
                 Documentation at: /docs/config/valve.html 
     
      --> 
    - <!-- 
            <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
     
     
      --> 
    - <!-- 
     Access log processes all example.
                 Documentation at: /docs/config/valve.html 
     
      --> 
    - <!-- 
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
                   prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
     
     
      --> 
      </Host>
      </Engine>
      </Service>
      </Server>
    je rajoute que l'OS du serveur est windows 2000 server.

  4. #4
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Ton tomcat répond en http sur le port 8080, essaie donc ca :
    http://ip:8080/ton_appli/.
    Mais je ne capte pas un truc, comment testais tu ton appli en mode dev?
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  5. #5
    Membre à l'essai
    Inscrit en
    Juillet 2007
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 25
    Points : 23
    Points
    23
    Par défaut
    non ça ne fonctionne pas
    "Firefox ne peut établir de connexion avec le serveur à l'adresse 172.16.226.15:8080."

    Pour ta question, je testais sur mon pc qui est connecté au réseau local, mais pour le déploiement, j'ai copié sur le serveur (donc ce n'est pas sur la même machine).

  6. #6
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Ton tomcat tourne je suppose bien? j'ai l'impression que non, car ce n'est pas lui qui t'a repondu là.
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  7. #7
    Membre à l'essai
    Inscrit en
    Juillet 2007
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 25
    Points : 23
    Points
    23
    Par défaut
    effectivement le service tomcat ne démarre pas, et il est impossible de le démarrer (j'ai réinstallé tomcat mais en vain).
    toujours le meme message :
    Windows could not start the apache tomcat 6 on Local computer. for more information, review the system event log. if this is a non-microsoft service, contact the service vendor, and refer to service-specific error code 0.
    Le journal d'erreur contient:
    Event Type: Error
    Event Source: Service Control Manager
    Event Category: None
    Event ID: 7024
    Date: 2/19/2010
    Time: 11:01:08 AM
    User: N/A
    Computer: CRS01
    Description:
    The Apache Tomcat 6 service terminated with service-specific error 0.

Discussions similaires

  1. problème déploiement JSF
    Par damdams75 dans le forum Wildfly/JBoss
    Réponses: 0
    Dernier message: 11/08/2008, 19h52
  2. Problème d'historique sur serveur d'impression windows 2003
    Par glmrenard dans le forum Windows Serveur
    Réponses: 0
    Dernier message: 29/07/2008, 11h21
  3. problème requête SQL sur serveur Education Nationale
    Par barnabe87 dans le forum Requêtes
    Réponses: 3
    Dernier message: 02/09/2007, 15h56
  4. Réponses: 2
    Dernier message: 25/01/2007, 16h49
  5. [Déploiement] local sur serveur -> local sur ma machine
    Par annalady dans le forum MS SQL Server
    Réponses: 2
    Dernier message: 01/09/2006, 13h22

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo