2 Replies Latest reply on Nov 28, 2007 12:44 AM by jainendra.pathak

    where to put servlet class file in jboss without using ant

    jainendra.pathak

      Hello friends....
      I m new user ...i am developing a project in witch more than on servlet and jsp are going to used ....
      Can some body help me to give the idea where i hv to put .class file in Jboss.

      Using Ant i did this creating .ear file and putting it into deploy folder of Jboss.

      But is there anyway to directly we can .class file like we put jsp directly into Jboss????

      One more thing in my jsp pages there two / three images where we hv to put it into Jboss so that it will take it.....because it is not taking it only jsp page it will show and without images....only contents are showing not the images...

        • 1. Re: where to put servlet class file in jboss without using a
          wolfgangknauf

          Hi !

          It seems you are really new to Java web application development. Explaining the structure of one of those would be too much for a short post. I would advice you to use an IDE like Eclipse with WebTools-Plugin, or NetBeans, or the Eclipse based JBoss IDE. They provide options to create web projects, and so you won't have to care for the deploy structure.

          Just a hint: the EAR file has to contain a WAR file with all the web project data. There, class files are placed in a subdirectory "WEB-INF\classes".
          For JBoss 4.2, you have to add the web module to "application.xml" of the EAR project, otherwise JBoss will not find the modules.

          Best regards

          Wolfgang Knauf

          • 2. Re: where to put servlet class file in jboss without using a
            jainendra.pathak

             

            "Wolfgang Knauf" wrote:
            Hi !

            It seems you are really new to Java web application development. Explaining the structure of one of those would be too much for a short post. I would advice you to use an IDE like Eclipse with WebTools-Plugin, or NetBeans, or the Eclipse based JBoss IDE. They provide options to create web projects, and so you won't have to care for the deploy structure.

            Just a hint: the EAR file has to contain a WAR file with all the web project data. There, class files are placed in a subdirectory "WEB-INF\classes".
            For JBoss 4.2, you have to add the web module to "application.xml" of the EAR project, otherwise JBoss will not find the modules.

            Best regards

            Wolfgang Knauf




            Thanks wolfgang knauf ,
            thanks for interest in my problem. I want to tell u that i knew that using Ant we can create an EAR / WAR file and deploy directly into jboss deploy folder.
            But i just wanted to ensure me that can i deploy myapplication folder directly in Jboss or not that why putted this question here....
            i already using netbeans ide....
            but i just want to know about the extra features of jboss... can it support to Application folder or not....
            thanks a lot for ur opinion... if u hv some more suggestion u r always welcome.. i need the guidence
            bye