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

SprintBoot api installation #112

Open
changtung opened this issue Oct 4, 2018 · 6 comments
Open

SprintBoot api installation #112

changtung opened this issue Oct 4, 2018 · 6 comments

Comments

@changtung
Copy link
Member

Hey,
What i did to install this on debian linux.

install java 8 - sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
sudo apt-get update
sudo apt-get install oracle-java8-installer

git clone branch develop
mvn package develop branch - mvn package -Dfile.encoding=UTF-8
copy transitlock jar to spring boot
mvn install jar into local repository
mvn install:install-file -Dfile=transitclockCore-2.0.0-SNAPSHOT.jar -DgroupId=transitimeClock -DartifactId=transitClock -Dversion=2.0.0 -Dpackaging=jar
mvn package
And i get error of lacking ArtifactId.
/home/gtfseditor/ui/api/transitclockSpringRestApi/src/main/java/org/transitclock/repository/AVLReportRepository.java:[11,35] cannot find symbol
[ERROR] symbol: class AvlReportId
[ERROR] location: package org.transitclock.db.structs
As i see file:
nano /home/gtfseditor/ui/api/transitclockSpringRestApi/src/main/java/org/transitclock/repository/AVLReportRepository.java
There is needed class ArtifactId, which i don't see in db.structs.
My question is, if this class exist and if yes, on which branch of transitclock it exist.

@scrudden
Copy link
Member

scrudden commented Oct 4, 2018

I had this is my stash of TheTransitClock. I will need to pull it out and push it to the repo for you.

@scrudden
Copy link
Member

scrudden commented Oct 6, 2018

I pushed this up to the "newui" branch.

@changtung
Copy link
Member Author

changtung commented Oct 10, 2018

I pulled this branch, did maven package, then copied jar to springboot pom.xml and repository, added postgresql jdbc driver and installed jdbc with proper credentials. However i am getting:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'transitClockResource': Unsatisfied dependency expressed through field 'avlreportRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AVLReportRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: This class [class org.transitclock.db.structs.AvlReport] does not define an IdClass, when i run java -jar springboot.jar. It's related to newui branch, where class AVLReportId and VehicleEventId doesn't exist. What kind of class that should be ? I changed AVLReportID to Long in repository creation, but still it demands this class, which is unavailable in current newui branch.
Best Regards,

@scrudden
Copy link
Member

I will have to set this up locally again and get back to you. I will try to do this in the next few days.

@scrudden
Copy link
Member

scrudden commented Jan 3, 2019

I have committed again to the newui branch with the id files included. This should help, but at least show what AVLReportID was intended to be.

@scrudden
Copy link
Member

scrudden commented Jan 3, 2019

I also need to check in avlreport, arrivaldeparture with new id annotations. Trying to pull from stash.

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

2 participants