Code Monkey home page Code Monkey logo

modern-ecommerce's Issues

[WARN] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver & [WARN] Error injecting: org.apache.maven.plugin.war.WarMojo

Hello,

By using existing pom.xml...
`

4.0.0

<groupId>com.canreader</groupId>
<artifactId>ecommerce-rest-api</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<description>REST APIs implemented using Spring Boot, in-memory database, embedded Tomcat, Swagger, JsonPath, Hamcrest and MockMVC</description>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.3.RELEASE</version>
</parent>

<properties>
    <start-class>com.nitsoft.ecommerce.Application</start-class>
</properties>

<dependencies>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-actuator</artifactId>
    </dependency>

    <!-- web development, including Tomcat and spring-webmvc -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context-support</artifactId>
    </dependency>
    <dependency>
        <groupId>org.apache.velocity</groupId>
        <artifactId>velocity</artifactId>
        <version>1.7</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-websocket</artifactId>
        <version>4.2.5.RELEASE</version>
        <type>jar</type>
    </dependency>

    <!-- Spring security -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-security</artifactId>
    </dependency>

    <!-- spring-data-jpa, spring-orm and Hibernate -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
    </dependency>
    
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-messaging</artifactId>
    </dependency>

    <!-- spring-test, hamcrest, ... -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.datatype</groupId>
        <artifactId>jackson-datatype-hibernate4</artifactId>
    </dependency>
    
    <!-- paypal lib-->
    <dependency>
        <groupId>com.paypal.sdk</groupId>
        <artifactId>paypal-core</artifactId>
        <version>1.4.4</version>
    </dependency>
    <dependency>
        <groupId>com.paypal.sdk</groupId>
        <artifactId>merchantsdk</artifactId>
        <version>2.5.106</version>
    </dependency>
    <dependency>
        <groupId>com.paypal.sdk</groupId>
        <artifactId>permissionssdk</artifactId>
        <version>2.3.106</version>
    </dependency>
   
    <!-- super CSV -->
    <dependency>
        <groupId>net.sf.supercsv</groupId>
        <artifactId>super-csv</artifactId>
        <version>2.2.0</version>
    </dependency>
    
    <!-- Amazon S3 Lib -->
    <dependency>
        <artifactId>aws-java</artifactId>
        <groupId>sdk</groupId>
        <version>1.9.7</version>
        <scope>system</scope>
        <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/aws-java-sdk-1.9.7.jar</systemPath>
    </dependency>
    
    <dependency>
        <artifactId>commons</artifactId>
        <groupId>beanutils</groupId>
        <version>1.7</version>
        <scope>system</scope>
        <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/commons-beanutils-1.7.jar</systemPath>
    </dependency>  
    
    <!-- payment -->
    <dependency>
        <groupId>com.stripe</groupId>
        <artifactId>stripe-java</artifactId>
        <version>1.5.1</version>
    </dependency>
    
    <dependency>
        <groupId>commons-cli</groupId>
        <artifactId>commons-cli</artifactId>
        <version>1.1</version>
    </dependency> 
    <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.4</version>
    </dependency>
    
    <!-- Send Email lib-->
    <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.4</version>
    </dependency>
    
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.5</version>
    </dependency>
    
    <dependency>
        <groupId>joda-time</groupId>
        <artifactId>joda-time</artifactId>
        <version>2.4</version>
    </dependency>
    
    <!-- Websocket & notification linraryfrom version 1.0-->    
    <!--<dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjweaver</artifactId>
        <version>1.7.4</version>
    </dependency>
    <dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjrt</artifactId>
        <version>1.7.4</version>
    </dependency>  
    <dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>1.0</version>
        <scope>provided</scope>
    </dependency>-->
    <!-- End Websocket & notification linrary-->  


    <!-- attribute level json comparisons -->
    <dependency>
        <groupId>com.jayway.jsonpath</groupId>
        <artifactId>json-path</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.jayway.jsonpath</groupId>
        <artifactId>json-path-assert</artifactId>
        <scope>test</scope>
    </dependency>

    <!-- integration with Swagger API doc generation http://goo.gl/J5FQDM -->
    <dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger-ui</artifactId>
        <version>2.2.2</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger2</artifactId>
        <version>2.2.2</version>
        <scope>compile</scope>
    </dependency>
    
    <!--<dependency>
        <groupId>org.hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
        <scope>runtime</scope>
    </dependency>-->

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
    </dependency>
    
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId><!--$NO-MVN-MAN-VER$ -->
        <version>1.16.18</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.jboss.aerogear</groupId>
        <artifactId>aerogear-otp-java</artifactId>
        <version>1.0.0</version>
        <type>jar</type>
    </dependency>
</dependencies>

<build>
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
        </resource>
    </resources>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
        <!-- Spring boot support -->
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <addResources>false</addResources>
            </configuration>
        </plugin>
        
        <plugin> 
            <groupId>org.apache.maven.plugins</groupId> 
            <artifactId>maven-surefire-plugin</artifactId> 
            <version>2.12.4</version> 
            <configuration> 
                <skipTests>true</skipTests> 
            </configuration> 
        </plugin>
        
    </plugins>
</build>
<name>ecommerce-rest-api</name>
` keep getting this error when maven install,

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'backend-rest-api'.
java.lang.ExceptionInInitializerError

can anyone help me to get rid of it!

Regards,
Kiran

Error creating bean with name authTokenFilter

When I am running the application, I am facing two issues:

  1. Unable to start embedded tomcat
  2. Error creating bean with name 'authTokenFilter', which is showing some nested exception as shown
    Springboot_snip
    in the attached snapshot.

How to run

Hello Sir,
In ur project blackened and front-end differently design in different folder. I am confused how to run this. Would u help me for run this application

401 Unauthorized

Hello!

Congratulations for the amazing application! I am trying to understand how the things are working in Spring. I did:

mvn clean install

mvn spring-boot:run

The application is started successfully but when I try to enter on every page I get the json response for unauthorized access: 401 Unauthorized or Access Token is expired.

Blocked by CORS policy: Response to preflight request

Access to XMLHttpRequest at 'http://localhost:8080/ecommerce-rest-api/api/v1/1/auth/admin/login' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
angular.js:12433 POST http://localhost:8080/ecommerce-rest-api/api/v1/1/auth/admin/login net::ERR_FAILED

How do i resolve this issue?
I have deployed front end on http-server after installing through command npm install -g http-server.
my login url is [ http://localhost:8081/#!/login ]
I had also commented CorsFilter.java but it is not solution.
I don't know what to do next
plz help.

whitelabel error page

Hi, I am trying to run the project but I got white label error page. Please tell me how can I solve the issue

Running The Application

Hi,

Thanks for this great project.

Could you kindly show how to run the application in localhost.

mvn clean install build successfully

mvn spring-boot:run throws out an error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.