Pages : 1
#1 Le 03/04/2008, à 22:50
- Flo+1
[probleme] Netbeans 6 + Tomcat
Bonjour à tous,
Je tourne sous une Ubuntu Gutsy.
Il m'est impossible de lancer le serveur Apache Tomcat 6.0.14 via l'onglet Services de Netbeans 6.0.
J'obtiens le message suivant :
Using CATALINA_BASE: /home/flo/.netbeans/6.0/apache-tomcat-6.0.14_base
Using CATALINA_HOME: /opt/netbeans/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /home/flo/.netbeans/6.0/apache-tomcat-6.0.14_base/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun
3 avr. 2008 23:30:24 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
3 avr. 2008 23:30:24 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8084
3 avr. 2008 23:30:24 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 446 ms
3 avr. 2008 23:30:24 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
3 avr. 2008 23:30:24 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at org.apache.catalina.core.ContainerBase.threadStart(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
... 6 more
Lorsque je tente de lancer Apache2 dans une console j'obtiens :
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Lorsque je tente d'ouvrir le fichier /etc/hosts, j'obtiens :
bash: fork: Ressource temporairement non disponible
Voila le contenu de mon /etc/hosts : (quand j'arrive enfin à l'ouvrir)
127.0.0.1 localhost floptiflop
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Il semblerait y avoir des problemes de mémoire, pourtant celle ci est à 44% d'utilisation pour les programmes.
Est-ce que vous avez des idées ?
Merci d'avance.
Hors ligne
#2 Le 04/04/2008, à 08:41
- nicolas.sitbon
Re : [probleme] Netbeans 6 + Tomcat
Pour apache 2, le problème est expliqué dans la documentation LAMP d'Ubuntu : http://doc.ubuntu-fr.org/lamp#installat … e_et_mysql
Pour Tomcat, comment l'as tu installé? via l'installateur de Netbeans ou tu as récupéré le binaire sur le site d'apache?
Hors ligne
#3 Le 04/04/2008, à 11:27
- Flo+1
Re : [probleme] Netbeans 6 + Tomcat
Ok pour Apache2, merci bien je n'avais pas vu cette section dans la documentation.
Probleme résolu de ce côté la.
En lançant Netbeans à l'instant j'ai obtenu
A java.lang.NoClassDefFoundError exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your /home/flo/.netbeans/6.0/var/log folder.
à la fin du chargement de l'application.
J'ai pu relancer Netbeans sans erreur cette fois après un redémarrage mais tomcat refuse toujours de se lancer.
Pour installer Netbeans et Tomcat j'ai simplement cliqué sur les liens de la page de doc netbeans de ce site.
http://doc.ubuntu-fr.org/netbeans
Ce qui correspond à l'installation des paquets netbeans6-java, netbeans6-j2ee et netbeans6-tomcat.
voilà, voilà.
Hors ligne
#4 Le 04/04/2008, à 11:38
- nicolas.sitbon
Re : [probleme] Netbeans 6 + Tomcat
je te conseillerai plutôt d'installer Netbeans +Tomcat à partir du binaire dispo sur le site de Netbeans : l'installation est aisée, 1 ligne de commande pour lancer le script d'installation et tout le reste est graphique comme sous Windows avec des questions bêtes du genre "Voulez vous installer Tomcat avec Netbeans?" bref un jeu d'enfant
http://www.netbeans.org/community/relea … stallation
Hors ligne
#5 Le 04/04/2008, à 12:06
- Flo+1
Re : [probleme] Netbeans 6 + Tomcat
j'ai désinstallé tous les paquets Netbeans, netbeans-tomcat via synaptic puis installé à partir du script du site de netbeans mais j'obtiens toujours la même erreur pour Tomcat et lors du premier lancement de netbeans j'ai été accueilli par une outOfMemoryException.
Hors ligne
#6 Le 04/04/2008, à 12:11
- nicolas.sitbon
Re : [probleme] Netbeans 6 + Tomcat
La seule fois ou j'ai eu à faire à cette exception, c'était un problème matériel, vérifie la configuration de ta JVM et à défaut vérifie ta RAM (MEMTEST86).
Hors ligne
#7 Le 18/04/2008, à 13:47
- Flo+1
Re : [probleme] Netbeans 6 + Tomcat
Coucou, désolé pour le retard de ma réponse, je n'ai pas beaucoup de temps en ce moment.
J'ai pu effectuer un memtest, aucune erreur à signaler.
Comment je peux vérifier la configuration de ma JVM ?
Merci d'avance
Hors ligne