xfire-JDK 1.5 升级到JDK1.6 引发的问题

问题描述

JDK 1.5 升级到JDK1.6 引发的问题

1、我在本地把项目的jdk1.5升级到了jdk1.6 ,通过myeclipse10.7.1

1.1)加载tomcat6 经过调试除了把commons-dbcp-1.2.2.jar 升级到commons-dbcp-1.3.jar 。 删除项目中的spring.jar 和Spring1.2.9.jar两个jar包换成spring-2.5.4.jar之外没做任何操作【tomcat就可以跑起来,并能进入系统】。

2、把tomcat 换成weblogic 11具体版本为 wls1036_win32 ,部署文件之后报错
[ERROR] 2014-06-06 18:20:25,039 [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.messageServiceFactory' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/wsdl/Definition
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1868)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.NoClassDefFoundError: javax/wsdl/Definition
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1280)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1154)
at java.beans.Introspector.getBeanInfo(Introspector.java:405)
at java.beans.Introspector.getBeanInfo(Introspector.java:164)
at org.springframework.beans.CachedIntrospectionResults.(CachedIntrospectionResults.java:220)
at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)
at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1287)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
... 50 more
Caused by: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 66 more
<User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.messageServiceFactory' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/wsdl/Definition.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.messageServiceFactory' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/wsdl/Definition
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: javax/wsdl/Definition
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1280)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace

<User defined listener com.sysnet.amis.interactive.listener.ContextListener failed: java.lang.NullPointerException.
java.lang.NullPointerException
at com.sysnet.amis.interactive.listener.ContextListener.contextDestroyed(ContextListener.java:38)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:482)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(EventsManager.java:200)
Truncated. see log file for complete stacktrace

ContextLoader contextDestroyed
<Unable to set the activation state to true for the application '_appsdir_amis6.13.0_dir'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace

2.1)在我本地的lib下面有 xfire-all-1.2.6.jar 及spring-2.5.4.jar
然后在C:OracleMiddlewareuser_projectsdomainsbase_domainbinsetDomainEnv.cmd 文件最后一行加入
set CLASSPATH=c:beaspring-1.2.9.jar;c:beaxfire-all-1.2.6.jar;c:beahibernate3.jar;c:beacommons-logging.jar;c:bealog4j-1.2.14.jar;c:beajaxen-1.1.1.jar;c:beadom4j-1.6.jar;c:beahibernate-annotations.jar;c:beahibernate-tools-3.0.jar;c:beaejb-3.0-edr2.jar;c:beacglib-nodep-2.1_3.jar;c:beac3p0-0.9.0.4.jar;c:beaehcache-1.4.1.jar;%CLASSPATH%

然后,从项目中的WEB-INF / lib下,把这些jar包复制出来,放到c:bea下,依然报这个错。

3、我删除weblogic及对应项目重新配置了一下。依然这样。

时间: 2024-10-20 04:41:37

xfire-JDK 1.5 升级到JDK1.6 引发的问题的相关文章

Linux平台JDK安装

Linux平台JDK安装 本文主要描述如何在Linux平台下安装JDK环境. 进入网页:http://www.oracle.com/technetwork/java/javase/downloads/index.html 如下图: 这里作为开发人员,我们选择JDK而不是JRE,因此用鼠标点击JDK下面的DOWNLOAD按钮,进入新的网页,如下图: 这里有不同平台的版本可供下载,对于Linux平台,有32位和64位两种,每种又分成了rpm和tar.gz两种类型文件,对于使用rpm管理包的Linux

java语言学习003_开发环境基础配置和安装(jdk,jre,eclipse&amp;amp;myeclipse)

Windows下JDK安装: 1.准备JDK安装文件,[小伙伴分享或下载(或者去Oracle官网下载)]:     所有jdk下载地址:http://www.oracle.com/technetwork/java/javase/archive-139210.html     以JDK 1.8.0_66和jdk1.6.10混合为例:  安装JDK一般注意点,就是和其他软件一样点击jdk*.exe然后,下一步下一步--(中间可修改jdk和jre安装路径): 1:推荐jdk和jre的安装全部默认安装,

求助!weblogic10.3.0升级到10.3.6后项目部署报错

问题描述 最近要把weblogic服务器从10.3.0升级到10.3.6同时升级JDK,服务器的操作系统是UNIX的,我在测试环境升级完之后,用原来的domain部署项目是没有问题的,但如果用新建的domain部署项目就会报以下错误<Feb16,20139:38:19AMGMT+08:00><Warning><HTTP><BEA-101162><Userdefinedlistenerorg.springframework.web.context.Con

之前在xp中配过jdk环境变量

问题描述 之前在xp中配过jdk环境变量升级到win7后,只装了jdk却没配环境变量eclipse却可以使用?何解?. 解决方案 解决方案二:eclipse什么版本的?jdk什么版本的现在使用eclipse一般只要你安装好了环境变量自动回配好,不用你操心,我用的eclipse3.4只要装好jdk和eclipse就直接可以用myeclipse也是一样解决方案三:我一直就没手动配过...解决方案四:印象中以前最老的版本都要自己配置,还是3.0之前的解决方案五:安装JDK的时候,会把一个java.ex

NetBeans6.5与JDK1.6.0_12搭配会出问题

我一直使用Eclipse做开发,但是最近越来越多的人开始赞扬NetBeans,我也禁不住诱 惑,下载了NetBeans6.5,安装到本本上. 开始时,没遇到问题,但是当配置服务器时,却出现了问题.我想把我自己的服务器添 加进去,但是每次一点击添加服务器,右下角就会出现一个错误的标志,点开之后,是一 大堆异常: 1 java.lang.NullPointerException 2 at org.netbeans.modules.server.ui.wizard.ServerWizardVisual

linux下jdk安装shell脚本

ubuntu/centos下安装jdk shell脚本,用root执行.支持32位系统和64位系统,github链接  #!/bin/bash # jdk install # 请将下载的jdk-xxx-linux-xxx.tar.gz包与此脚本放置到同一目录 # 授予此脚本可执行权限(chmod +x install_jdk.sh) # 在终端执行此脚本开始安装(./文件名) # 注意:不可有多个版本的jdk包! #      为了使配置的环境变量生效,安装完成后你应该重新登陆. echo "P

centos上一键安装jdk、tomcat脚本

下载jdk Oracle不允许直接从他们的服务器下载jdk,看这里[http://www.oracle.com/technetwork/java/javase/terms/license/index.html] 所以如果你尝试这样: wget "http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-x64.tar.gz" 你将得到一个许可条款的页面,幸运的是,你需要一个cookie可以绕过这个: Cookie

ubuntu安装jdk 五笔输入法

安装flash的firefox插件 http://labs.adobe.com/downloads/flashplayer10_64bit.html  下载然后进行解压缩: tar -zxvf libflashplayer-*.tar.gz  到此解压出来的是一个.so文件,仅此一个文件,然后将其移动至firefox 插件目录下即可: sudo mv libflashplayer.so /usr/lib64/mozilla/plugins/libflashplayer.so  提速FireFox

CentOS下安装JDK的三种方法

由于各Linux开发厂商的不同,因此不同开发厂商的Linux版本操作细节也不一样,今天就来说一下CentOS下JDK的安装: 方法一:手动解压JDK的压缩包,然后设置环境变量 1.在/usr/目录下创建java目录 [root@localhost ~]# mkdir/usr/java  [root@localhost ~]# cd /usr/java  2.下载jdk,然后解压 [root@localhost java]# curl -O http://download.oracle.com/o