Help coderanch get a
new server
by contributing to the fundraiser

Elijah Marshall

Greenhorn
+ Follow
since Nov 16, 2011
Elijah likes ...
IntelliJ IDE
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Elijah Marshall

The application is not finding the certificate in your keystore or whatever it's called. It slips my mind right now.
I've had this issue many times and it had boiled down to normally these 3 things.
1. The cert is not installed or the wrong cert was installed
2. The system is looking at a different keystore location and not the one you installed the cert into
3. The application in code is trying to set the path to the keystore, username, password etc but security is preventing the app from actually writing to the system properties.

Hope this helps some.
8 years ago
@ali hosseini Thank you kindly for your response. I was not aware that I have to have a chosen framework. I just expected to be able to take the jax jar put it into my lib and create a simple hello world example. A good friend of mine found a Maven Example for me as well that I followed which got me to that point. Here are the links to that sample for anyone else who needs to get something started.
Java RESTful Web Services

Note: When I first saw this I thought Jersey I don't know what that is and I don't have time to learn something else on top of JAX. So read below for the descriptions of what it is.

JAX-RS: Java API for RESTful Web Services (JAX-RS), is a set if APIs to developer REST service. JAX-RS is part of the Java EE6, and make developers to develop REST web application easily.



Jersey: Jersey is the open source, production quality, JAX-RS (JSR 311) Reference Implementation for building RESTful Web services. But, it is also more than the Reference Implementation. Jersey provides an API so that developers may extend Jersey to suit their needs.



Additionally to those coming here who don't know Maven... Neither do I but I did find this video set on YouTube which appears to be from an actual course that is very helpful
There are 4 videos that I know of in this set. I'm currently on #3.
Apache Maven Fundamentals (part 1 of 4)
8 years ago
Okay, I'm really frustrated at this point. I just want a stupid simple plain example of using the javax.ws.rs-api-2.0-m02.jar and java files.

Can someone point me to a tutorial that just shows me something that works. Everything I'm finding I find myself bouncing back and forth between Glassfish, Tomcat, something called Jersey, Spring and other crap I just don't care to have to learn on top of web services.

I just want to know.
1. What are the EXACT jar files that I need to use REST?
2. Where do I get the jar files from?
3. A simple hello world java REST service file and whatever associated files needed to load it.

PLEASE assist and help me get this started.

I don't know Spring. I don't know Jersey. So, I just don't want to add more confusion to what I need to learn for the core.
8 years ago
Can someone tell me what type of configuration should be used in order to ensure that hibernate does not get 500 errors?

Here is the situation.
On a project that I am on we have 1 database that is being accessed by 3 different applications (A, B, C)
The 3 applications all share a core library for the User object and associations.
Scenario:
User loads into 3 different browser windows A, B, C
The user in any one of the applications modifies information in the User object or any of the associated objects and persists that to the database
The user reloads and or navigates in any of the other 2 applications a 500 error occurs because the information that is in the User session object does not exist in the database (I am assuming)

How do I tell Hibernate to never store in session certain object associations and to pull the information from the database every single time?
Please be specific as my experience with Hibernate is about 5 hours worth.

Greatly appreciate any help on this.