把jsp.com也写进配置文件里去啊,也就是1个站配置两个名称
解决方案 »
- Spring使用IOC是为了实现“开闭原则”
- OutOfMemoryErro问题,大神来~
- 关于数据库中的日期存储问题
- jsp编码过虑
- jdbc mysql 创建prepareStatement的时候,就在数据库里面更新数据了??? 就这样的机制还是我的程序有问题
- soap消息标签中Transfer-Encoding: chunked的问题
- 谁有mail.jar,activation.jar
- 你们好 在J2EE道路的先驱者
- 如何使用date?
- 怎么将com.microsoft.jdbc.sqlserver.SQLServerDriver加到JBuilder的驱动列表中?
- 关于接受和发送soap消息的几个问题,100<=分数 hehe ~急啊
- 如何配置apache+IIS+tomcat?
<log id='/log' href='stderr:' timestamp='[%Y-%m-%d %H:%M:%S.%s]'/>
<java compiler="internal" compiler-args=""/><!--
- Sample database pool configuration
- The JDBC name is java:comp/env/jdbc/test
-->
<resource-ref>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<init-param driver-name="com.caucho.jdbc.mysql.Driver"/>
<init-param url="jdbc:mysql_caucho://localhost:3306/test"/>
<init-param user=""/>
<init-param password=""/>
<init-param max-connections="20"/>
<init-param max-idle-time="30"/>
</resource-ref>
<jsp precompile='true' static-encoding='true' recompile-on-error='true'/><http-server>
<http port='80'/> <srun host='127.0.0.1' port='6802'/>
<!--
- How to add SSL:
-
- <http port=8443>
- <ssl>true</ssl>
- <key-store-type>pkcs12</key-store-type>
- <key-store-file>keys/server_cert.p12</key-store-file>
- <key-store-password>changeit</key-store-password>
- </http>
--> <!--
- For production sites, change class-update-interval to something
- like 60, so it only checks for updates every minute.
-->
<class-update-interval>2</class-update-interval> <!--
- If true, the classloader order follows the Servlet spec.
- If false, the classloader order follows the JDK spec.
-->
<servlet-classloader-hack>false</servlet-classloader-hack> <!--
- Select an error page to display when the connection fails.
-
- <error-page exception='connection' location='/my-error-page.html'/>
--> <!-- To disable /caucho-status, set this to false -->
<caucho-status>true</caucho-status> <!-- maximum number of threads -->
<thread-max>150</thread-max> <!--
- How many threads to wait for keepalives. Should be at least the
- number of Apache processes to get good performance.
-->
<thread-keepalive id='100'/> <!--
- How long an idle keepalive connection should listen to the socket.
-->
<request-timeout id='30s'/> <!--
- How many sockets to hold in the buffer before failing requests.
-->
<accept-buffer-size id='256'/>
<!--
- Maximum number of request threads which will wait for a socket.
-->
<thread-min id='5'/> <!--
- Ping to test if the web server is still up. You can uncomment this
- and point it to pages on the webserver that exercise your main
- logic (like database access). If the GET fails, it will restart
- the server. This will catch deadlocks, but not JDK freezes.
-
- <ping sleep-time='1m' retry-count='3' retry-time='1s'>
- <url>;www.5icc.com.cn<;/url>
- <url>;www.daewa.com.cn<;/url> - </ping>
--> <!--
- Enables/disables exceptions when the browser closes a connection.
-->
<ignore-client-disconnect>true</ignore-client-disconnect>
<cache dir='cache' size='1024' entries='8192'/>
<cache-mapping url-pattern='/' expires='2s'/> <servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<welcome-file-list>index.xtp, index.jsp, index.html</welcome-file-list>
<host id='www.5icc.com.cn' app-dir='D:\internet\5icc_com_cn\www'>
<!-- automatically compile Java in WEB-INF -->
<classpath id='WEB-INF/classes' source='WEB-INF/classes'/>
<cache-mapping url-pattern='/' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<error-log id='D:\www\asp\log\error.log'/>
</host> <host id='www.daewa.com' app-dir='D:\internet\daewa_com\www'>
<!-- automatically compile Java in WEB-INF -->
<classpath id='WEB-INF/classes' source='WEB-INF/classes'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<error-log id='D:\www\asp2\log\error.log'/>
</host>
<srun id="a" host='www.5icc.com.cn' port='6802'/>
<srun id="b" host='www.daewa.com' port='6803'/>
<!--
- Known broken browsers. These should no longer be necessary, but
- you can uncomment them if they become a problem.
-
- <browser-mapping regexp="MSIE 4\.0b2" force10/>
- <browser-mapping regexp="RealPlayer 4\.0" force10/>
- <browser-mapping regexp="Java/1\\.0" force10/>
- <browser-mapping regexp="JDK/1\\.0" force10/>
-->
</http-server>
</caucho.com>
我是这么写的,改那里啊?