|
From: Rajeev K. <Ra...@cu...> - 2003-08-01 18:45:26
|
Jean-Pierre, I found out that "MessageCache" error turned out to be a JBOSS = configuration issue. The JBOSS 3.2.1 ships out with recursivesearch = attribute (in jboss-service.xml) set to false as shown below: <attribute name=3D"RecursiveSearch">False</attribute> This should be changed to true as show below: <attribute name=3D"RecursiveSearch">True</attribute> Now the petclinic sample works fine under JBOSS. =20 It may be obvious that when running under a managed environment like = JBOSS, the application-context.xml should be modified to comment the = datasource for non-J2ee environment, and uncomment the datasource for = J2EE environment. But I think it should be clearly mentioned as one of = the steps required to make the sample app to work under JBOSS. Rajeev Kaul ----- Original Message -----=20 From: Jean-Pierre=20 To: 'Rajeev Kaul' ; spr...@li...=20 Sent: Tuesday, July 29, 2003 1:20 PM Subject: RE : [Springframework-developer] petclinic, hsqldb, & jboss Rajeev, >>> One more thing. There is no need to comment out the log4j = configuration listener for spring samples running under JBOSS. Just use = the attached log4j.properties file. I tested your log4j file, but it's no miracle. It is carefully written = to well start. Unfortunately, the issue rests when undeploying the = application: all JBoss logging are definitively stopped. The server = itself can go wrong in this case, but it's not the case with your log4j = file. It seems it's the best possible, but I believe like others that = with JBoss the logging is better set in JBoss configuration files. =20 So I will provide your file but let the note for commenting out the = listener. >>> I actually used the jboss supplied hsqldb-ds.xml file instead of = hsql-petclinic-ds.xml. I modified the petclinic build.properties to use = the port 1701 for hsql, and the jboss-web.xml to use the = "java:/DefaultDS" as the jndi name. This eliminates the step of having = to copy a separate hsql-petclinic-ds.xml file in the Jboss deploy dir. = The petclinic application works fine with this setting. However, I am = still getting the JBOSS "MessageCache" error. Yes, your proposal simplifies the installation by the use of = DefaultDS. Just as you made, the port must be set to 1701 in = build.properties. I will make changes. For the "MessageCache" error, we will certainly have to live with for = the 0.9.1. I have no more time to fix in time. Regards, Jean-Pierre |