Java 由于部署到 IntegratedWebLogicServer 时出错,JDeveloper 无法运行应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24724758/
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
JDeveloper Cannot run application due to error deploying to IntegratedWebLogicServer
提问by user3246402
I have a simple Fusion Web Application program that I could run my simple application on the weblogic server before, but now when I try to run the JSF page I get these errors:
我有一个简单的 Fusion Web 应用程序,我之前可以在 weblogic 服务器上运行我的简单应用程序,但是现在当我尝试运行 JSF 页面时,出现以下错误:
Deployment cancelled.
---- Deployment incomplete ----.
Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application MyFirstApplication due to error deploying to IntegratedWebLogicServer.
How can I fix this problem?
我该如何解决这个问题?
采纳答案by GingerHead
the steps of running an application on weblogic server (or any other java server) consists of the following 4 steps:
在 weblogic 服务器(或任何其他 java 服务器)上运行应用程序的步骤包括以下 4 个步骤:
- Compilation and building
- Starting the server
- Deploying the fusion web application
- Running the application
- 编译和构建
- 启动服务器
- 部署融合 Web 应用程序
- 运行应用程序
Errors could happen in any of the steps, and would cause obstacles to move to the next steps. Your problem seems to be in the deployment phase, so the next step which is the running of the application is stopped from being executed.
在任何步骤中都可能发生错误,并会导致进入下一步的障碍。您的问题似乎出在部署阶段,因此停止执行应用程序运行的下一步。
It is worth to mention that your savior is the logs. So you need to look into the deployment logs where it would clearly show the fault and the exception from not being deployed.
值得一提的是,你的救星是原木。因此,您需要查看部署日志,它会清楚地显示未部署的故障和异常。
回答by Valdez V.
I'm on JDeveloper 11g Release 2.
我正在使用 JDeveloper 11g 第 2 版。
The following worked for me:
以下对我有用:
- At the application menu bar - click on Runoption.
- Click on Start Server Instance- IntegratedWebLogicServer (in my case)
- Wait for Server to fully start.
- Locate Projectsbox/section/tree structure, locate your project name. Right Click.
- Select Deploy, (create a deployment profile if required), to open the deployment wizard.
- In the deployment wizard, select Deploy to Application Server, click Next.
- In my case, I saw the IntegratedWebLogicServer instance in the following list, I selected it, and continue/finish with the deployment.
- 在应用程序菜单栏中 - 单击运行选项。
- 单击启动服务器实例- IntegratedWebLogicServer(在我的情况下)
- 等待服务器完全启动。
- 找到项目框/部分/树结构,找到您的项目名称。右键点击。
- 选择Deploy,(如果需要,创建一个部署配置文件),打开部署向导。
- 在部署向导中,选择Deploy to Application Server,单击 Next。
- 就我而言,我在以下列表中看到了 IntegratedWebLogicServer 实例,我选择了它,然后继续/完成部署。
I strongly believe this is related to permissions.
我坚信这与权限有关。
I was able to run and deploy my applications to the default Web Logic server until I had more restrictions in my Windows machine - for example I was no longer a local administrator.
我能够运行我的应用程序并将其部署到默认的 Web Logic 服务器,直到我的 Windows 机器有更多限制——例如,我不再是本地管理员。
Hope this helps.
希望这可以帮助。
回答by khushbu thakur
The following worked for me:
以下对我有用:
- Close Jdeveloper application.
- Delete systemXX.x.x.x.x directory.
- Restart Jdeveloper and integrated weblogic server.
- 关闭 Jdeveloper 应用程序。
- 删除 systemXX.xxxx 目录。
- 重新启动 Jdeveloper 和集成的 weblogic 服务器。
I also faced the same issue but after deleting system directory, my server started successfully.
我也遇到了同样的问题,但删除系统目录后,我的服务器成功启动。