1. Jboss AS 6使用jdk7时的异常处理
异常信息为:
org.jboss.wsf.stack.cxf.deployment.jms.JMSDescriptorProcessorImpl cannot be cast to org.jboss.wsf.spi.metadata.webservices.WebservicesDescriptorProcessor
解决方法:
made a change in JBOSS_HOME/server/<node>/deployers/jbossws.deployer/META-INF/stack-agnostic-jboss-beans.xml.
For the beans WSDescriptorDeployer and JMSDescriptorDeployer, commented the setProcessor incallback and putted the exact bean directly
----------------------------------------
<!-- deployers -->
<bean name="WSDescriptorDeployer" class="org.jboss.webservices.integration.deployers.WSDescriptorDeployer">
<!-- <incallback method="setProcessor"/> -->
<property name="processor"><inject bean="WSDescriptorProcessor"/></property>
<incallback method="setParser"/>
</bean>
<bean name="JMSDescriptorDeployer" class="org.jboss.webservices.integration.deployers.JMSDescriptorDeployer">
<!-- <incallback method="setProcessor"/> -->
<property name="processor"><inject bean="CXFJMSDescriptorProcessor"/></property>
<incallback method="setParser"/>
</bean>
2. Jbos AS 5.1 异常Error installing to Instantiated: name=AttachmentStore
编辑conf\bootstrap\profile.xml,搜索AttachmentStore,将
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
改为:
<constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
3. Jbos AS 5.1 异常ClassLoader has not been set(logging.xml, vfs.xml)
It's a DEBUG level log and you can ignore it.
4. Jboss AS 5.1配置
ear-deployer-jboss-beans.xml
$ {JBOSS_HOME}/server/default/deployers/ear-deployer-jboss-beans.xml
<!-- A flag indicating if ear deployments should have their own scoped
class loader to isolate their classes from other deployments.
-->
<attribute name="Isolated">false</attribute>
war-deployers-jboss-beans.xml
$ {JBOSS_HOME}/server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml
<!-- Get the flag indicating if the normal Java2 parent first class
loading model should be used over the servlet 2.3 web container first
model.
-->
<attribute name="Java2ClassLoadingCompliance">false</attribute>
<!-- A flag indicating if the JBoss Loader should be used. This loader
uses a unified class loader as the class loader rather than the tomcat
specific class loader.
The default is false to ensure that wars have isolated class loading
for duplicate jars and jsp files.
-->
<attribute name="UseJBossWebLoader">true</attribute>
5. ESB client 依赖的Jar(Jboss SOA 4.3)
jbossesb-jbpm
jbossesb-rosetta
jbossesb-config-model
jbpm-jpdl
jbossts-common
jboss-messaging-client
jboss-remoting
jboss-serialization
oswego-concurrent
jnp-client
jboss-aop-jdk50
scout
juddi-client
axis
javassist
trove
wstx-asl
xmlbeans
stax-api
commons-codec
6. jbossesb-properties.xml文件的查找顺序
jbossts-common(com.arjuna.common.util.FileLocator)
1) absolute path - 可这样设定: -Dorg.jboss.soa.esb.propertyFile=abs:///jboss/bin/jbossesb-properties.xml
2) user.dir - JBOSS_HOME/bin
3) user.home
4) java.home - jdk/jre
5) ClassLoader.getResource() - 在jboss EAP 6 以上使用时,如果发布的包未解压,不能正确的加载文件
7. Couldn't retrieve job because the BLOB couldn't be deserialized: null
清空QRTZ_JOB_DETAILS表
8. send email error: javax.mail.NoSuchProviderException: No provider for smtp
jboss-seam-mail使用的mail版本与EAP不一致,不要使用EAP自身的。
9. javax.ejb.EJBTransactionRolledbackException: JBAS014360: EJB 3.1 FR 4.3.14.1 concurrent access timeout on org.jboss.invocation.InterceptorContext@34ce5083 - could not obtain lock within 5000 MILLISECONDS
这个错误是因@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) 引起。
10. org.jbpm.graph.def.DelegationException: Could not find UserTransaction in JNDI [java:comp/UserTransaction]
将<property name="jta.UserTransaction">java:comp/UserTransaction</property>改为:
<property name="jta.UserTransaction">java:jboss/UserTransaction</property>
11. Secure the JMX Console and the Web Console
删除jmx-console.war 和 management web.xml中的
<http-method>GET</http-method>
<http-method>POST</http-method>
12. 删除X-Powered-By
删除jbossweb web.xml中的
<init-param>
<param-name>X-Powered-By</param-name>
<param-value>Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5</param-value>
</init-param>
相关推荐
JBoss AS 5 Development
The latest JBoss AS 5 Development Guide book, very practical to any developer who is or is going to use JBoss AS
jboss 5的详细说明。对在jboss5上进行开发来说是很好的参考资料。
NULL 博文链接:https://lym6520.iteye.com/blog/310725
我总结的JBoss AS7教程资料,几全面的,对目前公司的项目都很有帮助的,希望对j2ee的人员进行jboss升级的掌握有帮助。
JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南
JBoss AS 7 Development
jboss as7 文档 内容非常全。 希望对大家有所帮助。
http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download 3.配置JBOSS环境变量 JBOSS_HOME=D:\jboss-5.1.0.GA 然后在path中添加 ;%JBOSS_HOME%\bin; 4.测试安装...
JBoss AS 7 简介 与之前版本的差异等
NULL 博文链接:https://lindows.iteye.com/blog/234603
jboss5 as developemnt是一本很好的书,基本上包括了从entitybean,sessionbean,messagedrivenbean,managedbean的开发。 从ejb工程,到jsf2.0工程,很好的示例,手把手交的。底层连接数据库,开发工具是eclipse ...
myeclipse 远程调试jboss as7或者jboss eap6,包括windows运行环境和linux运行环境分别介绍,同时jboss as7和jboss eap6的配置也有所不同。
[Packt Publishing] JBoss AS 7 配置部署管理教程 (英文版) [Packt Publishing] JBoss AS 7 Configuration, Deployment and Administration (E-Book) ☆ 出版信息:☆ [作者信息] Francesco Marchioni [出版机构...
JBoss完全实现了J2EE的服务栈: EJB (Enterprise JavaBeans) JMS (Java Message Service) ...可以从http://labs.jboss.com/jbossas/downloads/ 下载最新JBoss应用服务器,本章选用JBoss 4.2.2.GA版本。
CVE-2017-12149 JBOSS as 6.X反序列化(反弹shell版)
[Packt Publishing] JBoss AS 7 开发教程 (英文版) [Packt Publishing] JBoss AS 7 Development (E-Book) ☆ 出版信息:☆ [作者信息] Francesco Marchioni [出版机构] Packt Publishing [出版日期] 2013年06月...
3. Open module.xml (jboss-as-7.1.1.Final/modules/org/jboss/as/web/main) and add the following line <!--resource-root path="jboss-as-web-7.1.1.Final.jar"/--> <resource-root path="jboss-as-web-7.1.1...