Coder Social home page Coder Social logo

blueperf / acmeair-monolithic-java Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 36.0 2.28 MB

This version of Acme air is redesigned removing hardcoded components to WXS and also optimized for Cloud Data Services

License: Apache License 2.0

HTML 34.77% CSS 1.87% JavaScript 2.60% Java 59.48% Shell 1.14% Dockerfile 0.13%

acmeair-monolithic-java's People

Contributors

dependabot[bot] avatar jdmcclur avatar suryadu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acmeair-monolithic-java's Issues

Database errors while using dashdb on Bluemix

Now that sqldb is no longer available, and the recommended SQL database is dashdb, I tried it on Bluemix and see the following errors.

2016-09-01T15:35:36.46-0400 [App/0]      ERR Runtime Exceptions: 
2016-09-01T15:35:36.46-0400 [App/0]      ERR ---------------------------------------------------------
2016-09-01T15:35:36.76-0400 [App/0]      ERR [err]  at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createDeployFailedPersistenceException(EntityManagerSetupImpl.java:891)
2016-09-01T15:35:36.77-0400 [App/0]      ERR [err]  at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:831)
2016-09-01T15:35:36.77-0400 [App/0]      ERR [err]  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:207)
2016-09-01T15:35:36.81-0400 [App/0]      ERR [err]  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:307)
2016-09-01T15:35:36.81-0400 [App/0]      ERR [err]  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:337)
2016-09-01T15:35:36.81-0400 [App/0]      ERR [err]  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:318)
2016-09-01T15:35:36.82-0400 [App/0]      ERR [err]  at com.ibm.ws.jpa.container.v21.internal.JPA21Runtime.createEntityManagerInstance(JPA21Runtime.java:104)
2016-09-01T15:35:36.82-0400 [App/0]      ERR [err]  at [internal classes]
2016-09-01T15:35:36.82-0400 [App/0]      ERR [err]  at com.acmeair.jpa.service.CustomerServiceImpl.getCustomerByUsername(CustomerServiceImpl.java:94)
2016-09-01T15:35:36.83-0400 [App/0]      ERR [err]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2016-09-01T15:35:36.87-0400 [App/0]      ERR [err]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2016-09-01T15:35:36.88-0400 [App/0]      ERR [err]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

Before I did too much into it, wanted to see if this was a known issue with a solution.

Failure of database connection

Hi

I compiled the application and started the container. The problem is that the application cannot connect to the databases.

For example, the command

curl http://127.0.0.1/customer/loader/load?numCustomers=10000

produces the error

Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /customer/loader/load

and applying the JMeter load produces errors of the following kind

1684509744060,2,QueryFlight,Non HTTP response code: org.apache.http.conn.HttpHostConnectException,Non HTTP response message: Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused,Thread Group 1-1,text,false,,2544,0,1,1,http://127.0.0.1//rest/api/flights/queryflights,0,0,1

As I am running the application on a remote server, I cannot load the database via a browser.

Thank you and regards


Additional information:

To make the compilation work with Java 19 , I had to add the following element to pom.xml.

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-war-plugin</artifactId>
   <version>3.3.2</version>
</plugin>

To be able to launch the container, I am using the following docker-compose.yml script.

version: '3'
services:
  acmeair-db:
    container_name: acmeair-db
    image: mongo
    networks:
      - my-net

  acmeair-monolithic-java:
    container_name: acmeair-monolithic-java
    networks:
      - my-net
    build: .
    ports:
      - "80:9080"
    environment:
      - MONGO_HOST=acmeair-db
    volumes_from:
      - acmeair-db
    mem_limit: 1024m

networks:
  my-net:

No docker-compose.yml file provided with the app

This repository does not provide docker-compose.yml file, so it is not clear how to get the app run in Docker in microservices mode on Liberty, nor is it clear where to get the docker images with the right apps.

Not able to Build the project

Hi
I am doing research on micro service architecture. I am exploring this benchmark application to get call-graph. But it needs the complied java code in jar format. The provided code is not getting complied. Can anyone please provide me Build file for this application?

Running monolithic acme air in a docker container giver error

have been trying to run monolithic version of acmeair following the link provided in the https://github.com/blueperf/acmeair-monolithic-java.
Could successfully build app and db container and start the application.
Also could load the database. But as soon as the application is invoked by browser to do a login it gives following error
"Unable to load rest/api/login status:403".
For the application docker build have used the file Dockerfile_KS

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.