关于weblogic10的访问路径(http://localhost:7001/myweb)怎么设置成没有myweb就能访问我的应用啊
最近在weblogic10上部署了个web应用,可是为什么要在访问时url上加个项目名才能访问到啊,例如这样:http://localhost:7001/myweb,怎么样设置成没有myweb(http://localhost:7001/)就能访问的啊。
我的配置:
config.xml
<app-deployment>
<name>myweb</name>
<target>myweb</target>
<module-type>war</module-type>
<source-path>D:\myweb\myweb</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<virtual-host>
<name>myweb</name>
<target>AdminServer</target>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
<virtual-host-name>192.168.1.100</virtual-host-name>
</virtual-host>
weblogic.xml
<container-descriptor>
<index-directory-enabled>true</index-directory-enabled>
</container-descriptor>
<jsp-descriptor>
<jsp-param>
<param-name>encoding</param-name>
<param-value>gbk</param-value>
</jsp-param>
</jsp-descriptor>
<context-root>/</context-root>
我在网上搜了,
有一种是说:
在config.xml的虚拟主机配置的那里加上<DefaultWebApp>myweb</DefaultWebApp>,可是我加上之后服务启不起来了;
还有一种说:
在weblogic.xml里设置成这样<context-root>/</context-root>,可是我加上之后不起作用啊。
恳求大虾们帮帮我啊?小菜不胜感激!