初试JBOSSIDE1.4

王朝java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

EJB

Object ref = context.lookup("java:/comp/env/ejb/Fibo");

instead of Object ref = context.lookup("Fibo");

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

instead of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

DEPLOY

Go to Succeed in deploying applications to the cluster farm and read the solution there.

"Failed to setup clustering", what does it mean?

[JBossCacheService][main] jboss.cache:service=TomcatClusteringCache service to Tomcat clustering not found

[JBossCacheManager][main] JBossCacheService to Tomcat clustering not found

[TomcatDeployer][main] Failed to setup clustering, clustering disabled

Since 3.2.6, HTTP session replication is based on JBossCache, and more precisely the TomcatClusteringCache? service.

In 3.2.6, 3.2.7, 4.0.1 and 4.0.1SP1, the dependency on this service is missing in Tomcat's jboss-service.xml.

To fix it, please edit /all/jbossweb-tomcat5x.sar/META-INF/jboss-service.xml and enable the <depends optional-attribute-name="CacheName?"> element, update the MBean ObjectName as well as the <depends> element itself.

The resulting code should look as follows:

<!--

Configuration for HTTP Session Clustering using JBossCache

-->

<depends>jboss.cache:service=TomcatClusteringCache</depends>

instead of

<!--

Configuration for HTTP Session Clustering using JBossCache

-->

<!--

<depends optional-attribute-name="CacheName">jboss.cache:service=TreeCache</depends>

-->

一切OK。GO,GO,GO

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有