Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
762 views
in Technique[技术] by (71.8m points)

servlets - 503 Service Unavailable error while accessing application service

I have deployed two applications on a SAP NetWeaver system, one is a UI Application and one is an OSGi-based Web application exposing OData services.

The UI application is working fine and accessible but the Web application is not accessible.

I have verified that the application was deployed successfully and showing 'started' in the console, I also cross-checked through the internal telnet console of the application that all services are running, but while accessing the service in the browser or console, it's showing:

503 Service unavailable” for the Web application.

I tried to hit the URL through curl on that machine also but I'm getting the same result.

Is there any configuration required to make all the services accessible which are exposed by the application?

web.xml of application:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"         
     version="2.5"         
     xmlns="http://java.sun.com/xml/ns/javaee"> 
     
 <listener>
    <listener-class>org.apache.felix.http.proxy.ProxyListener</listener-class>
</listener>

<servlet>
    <servlet-name>proxy</servlet-name>
    <servlet-class>org.apache.felix.http.proxy.ProxyServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>proxy</servlet-name>
    <url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
question from:https://stackoverflow.com/questions/66057423/503-service-unavailable-error-while-accessing-application-service

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...