2012-06-29 26 views
6

Tôi có thiết lập giao diện người dùng mới và nhận thấy rằng khi nào tôi cập nhật trang, nó không làm mới với các thay đổi được cập nhật. Tôi không thấy page_ {sessionId/GUID} .aspx được tạo ra.Trang web xem trước giao diện người dùng mới không phản ánh các thay đổi trừ khi được cắt bỏ

Kiểm tra xem trước phiên DB và tôi thấy các thay đổi trong bảng PAGE_CONTENT có nội dung mới được hiển thị, vì vậy có vẻ như phiên xem trước đang hoạt động tốt nhưng trang Xem trước không thể nhận được thay đổi và làm mới giao diện người dùng.

Tôi đã kiểm tra tất cả các trình xử lý và ánh xạ xem trước cho .aspx và đảm bảo chúng đúng trong web.config. Bất kỳ suy nghĩ nào về lý do trang web xem trước không hiển thị các thay đổi?

Tôi có cài đặt DB xem trước phiên trong cd_storage_conf.xml.

<StorageBindings> 
    <Bundle src="preview_dao_bundle.xml"/> 
</StorageBindings> 
<Wrappers> 
    <Wrapper Name="SessionWrapper"> 
    <Timeout>120000</Timeout> 
    <Storage Type="persistence" Id="db-session-webservice" dialect="MSSQL" 
      Class="com.tridion.storage.persistence.JPADAOFactory"> 
     <Pool Type="jdbc" Size="5" MonitorInterval="60" 
      IdleTimeout="120" CheckoutTimeout="120" /> 
     <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource"> 
     <Property Name="serverName" Value="localhost" /> 
     <Property Name="portNumber" Value="1433" /> 
     <Property Name="databaseName" Value="Tridion_Broker_SessionPreview" /> 
     <Property Name="user" Value="usr" /> 
     <Property Name="password" Value="pwd" /> 
     </DataSource> 
    </Storage> 
    </Wrapper> 
</Wrappers> 

web.config (handler):

<add verb="GET" path="*.htm" type="Tridion.ContentDelivery.Preview.Web.StaticFileHandler" /> 
<add verb="GET" path="*.jpg" type="Tridion.ContentDelivery.Preview.Web.StaticFileHandler" /> 
<add verb="GET" path="*.png" type="Tridion.ContentDelivery.Preview.Web.StaticFileHandler" /> 
<add verb="GET" path="*.html" type="Tridion.ContentDelivery.Preview.Web.StaticFileHandler" /> 
<add name="Tridion.ContentDelivery.Preview.Web.PreviewContentModule" type="Tridion.ContentDelivery.Preview.Web.PreviewContentModule" /> 

Log (timestamp và DEBUG tiền tố bị loại bỏ):

ClaimStore - put: uri=taf:session:id, value=tridion_db59279b-7d37-4b2e-ad98-eaaa6af7038e 
ClaimStore - put: uri=taf:session:id, value=tridion_db59279b-7d37-4b2e-ad98-eaaa6af7038e 
ClaimStore - put: uri=taf:tracking:id, value=tridion_d1fa1017-a28d-4f48-a790-b74f78c69314 
ClaimStore - put: uri=taf:tracking:id, value=tridion_d1fa1017-a28d-4f48-a790-b74f78c69314 
SearchClaimProcessor - No match found for referrer string http://uidemo.practice.com/en/Product/musk.aspx 
SearchClaimProcessor - No match found for referrer string http://uidemo.practice.com/en/Product/musk.aspx 
ClaimStore - put: uri=taf:claim:ambientdata:footprintcartridge:devicetype, value=Desktop 
ClaimStore - put: uri=taf:claim:ambientdata:footprintcartridge:devicetype, value=Desktop 
ClaimStore - put: uri=taf:claim:ambientdata:footprintcartridge:mobiledevice, value=NotMobile 
ClaimStore - put: uri=taf:claim:ambientdata:footprintcartridge:acceptlanguage, value=en-US 
ClaimStore - put: uri=taf:claim:ambientdata:footprintcartridge:mobiledevice, value=NotMobile 
ClaimStore - put: uri=taf:claim:ambientdata:footprintcartridge:acceptlanguage, value=en-US 
PageHandler - The session wrappers are correctly installed. 

Bất kỳ suy nghĩ/gợi ý về những gì có thể đi sai ... ? (xin lỗi vì bài đăng dài)

Trả lời

4

Sau khi "Trình bao bọc phiên được cài đặt chính xác". tin nhắn, một khi tôi thực hiện một thay đổi, tôi nhận được rất nhiều phản hồi về nhật ký của tôi (trong gỡ lỗi). Đây là phiên bản ngắn ...

DEBUG PageHandler - The session wrappers are correctly installed. 
DEBUG SessionManagerImpl - Retrieved the session on the current execution thread: PreviewSession [sessionId=db5c1e84-649f-4635-bbdd-fb6683e98b07, expirationDate=2012-06-29 12:31:24.65]. 
DEBUG PageHandler - The session db5c1e84-649f-4635-bbdd-fb6683e98b07 was found loaded! 
DEBUG DynamicMetaRetriever - Searching for pageMeta for url='http://localhost:81/'. 
DEBUG MetaResolverFactory - Fetching meta resolver for PAGE_META meta data type. 
DEBUG MetaResolverFactory - Fetching meta resolver for PAGE_META meta data type. 
DEBUG MappingsResolverImpl - Getting publication mapping for http://localhost:81/ 
DEBUG MappingsStrategyContext - Resolving url using strategy com.tridion.dynamiccontent.publication.mappingsstrategy.impl.StaticMappingsStrategy 
DEBUG StaticMappingsStrategy - Resolving: http://localhost:81/ 
DEBUG ProtocolOptionMatcher - Mapped Protocol match with the url. Protocol is [http]. 
DEBUG ProtocolOptionMatcher - The calculated weight is [1]. 
DEBUG DomainOptionMatcher - The Domain extracted from the url is: [localhost] 
DEBUG DomainOptionMatcher - The mapped Domain is: [localhost] 
DEBUG DomainOptionMatcher - Mapped Domain match with the url. Mapped Domain is [localhost] and extracted Domain is [localhost]. 
DEBUG DomainOptionMatcher - The calculated weight is [10000]. 
DEBUG PortOptionMatcher - The Port extracted from the url is: [:81] 
DEBUG PortOptionMatcher - The mapped Port is: [81] 

[...]

DEBUG JPAPreviewSessionDAO - Retrieving PreviewSession by sessionId: db5c1e84-649f-4635-bbdd-fb6683e98b07 

[...]

SessionManagerImpl - Retrieved the session on the current execution thread: PreviewSession [sessionId=db5c1e84-649f-4635-bbdd-fb6683e98b07, expirationDate=Fri Jun 29 12:31:25 EDT 2012]. 

Và sau đó nó tải với các bản cập nhật chính xác.

Tôi không thấy bất kỳ điều gì sai với cấu hình bạn đã đăng, vì vậy đây là cấu hình của tôi cho cd_ambient_conf.xml;

<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="6.1" xsi:noNamespaceSchemaLocation="schemas/cd_ambient_conf.xsd"> 
    <Cartridges> 
    <Cartridge File="cd_webservice_preview_cartridge.xml"/> 
    <Cartridge File="footprint_cartridge_conf.xml"/> 
    </Cartridges> 
    <ClaimStoreProvider>com.tridion.siteedit.preview.PreviewClaimStoreProvider</ClaimStoreProvider> 
</Configuration> 

và cd_dynamic_conf:

<?xml version="1.0" encoding="UTF-8"?> 
<Configuration Version="6.1" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xsi:noNamespaceSchemaLocation="schemas/cd_dynamic_conf.xsd"> 
    <URLMappings> 
     <StaticMappings> 
      <Publications> 
       <Publication Id="5"> 
        <Host Domain="localhost" Port="81" Protocol="http" Path=""/> 
       </Publication> 
      </Publications> 
     </StaticMappings> 
     <StorageMapping IdentifyPublicationByProperty="publicationUrl"/> 
    </URLMappings> 
    <TCDLEngine> 
     <Renderer Class="com.tridion.tcdl.TCDLRenderer"> 
      <Properties> 
       <Property Name="prop1" Value="value1"/> 
       <Property Name="prop2" Value="value2"/> 
      </Properties> 
     </Renderer> 
    </TCDLEngine> 
</Configuration> 

Hy vọng điều này giúp.

N

+0

Cảm ơn Nuno. Tôi đang kiểm tra lại cấu hình và các mục nhập nhật ký. –

+0

Tôi nghĩ rằng tôi đã tìm ra vấn đề, vẫn chưa chắc chắn về giải pháp nào. Tôi có trang web trong 2 ngôn ngữ một với/en và một với/fr theo cùng một thư mục IIS. Đối với một số lý do, giao diện người dùng không thể hiểu hoặc không hoạt động đúng với thư mục ảo/vi và/fr. Tôi thậm chí còn thêm , nhưng không có may mắn. Tôi đã thử cấu hình tương tự mà không có thư mục ảo và giao diện người dùng làm việc tốt .. –

+0

Thú vị. Điều đó sẽ làm việc - bạn có thể thử với cùng một cấu hình (với thiết lập đường dẫn) trên cd_link_conf không? –

0

Chỉnh sửa tệp này cd_ambient_conf.xml; Bỏ ghi chú dòng follwoing

<Cartridge File="footprint_cartridge_conf.xml"/> 

và sau đó cố gắng chỉnh sửa, bạn sẽ có thể xem trước những thay đổi

Cảm ơn & liên quan Abhijit Angre

Các vấn đề liên quan