My Oracle Support Banner

Application Deployed to WebLogic Is Not Picking Up The Url-pattern Specified In Web.xml (Doc ID 2607856.1)

Last updated on DECEMBER 03, 2020

Applies to:

Oracle WebLogic Server - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.3.0 version, WLS-WebServices

ACTUAL BEHAVIOR
---------------
Application Deployed to WebLogic is not picking up the url-pattern specified in web.xml

The application deployed to the Weblogic server with the url pattern 'restsvc/*' for the rest services, the expectation is that the application can be accessed via 'http://<host>:<port>/<application context>/restsvc/*' but for some reason the service available only at 'http://<host>:<port>/<application context>/resources/*'. The url pattern specified in web.xml is not picked up, it defaults to 'resources'.


It used to work in older version before upgrade to 12C.

Web.xml
======
<servlet>
<servlet-name>Jersey Web Application</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey Web Application</servlet-name>
<url-pattern>/restsvc/*</url-pattern>
</servlet-mapping> 


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.