问题标签 [weblogic12c]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
591 浏览

weblogic - WebLogic JAX-WS EE 客户端到本地主机上的 WS-Security 服务

我有一个使用 WS-Security 的 JAX-WS 端点,特别是 WebLogic 预先编写的 Wssp1.2-2007-Wss1.1-UsernameToken-Plain-X509-Basic256.xml 策略。我有一个可用的命令行客户端,我在其中构建所有客户端凭据提供程序和信任管理器。一切都很好。

现在我还需要将另一个 EE 模块单独部署到同一台服务器上。根据http://docs.oracle.com/cd/E12839_01/web.1111/e13713/message.htm#i251852我应该对 EE 客户端进行编码,就好像根本没有与安全相关的 WS-Policy 但是它不起作用。要么我在设置凭证映射方面完全失败(这不会让我感到惊讶,因为缺少文档)或者我认为似乎更有可能的是,凭证映射实际上并没有发生,因为我正在与 localhost .

如何创建一个在 localhost 上使用启用了 WS-Security 的服务的 JAX-WS EE 客户端?(我也想看一个远程主机示例)

0 投票
1 回答
1735 浏览

xml - 使用静默模式升级 weblogic 域不断显示 xml 错误

如果您尝试使用静默模式(使用命令行)升级 weblogic,您必须做几件事。

1-使用server/bin/set/setWLSEnv.sh设置环境

2-创建xml文件并将其附加到升级命令中。我们的 XML 是这样的:

3-然后导航到域位置并运行命令升级:

java weblogic.Upgrade -mode 静默类型域 [-responses weblogic-upgrade-domain-responses.xml] [-out 文件]

但我们得到像这样的错误:

或此错误:

很明显,这里的错误在 xml 文件值中

我们按照这里的 oracle 指令从以下位置获取它(config.xml)

http://docs.oracle.com/cd/E24329_01/web.1211/e24497/xml_ref.htm#CACIDHAJ

我们尝试了所有的替代方案,比如<value>10.3</value>我们删除了它,然后....但仍然无法正常工作。

我们也开了一个有oracle支持的案例一个多星期没有任何解决方案。

由于 SSL 配置,我看到某些人会发生此错误,但这不是我们这里的情况。

0 投票
1 回答
1249 浏览

deployment - 在同一 weblogic 服务器域的不同集群中部署不同的 ear 文件

嗨,我是这个论坛和 weblogic 服务器的新手。我的要求是我有一个在集群上运行的应用程序,该集群有一个管理服务器和三个托管服务器 MS1、MS2、MS3。目前我的应用程序有两个部分(或逻辑) ,两者都在一个耳朵文件中。part1总是占用一个服务器,比如MS1,其余两个MS2和MS3。我想将我的代码分成两个不同的ear part1和part2,par1_ear部署在MS1中,part2_ear部署在 MS2 和 MS3 中都在同一个管理服务器下运行

ear1 部署在 ----->MS1

ear2 部署在 ----->MS2 &MS3 都在同一个托管服务器下运行。

如果不欢迎其他建议,是否可以这样做,但我只能有一个管理服务器和 3 个集群

0 投票
1 回答
3120 浏览

weblogic12c - weblogic 12c 请在此域的配置中启用 DomainRuntimeMBean Server 和 Edit MBean Server

在我的 windows 7 64 位机器上,我完全安装了 weblogic 12c,但是当我登录到管理控制台时,它给了我这个错误:

请在此域的配置中启用 DomainRuntimeMBean Server 和 Edit MBean Server

我已经尝试卸载并进行全新安装,但无济于事。任何建议将不胜感激

0 投票
1 回答
1602 浏览

security - 在 Weblogic 中保护 Web 应用程序中的 URL 模式

我正在尝试通过管理控制台保护部署在我的 weblogic 服务器 (12c) 中的 Web 应用程序中的某些资源。以下是我为完成此任务所遵循的步骤

  1. 安全领域->我的领域(默认领域)->将安全模型默认更改为“自定义角色和策略”。保存我的更改后没有重新启动服务器,因为它提示我不需要重新启动

  2. 导航到主页 -> 配置应用程序 -> 我的应用程序 -> 安全 -> URL 模式 -> 策略,我无法添加“URLPatterns”。

它说如果我使用仅 DD 或自定义角色,我无法修改安全策略。

我哪里错了?任何帮助表示赞赏。

谢谢!

0 投票
1 回答
1835 浏览

jsp - JSTL with Weblogic 12c does not work properly

I am using Weblogic version 12c and weblogic has in built JSTL support. We just need to set the URI above our JSP. I am using core taglibs using

in my jsp. By doing this I am able to use core functionalities like <c:out>, <c:set>, <c:forEach> and all. But I can not print my values directly in my jsp. Currently I've to use <c:out> tag but I want them printed directly using $ sign. i.e. ${someObject.someProperty} - By doing so it prints as it is with dollar sign and curly braces and all, no actual values are printed.

0 投票
3 回答
2953 浏览

jsf - Can MyFaces + CDI be used on WebLogic 12c?

I've been trying to get this setup running for a couple of days now but still no luck. Here's the test application i've been using:

And in the jsf page:

Running this sample without MyFaces works fine (renders "test" like it should), but when i deploy MyFaces in the WAR file and do the necessary configuration within weblogic.xml CDI seems to stop working (or at least, the integration bewteen JSF and CDI) and nothing is displayed in the output html. MyFaces itself seems to be ok, though.

My basic configuration is as follows:

  • WebLogic Server 12c (12.1.1.0), patches should be up-to-date as i just downloaded a development version yesterday just to be sure
  • MyFaces-2.1.10, deployed within WEB-INF/libs
  • Beans.xml is in place
  • org.apache.myfaces.webapp.StartupServletContextListener has been registered in web.xml
  • WebLogic is configured to use MyFaces using weblogic.xml

Weblogic.xml contents:

What i've learned so far:

  • WL12c is equipped with Weld 1.1.3 as it's CDI implementation.
  • I read somewhere (can't remember where) that whenever you decide to switch JSF implementation you're responsible for integrating JSF/CDI yourself. Is this true (sure hope not)?

Things i've tried so far:

  • Add MyFaces CODI into the mix, hoping it would somehow glue Weld and MyFaces together, but it didn't.
  • Replace Weld by OpenWebBeans as the CDI implementation. This seemed to work at first but gave all kinds of interesting ClassCastExceptions later on in some internal sun.reflection package. This is a solution i'd rather avoid anyway.
  • Manually trigger Weld using various options in web.xml and faces-config.xml. This seems to get Weld going in that it floods the log with all kinds of error messages. To some degree these can be "fixed" by upgrading weblogic to a newer Weld version but each time i do this i bump into the next error. Again, i'd rather avoid this route also.

Is it really that hard to use MyFaces on WL12c while preserving CDI support or am i just missing the obvious ? Thanks for any help.

0 投票
2 回答
9593 浏览

java - 如何在 URL 中没有应用程序上下文的情况下使用 Weblogic (12 C)?

我正在开发一个需要 Weblogic 服务器的 Web 项目,并且在部署后(在我的 Macbook Pro 上)我可以查看该站点的唯一方法是将应用程序名称指定为整个站点的前缀。例如

这会破坏大量使用根 URL 访问资源的样式和 JavaScript 代码(例如 /images/example.png)

虽然我可以以编程方式将“/my-app”添加到 .jsp 中的内容,但我无法在我的 .css 文件中执行此操作。

我尝试在 Weblogic > 控制台 > 环境 > 服务器 > myserver > 协议 > HTTP中设置“默认 WebApp 上下文根:” - 但这不起作用。

这似乎应该是一件很简单的事情。在 IIS 中,我只需在本地主机文件中添加一行并将主机名添加到我的 IIS 容器中 - 总共花费了大约 42 秒。

提前感谢您的任何见解!


更新!!我终于把事情搞定了。其中一些对我的设置非常具体,但希望对其他人仍有帮助。

为了让它工作,我需要做 3 件主要的事情和另一件相关的事情:

  1. 在 Weblogic 中设置服务器的默认应用程序
    1. 在本地服务器上,转到控制台并登录
    2. 转到:Weblogic > 控制台 > 环境 > 服务器 > myserver > 协议 > HTTP
    3. 将“Default WebApp Context Root:”设置为“/”+您的应用程序(例如“/myapp”)
  2. 在 MyEclipse 中设置项目的上下文根目录
    1. 在 MyEclipse 中打开项目后,右键单击项目并选择属性
    2. 展开“MyEclipse”并选择“Web”并将 Web Context-root 设置为“/”
  3. 将项目weblogic.xml文件中context-root的值设置为“/”
    1. 此文件应位于项目的 WEB-INF 文件夹中
    2. 保存文件并构建应用程序
    3. 重新部署您的应用程序 - 您可能还需要重新启动服务器

将我的本地路径变量设置为“/”

所以我必须做的另一件事是设置一个我引用“/”的路径变量。当您请求路径时 (request.getContextPath(); ),它不会在路径前加上“/”,如果您尝试使用类似<c:url context="${ _path }"_path 变量不以“/”开头的东西,它将引发异常.

最后一点是我在使用别人的代码时遇到的。

0 投票
1 回答
4721 浏览

weblogic - 将 ear 部署到 Weblogic 12c

我有一个在 JBoss7 和 WebSphere 8.5 上成功部署的 ear 文件在尝试 WebLogic 12c 时,我在 AdminServer.log 中收到此错误:

这在网络控制台中:

耳朵使用 jax-ws 和 jax-rs(使用 Jersey 依赖项)。com.demo.tasks.api.RTExecutor 类是与 @WebService 注释的接口。

有谁知道问题是什么?

是否有更多关于问题的详细信息(我错过的更多日志文件等)?

0 投票
0 回答
2482 浏览

weblogic - Weblogic 12c 部署 xml 错误

我是 weblogic 的新手。我尝试部署应用程序,但出现以下错误:

我试图找到weblogic.xml 和web.xml,但只有一个war 文件。如何修改战争中的 xmls?

感谢您的任何回复。艾伦