6 Replies Latest reply on May 12, 2009 6:07 AM by amit.daundkar

    problem with .jar files deplyment

      hello,
      i am using Jboss-5.1.0-CR1 on linux fc9. The database is MySQL.
      i have deployed the .war file in the /server/default/deploy directory.
      i have also added the required jar files(commons-logging.jar, dwr.jar, mysql-connector.jar) in the /server/default/lib directory.

      when i start JBoss as, i can see the module deployed.
      the index page, and Login page also displays.
      but when i give a request for a page that requires database connectivity,
      i get a 404- resource not found error.

      i think this is an issue regarding the .jar files deployment.
      Do i need to copy these three files in any other directory also?
      the server.log file also doesnt show anything.

      what may be the reason? .

      please reply. i am in need.
      thank you.

        • 1. Re: problem with .jar files deplyment
          wolfgangknauf

          Hi,

          a 404 means that a web page (or servlet, jsp) is not found, so I think that it is not a matter of the JAR file.
          What page is requested/not found? Maybe some login error page?

          Best regards

          Wolfgang

          • 2. Re: problem with .jar files deplyment

             

            "Wolfgang Knauf" wrote:
            Hi,

            a 404 means that a web page (or servlet, jsp) is not found, so I think that it is not a matter of the JAR file.
            What page is requested/not found? Maybe some login error page?

            Best regards

            Wolfgang


            thank you for the reply,
            no its not a login page..i do see the login page and the first page after that also. but the next page has a database connectivity in jsp. that page is not displayed.

            please tell what shall b the problem?
            and which are the folders in the directory structure where i need to copy the jar files?
            thank you.

            • 3. Re: problem with .jar files deplyment
              wolfgangknauf

              Hi,

              does an error/exception occur on your "next page"? Is some output/stacktrace on the JBoss console?
              Maybe your errorpage is not found/valid. Do you have an "errorpage" attribute in your "@page" tag? Is this errorpage available? Or did you declare an error handler in your web.xml?

              About the JARs: the database connector (and related jars) should be placed in "server\default\lib", but the rest can be placed in "WEB-INF\lib" of your web app.

              Best regards

              Wolfgang

              • 4. Re: problem with .jar files deplyment

                 

                "Wolfgang Knauf" wrote:
                Hi,

                does an error/exception occur on your "next page"? Is some output/stacktrace on the JBoss console?
                Maybe your errorpage is not found/valid. Do you have an "errorpage" attribute in your "@page" tag? Is this errorpage available? Or did you declare an error handler in your web.xml?

                About the JARs: the database connector (and related jars) should be placed in "server\default\lib", but the rest can be placed in "WEB-INF\lib" of your web app.

                Best regards

                Wolfgang

                hello Wolfgang,
                yes i do have a errorPage attribute that specifies the error page.
                i deployed the same war file in glassfish v2 to check whether any problem.
                but the application(war deployed) runs smoothly in glassfish. so there is no error on that page.
                that is why i am confused. i mean the same page shall run in JBoss also, right?
                i really dont understand what the problem is!
                anyway,
                thank you for the reply.


                • 5. Re: problem with .jar files deplyment
                  wolfgangknauf

                  Hi,

                  please provide us with more details (e.g. WAR structure, @page attributes, deployment descriptors). Take a look at the JBoss console. I think it should show an exception/error message.
                  What page is not found? This should be part of the 404 error.

                  I need more input to be able to help you.

                  Best regards

                  Wolfgang

                  • 6. Re: problem with .jar files deplyment

                    hello Wolfgang,
                    the problem is solved.
                    i created another .war file and deployed it again.
                    and it is working fine now. but its an unknown success.
                    anyway,
                    thank you very much for your help.