facebook

error message while running the customerapp application

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #317950 Reply

    mukoon
    Member

    The generation goes well without errors.(eclispe for spring).
    Wgile running the first page appear on the myclipse tomcat.
    on clicking view customers the following errors appear.

    HTTP Status 404 – /CustomerApp/indexCustomer

    ——————————————————————————–

    type Status report

    message /CustomerApp/indexCustomer

    description The requested resource (/CustomerApp/indexCustomer) is not available.

    ——————————————————————————–

    Apache Tomcat/6.0.13

    Any clues to resolve it.

    the only modification i did is to listen on port 9090 for the myeclipse tomcat and the first page appear.

    Tks

    #317988 Reply

    jkennedy
    Member

    Can you tell me the url that the link is attempting to load in the browser when it fails?
    Does it have the correct port or is it switching the port?
    Can you confirm that when your server started up that there were no errors or stack traces in the Server console.
    My guess would be that there must be some issue being reported there.
    A common problem is forgetting to add the DB drivers to your project if you are using a Database other than Derby for persistence.
    If you do not see any errors in the console, then please verify that you have a Generated Web Controller (Spring) in your .web package that has a Request Mapping that is setup to handle “/indexCustomer”.
    Let me know if the console points us in the right direction and what you see.

    Thanks
    Jack

    #318074 Reply

    mukoon
    Member

    thks jack.It was a driver connection problem with the mysql database.I have to copy it manually to the lib folder
    of the web-inf folder.

    Is there a way to make it available with the application.i.e. make the jdbc driver available to the application or in tomcat.

    thks

    #318114 Reply

    neyde
    Member

    @mukoon wrote:

    thks jack.It was a driver connection problem with the mysql database.I have to copy it manually to the lib folder
    of the web-inf folder.

    Is there a way to make it available with the application.i.e. make the jdbc driver available to the application or in tomcat.

    thks

    By copying the jdbc driver into the WEB-INF/LIB folder, you are effectively adding it the project. When you deploy the project, the library is included in the deployment. If you export the project, the library will be included in the export. Another option is to add the library to application server’s shared lib directory.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: error message while running the customerapp application

You must be logged in to post in the forum log in