我正在研究eclipse并在应用程序中进行一些更改并在OC4J服务器上重新部署EAR文件(我添加了ssl支持)后,我的应用程序绑定在secure-web-site.xml(我的意思是:标记)消失或者而不是添加。我需要做什么才能自动完成这项工作?
答案 0 :(得分:1)
你做了这个步骤吗?:
config / secure-web-site.xml:
<?xml version="1.0"?>
<web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd"
port="9880"
secure="true"
log-request-info="true"
display-name="Oracle iAS Containers for J2EE HTTPS Web Site"
schema-major-version="10"
schema-minor-version="0">
<default-web-app application="default" name="defaultWebApp" />
<access-log path="../log/secure-web-access.log" format="$ip [$time] '$request' $status $size" />
<ssl-config factory="com.evermind.ssl.JSSESSLServerSocketFactory"
keystore="/jdk1.5.0_05/jre/lib/security/cacerts"
keystore-password="changeit" truststore-password="">
<property name="provider"
value="com.sun.net.ssl.internal.ssl.Provider"/>
</ssl-config>
</web-site>
部署应用程序(app.ear):
java -jar admin_client.jar deployer:oc4j:localhost oc4jadmin adminpass -deploy -file app.ear -deploymentName app
将其绑定到secure-web-site:
java -jar admin_client.jar deployer:oc4j:localhost oc4jadmin adminpass -bindWebApp -appName app -webModuleName app -webSiteName secure-web-site -contextRoot /app