7 Replies Latest reply on Apr 8, 2005 7:46 AM by Vishal Sharma

    how to deploy my application

    ritu sharma Newbie

      i have just installed jboss 4.0 and i have tomcat 5.0 version kindly tell me is it necessary to install ant software also....and how to deploy my application in jboss whether to deploy it in jmx_console or webconsole???
      i am really an amateur tring hard to get it!! kindly anyone help me out !!!
      also my tomcat is giving me hard time i have tomcat 5.0 version and jakarta-struts-1.2.4 are they compatable ??? although i can run my jsp and servlets on tomcat but i am unable to run my struts application !!
      it gives me error

      HTTP Status 500 -

      --------------------------------------------------------------------------------

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


      root cause

      java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V
      org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:588)
      org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:435)
      org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:291)
      org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:205)
      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
      org.apache.jasper.compiler.Parser.parse(Parser.java:171)
      org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
      org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


      note The full stack trace of the root cause is available in the Tomcat logs.


      --------------------------------------------------------------------------------

      Apache Tomcat/5.0.19

        • 1. Re: how to deploy my application
          Vishal Sharma Expert

          First of all u seemed to be having too many doubts and seems to be lost in somewhere.
          You have to provide more details what u intend to do.

          As far as deploying an application in JBoss is considered
          just need J2sdk that is the only S/W you need.
          JBoss 4.0 needs J2sdk1.4.2 >= and it has an emebedded tomcat in it.

          Now deploying in JBoss can be done by JMX_Console (accessbile via a web browser - like http://localhost:8080/jmx-console or in deploy directory of instance whichever u are running.
          JBOSS_HOME/server/<all|defualt|standard>/deploy/

          Ant is not a required unless u want to deploy an application while developing, in that case u can have ant targerts for that, otherwise just drop yr .ear or .war file into deploy directory. It is a build tool like make/gnu autoconf for building softwares.

          Also look at JBoss Admin guide under Documentation and WIKI there is a lot of help available and then these user forums.

          I hope this helps and just do one by one, as they say Rome was not built in a single day, in yr case Mumbai wasn't built in a single day :-)

          • 2. Re: how to deploy my application
            ritu sharma Newbie

            hey thanks so much ........

            "vashistvishal" wrote:
            First of all u seemed to be having too many doubts and seems to be lost in somewhere.
            You have to provide more details what u intend to do.

            As far as deploying an application in JBoss is considered
            just need J2sdk that is the only S/W you need.
            JBoss 4.0 needs J2sdk1.4.2 >= and it has an emebedded tomcat in it.

            Now deploying in JBoss can be done by JMX_Console (accessbile via a web browser - like http://localhost:8080/jmx-console or in deploy directory of instance whichever u are running.
            JBOSS_HOME/server/<all|defualt|standard>/deploy/

            Ant is not a required unless u want to deploy an application while developing, in that case u can have ant targerts for that, otherwise just drop yr .ear or .war file into deploy directory. It is a build tool like make/gnu autoconf for building softwares.

            Also look at JBoss Admin guide under Documentation and WIKI there is a lot of help available and then these user forums.

            I hope this helps and just do one by one, as they say Rome was not built in a single day, in yr case Mumbai wasn't built in a single day :-)



            • 3. Re: how to deploy my application
              ritu sharma Newbie

              bye the way can u tell me how to make a simple aaplication in jboss becoz in our company they all use weblogic so no body has idea abt jboss!!
              i will be thankful to u!!

              • 4. Re: how to deploy my application
                Vishal Sharma Expert

                There are lots of tutorials....
                other one is JBoss Workbook with examples.
                Also i published this tutorial way back, with JBoss-3.2x you can always learn with this still a very good resource to learn
                http://www.tusc.com.au/tutorial/html/index.html

                • 5. Re: how to deploy my application
                  ritu sharma Newbie

                  well i read abt u in that tutorial ......u r damn talented ~~~~
                  i am just a beginner in java !! need to learn much more .........i appreciate that u help me !!

                  • 6. Re: how to deploy my application
                    ritu sharma Newbie

                    i tried understanding that tutorial but its quite complex ....well my assignment is

                    The application you are going to create is entering an employee into a database and getting a list of employees from database. The user will be required to enter an employee's name, age, and department Name and he/she can see a list of employees as a tabular format.

                    1. GUI Part of Application: In this part of application use struts frameworks jsp/Servlet and JavaScript.

                    It consists of three screens.
                    1.a) Screens for index Page.
                    1.b) Screen to create employee details.
                    1.c) Screen to display list of employees in tabular form.

                    1.a) Screen for Index Page: In this screen, each option linked to corresponding action. i.e. Click Event of ?Add Employee? Option should display screen no (1.b) and click event of ?View Employee? Option should display screen No (1.c).

                    J2EE Application

                    1. Add Employee
                    2.View Employee




                    1.b) screen to create Employee: On Click of ?Create ? Button, first validate the form entry with helps Struts framework and then saves this to database.


                    Create Employee

                    Emp ID :

                    Emp Name :

                    Emp Age :

                    Department :
                    *
                    Create cancel

                    Note: * indicate select box and other are simple input boxes.

                    List of Departments should come from property File (say department.property)
                    Format of department.property File like
                    Dep_name00=HR;
                    Dep_name01=Admin;
                    Dep_name02=BOSS;
                    Dep_name03=NMS;


                    1.c) Screen to View all Employee: screen to display all existing Employee in tabular form.


                    Row No Employee ID Employee Name Employee Age Department
                    1
                    2
                    3


                    2. Server Part of Application : In backend there will be only one Table ?Employee?

                    Employee Table
                    Table Name: Employee
                    Field Name:
                    Emp _id number(10)
                    Emp_Name char(50)
                    Emp_age integer(3)
                    Emp_Dept char(20)


                    You need to use ServerSide component technology of j2ee like EJB which help to solves business problem. Tasks like submitting Employee data to database, getting employee information should achieve through EJB and JDBC API.


                    J2EE Example Application Architecture



                    Web Client

                    I.E browser
                    (HTML/
                    JavaScript)

                    CAN U GUIDE ME FOR THIS SIMPLE ASSIGNMENT FROM SCRATCH!!







                    • 7. Re: how to deploy my application
                      Vishal Sharma Expert

                      This is not a JBoss specific problem and its more with yr assignment..
                      Please make sure u raise relevant problems in these forums concerning to JBoss.
                      Anyway send yr e-mail via my blog and see if i can help you :-)
                      http://vashistvishal.blogspot.com