Python 通过jython安装Ear文件在websphere application server启动时出现问题

Python 通过jython安装Ear文件在websphere application server启动时出现问题,python,websphere,jython,Python,Websphere,Jython,您好,我有一个下面的逻辑来将WART中的war和ear文件安装到websphere中。 在运行脚本之后,它成功地安装了war和ear,但在服务器启动期间,它只针对ear文件抛出错误。 如果我使用相同的commandlogic直接在wsadmin上执行ear文件安装,它工作正常,甚至服务器也不会出现错误,有人能分析脚本中的错误吗 错误:org.springframework.beans.factory.access.BootstrapException:无法初始化组定义。组资源名称[classpa

您好,我有一个下面的逻辑来将WART中的war和ear文件安装到websphere中。 在运行脚本之后,它成功地安装了war和ear,但在服务器启动期间,它只针对ear文件抛出错误。 如果我使用相同的commandlogic直接在wsadmin上执行ear文件安装,它工作正常,甚至服务器也不会出现错误,有人能分析脚本中的错误吗

错误:org.springframework.beans.factory.access.BootstrapException:无法初始化组定义。组资源名称[classpath*:beanRefContext.xml],工厂键[netbanksrv.context];嵌套异常为org.springframework.beans.factory.beancreatitionException:创建名为“netbanksrv.context”的bean时出错,该名称在URL[wsjar:file:/D:/IBM/WebSphere8/AppServer/Profiles/AppSrv12/installedApps/BLRVSWASBFT01Node10Cell/netbanksrv-ear.ear/lib/netbanksrv-core-5.4.3.jar!/beanRefContext.xml]:bean实例化失败;嵌套异常为org.springframework.beans.BeanInstantiationException:无法实例化bean类[pegasus.framework.spring.context.MethodCachingClassPathXmlApplicationContext]:构造函数引发异常;嵌套异常为org.springframework.beans.factory.BeanCreationException:创建URL中定义的名为“genAccountServices.WSDLResource”的bean时出错[wsjar:file:/D:/IBM/WebSphere8/AppServer/Profiles/AppSrv12/installedApps/BLRVSWASBFT01Node10Cell/netbanksrv ear.ear/lib/integration-1.3.0.jar!/META-INF/spring/AccountServices ws-springintegration.xml]:bean实例化失败;嵌套异常为org.springframework.beans.beanstantionException:无法实例化bean类[pegasus.integration.framework.HttpClientUrlResource]:构造函数引发异常;嵌套异常为java.net.MalformedURLException:无协议:null

我的逻辑是:
您的部署脚本正常。但Spring有一个不同的问题:

 Could not instantiate bean class [pegasus.integration.framework.HttpClientUrlResource]: Constructor threw exception; nested exception is java.net.MalformedURLException: no protocol: null
我认为您必须为应用程序将类加载器策略设置为PARENT_LAST


您好,谢谢您的回复。我已经编写了一个代码,上次将类加载到父级。但它仍然会给我相同的错误。如果我使用相同的管理配置命令在外部安装ear文件,我无法判断出发生了什么错误。相同的管理配置安装war文件,我没有得到ear文件的问题ove issueThis是指向Classloader最佳实践的链接:。它应该会有所帮助。
 Could not instantiate bean class [pegasus.integration.framework.HttpClientUrlResource]: Constructor threw exception; nested exception is java.net.MalformedURLException: no protocol: null