Hi, NameNotFoundException expertise.
After creating the jar and deploying
I use to get the error "NameNotFoundException" when I run the client program.
So, I took a look at the jar and see how it was put together. And it looked similiar to this
This is wrong.
Notice the "com/titan/customer" before the META-INF. When I moved the META-INF directory so it was no longer under com/titan/customer. It now looks something similar to this.
This is right.
It would work just fine. Why is that?
What info out there talks about the right place for the META-INF?
The reason that your first solution did not work was because you had packaged your jar incorrectly.
The reason that the second solution worked was because you had packaged it correctly.
The META-INF folder should be at the root of the jar.