IDEA启动Weblogic项目时弹出CMD窗口提示:已使用基本服务器安全策略安装了Security Manager

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u012884074/article/details/82470516

公司的项目使用IDEA+Weblogic搭建,每次启动项目时都是提示此信息, 每次都要手动关闭CMD窗口很烦。

首先找到Weblog安装目录,然后再部署的域下面找到bin目录

找到setDomainEnv.cmd和 setDomainEnv.sh这两个版本,一般windows都是使用.cmd后缀的文件,我们打开此文件,找到

@REM Set DERBY_FLAG, if derby is available.

if exist %WL_HOME%\common\derby\lib\derby.jar (
	set DERBY_FLAG=true
)

找到这段,讲DERBY_FLAG=true改为false

 

展开阅读全文

启动weblogic时报错

12-29

错误如下:rnrn<2006-12-28 下午05时13分30秒 CST> <[ServletContext(id=20198043,name=study,context-path=/study)] action: nullrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.rnorg.hibernate.MappingException: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.rnat org.hibernate.cfg.Configuration.addInputStream(Configuration.java:408)rnat org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:631)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)rnat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)rnat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)rnat org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)rnat org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:352)rnat org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rnat org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:224)rnat org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)rnat org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)rnat javax.servlet.GenericServlet.init(GenericServlet.java:258)rnat weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)rnat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)rnat weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)rnat weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)rnat weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)rnat weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)rnat weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)rnat weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3209)rnat weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3195)rnat weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)rnat weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:688)rnat weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)rnat weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)rnat weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)rnat weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)rnat weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)rnat weblogic.Server.main(Server.java:32)rnCaused by: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.rnat org.dom4j.io.SAXReader.read(SAXReader.java:482)rnat org.hibernate.cfg.Configuration.addInputStream(Configuration.java:398)rn... 31 morern>rn 论坛

启动WEBLOGIC时出错

10-09

各位好,在启动WEBLOGIC时 报错 如下:rncom.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weblogic.wsee.jaxws.client.async.AsyncTransportProvider': Instantiation of bean failed; nested exception is com.bea.core.repackaged.springframework.beans.BeanInstantiationException: Could not instantiate bean class [weblogic.wsee.jaxws.client.async.AsyncTransportProvider]: No default constructor found; nested exception is java.lang.NoSuchMethodException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider.()rn<2012-10-9 下午03时40分35秒 CST> rnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext).rnlog4j:WARN Please initialize the log4j system properly.rn<2012-10-9 下午03时40分36秒 CST> (StubLifecycleHelper.java:48)rn at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)rn at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)rn at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)rn at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)rn at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)rn at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)rn at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)rn at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)rn at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)rn at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)rn at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)rn at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)rn at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)rn at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)rn at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)rn at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)rn at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)rn at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)rn at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)rn at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)rn at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)rn at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)rn at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)rn at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)rn at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)rn at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)rn at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)rnCaused by: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProviderrn at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:37)rn at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)rn ... 49 morernCaused by: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProviderrn at java.lang.Class.newInstance0(Class.java:357)rn at java.lang.Class.newInstance(Class.java:325)rn at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)rn at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)rn at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)rn ... 50 morernrn at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)rn at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)rn at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)rn Truncated. see log file for complete stacktracernCaused By: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProviderrn at java.lang.Class.newInstance0(Class.java:357)rn at java.lang.Class.newInstance(Class.java:325)rn at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)rn at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)rn at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)rn Truncated. see log file for complete stacktracernrn我就不明白 错误的意思是 AsyncTransportProvider 没有构造器和INIT方法 那么SPRING为什么还要去创建这个类的对象实体呢rn> 论坛

没有更多推荐了,返回首页