Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
744 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...