Java 无法在 Oracle Jdeveloper 12c 中启动集成 WebLogic 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20229891/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can not start Integrated WebLogic server in Oracle Jdeveloper 12c
提问by avalagne
I got homework to create Oracle ADF applications according to the instructions on oracle.com, specifically there: http://docs.oracle.com/cd/E37547_01/tutorials/tut_rich_app/tut_rich_app_2.htmlBut in step 10, I can not start IntegratedWeblogic server.
我根据 oracle.com 上的说明完成了创建 Oracle ADF 应用程序的作业,特别是在那里:http: //docs.oracle.com/cd/E37547_01/tutorials/tut_rich_app/tut_rich_app_2.html但是在第 10 步中,我无法启动集成Weblogic 服务器。
Log with fails is there: http://www.sendspace.com/file/v9l7vy
有失败的日志:http: //www.sendspace.com/file/v9l7vy
My bare idea is diacritical marks and space in my Windows username 'Petr Moj?í?'. I use Microsoft account to login to Windows, which create this anomaly.
我的想法是在我的 Windows 用户名“Petr Moj?í?”中使用变音符号和空格。我使用 Microsoft 帐户登录到 Windows,这会导致此异常。
I use Windows 8.1 64bit in English version and Oracle JDeveloper 12c.
我使用英文版的 Windows 8.1 64bit 和 Oracle JDeveloper 12c。
Thank you for your advice
感谢您的意见
采纳答案by Sam
Try to set a system environment variable JDEV_USER_HOME
and point it to a path in your directory D:\JDEV_USER_HOME
. But this way the Jdeveloper related information is stored in the D:\JDEV_USER_HOME
rather than AppData
under user directory .
尝试设置系统环境变量JDEV_USER_HOME
并将其指向目录中的路径D:\JDEV_USER_HOME
。但是这样Jdeveloper的相关信息就存储在用户目录下D:\JDEV_USER_HOME
而不是AppData
用户目录下。
回答by Amr Gawish
The problem is that you have your Weblogic in directory that has both special characters and spaces C:\Users\Petr Moj?í?\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\DefaultDomain
问题是您的 Weblogic 目录中包含特殊字符和空格 C:\Users\Petr Moj?í?\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\DefaultDomain
In order to overcome this, Close your JDeveloper, create a new Environment variables JDEV_USER_HOME which points to a directory without any spaces or special characters. Open JDeveloper again and you should be good to go.
为了解决这个问题,关闭您的 JDeveloper,创建一个新的环境变量 JDEV_USER_HOME,它指向一个没有任何空格或特殊字符的目录。再次打开 JDeveloper,您应该就可以开始使用了。
回答by user3215171
Modify %HOME%\oracle_common\common\bin\commEnv.cmd file setting USER_MEM_ARGS environment variable after ":continue" tag and re-create default domain again from Application Servers view on JDeveloper.
在“:continue”标记后修改 %HOME%\oracle_common\common\bin\commEnv.cmd 文件设置 USER_MEM_ARGS 环境变量,并从 JDeveloper 上的应用服务器视图再次重新创建默认域。
SET USER_MEM_ARGS=-Xms32m -Xmx1024m -XX:MaxPermSize=512m -XX:MaxHeapSize=512m
SET USER_MEM_ARGS=-Xms32m -Xmx1024m -XX:MaxPermSize=512m -XX:MaxHeapSize=512m
回答by Hui Hong Lim
I had experienced a situation with the integrated weblogic server goes to the point when it says it is and it stops there, jdeveloper does not exit task. Making it impossible to deploy apps.
我曾经遇到过集成 weblogic 服务器的情况,当它说它是的时候它停在那里,jdeveloper 不退出任务。使部署应用程序变得不可能。
Possible solution. It seems that it might have to do with Environment settings. I changed the JAVA_HOME to point to the one in %ORACLE_HOME%\oracle_common\jdk and set the path to %JAVA_HOME%\bin and it seems to solve the issue. Previously I was on java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
可能的解决方案。似乎它可能与环境设置有关。我将 JAVA_HOME 更改为指向 %ORACLE_HOME%\oracle_common\jdk 中的那个,并将路径设置为 %JAVA_HOME%\bin ,它似乎解决了问题。以前我使用的是 Java 版本“1.8.0_144”Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM(build 25.144-b01,混合模式)
and now on java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
现在在 Java 版本“1.8.0_131”Java(TM) SE 运行时环境(构建 1.8.0_131-b11)Java HotSpot(TM) 64 位服务器 VM(构建 25.131-b11,混合模式)