cancel
Showing results for 
Search instead for 
Did you mean: 

problem with EP themes in a visual Composer Application

Former Member
0 Kudos

Hello

I am working with an SAP EP 7.0 and I have done an application with visual Composer.

Runtime is flash and "Enable styling of flex control in portal themes" is set on

When I log to portal with fully qualified domain (hostname.domain) the application does not apply theme if I use only hostname then themes is displayed.

Does anyone have any suggestion?

thanks in advance

regards

Matteo

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member203343
Contributor
0 Kudos

The server URL is taken from the request object (hence - from the URL that was used to call the iView in the browser). Unfortunately, there is no way to configure it in a conf. file. (Although it's a good idea).

I don't know what you did when you say "I also added an entry for the adress over Reverse Proxy, but no luck... ". I think that you should add an entry in the hosts file that resolves the FQDN of the reverse proxy server to the internal server IP address (it's worth the test)

Let me know if it helps,

Natty

alexander_gtz
Participant
0 Kudos

Hi Natty,

that was excactly wht i´ve done.

I added an entry "portal.intersport.de" which redirects to the internal IP of the portal server "10.120.1.22".

But i think the problem is because of the rewrite rule the reverse proxy server uses.

In our case the call "https://portal.intersport.de" is redirected internally to "http://prescott.intersport.de:50000" by the reverse proxy so in our main url there is no port definition, it comes with the rewrite rule.

If you fetch the adress from the request object you will try to call https://portal.intersport.de/irj.

A host entry has no port definition, so i think your call really is https://10.120.1.22:443(because of the hosts entry)/irj....... and thats no valid portal URL, because of the port.

Am I wrong??

Greetings

Alex

P.S: by the way. is there a log where i cann see which request fails?

Edited by: Alexander Götz on May 21, 2008 3:10 PM

former_member203343
Contributor
0 Kudos

Hey Alex,

In this case I suggest you take a look at [this|http://help.sap.com/saphelp_nw04/helpdata/en/b8/437d46d4451e4c9ab756e272a1581d/frameset.htm] link. When you work in this mode (reverse proxy in front of the portal server) you should configure these settings and then the portal server should "see" the right parameters.

It's a little bit confusing but it worth a try.

Good luck,

Natty

alexander_gtz
Participant
0 Kudos

Hi Natty,

thanks but we use another option to tell the J2EE the correct host and port of the reverse proxy.

It´s the recommendation from note 812901 which is an alternative to the Proxy Mappings function and it works very well in our environment/applications.

So in a request the correct parameters are set.

I already tried the proxy mapping function but still no styles .

So I think i have to change the hosts entry to the IP of the Reverse Proxy so that the call of the portal server to get the style goes the "normal" way with rewrite rule etc.

The tricky thing is that my portal server has no direct access to the internet (external IP of the reverse proxy) so the call will crash either

I think i have to wait for the new configurable functionality: "fix Portal Server URL for calling VC Stylesheet" ) (only a joke)

Greetings

Alex

alexander_gtz
Participant
0 Kudos

Hi Natty,

I only wanted to provide you with final information for this issue.

I meanwhile managed it that the right styles are taken.

In an complex environment with Reverse Proxy and https you have to do the following:

- Create an hosts entry on the portal server with the ip which is behind the adress which is called over the reverse proxy (in our case portal.intersport.de --> 193.28.96......), so you have to take the external IP which is also called by the clients. If theres already a DNS entry with the right IP you don´t have to do that, important is what the ping from server to reverse proxy gets back

- allow the connect in your firewalls from Portal Server to Reverse Proxy : Port (in our case 193.28.96...:443), so that a telnet gets through on this port.

- restart J2EE because it seems to cache the "wrong" style

Now everything is fine

Greetings from Germany

Alex

Former Member
0 Kudos

Hi all

thanks for your answers

the problem is still open but we found out that on production landscape it works fine (the problem is only on dev environment)

May be it's due to istallation

Matteo

alexander_gtz
Participant
0 Kudos

Hi Natty,

with IP it works also. But both calls (IP and direct host) do not work with https call.

I have a Linux system so I can´t do the test with direct call on the server.

But I will now modify the hosts file and will append an entry with FQDN. At the moment there is already an entry with only the host. Perhaps thats the reason why one call is ok the other not.

I will keep you up to date, after my test.

Thanks

Alex

alexander_gtz
Participant
0 Kudos

Hi Natty,

many thanks for your explanation, that the server starts the request. That helped really.

As you suggested the server really didn´t know his own FQDN only the normal hostname.

I added the entry <host.domain> in my hosts file on the server and the styles work now!

But unfortunately my productive environment works with https and over a Reverse Proxy.

I also added an entry for the adress over Reverse Proxy, but no luck...

Also the direct call to the server with https (with https port) is not working (perhaps the problem is that the https certificate on J2EE-Engine is not officially signed).

Is there a way to set a fix adress the server should always use to call the styles for VC (Configuration file, J2EE engine or anywhere else)?

Or is the request generally generated with the adress the VC application is called with over the browser?

If yes that would be an suggestion for further releases, because in an complex environment you can run into problems that way and a server-side call <http-host>:<http-port> would always work whatever adress is called in the browser.

Is there a maybe a way?

Thanks

Greetings

Alex

P.S: Matteo if the hosts entry works for you could you please assign points to Natty? I can´t give him any, because its not my thread...or is there a way??

Former Member
0 Kudos

Sorry I used a wrong user.

Matteo

Edited by: Marco Giorgio on May 21, 2008 10:10 AM

alexander_gtz
Participant
0 Kudos

Hi Matteo,

did you solve your problem? I have exactly the same issue (im working on 7.0 SPS15).

The customized theme only works if i call the portal like http://<host>:<http-port>;

Fully qualified domains and even https://<host>:<https-port>; are not working and the standard theme is used instead.

I deployed the model (with "Enable styling of flex control in portal themes" checked) and saved my theme many times but it does not work.

Did you find the error?

Many thanks

Regards

Alex

alexander_gtz
Participant
0 Kudos

Hi again,

no one having the same issue??? That´s really strange and i have no idea what is the problem....

Perhaps anything with "URL Generator", that the corresponding CSS is not found???

Many thanks for advice

Regards

Alex

former_member203343
Contributor
0 Kudos

Hi Alex,

Actually, it's not a CSS file that's not being fetched. What happens when you check this option, is that a Java code is being executed in the JSP iView that is created by VC and it fetches the styling data from the theme repository. I guess that something is going wrong there. Please try to do the following:

1. Run the iView.

2. Right click on the area that's not the Flash application (so you'll get the popup menu).

3. Choose "view source"

4. check that you have inside the html code something with .swf (this means that you see the right source code).

5. copy and paste everything to this message. I'd like to see what's going on there.

Thanks,

Natty

alexander_gtz
Participant
0 Kudos

Hi Natty,

thanks for your answer.

The source code of both calls is perhaps a little bit too much in the forum, so I created a zip file here [Source Code|https://portal.intersport.de/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fINTERSPORT!2fContent!2fAdministratoren!2fSDN!2fVC_source_code]

Which file contains which source code is self-explanatory.

Many thanks!

Greetings from Germany

Alex

former_member203343
Contributor
0 Kudos

Hello Alex,

Thanks for the files. It looks like code is running but the actual fetching of the style parameters is not being done.

What's being done here, is that the java code generates a reuqest (on the server side - not from the browser) for getting the styles parameters. For some reason, the request is never answered and therefore you don't see your theme in the VC application.

I suspect that the portal server itself does not "know" the FQDN of itself (I wonder if it's possible at all - but I guess everything is possible, or that you do something with the FQDN on the DNS server.

Can you try to access the portal using ip address (I know it's not recommended - just for the test) and see if it works or not? If it does work, check that you can access the portal (with FQDN) using a browser that's installed on the portal server itself (if it's a windows machine). If you can't, it means that you need to change something in your network settings (I'm not an expert in this area - check with your sys admin)

Best regards and greetings from Israel,

Natty

Former Member
0 Kudos

Hi,

After selecting the Enabling of Themes.

Just deploy and run the model from VC and then Check Priview and Runtime link.

Now you will get with out any Problem.

Which SP u are working?

Regards,

Govindu