网上的很杂,我找了半天总结了一些希望对有些人有帮助
我们在jboss中部署WEB项目的同时 希望 这样 http://localhost:8080/ 类似的来访问项目,不用再输入上下文路径,
那么我们可以在WEB项目中的WEB-INF 目录下存放 jboss-web.xml 文件
文件内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC
"-//JBoss//DTD Web Application 2.3V2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
<jboss-web>
<context-root>/</context-root>
</jboss-web>
就这样的部署后你会查看到有一个错误:Web mapping already exists for deployment
这时候我们就需要删除jboss 的默认配置文件 \server\default\deploy 下的ROOT.war 文件夹 也就是我们刚刚配置好jboss 服务器的欢迎界面!是他占用了“/”的路径
一切Ok!问题是不是解决了?....
分享到:
相关推荐
部署描述文件web.xml详解(web-app_2_3.dtd),全面介绍: 1. icon元素 2. display-name元素 3. description元素 4. distributable元素 5. context-param元素 6. filter元素 7. filter-mapping元素 8. ...
WEB.XML标准配置注解: <!--Servlet的映射,用来说明客户端IE中输入什么样的地址字符串对应到哪个Servlet的别名--> <!--在该例中在IE地址栏中firstservlet字符串对应到别名为firstservlet的servlet--> <servlet-...
XI PI MAPPING开发必须jar包 import com.sap.aii.mapping.api.*; import com.sap.aii.mapping.api.*; import com.sap.aii.mapping.lookup.*; import com.sap.aii.mappingtool.tf7.rt.*;
因为Hibernate在读出hbm.xml文件时需要通过网络读取到hibernate-mapping-3.0.dtd 文件。 如果没有网络不能正常工作。 所以提供上述文件。 以及hibernate-mapping-3.0.dtd,hibernate-configuration-3.0.dtd提供下载...
mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd 解决hibernate配置无自动提示...
The XML Mapping Tool.............................................................. 23 Selecting Nodes ...................................................................... 24 Create and Test ...
用于 web.xml 配置详解。例如: <web-app> <display-name></display-name>定义了WEB应用的名字 <description></description> 声明WEB应用的描述信息 <context-param></context-param> context-param元素声明应用...
hibernate-mapping-3.0.dtd 配置后,就会在xml中进行提示
com.sap.xpi.ib.mapping.lib.jar SAP PI JAVA MAPPING 必备JAR包
maven项目插件的配置,大家如果在进行clean,package或者运行时出错,有可能是maven插件的问题,可以试试这个配置
web.xml 最全 MIME Type Mappings 大概有 一千多个
前端项目-knockout.mapping,Object mapping plugin for Knockout
hibernate-configuration-3.0.dtd、hibernate-mapping-3.0.dtd、hibernate.properties(5.0.7)
- Supports directional baking (bump/specular) with 4 modes: dominant direction (compatible with most shaders), Radiosity Normal Mapping, per-pixel spherical harmonics, as well as simply baking normal ...
在java web.xml的使用你也可以去百度找 这里有大部分的< mime - mapping extension = " .au " mime - type = " audio/basic " /> 很多格式
Bump mapping is a normal-perturbation rendering technique for simulating lighting effects caused by patterned irregularities on otherwise locally smooth surfaces. By encoding such surface patterns in ...
在: \jboss-4.2.2.GA\docs\examples\jca\oracle-ds.xml,拷贝oracle-ds.xml 到: \jboss-4.2.2.GA\server\all\deploy 配置内容: <jndi-name>OracleDS</jndi-name> <connection-url>jdbc:oracle:thin:@localhost:1521...
Building-Mapping-Applications-with-QGIS-Create-your-own-sophisticated-applications-to-analyze-and-display-geospatial-information-using-QGIS-and-Python.pdf
- Supports directional baking (bump/specular) with 4 modes: dominant direction (compatible with most shaders), Radiosity Normal Mapping, per-pixel spherical harmonics, as well as simply baking normal ...
p133