hoss
-
Modifié par hoss le 27/04/2014 à 15:14
KX
Messages postés16753Date d'inscriptionsamedi 31 mai 2008StatutModérateurDernière intervention25 novembre 2024
-
28 avril 2014 à 18:05
je suis entrain de fair une application JEE
et chaque foit que j essaye de démarrer tomcat et il m affiche l erreur suivant :
"java.lang.UnsatisfiedLinkError: C:\apache-tomcat-7.0.53\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1913)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1839)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1064)
at org.apache.tomcat.jni.Library.<init>(Library.java:40)
at org.apache.tomcat.jni.Library.initialize(Library.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:178)
at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:83)
at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)
at org.apache.catalina.connector.Connector.<init>(Connector.java:66)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1288)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:615)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
27 avr. 2014 13:13:06 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.7.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre1.7.0/bin/client;C:/Program Files (x86)/Java/jre1.7.0/bin;C:/Program Files (x86)/Java/jre1.7.0/lib/i386;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Java\jdk1.7.0\bin;C:\apache-maven-2.2.1\apache-maven-2.2.1\bin;C:\apache-tomcat-7.0.53\bin;G:\eclipse-jee-indigo-SR2-win32\eclipse;
27 avr. 2014 13:13:06 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8180"]
27 avr. 2014 13:13:06 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8109"]
27 avr. 2014 13:13:06 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 624 ms
27 avr. 2014 13:13:06 org.apache.catalina.core.StandardService startInternal
INFO: Démarrage du service Catalina
27 avr. 2014 13:13:06 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.53
27 avr. 2014 13:13:06 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8180"]
27 avr. 2014 13:13:06 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8109"]
27 avr. 2014 13:13:06 org.apache.catalina.startup.Catalina start
INFO: Server startup in 465 ms
"
KX
Messages postés16753Date d'inscriptionsamedi 31 mai 2008StatutModérateurDernière intervention25 novembre 20243 019 27 avril 2014 à 15:12
Bonjour,
D'après le message d'erreur tu essaies d'exécuter une version 64 bits sur une plateforme 32 bits. Procures toi une version 32 bits pour que cela fonctionne...
j' ai la version 64bit d eclipse juno mais lorsque j essaye de le lancer il m affiche:
Failed to load the JNI shared library "C:\Program Files (86)\Java\jdk1.7.0\bin\..\jre\bin\client\jvm.dll"
KX
Messages postés16753Date d'inscriptionsamedi 31 mai 2008StatutModérateurDernière intervention25 novembre 20243 019 27 avril 2014 à 15:40
Si tu es dans Program Files (86), c'est que c'est une JVM 32 bits, pas 64 bits !
Avoir la version 64 bits d'Eclipse ne suffit, c'est la plateforme Java qui pose problème...
KX
Messages postés16753Date d'inscriptionsamedi 31 mai 2008StatutModérateurDernière intervention25 novembre 20243 019 27 avril 2014 à 15:51
Tu peux soit installer une version 64 bits et configurer ton JAVA_HOME pour pointer dessus.
Soit tu conserves ton Java 32 bits mais tu dois alors utiliser un Tomcat 32 bits...
Merci beaucoup je te fatigue avec mes questions bêtes
maintenant j'ai désinstallé la version 32bit de java et j'ai installé une autre version 64bit mais j'ai un autre problème il m'affiche:
"
Compilation failure
G:\Projet\ProjetMven\src\main\java\com\service\IGenericService.java:[10,2] error: annotations are not supported in -source 1.3
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\service\IGenericService.java:21: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o);
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\dao\GenericDao.java:22: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o) {
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\dao\IGenericDao.java:14: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o);
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\bean\MainController.java:8: error: annotations are not supported in -source 1.3
@ManagedBean
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\service\GenericService.java:19: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o) {
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\service\IndexService.java:24: error: annotations are not supported in -source 1.3
@Transactional(readOnly=true)
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\model\User.java:11: error: annotations are not supported in -source 1.3
@Entity
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\bean\UserBean.java:25: error: annotations are not supported in -source 1.3
@ManagedBean(name="userBean")
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\bean\UserBean.java:33: error: generics are not supported in -source 1.3
private List<User> users=new ArrayList<User>();
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\bean\UserBean.java:75: error: enhanced for loops are not supported in -source 1.3
for(Object o : objects){
^
"
Modifié par hoss le 27/04/2014 à 15:36
Failed to load the JNI shared library "C:\Program Files (86)\Java\jdk1.7.0\bin\..\jre\bin\client\jvm.dll"
27 avril 2014 à 15:40
Avoir la version 64 bits d'Eclipse ne suffit, c'est la plateforme Java qui pose problème...
27 avril 2014 à 15:46
27 avril 2014 à 15:51
Soit tu conserves ton Java 32 bits mais tu dois alors utiliser un Tomcat 32 bits...
27 avril 2014 à 16:05
maintenant j'ai désinstallé la version 32bit de java et j'ai installé une autre version 64bit mais j'ai un autre problème il m'affiche:
"
Compilation failure
G:\Projet\ProjetMven\src\main\java\com\service\IGenericService.java:[10,2] error: annotations are not supported in -source 1.3
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\service\IGenericService.java:21: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o);
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\dao\GenericDao.java:22: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o) {
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\dao\IGenericDao.java:14: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o);
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\bean\MainController.java:8: error: annotations are not supported in -source 1.3
@ManagedBean
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\service\GenericService.java:19: error: generics are not supported in -source 1.3
public List<Object> getAllObject(Object o) {
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\service\IndexService.java:24: error: annotations are not supported in -source 1.3
@Transactional(readOnly=true)
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\model\User.java:11: error: annotations are not supported in -source 1.3
@Entity
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\bean\UserBean.java:25: error: annotations are not supported in -source 1.3
@ManagedBean(name="userBean")
^
could not parse error message: (use -source 5 or higher to enable annotations)
G:\Projet\ProjetMven\src\main\java\com\bean\UserBean.java:33: error: generics are not supported in -source 1.3
private List<User> users=new ArrayList<User>();
^
could not parse error message: (use -source 5 or higher to enable generics)
G:\Projet\ProjetMven\src\main\java\com\bean\UserBean.java:75: error: enhanced for loops are not supported in -source 1.3
for(Object o : objects){
^
"