1、 MyEclipese 拷贝个ACTION类 到项目中 运行jboss 但是总是报错。 无法编译,找不到类。
解决方案:
找到jboss .deploy .目录下 打开想要找的文件夹下,看看是否被编译。
(果断没有被编译。)
右键 JBoss 部署项目 redeploy /项目。。
( 但是感觉问题 总是有点纯在 以前不需要这样操作,还没有找到问题的根本原因。)
project -> build automatically 这项选中。
2 问题 同时开启 tomcat 和jboss 后 导致 jboss 无法进行热部署
解决方法: 关闭 tomcat 服务器 设置一下步骤。
jboss 热部署设置
路径 : usr/local/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/context.xml
<Context cookies="true" crossContext="true" antiResourceLocking="true" antiJARLocking="true" >
<Manager pathname=""/>
<InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
</Context>
加入红色部分即 :
antiResourceLocking="true" antiJARLocking="true"
然后重启jboss,以后不需要重启jboss就可以加载工程注意: 别加重复了。否则会启动jboss 的时候。会报错 。 错误信息是: same_entity ............................................ xml 解析出错。