Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to run project #1

Closed
TanhGL opened this issue Oct 1, 2023 · 30 comments
Closed

how to run project #1

TanhGL opened this issue Oct 1, 2023 · 30 comments

Comments

@TanhGL
Copy link

TanhGL commented Oct 1, 2023

how to run project , i have tomcat 9, jdk java 1.8.

@bhagatanirudh
Copy link
Owner

You can just clone or download the repo, then open with any IDE and setup the sql provided with project correctly. Also you need add required jar to the project and then you are ready to go.
I had used tomcat 10 and java 17+, so you can check as per your compatibility.

@DarshJoshi6075
Copy link

You can just clone or download the repo, then open with any IDE and setup the sql provided with project correctly. Also you need add required jar to the project and then you are ready to go. I had used tomcat 10 and java 17+, so you can check as per your compatibility.

but how to import as a maven or anything else i am cloning the project the master file and getting error i have tomcat 10+ and jdk 20 please help me with it

@bhagatanirudh
Copy link
Owner

This project is not build using maven, this is build as a normal project.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Jan 28, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Jan 29, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

Have you imported all the required jar file as mentioned, if not then please do that and then give a try
Jar files used :

  • mysql-connector-j-8.0.31
  • angus-activation-2.0.1
  • jakarta.activation-api-2.1.2
  • jakarta.mail-2.0.1

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

Exactly what error you are getting please specify that. And for login credential please always refer to database table.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

Sorry for your troubles, but I am not able to see the SS. But I think you are facing issue with sql connection. So you can debug it by going to class "ConnectionProvider" under helper. And there please provide right port, username, password for sql connectivity. This might help, else you can follow the error logs and then try to solve each steps by steps. Thanks!

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

I think this issue is related to sql driver, You can re-try by importing fresh and building the project again. And after that also you faces the problem then please try with changing sql driver with another version.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

Ok now I got what error you are facing,
The error you are getting (java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver) indicates that the MySQL JDBC driver is not found in your classpath.
Below is steps you can try to resolve it:

  1. Ensure MySQL Connector is in your project's classpath:
    • Download the MySQL Connector JAR file from the official MySQL website
    • Add the downloaded JAR file (e.g., mysql-connector-java-x.x.x.jar) to your project's lib or WEB-INF/lib directory.
  2. Check your class loading mechanism:
    • Verify that the MySQL Connector JAR is included in your web application's classpath. This can be achieved by checking your project configuration or build script.
  3. Restart your Application Server:

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

No worries brother, thank you for reaching out me. I will try to write step-wise follow to every projects now onwards so that one could easy run by themselves.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

If you are asking for the products images, for that you need to add products through admin login where you can add image, name, description everything.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

Bro you can debug this things, check database whether details are storing/ fetching properly. Study the code and try to find out where and how you are getting troubles.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

@bhagatanirudh
Copy link
Owner

Product_imgs -> this folder is automatically created during adding product images via admin login and contains all the images. After that at home page that images are fetched and displayed. You can debug it based upon your system.

@DarshJoshi6075
Copy link

DarshJoshi6075 commented Feb 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants