on 10-26-2013 8:22 PM
Hi,
I followed the doc fiori10_extend_en.pdf
Once the code Timesheet code is downloaded from /UI5/UI5_REPOSITORY_LOAD,(Few files were missing in the download).
I tried to deploy the same in tomcat server as it is.
I am getting the error as attached.
Is it related to the prerequisite: "The application paths in the extended app point to the correct system" ?
Can you guide me on what all configurations in general is required to view a downloaded app without issues.
So to confirm you should have the following entries in your web.xml
<servlet-mapping>
<servlet-name>SimpleProxyServlet</servlet-name>
<url-pattern>/proxy/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>
<param-value>http://server:port</param-value>
</context-param>
The service.js you should prepend the url with proxy...
proxy/sap/opu/odata/sap/SRA006_SRV
If your gateway system is https you will also have to add the corresponding certificate into your java keystore.
Regards,
Jamie
Rapid Innovation Group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the index.html file comment out these lines...
// sap.ca.common.uilib.utils.UserSettings.loadUserSettings(function ()
// {
jQuery.sap.require("sap.ca.common.uilib.kelley-core");
jQuery.sap.registerModulePath("sap.hcm.timesheet.manage", "");
jQuery.sap.registerModulePath("com.sap.kelley.timesheets", "");
jQuery.sap.require("com.sap.kelley.timesheets.Descriptor");
var oDescriptor = new com.sap.kelley.timesheets.Descriptor();
com.sap.kelley.getAppContainer().addDescriptor("Timesheet Manage", oDescriptor);
oDescriptor.openApplication("openApplication");
document.title = oDescriptor.applicationName;
// });
You could also modify the UserSettings.js if desired.
Regards,
Jamie
SAP - Rapid Innovation Group
I think you missed a configuration step when setting up the project in Eclipse.
See Appendix A in this document:
I think you missed step 9 till 12
But better walk through the whole list you might also still need to do some other things to like changing the simpleproxy to /sap/* instead of the /proxy/*
Hi Boer,
Now I am not able to access the OData services. Getting a 404 not found each time.
I followed the below link and the points in the document you referred to.
https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/TestingInEclipse.html
Environment: Client network.
Changes made: Altered Eclipse network connections and web.xml according to that in the link above.
Also tried changing the LAN settings.
Please suggest on any alternative solutions.
Below is the screenshot of the error.
Thanks,
Kalyan Vemuri,
Technology Consultant.
I quickly compared the Appendix in the document i linked and the document you provided.
It seems like they both set it up in a different way. Looking at it, both solutions might work. But you shouldn't mix them.
If i look at the URL it gets the 404 on both settings are mixed. it tries to reach /proxy/sap/* while the proxy redirects for /sap/*
Could you create a new project in eclipse add the original timesheet code you downloaded from the SAP system and then run through the steps in Appendix A in the document i linked.
Just to make sure the configuration from the documents isn't mixed (you might also need to remove the other project from your apache server)
Hi Boer,
Now the 404 error is gone.. But I am getting the 500 internal server error.
Below are the attached screenshots of tomcat log and chrome console.
Seeing the malformed URL, error, i checked for the OData..
http://<host>:<port>/sap/opu/odata/sap/SRA002_TIMESHEET_SRV/InitialInfos?$filter=StartDate%20eq%20'20131101'%20and%20EndDate%20eq%20'20131101'
worked fine.
In web.xml, i provided the same host:port but appended /sap/ as shown is document.
<context-param>
<param-name>com.sap.ui5.resource.REMOTE_LOCATION</param-name>
<param-value>http://<host>:<port>/sap/</param-value>
</context-param>
Should there be any more changes.
Thanks,
Kalyan Vemuri,
Technology Consultant
I made changes in web.xml
<
context-param>
<param-name>com.sap.ui5.resource.REMOTE_LOCATION</param-name>
<param-value>http://server:port</param-value>
</context-param>
<servlet-mapping>
<servlet-name>SimpleProxyServlet</servlet-name>
<url-pattern>/sap/*</url-pattern>
</servlet-mapping>
even commented out the suggested lines in index.html
User | Count |
---|---|
76 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.