`
文章列表
JSF 2.x has already builtin CSRF prevention in flavor of javax.faces.ViewState hidden field in the form when using server side state saving. In JSF 1.x this value was namely pretty weak and too easy predictable (it was actually never intended as CSRF prevention). In JSF 2.0 this has been improved b ...
1. Jboss EAP 6 配置 URI_ENCODING In order to set UTF-8 for URI encoding you have to edit the JBOSS_HOME/standalone/configuration/standalone.xml file and add a system property named org.apache.catalina.connector.URI_ENCODING,(with value set to UTF-8) to the system-properties element.Below is the code ...
1. WS Client Timeout 在Jboss EAP 6中调用web service,发生以下错误: Invoke has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Could not send Message java.net.SocketTimeoutException: Read timed out   调用WS有两个超时参数: ConnectionTimeoutSpecifies the amount of time, in milliseconds, that the ...
最近一直在做老系统的升级项目,其中不同环境的配置文件使用了不同的名字,那怎样利用Maven重命名文件呢?可以使用copy-rename-maven-plugin插件,如下:   <build>    <resources>        <resource>            &l ...
1. 调用EJB的三种方法 调用EAP 6 EJB的第一种方法,使用JBoss API,如下: Properties p = new Properties(); p.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false"); p.put("remote.connections", "default"); p.put("remote.connection.default.host&q ...
SSH             22 SMTP          25 DNS(UDP)    53 DNS(TCP)    53 HTTP           80 POP3           110 IMAP             143 LDAP            389 HTTPS          443 SMTPS         465 IMAPS          993 POP3S         995 MS SQL       1433 NFS              2049 MySQL         3306 RDP     ...
1. zip如何排除文件夹 zip -r jason.zip jason/* -x jason/backports-4.4.2-1/\* 以上命令打包jason文件夹,排除其中的backports-4.4.2-1文件夹   如果改成这样: zip -r jason.zip jason/* -x jason/backports-4.4.2-1\* 会排除其中以backports-4.4.2-1开头的文件和文件夹,比如jason下还有文件backports-4.4.2-1.tar.gz,也会被排除。   那这样呢? zip -r jason.zip jason/* -x jas ...
项目中使用了X.509证书,用Maven打包后,测试时报错: java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Invalid BER/DER data (too huge?)   查找了好一会儿原因,才发现证书文件确实变huge了。这是怎么导致的呢,因为resource使用了filter, maven更改了文件内容,解决方法如下:   <plugin> <artifactId>maven-resources-plug ...
No EJB receiver available for handling ... 在Jboss EAP 6中,调用远程EJB时出现这个错误, 原因可能是JNDI格式写错了。EJB JNDI的格式如下:   ejb:<appName>/<moduleName>/<distinctName>/<beanName>!<viewClassName>?stateful   注意appName前是没有"/"的!如没有distinctName,留空,即连续两个”//“。   在jboss-eap-quicks ...
1. Jboss AS 6使用jdk7时的异常处理 异常信息为: org.jboss.wsf.stack.cxf.deployment.jms.JMSDescriptorProcessorImpl cannot be cast to org.jboss.wsf.spi.metadata.webservices.WebservicesDescriptorProcessor   解决方法: made a change in  JBOSS_HOME/server/<node>/deployers/jbossws.deployer/META-INF/stack-agnost ...
在EAP 6中使用JSF1.2 增加jboss-deployment-structure.xml文件,其内容如下: <jboss-deployment-structure>    <deployment>        <exclusions>                        <module name="javax.faces.api"/>            <module name="com.sun.jsf-impl"/>        </exclusions& ...
    相信不少朋友遇到过,安装JDK 8 时,运行安装程序后没有任何反应,没有显示安装界面。检查任务管理器,发现是有两个JDK安装进程的:       那安装程序在运行么?实际上安装程序在正常执行,当进程结束后,你会发现JDK已经安装好啦。     原来JDK 8 支持静默安装。安装配置文件位于C:\ProgramData\Oracle\Java\java.settings.cfg,其中有一项:     INSTALL_SILENT=1     将其改为0就可以显示安装界面了。       更多安装参数请参考:Installing With a Configuration F ...
There could be many reasons, but the most common are: The port is not open on the destination machine. The port is open on the destination machine, but its backlog of pending connections is full. A firewall between the client and server is blocking access (also check local firewalls). IP address c ...
一、协议知识FTP    FTP (File Transfer Protocol,RFC 959)是TCP/IP网络上用于文件传输的标准协议,基于C/S架构,可以上传、下载、删除文件,创建或改变服务器上的目录。在客户端和服务器间要建立分离的控制和数据连接,控制连接 ...
1. window.frames Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.   window.frames[0] is the same thing as document.getElementsByTagName("iframe")[0].contentWindow    2. window.event 在老版本IE或兼容模式中支持,可将方法的第一个参数设为event,如   fu ...
Global site tag (gtag.js) - Google Analytics