这足以在weblogic服务器上启用SSL吗?
打开控制台>环境>服务器>打开部署应用程序的受管服务器>选中"启用SSL侦听端口"复选框.
一旦我这样做,我就可以使用HTTPS端口在HTTPS上打开我的应用程序.
为什么我要问这个问题,因为在这个页面上:http: //docs.oracle.com/cd/E13222_01/wls/docs81/secmanage/ssl.html
在"配置SSL"一节中,他们没有提出这个简单的步骤.
我理解通过使用我的方式启用SSL,我使用的是weblogic的默认证书,但是为了测试我不介意.
请确认.
谢谢.
我试图在Windows 7上安装CPAN模块.我没有Active Perl所以不能使用PPM包.
所有站点上给出的步骤包括以下三个步骤:make,make test和make install.我知道make是unix命令,不能在Windows上运行.
我将在Windows上运行什么命令来完成安装?
我从其中一个网站提到的CPAN网站上下载了dmake,但是当我运行它时,它会出现以下错误 -
D:\ Parse-RecDescent-1.965001.tar\Parse-RecDescent-1.965001> D:\ dmake\dmake\dmake dmake:错误: - 找不到``D:\ indigoampp\perl-5.12.1\libConfig.pm',而且不能成
请让我知道如何完成这些步骤.谢谢!
PS:同样,PPM不是一种选择.
感谢大家.
在indigoampp\perl-5.12.1\lib位置有一个名为Config_heavy.pl的文件.它有一行:make ='nmake'.当我使用dmake命令时,我将其更改为make ='dmake'.
在此之后,我不需要在每个模块的Makefile中更改DIRFILESEP.它正在生成\\,如上面链接中所述.
所以我现在可以运行dmake,dmake test和dmake install.但它没有做任何事情.它没有在各自的位置复制pm文件/文件.为什么这样??
无论如何,我手动复制pm文件/文件,希望一切都能正常工作.不过我以前也可以这样做.为什么我运行makefile.pl和dmake命令?
另外,我的目标是安装Apache2 :: Request模块.我发现它依赖于多个模块.我下载了这些模块并为它们运行了上面的命令 - 没有错误.最后,当我为Apache2 :: Request模块运行这些步骤时,我在dmake命令中收到以下错误:
D:\libapreq2-2.12.tar\libapreq2-2.12>dmake
dmake: makefile: line 25: Warning: -- Duplicate target [Release]
dmake: makefile: line 25: Warning: -- Duplicate target [Release]
dmake: makefile: line 25: Warning: -- Duplicate target [!=]
dmake: makefile: line 25: Error: -- Expecting macro or rule defn, found neith
er
Run Code Online (Sandbox Code Playgroud)
我在libapreq2-2.12.tar\libapreq2-2.12文件夹下的Makefile中找不到任何可疑内容.Makefile的部分内容(在错误行周围)是:
LIBAPREQ=libapreq2
APREQ2_TEST=apreq2_test …Run Code Online (Sandbox Code Playgroud) 我认为这是非常基本的问题,但我没有理解.
我正在使用LWP :: UserAgent包在perl脚本中构建一个post请求.代码如下:
my $urlStr = "http://localhost/testproj/AServlet";
my $postDataStr = "{name => \'ankur434\'}";
my $response = $ua->post($urlStr, $postDataStr);
Run Code Online (Sandbox Code Playgroud)
上面的代码不起作用并给出以下错误 -
<Dec 6, 2010 3:15:54 PM IST> <Error> <HTTP> <BEA-101215> <Malformed Request "/testproj/AServlet". Request parsing failed, Code: -1>
Run Code Online (Sandbox Code Playgroud)
但是当我直接将postDataStr的值传递给post方法时,它的效果非常好,如下所示:
my $response = $ua->post($urlStr, {name => 'ankur434'});
Run Code Online (Sandbox Code Playgroud)
我尝试了一些选项,例如转义{使用反斜杠(\ {)但没有任何效果......
谁能提出建议?谢谢!
Callable接口中泛型有什么用?
考虑一下我从https://blogs.oracle.com/CoreJavaTechTips/entry/get_netbeans_6复制的以下代码:
import java.util.\*;
import java.util.concurrent.\*;
public class CallableExample {
public static class WordLengthCallable
implements Callable {
private String word;
public WordLengthCallable(String word) {
this.word = word;
}
public Integer call() {
return Integer.valueOf(word.length());
}
}
public static void main(String args[]) throws Exception {
ExecutorService pool = Executors.newFixedThreadPool(3);
Set<Future<Integer>> set = new HashSet<Future<Integer>>();
for (String word: args) {
Callable<Integer> callable = new WordLengthCallable(word);
Future<Integer> future = pool.submit(callable);
set.add(future);
}
int sum = 0;
for (Future<Integer> future : set) …Run Code Online (Sandbox Code Playgroud)