Search code examples
javarestweblogic

Java RESTful - "Not Found" error


I am trying to deploy an *.ear application in a WebLogic Server.
All the implementation, the DataSource creation were good. But when I access the link to return the localhost data in json, it returns Not Found on the page's body. Like this:

enter image description here

This only happens when the application should return data from the server. If I access a URL that returns a HTML it works fine.

enter image description here

Detail

This is happening only now that I am implementing in another WebLogic Server. When I was running on my local machine's WebLogic Server, it works fine.

EDIT<\B>

My server log: <Warning> <JAX-RS Integration> Cannot add Jersey Servlet for application class com.sun.jersey.api.core.PackageResourceConfig because ApplicationPath Annotation is not set on it``<Warning><Socket> Closing the socket, asw no data read from it at 0:0:0:0:0:0:0:1:62.645 during the configured idle timeout of 5 seconds


Solution

  • The problem was that I did not have the Jersey and JAX libs deployed in my WebLogic installation.

    In the current latest Weblogic version you cannot deploy these two libs together, because they have the same name.
    Solved that by installing an older version, deploying the libs and my RESTful Service workes fine.