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

Tomcat et TomEE Java Discussion :

Héberger son site chez soi


Sujet :

Tomcat et TomEE Java

  1. #1
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut Héberger son site chez soi
    Bonjour,

    Je suis ce tuto pour hébergé mes applications J2EE pour pouvoir les rendre accessible de l'extérieur.

    arrivée ici (en rouge):
    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
    Une fois installé, vous devez configurer le serveur Web. 
    
    
    Première étape : faire en sorte qu'on puisse accéder au serveur Web depuis une autre machine. Généralement, quand on installe une solution de type EasyPHP, le serveur Apache (le serveur Web) n'est accessible que depuis la machine sur laquelle il est installé. Ce n'est pas suffisant : il faut rendre le serveur accessible depuis une autre machine. Pour cela : 
    Si vous utilisez IIS : 
    Ouvrez la console d'administration d'IIS 
    Allez dans les propriétés du site (très certainement "site par défaut") 
    Dans l'onglet Site Web, choisissez "Toutes disponibles" dans la liste Adresse IP 
    Indiquez <port site Web> dans le champ Port TCP 
    Cliquez sur OK 
    Redémarrez IIS et testez qu'il fonctionne bien 
    Si vous avez installé une solution à base du serveur Apache : 
    Editez le fichier de configuration d'Apache (généralement appelé httpd.conf) 
    Dans ce fichier, localisez la ligne qui commence par "Listen ..." 
    Modifiez cette ligne pour supprimer l'éventuelle adresse IP qui s'y trouve et indiquer votre <port site Web>. Exemple : 
    Listen 127.0.0.1:80 => Listen <port site Web>
    je ne trouve pas le fichier httpd.conf dans mon répertoire conf de tomcat7.

    Je trouve ce tuto null car il n'est pas assez détaillé.

    Quelqu'un a-t-il déjà réussit à installer un serveur web J2EE chez soi ?

    help me please !

  2. #2
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

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

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Ce tutoriel te parle du server web Apache, pas de Tomcat, même si tomcat est fait par Apache (La fondation, pas le serveur... ).


    Pour faire simple :
    1 - installer ton serveur
    2 - Si tu as une box en mode routeur : rediriger les ports nécessaires (HTTP) sur ta machine.

  3. #3
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    c'est fait.
    j'ai rediriger mon port sur ma freebox grace a ce tuto :
    [ame="http://www.youtube.com/watch?v=7GRJLeyHE00"]http://www.youtube.com/watch?v=7GRJLeyHE00[/ame]

    J'ai aussi créer mon propre dns grace a dyndns: http://tomcata.dyndns.org/

    J'ai installé tomcat 7 mais quand je tape: http://tomcata.dyndns.org/ ou je tape: http://82.240.228.26/ je tombe sur mon interface de connexion de ma freebox.

    Ce que je souhaite c'est tombé sur la page tomcat ou sur mon projet web java.

    Comment faire ???????????

  4. #4
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

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

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Effectivement, d'ailleurs ce n'est pas très prudent de donner l'accès à ta console d'admin.

    Qu'as tu mis comme valeur pour ta redirection ?
    Sur quel port écoute ton tomcat pour le HTTP ?
    Quelle est l'adresse IP (locale) de ton serveur ?

    Chez moi j'ai (pour apache + glassfish)
    80 TCP 192.168.0.252 80 (HTTP Apache)
    8080 TCP 192.168.0.252 8080 (HTTP Glassfish)
    4848 TCP 192.168.0.252 4848 (HTTP Console d'admin Glassfish)


    Je ne tombe pas sur ma freebox.

    Par ailleurs Free propose un nom de domaine du style XXX.hd.free.fr, si ça peut t'éviter d'utiliser dyndns.

  5. #5
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    moi j'ai ca:
    8080 TCP 192.168.0.12 8080
    8080 UDP 192.168.0.12 8080

    tomcat ecoute sur le port 8080

    adress ip de mon serveur: 192.168.0.12 c'est une ip fixe bien sur !

    comment fait-on pour obtenir le nom de domaine free du genre XXX.hd.free.fr ?

    Pourquoi je ne tombe pas sur mon appli web ????!!!

  6. #6
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    Quand je tape: tomcata.dyndns.org cad http://82.240.228.26/ je tombe sur ma page d'accueil freebox revolution.

    Je désire tomber sur ma console d'admin tomcat ou sur mon appliweb directement comment faire ?

  7. #7
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    y'a-t-il quelques chose a faire du coté UnPP ou coté serveur dhcp?
    j'ai rajoute mon adresse ds le dhcp mais rien n'y fait !!!?

  8. #8
    Membre éclairé

    Profil pro
    Technicien
    Inscrit en
    Février 2009
    Messages
    338
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations professionnelles :
    Activité : Technicien

    Informations forums :
    Inscription : Février 2009
    Messages : 338
    Points : 791
    Points
    791
    Par défaut
    Bonjour,

    Une petite remarque vite fait : tu as redirigé le port 8080 et tu testes avec l'url http://82.240.228.26/ (le port 80 est utilisé de manière implicite).

    Est-ce qu'il ne faudrait pas tester avec http://82.240.228.26:8080/ ?

    Benoit

  9. #9
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    oui mais ca marche pas avec le 8080 à la fin

  10. #10
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

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

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    https://adsl.free.fr/admin/reverse.html

    Si tu as la V4 ou la V5 pense à rebooter ta box.

  11. #11
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    j'ai la 6 la révolution.

  12. #12
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

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

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    As-tu une configuration particulière sur ta box, genre DMZ ?
    C'est comme si tu redirigeais le port sur la freebox elle même, car je ne crois pas que la console d'admin ne soit par défaut accessible via l'extérieur.

  13. #13
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    En plus, j'ai mon pare feu de la socièté ou je bosse qui bloque dyndns.org.
    J'abandonne !

    Je vais plutôt acheter sur eatj l'hébergement j2ee

  14. #14
    Membre averti Avatar de mouss4rs
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    884
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 884
    Points : 355
    Points
    355
    Par défaut
    j'ai mit ma librairie dans le lib de tomcat et mon projet et j'ai cette erreur-ci qui apparait.


    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
    HTTP Status 500 - 
     
    --------------------------------------------------------------------------------
     
    type Exception report
     
    message 
     
    description The server encountered an internal error () that prevented it from fulfilling this request.
     
    exception 
     
    org.apache.jasper.JasperException: Unable to compile class for JSP: 
     
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. org.apache.poi.hssf.usermodel.HSSFSheet resolves to a package
     
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. org.apache.poi.hssf.usermodel.HSSFWorkbook resolves to a package
     
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. org.apache.poi.hssf.usermodel.HSSFRow resolves to a package
     
    An error occurred at line: 11 in the generated java file
    Only a type can be imported. org.apache.poi.hssf.usermodel.HSSFCell resolves to a package
     
    An error occurred at line: 12 in the generated java file
    Only a type can be imported. org.apache.poi.poifs.filesystem.POIFSFileSystem resolves to a package
     
    An error occurred at line: 87 in the jsp file: /readExcel.jsp
    POIFSFileSystem cannot be resolved to a type
    84: 
    85: 			<%
    86: 				try {
    87: 					POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(
    88: 							request.getParameter("file")));
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
     
     
    An error occurred at line: 87 in the jsp file: /readExcel.jsp
    POIFSFileSystem cannot be resolved to a type
    84: 
    85: 			<%
    86: 				try {
    87: 					POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(
    88: 							request.getParameter("file")));
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
     
     
    An error occurred at line: 89 in the jsp file: /readExcel.jsp
    HSSFWorkbook cannot be resolved to a type
    86: 				try {
    87: 					POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(
    88: 							request.getParameter("file")));
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
    91: 					HSSFRow row = null;
    92: 					HSSFCell cell = null;
     
     
    An error occurred at line: 89 in the jsp file: /readExcel.jsp
    HSSFWorkbook cannot be resolved to a type
    86: 				try {
    87: 					POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(
    88: 							request.getParameter("file")));
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
    91: 					HSSFRow row = null;
    92: 					HSSFCell cell = null;
     
     
    An error occurred at line: 90 in the jsp file: /readExcel.jsp
    HSSFSheet cannot be resolved to a type
    87: 					POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(
    88: 							request.getParameter("file")));
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
    91: 					HSSFRow row = null;
    92: 					HSSFCell cell = null;
    93: 					int numLigne = 1;
     
     
    An error occurred at line: 91 in the jsp file: /readExcel.jsp
    HSSFRow cannot be resolved to a type
    88: 							request.getParameter("file")));
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
    91: 					HSSFRow row = null;
    92: 					HSSFCell cell = null;
    93: 					int numLigne = 1;
    94: 					int n;
     
     
    An error occurred at line: 92 in the jsp file: /readExcel.jsp
    HSSFCell cannot be resolved to a type
    89: 					HSSFWorkbook wb = new HSSFWorkbook(fs);
    90: 					HSSFSheet sheet = wb.getSheetAt(0);
    91: 					HSSFRow row = null;
    92: 					HSSFCell cell = null;
    93: 					int numLigne = 1;
    94: 					int n;
    95: 					int num;
     
     
    An error occurred at line: 100 in the jsp file: /readExcel.jsp
    HSSFRow cannot be resolved to a type
    97: 					
    98: 
    99: 					for (Iterator rowIt = sheet.rowIterator(); rowIt.hasNext();) {
    100: 						row = (HSSFRow) rowIt.next();
    101: 						//nbre total de ligne
    102: 						n = row.getRowNum();
    103: 
     
     
    An error occurred at line: 182 in the jsp file: /readExcel.jsp
    HSSFCell cannot be resolved to a type
    179: 							
    180: 							for (Iterator cellIt = row.cellIterator(); cellIt
    181: 									.hasNext();) {
    182: 								cell = (HSSFCell) cellIt.next();
    183: 								//System.out.println("ligne n� "+cell.getRowIndex());//avoir le num�ro de ligne
    184: 								break;
    185: 							}
     
     
    Stacktrace:
    	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	java.lang.reflect.Method.invoke(Method.java:597)
    	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    	java.security.AccessController.doPrivileged(Native Method)
    	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
     
     
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
     
     
    --------------------------------------------------------------------------------
     
    Apache Tomcat/6.0.14
    quelqu'un saurait ce qui cloche ?

Discussions similaires

  1. Comment héberger son site chez soi ?
    Par Blink182 dans le forum Chez soi
    Réponses: 14
    Dernier message: 22/02/2012, 21h42
  2. Comment héberger son site chez soi ?
    Par sepehr_gsfc dans le forum Chez soi
    Réponses: 2
    Dernier message: 23/03/2009, 20h19
  3. héberger son site chez soi
    Par liberty74 dans le forum Apache
    Réponses: 2
    Dernier message: 08/12/2007, 00h47
  4. Comment héberger son site chez soi ?
    Par Blink182 dans le forum Hébergement
    Réponses: 10
    Dernier message: 27/01/2007, 13h11

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