cancel
Showing results for 
Search instead for 
Did you mean: 

Error while running extended application in locally

former_member209118
Participant
0 Kudos

Hi Expert,

I'm new to fiori. I'm extending one of the fiori application. I downloaded application from ecc and I imported that application in my eclipse (which is local). when I'm trying to run my application I'm getting the following error.

Thanks,

Ashok.

Accepted Solutions (0)

Answers (2)

Answers (2)

aakash_neelaperumal2
Active Participant
0 Kudos

Did you miss any attachment ? Not seeing any error.

former_member209118
Participant
0 Kudos

please check attached file

former_member182372
Active Contributor
0 Kudos

you need to configure a proxy servlet in web.xml

<servlet>

  <servlet-name>SimpleProxyServlet</servlet-name>

  <servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class>

  <init-param>

  <param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>

  <param-value>http://<>YOUR_SERVER_NAME_AND_PORT</param-value>

  </init-param>

</servlet>

<servlet-mapping>

  <servlet-name>SimpleProxyServlet</servlet-name>

  <url-pattern>/proxy_abap/*</url-pattern>

</servlet-mapping>

and change url to the odata service

config : {

  serviceConfig : {

  name: "YOUR_SERVICE",

  serviceUrl: "proxy_abap/sap/opu/odata/sap/YOUR_SERVICE/"

  }

},

former_member209118
Participant
0 Kudos

I did as you suggested still I got the error,but this time I got metadata 500 error

former_member182372
Active Contributor
0 Kudos

show browser dev tools network and console