Migrate Weblogic 9.2 to Weblogic 11g : Spring Application
Here I would like to list the problems I met during Spring application migartion from Weblogic server 9.2 to Weblogic Server 11g.Hibernate cannot be loaded properly
11:53:29,008 ERROR Error in named query:DDFTree.findDeviceModelByDDFTree
org.hibernate.QueryException: ClassNotFoundException:org.hibernate.hql.ast.HqlToken [
SELECT model FROMcom.wgu.domain.ModelImpl model
join model.ddfTreestree
WHERE tree = ?
]
Solutionè Set <prefer-application-packages/> inweblogic-application.xml to configure. See Weblogic Class loading.
JSP page cannot be accessed
<4 janv. 2012 12 h 07 CET> <Error> <HTTP><BEA-101017> <] Root cause of ServletException.
java.lang.NoClassDefFoundError:javelin/jsp/JspFunctionMapper
atjsp_servlet.__login.<clinit>(__login.java:106)
atsun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
atjava.lang.reflect.Constructor.newInstance(Constructor.java:513)
Truncated. see log file for completestacktrace
Caused By: java.lang.ClassNotFoundException:javelin.jsp.JspFunctionMapper
atweblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
atweblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
atweblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
atjava.lang.ClassLoader.loadClass(ClassLoader.java:307)
atjava.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see logfile for complete stacktrace
>
Solutionè Problem comes because the old domain is created for WLS 9.2. Cleanand re-launch domain creation.
Classes cannot be accessed/resolved because of not including in weblogic.jar in 11g
This is mainly happened in development ENV because some referenced libraries are not in class path. For example:
[*]weblogic.descriptor.SettableBean
[*]weblogic.descriptor.DescriptorBean
Refer to:
https://forums.oracle.com/forums/thread.jspa?threadID=728024
https://forums.oracle.com/forums/thread.jspa?threadID=1056468
Solutionè Add Jars:
[*]/modules/com.bea.core.descriptor_1.9.0.0.jar
[*]/modules/com.bea.core.datasource6_1.9.0.0.jar
[*]/modules/com.bea.core.utils_1.9.0.0.ja
MBean Server ObjectName
To be updated later.
Service Migration
http://docs.oracle.com/cd/E15051_01/wls/docs103/cluster/service_migration.html
页:
[1]