- This topic has 3 replies, 3 voices, and was last updated 13 years, 8 months ago by
neyde.
-
AuthorPosts
-
mukoonMemberThe 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
jkennedyMemberCan 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
mukoonMemberthks 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
neydeMember@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.
-
AuthorPosts