3 Replies Latest reply on Oct 27, 2003 7:01 AM by xf_fong

    How can I set <Context...> in JBoss+Tomcat?

    xf_fong

      Because I want to use Eclipse to debug JSP.
      I followed www.objectlearn.com/support/docs/debuggingJSP.jsp instruction in Tomcat, it successed!
      But I want to do some project include EJB and JSP, so I must use JBoss+Tomact. When I turn to JBoss+Tomcat, I found the key xml is tomcat41-service.xml,but this xml file's structure is very different from standalone Tomcat's server.xml. I have tried many kind ways to add my own configuration,but failed,the web container always generate my JSP's servlet at .\work\MainEngine\localhost.
      My configuration is:

      (If add above codes into server.xml in a standalone Tomcat, Tomcat will generate a index_jsp.java in E:\Test_Debug\j2src\org\apache\jsp\. But cannot get the same result in JBoss+Tomcat! )

      Any help will be appreciated!
      Thanks!

        • 1. Re: How can I set <Context...> in JBoss+Tomcat?
          didi1976

          Hi,

          are you using the JBossIDE-Plugin for Eclipse?

          It contains a nice tutorial showing you how to debug your project using Eclipse.

          You can download the JBossIDE and the tutorials from sourceforge.

          Didi

          • 2. Re: How can I set <Context...> in JBoss+Tomcat?
            jonlee

            Unfortunately, you do not have the same available deployment methods as per standalone Tomcat. You can change the context with a jboss-web.xml element. You can also modify the work directory by defining your own Jasper instance per web.xml. There is a thread for this although it is not very elegant.

            I would however, suggest looking at the Lomboz-Eclipse plugin for JBoss and view Vashistvishal's tutorial for JBoss - see the Beginner's forum.

            • 3. Re: How can I set <Context...> in JBoss+Tomcat?
              xf_fong

              Thank your help!

              I found another way to debug JSP in Eclipse with Lomboz plug-in! That is import the tomcat-4.1.x\work\MainEngine\localhost\debugJSP dir into the J2EE project's j2src dir. Done! Simple!
              Haha!