- 
        1. Re: startup error in Tomcat 5.0.19ben.wang Oct 27, 2004 4:08 PM (in response to guowenrui)Can you try to post your sample code? Someone may be aboe to spot what's wrong. 
 -Ben
- 
        2. Re: startup error in Tomcat 5.0.19guowenrui Oct 27, 2004 9:24 PM (in response to guowenrui)The following is my example Servlet Code, the only thing I want to do is config treecache to let it run on tomcat 5.0.19. Is it wrong? 
 public class CacheServlet extends HttpServlet {
 private TreeCache cache;
 protected void doGet(HttpServletRequest request,
 HttpServletResponse response) throws ServletException, IOException {
 perform(request, response);
 }
 private void perform(HttpServletRequest request,
 HttpServletResponse response) {
 try {
 cache.put(Fqn.fromString("/a/b/c/d"), "key", "value");
 } catch (Exception e) {
 e.printStackTrace();
 }
 }
 protected void doPost(HttpServletRequest request,
 HttpServletResponse response) throws ServletException, IOException {
 perform(request, response);
 }
 public void destroy() {
 cache.stopService();
 cache = null;
 super.destroy();
 }
 public void init(ServletConfig config) throws ServletException {
 try {
 cache = new TreeCache();
 cache.createService();
 cache.startService();
 } catch (Exception e) {
 e.printStackTrace();
 }
 }
 }
- 
        3. Re: startup error in Tomcat 5.0.19belaban Oct 28, 2004 3:24 AM (in response to guowenrui)No, the code looks okay. I'd suggest however to run it inside JBoss.TC5, and make the TreeCache an *MBean*. This way, all servlets can access it, and it can be independently redeployed. 
 Regarding the dom4j: make sure you have the dom4j.jar in the lib dir of TC.
 Bela
- 
        4. Re: startup error in Tomcat 5.0.19guowenrui Oct 28, 2004 5:59 AM (in response to guowenrui)bela, I have solved the problem. After analysised the error log, it seems failed because of MBean. But I have no time to implement a MBean inside tomcat, so I try to deploy the web application in tomcat 4.1.29, then everything is ok. A strange error, Isn't it? 
 
     
    