PDA

View Full Version : UnsupportedClassVersionError - can someone help ?



richard Che So
Apr 26th, 2006, 10:43 AM
[27/04/06 10:58:00:406 EDT] 3e50e853 ContextLoader E org.springframework.web.context.ContextLoader Context initialization failed
[27/04/06 10:58:00:406 EDT] 3e50e853 ContextLoader E org.springframework.web.context.ContextLoader TRAS0014I: The following exception was logged org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '/dealerinfoForm' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'DealerAccessFacade' while setting bean property 'dealerAccessService'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'DealerAccessFacade' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: LinkageError while defining class: com.honda.session.DealerAccessFacade$__attributeRe pository
Could not be defined due to: com/honda/session/DealerAccessFacade$__attributeRepository (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] --- end Original exception----

Notes: running in wsad using websphere app server 5.1 test environment with jdk 1.4 runtime and with programs compiled with jdk 1.4

Anyone know how to fix this problem ? - I know it's a mismatch of java versions but I thought you could use any JDK1.3 and above runtime to run Spring ?

Thanks
Richard

richard Che So
Apr 27th, 2006, 07:17 AM
By the way.. I should add that Tomcat has no problems running this app using jdk 1.4

Richard

Injecteer
Apr 27th, 2006, 07:59 AM
I'd say, that the mismatch occured rather due to your compiled classes, who's dependecies are out of sync, than the java-ver problem.

Check, that all your classes, jars etc. are compiled altogether. Try also to test them in another anvironment.

richard Che So
Apr 27th, 2006, 08:37 AM
wsad runs this application fine when the hooked up to tomcat 4.1.3.1, using the same compiled classes, so it seems to be a websphere run time mismatch with the classes used in Spring ?.. Just a guess since I had a similar issue when I compiled and ran appfuse 1.9.1 under wsad .. the problem was with the jython.jar file in the wsad runtime libary which had an obsolete jakarta oro module..I downloaded the latest release of jython.jar and replaced it in the wsad runtime library (..\runtimes\base_v51\lib) and everything was fine.

Maybe someone could take a look at the runtime jar list for websphere5.1 and let me know the possible/probable culprits for this error ?

JarList:
------
42,167 activity.jar
125,178 activityImpl.jar
13,622 activitySession.jar
54,146 activitySvrImpl.jar
150,555 admin.jar
25,852 adminJms.jar
15,366 als.jar
52,655 amwas_nls.jar
41,233 analysisEngine.jar
736,810 ant.jar
88,604 appprofile-impl.jar
21,444 appprofile.jar
5,904 b2bjaxp.jar
307,319 b2bxml.jar
116,102 b2bxmlSamples.jar
257,907 base.jar
19,932 bootstrap.jar
176,503 bsf.jar
67,138 ccf.jar
11,347 ccf2.jar
62,359 classloader.jar
628,497 client.jar
2,965 cloudUtil.jar
22,170 cm.jar
206,578 cmImpl.jar
48,917 cmInt.jar
440,349 cmpopt.jar
267,249 collector.jar
42,882 com.ibm.mq.pcf.jar
28,017 commands.jar
106,479 common.jar
7,238 common.resources.jar
344,577 commonArchive.jar
71,442 commons-discovery.jar
22,327 commons-logging-api.jar
192,951 databeans.jar
475 db2Interfaces.jar
2,079,769 db2j.jar
11,579 DDParser5.jar
14,329 debug.jar
106,583 deployutils.jar
23,412 distexcep.jar
1,883,719 disthub.jar
104,054 drs.jar
439,953 dynacache.jar
233,082 eablib.jar
261,876 ecore.jar
38,408 ecore.utilities.jar
72,847 ecore.xmi.jar
110,261 ecutils.jar
43,806 EJBCommandTarget.jar
34,659 ejbcontainer.jar
74,256 ejbportable.jar
4,907 exthelper.jar
23,972 exthelperimpl.jar
61,718 ffdc.jar
31,971 filetransfer.jar
3,196 hplwps.jar
125,716 hplwpsI.jar
36,394 htmlshell.jar
88,208 httpsession.jar
59,231 httpsessiondb.jar
24,220 httpsessionmtm.jar
1,393,009 idl.jar
1,012,592 ivbjfaceall.jar
14,127 ivjbase.jar
35,523 ivjejb35.jar
22,564 ivt.jar
253,374 iwsorb.jar
2,607 j2c.jar
182,439 j2cImpl.jar
18,419 j2cIntf.jar
557,299 j2ee-validation.jar
288,752 j2ee.jar
16,213 jaaslogin.jar
540,711 jacl.jar
0 jarList.txt
106,416 jdom.jar
15,689 jflt.jar
5,215 jmsserver.jar
193,317 jmsserverI.jar
166,587 jmxc.jar
119,026 jmxext.jar
270,324 jmxx.jar
52,915 jrom.jar
383,415 js.jar
261,451 jtaPrivate.jar
75,743 jtsPrivate.jar
4,547,548 jython.jar
541,714 jython.jar.original
4,547,548 jython_Release_2_2alpha1.jar
4,186 l0b2bxml.jar
3,688 lmproxy.jar
256,769 logutil.jar
49,958 ltext.jar
72,613 marshall.jar
25,647 messaging.jar
2,403 messagingClient.jar
417,520 messagingImpl.jar
51,559 migrate.jar
819,080 mofj2ee.jar
196,967 mofjava.jar
10,425 mq.jar
124,272 mqjd.jar
129,816 naming.jar
304,757 namingclient.jar
180,065 namingserver.jar
4,212 nls.jar
1,531,990 nlsres.jar
21,776 notifications.jar
673,013 optional.jar
12,160 pagelist.jar
74,984 PDWASAuthzManager.jar
436,974 perftuning.jar
111,875 physicalrep.jar
81,399 pluginconfig.jar
104,044 pluginprocessor.jar
4,695 pm.jar
260,681 pmi.jar
394,867 pmiclient.jar
255,805 pmimpl.jar
67,548 pmirm.jar
43,969 portupdate.jar
14,936 processintf.jar
29,909 processmgmt.jar
1,915 qname.jar
10,489 querymd.jar
287,361 ras.jar
166,507 rbpf.jar
229,900 recjava.jar
26,632 reclog.jar
70,526 reclogImpl.jar
469,866 rsadapter.rar
161,754 rsadaptercci.jar
279,832 rsadapterspi.jar
66,124 rsaexternal.jar
1,015,431 runtime.jar
91,553 runtimefw.jar
75,853 runtimeimpl.jar
870,044 sas.jar
55,862 sdrt.jar
56,146 security.jar
501,489 securityimpl.jar
5,964 servletevent.jar
627,773 sljc.jar
81,931 soap-sec.jar
194,118 soap.jar
62,913 spy-sl.jar
63,190 spy.jar
90,583 sqlserver.jar
177,086 tcljava.jar
28,170 threadpool.jar
26,740 tx.jar
2,212 txCallbacks.jar
12,944 txClient.jar
36,835 txClientPrivate.jar
97,467 txMsgs.jar
2,534 txRecoveryUtils.jar
65,483 uddi4j-wsdl.jar
111,133 uddi4j.jar
147,910 uddi4jv2.jar
2,532 urlprotocols.jar
80,287 util.jar
262,729 utils.jar
8,598 validation-framework.jar
75,079 validationmgr.jar
67,992 vaprt.jar
281,211 was-wssecurity.jar
1,124,400 wasjmx.jar
247,746 wasproduct.jar
842,576 wasupgrade.jar
572,222 wasx.jar
1,200,582 webcontainer.jar
6,271 WebSealTAIwas5.jar
196,819 webservices-security.jar
1,964,909 webservices.jar
750,925 websphere-validation.jar
8,058 webtlsrn.jar
33,941 wftutils.jar
627,443 wjmxapp.jar
166,969 wlmclient.jar
78,608 wlmserver.jar
19,979 workspace-query.jar
125,123 workspace.jar
272,250 ws-base-resources.jar
4,253 ws-commons-logging.jar
124,570 ws-config-appdeploy.jar
800,738 ws-config-common.jar
259,554 ws-config-servers.jar
539,000 ws-j2eex.jar
86,335 ws-webservice-validation.jar
597,330 ws-webservice.jar
74,690 wsanttasks.jar
225,042 wsatlib.jar
55,657 wsdeployenv.jar
46,719 wsdeploytool.jar
114,356 wsdl4j.jar
63,649 wses_dynaedge.jar
6,151 wsexception.jar
411,611 wsif-compatb.jar
29,301 wsif-j2c.jar
545,711 wsif.jar
313,819 wssec.jar
140,388 wssoap.jar
204,023 xss4j-dsig.jar
136,096 xss4j-enc.jar

Thanks
Richard

Injecteer
Apr 27th, 2006, 08:50 AM
4,547,548 jython.jar
......
4,547,548 jython_Release_2_2alpha1.jar

theese 2 look absoulutely suspicious to me :)
I'd leave only one of them in a classpath.

also, try removing all jars, which are not used, it might help you as well.

richard Che So
Apr 27th, 2006, 10:07 AM
Sorry, the jython.jar duplicate was my doing .. to fix the appfuse 1.9.1 problem, I downloaded the latest version (2_2 alpha1) and copied it to jython.jar replacing the existing one.... but all of this was done after the unsupported major/minor class version problem happened (I'm working on two projects at the same time)... so I don't think the problem is related to the jython.jar files .. unless spring uses something in them while wiring beans together ?

Thanks
Richard