我正在使用weblogic 12c当我要启动服务器时我得到"无法获取文件锁定,将重试"是weblogic 10.3.5/10.3.6管理服务器日志,同时尝试启动weblogic或托管服务器
最近我开始在Weblogic服务器上工作.我在添加weblogic.xml时默认添加了运行时环境.我在互联网上搜索差异,但我仍感到困惑.任何人都可以详细说明吗?
首先,我安装了jdk 1.6.0_43和oracle weblogic 12.1.1,我成功地部署了我的应用程序.
然后我升级了我的jdk(1.7.0_60)和weblogic(12.1.2),但无法部署我的应用程序.
现在,我降级了我的weblogic(12.1.1)但保留了我的jdk 1.7.0_60,但我仍然无法成功部署我的应用程序.
在两种故障情况下,我都收到了同样的错误消息.有没有关于java 7的东西我应该注意什么?我试着寻找这个,但是徒劳无功..
[exec] javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:9991: Destination unreachable; nested exception is:
[exec] java.net.ConnectException: Connection refused: connect; No available router to destination]
Run Code Online (Sandbox Code Playgroud) 我们最近开始使用该weblogic.Deployer实用程序体验Weblogic 12c中的部署。我们可以部署EAR,但是只要在托管服务器仍在运行的情况下尝试取消部署该应用程序,它将开始使用100%的CPU(4核Xeon,裸机)。
经过一些修补和无数次线程转储之后,我们可以将问题隔离在4个卡住的线程上。他们每个人在一个核心上消耗了100%。平均负载将在5分钟内从约0.10跳到4.00。
这是似乎被卡住的线程:
"ExecuteThread: '3' for queue: 'weblogic.socket.Muxer'" daemon prio=10 tid=0x00007fb52801c800 nid=0x6bf0 runnable [0x00007fb58a0ad000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:79)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
- locked <0x00000000e18c66d0> (a sun.nio.ch.Util$2)
- locked <0x00000000e18c66c0> (a java.util.Collections$UnmodifiableSet)
- locked <0x00000000e18c6598> (a sun.nio.ch.EPollSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:102)
at weblogic.socket.NIOSocketMuxer.selectFrom(NIOSocketMuxer.java:541)
at weblogic.socket.NIOSocketMuxer.processSockets(NIOSocketMuxer.java:470)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:30)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:43)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:147)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:119)
Run Code Online (Sandbox Code Playgroud)
我似乎有很多人遇到相同的问题(不过,不是Weblogic的):
https://github.com/netty/netty/issues/327
https://issues.jboss.org/browse/XNIO-172
我认为这可能不会发生,因为旧的JDK版本。java -version说:
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server …Run Code Online (Sandbox Code Playgroud) 我使用以下值创建了JNDI连接:
我选择了Generic Data Source选项
名称:jdbc/sampleDataSource
JNDI名称:jdbc/sampleDataSource
Spring配置文件:
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/sampleDataSource" />
我低于错误.
Error An error occurred during activation of changes, please see the log for details.
Error javax.naming.NameNotFoundException: While trying to lookup 'jdbc.sampleDataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/sampleDataSource'
Error While trying to lookup 'jdbc.sampleDataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/sampleDataSource'
Run Code Online (Sandbox Code Playgroud)
我无法解决它.我如何在Spring 4中配置.任何添加jar文件都是必需的.请帮忙.
当我们停止在Weblogic 12c中的战争然后再次开始战争时,我表现出奇怪的行为。由于某些我无法理解的原因,Log4j2停止写入日志。它创建一个新的日志文件,但不写入任何条目。
我已经调试,看到Log4jServletContainerInitializer和Log4jServletContextListener被调用,就像安装战争时一样。我没有发现任何差异(不幸的是,这只是对我注意力范围的测试)。
那么,您是否对Weblogic 12c中Log4J2的安装和启动之间有什么区别以及可能在哪里查找错误有任何想法?
我正在开发一个Spring Boot应用程序,我必须让它在我们的Weblogic 12c服务器中运行,作为一场战争.
我试图找到一种方法将默认的Spring活动配置文件(此处和此处的信息)传递给应用程序,而无需在计算机本身上设置环境变量.如果可能的话,我希望能够使用Weblogic管理控制台指定此配置文件.
我尝试使用" Environment / Servers / MyServer / Server Start / Arguments"选项,但我无法以这种方式使Spring加载指定的配置文件.我试过了,没有成功:
spring.profiles.active=dev
-Dspring.profiles.active='dev'
-Dspring.profiles.active=dev
-spring.profiles.active=dev
--spring.profiles.active=dev
Run Code Online (Sandbox Code Playgroud)
有没有想过是否可以spring.profiles.active使用Weblogic 传递给Spring?我需要传递" dev"," acc"或" prod".
更新:我会接受一个答案,解释.properties为应用程序配置使用不同文件的任何简单方法,具体取决于运行Sprint Boot应用程序的环境.这些.properties文件可以捆绑在应用程序本身中,也可以是外部的.但我需要至少尽可能触摸Weblogic运行的系统......没有环境变量,理想情况下也不会改变Weblogic文件!理想情况下,解决方案将涉及使用Weblogic管理控制台完成的某种操作,例如,将表示当前环境的参数传递给Spring Boot应用程序,以便使用正确的application.[ENVIRONMENT].properties文件.
更新2:允许每个环境拥有自己的application.properties文件的一种方法是使用部署计划.这可能是推荐的方法.我将补充一点作为答案,但我仍然倾向于采用一种更简单的方法......当我在Weblogic中部署参数时,我无法简单地将参数传递给应用程序!Environment / Servers / MyServer / Server Start / Arguments如果它不能用于那个目的,那么" 选择是什么?
更新3:相关主题.如果我理解正确," Environment / Servers …
我正在尝试Spring Boot在Weblogic 12.1.3上部署Web应用程序。
从控制台部署时,出现以下错误(在应用程序上)
Message icon - Error Unable to access the selected application.
Message icon - Error String index out of range: 51968
Message icon - Error String index out of range: 51968
Message icon - Error String index out of range: 51968
Run Code Online (Sandbox Code Playgroud)
另一方面,它可以从Intellij IDEA和autodeploy文件夹成功部署。另外,在其他开发机器上,它甚至可以从控制台成功部署,但在其他机器上则不能。
服务器日志上也没有任何错误。
有什么原因的想法吗?
我正在尝试将耳文件部署到Weblogic 12.c应用程序服务器中。我能够成功部署它,但是最后一次,它获得了与数据库的连接。
之后,它一直给我这个例外,耳朵不再部署了。
尚未安装部署。weblogic.management.ManagementException:存在相同的运行任务。新任务:(部署我的软件包),运行任务:(部署我的软件包)
即使在重新启动服务器并进行干净部署之后,也会发生这种情况。
请帮忙。
谢谢gmk
我想将Weblogic库放入本地存储库(安装和配置Maven以进行构建自动化和依赖管理)我在我的工作站中安装了Weblogic版本12.1.2.
我运行这个命令:
mvn -X com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=C:\Oracle\product\11.2.0\client_x86 -Doracle-maven-sync.testingOnly=false
Run Code Online (Sandbox Code Playgroud)
但是我收到了这个错误:
[ERROR] Failed to execute goal com.oracle.maven:oracle-maven-sync:12.2.1-2-0:push (default-cli) on project standalone-pom: Synchronization execution failed:
No resources were processed by the sync plugin -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.oracle.maven:oracle-maven-sync:12.2.1-2-0:push (default-cli)
on project standalone-pom: Synchronization execution failed
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) …Run Code Online (Sandbox Code Playgroud)