cancel
Showing results for 
Search instead for 
Did you mean: 

Use J2EE Web Module over HTTPS in SAP Portal

Former Member
0 Kudos

Hello experts,

I have a J2EE web application deployed to a SAP Netweaver Portal 7.3. The application have been working very well till our customer decided to support HTTPS on their portal. Thus If I try to call my servlet just prepending https instead of http I get a timeout error.

Is there a way to accomplish this?

Thank you very much,

-

Andrea

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I would guess protocol shouldnt matter, unless you are using SSL / plain HTTP specific directives. What have you done regarding the troubleshooting already? What are the results?

cheers

Former Member
0 Kudos

Hello Lawrence,

Thank you for replying. I've performed some tests so far, and I found that even calling my servlets on https, they are invoked on http. In my point of view this could be an architectural issue generated by load balancing and/or SSL offloading mechanisms put in place by our customer.

I'll check it in more detail and I'll come back on this thread to report a solution, if any.

cheers,

-

Andrea

Former Member
0 Kudos

Ok, thats a point you could work on: dont mix HTTP/SSL protocols at all, it will cause authentication issues e.g. and other problems

cheers

Former Member
0 Kudos

Hello guys,

I finally managed to solve this. The problem was that my servlets performed redirections against JSP resources in order to fulfil requests. The result of redirections is a complete rewrite of the original URL with the URL of the redirection target. In my case this mechanism also changed the protocol from https to http. I solved by using forward instead.

-Redirect approach-

response.sendRedirect("path to resource");

-Forward approach-

RequestDispatcher dispatcher = request.getRequestDispatcher("path to resource");

dispatcher.forward(request, response);

I hope this could help someone else,

Cheers,

--

Andrea

Answers (0)