Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello everyone,
I'm working on an experimental interface to improve Windchill learning. The main idea is to embedded a Windchill in a Mashup to be able to add some instructions over / in parallel of Windhcill and too quickly browse other information in the same interface.
The trouble is that when I use the Webframe Windchill and load it on runtime, I put my credential, I see a white page with "PTC" during 1-2 seconds and then the Webframe is like empty/transparent. I browse in the Community and read that it is not the first time that the url may not be loaded in Webframe. It seems to be a trouble with the source website which can't be loaded in an iframe html markup (or something like this).
So, considering this trouble and as we own Windchill software, does anybody would know how to display a Windchill window in a Mashup? Or any work around?
Thanks you,
Quentin - PTC Learning Consultant
Solved! Go to Solution.
Hello everyone,
A colleague helped me on this topic and I successfully displayed Windhcill in a Mashup !
Here after is the solution.
Try to add this to %WT_HOME%/codebase/WEB-INF/web.xml
<filter>
<description>Filter to monitor servlet requests as a whole; should always be first in filter list</description>
<filter-name>ServletRequestMonitor</filter-name>
<filter-class>wt.servlet.ServletRequestMonitorFilter</filter-class>
<!-- Initialization parameters for ServletRequestMonitor; must be writable JMX attributes of ServletRequestMonitorMBean -->
<!-- Note: these settings will normally be overwritten by MBeanLoader injection after initial MBeanLoader save -->
<init-param>
<param-name>MaxAverageActiveRequestsThreshold</param-name>
<param-value>45</param-value>
</init-param>
<init-param>
<param-name>AddXFrameOptionsResponseHeader</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>RequestTimeWarnThreshold</param-name>
<param-value>8.0</param-value>
</init-param>
</filter>
In Yellow is the text to add.
Quentin
If you have the client side developer window up, you can see some of the calls that are happening and possibly errors.
Most likely you are running into Cross Reference/Click Jack blocking.
I believe this is something you can disable at your own risk within Tomcat, not sure if Windchill has a setting for it.
Thanks you Pai.
I would say it's a first step. I'm not that much confident with the technical aspect and Tomcat configuration. I'll go deeper and keep y'all in touch.
I don't know if it may help but I noticed this in the developper tool of Chrome:
That's I believe is click jack prevention.
You can disable that Tomcat, I think it has to be done in the Windchill Tomcat server.
Hello everyone,
A colleague helped me on this topic and I successfully displayed Windhcill in a Mashup !
Here after is the solution.
Try to add this to %WT_HOME%/codebase/WEB-INF/web.xml
<filter>
<description>Filter to monitor servlet requests as a whole; should always be first in filter list</description>
<filter-name>ServletRequestMonitor</filter-name>
<filter-class>wt.servlet.ServletRequestMonitorFilter</filter-class>
<!-- Initialization parameters for ServletRequestMonitor; must be writable JMX attributes of ServletRequestMonitorMBean -->
<!-- Note: these settings will normally be overwritten by MBeanLoader injection after initial MBeanLoader save -->
<init-param>
<param-name>MaxAverageActiveRequestsThreshold</param-name>
<param-value>45</param-value>
</init-param>
<init-param>
<param-name>AddXFrameOptionsResponseHeader</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>RequestTimeWarnThreshold</param-name>
<param-value>8.0</param-value>
</init-param>
</filter>
In Yellow is the text to add.
Quentin