cipher not initialized

项目在tomcat上部署没有问题,部署到weblogic中时遇到一个错误:或者

cipher not initialized错误


java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:761)
at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:237)

经过搜索各种网上的资料信息后发现需要加上: 
-DUseSunHttpHandler=true

windows下AdminServer启动脚本: 
set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% -DUseSunHttpHandler=true

linux下如果是使用受管服务,则在管理服务脚本中的 
JAVA_OPTIONS=“-Dweblogic.security.SSL.trustedCAKeyStore=“/bea/weblogic/wlserver_10.3/server/lib/cacerts” 
${JAVA_OPTIONS}” 
下面添加一行 (startManagedWebLogic.sh里面修改)
JAVA_OPTIONS=“-DUseSunHttpHandler=true ${JAVA_OPTIONS}”

猜你喜欢

转载自linfanhehe-163-com.iteye.com/blog/2251008