初试JBOSSIDE1.4

壤驷子安
2023-12-01

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

 类似资料: