John Stephens

Greenhorn
+ Follow
since Aug 24, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
11
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Stephens

Thanks Tim, sorry for replying late. This is my side learning project. And unfortunately with Java there are many unknowns so it's tough to learn on practise. I'll try to start with maven as my project generator. I want to develop auth-server and will start with simple maven-archetype-webapp. And I'll try to deploy my war file automatically using Jenkins (have very little experience. Hope it's possible).

I'll not be concerned about PermGen for now, because I'm still on dev environment. Anyways if you feel I'm on wrong direction please let me know
Thanks for response.

Tim, I've tried mongrel but it didn't work in Neon and Oxygen version of Eclipse. I've tried similar Eclipse Tomcat Plugin which is derived from sysdeo. When I start Tomcat it wants me to set up preferences. And then I trapped again. I need to install tomcat locally to be able to update preferences. Or maybe I didn't get you right? Sorry.

Salvin, I'll try to make it work without server by just deploying on container. Tomcat 9 doesn't require server restart and it reloads war files automatically.
Hi,

From my experience with other apps and services, my dev process is create a container and mount my dev folder into that container. Not sure if that's the right thing to do but I'm trying to do the same thing with Tomcat. The problem starts when I want to create a project in Eclipse. I follow articles and create a Dynamic Web Project but it requires local Tomcat installation which I want to avoid.

Am I doing something wrong here?

Thanks
6 years ago
Thanks guys, made it work. I didn't have time to test the token generation process. But will keep you updated.
Pulled the pom.xml. I have Tomcat 9 set up. But still not sure how to deploy my war file.
I have the following to folders:

/opt/tomcat-latest -> apache-tomcat-9.0.0.M26
/opt/auth-server

In the pom.xml I've added the following plugin:


I guess I have not just one but many mistakes and still trying to figure out how to deploy it. Am I in the right direction?
I feel ashamed because I'm moving really slow. I have to do this out of my working hours and out of my parenting hours. I'll try to move one and update you. Again thanks a lot. Please update me if you get some luck with it.
Thanks Knute, It's so nice of you

Forked the project. Will start with Tomcat installation.
Thanks. It looks good to me. But the problem that I don't understand what is serving as a web server on auth server. Is it Jersey or Tomcat? From LAMP perspective I can't use PHP code without having an apache server. I see Java code, classes, etc but don't understand if I have to use Tomcat or I can use something else.
Hi,

I have Ubuntu 16.04 server and, yes, I want to setup auth server. No sure where to go. And then have a resource server using Play framework. For the client part I'm not quite sure. I can use PHP or Python or Java. The client will be another web server.

I have experience building API using PHP but I didn't follow any OAuth2 specs. I just want to achieve 2 things:
1) Improve my knowledge in building secure APIs
2) Improve my Java skills

Thanks for your response.
Hi,

I have almost no experience in Java. And have some trouble understanding all related frameworks and other pieces. I want to implement OAuth 2 authorization server using Apache Oltu. Honestly not sure from where to start. There are not step by step instructions for Oltu to try some examples. So I've started with installing Play Framework for Java and hoping to use Oltu classes. But from my initial understanding it will not work because Oltu uses servlet classes. And it's a headache to implement those in play framework.

I would appreciate any advice where to look at and what to use for auth server. The thing is I want to strart some practical coding but keep reading Java, then play framework then oAuth2. And I feel I still need to read without starting something. By the way if it helps I have a bit experience with VertX Java, but again that doesn't seem good fit for me.

Vahan
6 years ago
I see Thanks again!
7 years ago
Thanks for you reply. And sorry for my late response. What do you think about Oracle certification? How much does it help for a job search?
7 years ago
Hi guys

I'm experienced developer specialised in PHP, Python, etc, but not in Java or C++. I'm thinking how I can switch my career to Java. I feel comfortable that if I find a job in that field I'll pick up the language quickly, though I understand that I will not become a Java export within a month. Can you guys give me a mentor advice what to do in that direction? Will Oracle certification help without real full time experience?

Thanks
7 years ago
Greg is right. It turned out that the property is supposed to be passed using a command line.

Thanks guys for explaining the process.
8 years ago
Hi,

I'm completely new to Java and got a script which I need to improve and make work. I can't contact original author of the code but the question itself seems to be easy for a person who has a bit experience with Java.

Here is the a line of code



as a result propFileName is NULL.

And that's my actual problem. I've tried to search in the google what is propertyfile or how to set up. I see conf folder with properties within projects folder.

I don't know how to deal with it. I can use custom path to point that config but I want to make the current code to work. At least I need to understand what's going on there.

I'll appreciate any help.
8 years ago