Bonjour,
j'ai un problème de compatibilité que je ne comprend pas bien.
J'ai développé tout une série de page d'un site web sous IBM Rational 7, avec des pages jsp qui font de temps en temps appel à des classes Java pour des fonctions que j'ai créé séparément. Ces classes sont mises dans le paquet "Ressources Java" de mon projet (WAR).
Sous Rational, mon serveur de test est un Websphere 6.1 et tout fonctionne parfaitement, mais au transfert de mes fichiers sur le vrai serveur (IBM WebSphere Application Server - Express, 6.0.0.1),les pages jsp qui accèdent à mes classes java ne s'affiche pas et me montrent cette erreur:
D'après ce que j'ai compris, c'est soit une erreur dûe à une classe à double avec le même nom (ce qui n'est pas le cas selon moi, puisque ça marche sous Websphere 6.1), soit un problème à cause du passage à la version antérieur (6.0).
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 Error 500: LinkageError while defining class: MesClasses.FonctionsUtil Could not be defined due to: MesClasses/FonctionsUtil (Unsupported major.minor version 49.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader [0] com.ibm.ws.bootstrap.ExtClassLoader@795c43a2 [1] sun.misc.Launcher$AppClassLoader@794683a2 [2] sun.misc.Launcher$ExtClassLoader@794283a2 ---Original exception--- java.lang.UnsupportedClassVersionError: MesClasses/FonctionsUtil (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.generator.UseBeanGenerator.endGeneration(UseBeanGenerator.java:165) at com.ibm.ws.jsp.translator.visitor.generator.GenerateVisitor.endGeneration(GenerateVisitor.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.generator.GenerateVisitor.visitJspUseBeanEnd(GenerateVisitor.java:313) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java(Inlined Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:110) at com.ibm.ws.jsp.translator.visitor.generator.GenerateJspVisitor.visit(GenerateJspVisitor.java:133) at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java(Compiled Code)) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java(Compiled Code)) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java(Compiled Code)) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java(Compiled Code)) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java(Compiled Code)) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code)) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code)) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code)) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code)) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code)) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code)) --- end Original exception----
Savez-vous comment je pourrais régler ce problème?
Merci d'avance et bonne journée.
Partager