`
林凡鹤
  • 浏览: 18425 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

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}”

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics