I have tridion set up to publish all files except .css .js .sitemap to Database,
Please find below the config
<Item typeMapping="Page" itemExtension=".sitemap" cached="false" storageId="defaultFile"/>
<Item typeMapping="Page" itemExtension=".css" cached="false" storageId="defaultFile"/>
<Item typeMapping="Page" itemExtension=".js" cached="false" storageId="defaultFile"/>
<Item typeMapping="Page" cached="false" storageId="defaultDataFile"/>
<Item typeMapping="Binary" storageId="defaultFile" cached="false"/>
<Item typeMapping="Page" cached="false" storageId="defaultDataFile"/>
<Item typeMapping="Metadata" cached="false" storageId="defaultDataFile"/> `
While publishing it failse at Commiting Deployment with error
Phase:Deployment Prepare Commit Phase failed, Unable to prepare transaction: Unable to Store item inide current transaction, Unable to remove data entity, org.hibernate.exceptopn.SQLGrammerException
Could not exicute update query,`
The issue was with database connection. I used a database connection which has read only permission,
I updated the connection and it started working
Related
I've recently installed Qt, and I am trying to make a project, but I need to select a kit to continue making the project, however, the two kits that are shown are greyed out and I don't know how to select them.
Its a QtWidgets project saved in documents
Build System is qmake
Class Name is MainWindow
Base Class is QMainWindow
Header File is mainwindow.h
Source File is mainwindow.cpp
Form File is mainwindow.ui
What the screen looks like:
Do I need to install anything? Or have special configurations? Thanks
My workaround for this is to open a blank file, save it as filename.ui, and fill it with this:
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ClassName</class>
<widget class="QWidget" name="ClassName">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>553</width>
<height>520</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout"/>
</widget>
<resources/>
<connections/>
</ui>
Then I right click the file and select "open in QT Creator"
I'm using Alfresco Community v5.2.0 to store some files (pdf, jpg/png essentially).
I'm creating a web app to retrieve this files.
I'm trying to create a grid of files from a specific folder in my application.
But when i'm retrieving the list of a specific folders with their thumbnails, the resolution of the thumbnail is very low (100x75).
How to configure Alfresco to generate a larger thumbnail ?
I tried to override the settings in :
C:\alfresco-community\tomcat\webapps\alfresco\cmisfs\stylesheets\
thumbnails.xsl
But this didn't work..
I'm using Alfresco on my computer (windows), with REST API call.
Where can i configure this resolution ?
Thanks in advance,
Julien
Lyon, FR.
Ok I found a way to ovveride the thumbnail definition :
I created a file
thumbnail-service-context.xml
in
[AlfrescoRootFolder]\tomcat\shared\classes\alfresco\extension\
In this file I wrote :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- Slingshot Document Library image thumbnail options -->
<!-- Note that this will auto-register with parent="baseThumbnailDefinition" in the future -->
<bean id="thumbnailDefinitionDoclib" class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
<property name="name" value="doclib" />
<property name="mimetype" value="image/png"/>
<property name="transformationOptions">
<bean parent="defaultImageTransformationOptions">
<property name="resizeOptions">
<bean parent="defaultImageResizeOptions">
<property name="width" value="900"/>
<property name="height" value="900"/>
<property name="allowEnlargement" value="false" />
</bean>
</property>
</bean>
</property>
<property name="placeHolderResourcePath" value="alfresco/thumbnail/thumbnail_placeholder_doclib.png" />
<property name="mimeAwarePlaceHolderResourcePath" value="alfresco/thumbnail/thumbnail_placeholder_doclib{0}.png" />
<property name="runAs" value="System"/>
<property name="failureHandlingOptions" ref="standardFailureOptions"/>
</bean>
</beans>
And now I can retrieve a thumbnail by calling :
/alfresco/api/-default-/public/alfresco/versions/1/nodes/{idDocAlfresco}/renditions/doclib/content
I'm using Oracle BPEL 12c to develop a process.
I need to call a external service with basic authentication. I need to pass the credentials received on my exposed service endpoint to the external service.
When i call, i receive this:
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="summary">
<summary>
oracle.fabric.common.FabricException: oracle.fabric.common.FabricException: Error in getting XML input stream:XXXXXX?WSDL: Server Authentication Required: Error in getting XML input stream: XXXX?WSDL: Server Authentication Required
</summary>
</part>
-<part name="detail">
<detail>Server Authentication Required</detail>
</part>
</remoteFault>
I tried to define on the composite, also the oracle.webservices.auth.password and oracle.webservices.auth.username password for the external service.
Also the javax.xml.ws.security.auth.username and javax.xml.ws.security.auth.password properties without sucess.
Any sugestion?
Kind regards,
Ricardo
I suppose your composite snippet should look like this:
<reference name="Service1" ui:wsdlLocation="test1.wsdl">
<interface.wsdl interface="http://tempuri.org/#wsdl.interface(IService1)"/>
<binding.ws port="http://tempuri.org/#wsdl.endpoint(Service1/BasicHttpBinding_IService1)" location="test1.wsdl" soapVersion="1.1">
<property name="weblogic.wsee.wsat.transaction.flowOption" type="xs:string" many="false">WSDLDriven</property>
<property name="oracle.webservices.auth.username" type="xs:string" many="false">test</property>
<property name="oracle.webservices.auth.password" type="xs:string" many="false">password</property>
<property name="oracle.webservices.preemptiveBasicAuth" type="xs:string" many="false">true</property>
</binding.ws>
</reference>
And also good practice to use variables when defining user and password instead of explicitly username and password
<property name="oracle.webservices.auth.username" type="xs:string" many="false">{$username}</property>
<property name="oracle.webservices.auth.password" type="xs:string" many="false">{$password}</property>
and then override them in generated cfg_plan.xml while deploying composite application
<reference name="Service1">
<!--Add search and replace rules for the binding properties-->
<binding type="ws">
<attribute name="port">
<replace>{your_port}</replace>
</attribute>
<attribute name="location">
<replace>{your_location}</replace>
</attribute>
<property name="weblogic.wsee.wsat.transaction.flowOption">
<replace>WSDLDriven</replace>
</property>
<property name="oracle.webservices.auth.username">
<replace>test</replace>
</property>
<property name="oracle.webservices.auth.password">
<replace>password</replace>
</property>
<property name="oracle.webservices.preemptiveBasicAuth">
<replace>true</replace>
</property>
</binding>
</reference>
I am using ant to deploy an ear file to WAS. I am successfully able to generate the ear and then using the following to deploy to localhost
<target name="deploy" depends="buildEar">
<echo message="${toString:was.runtime}"/>
<taskdef name="wsInstallApp" classpath="${was_cp}" classname="com.ibm.websphere.ant.tasks.InstallApplication" />
<wsInstallApp wasHome="${WAS.home}" ear="${earFile}" failonerror="true" />
</target>
This is what was_cp looks like
<property name="was_home" value="C:/ibm/WebSphere855/AppServer">
</property>
<path id="was.runtime">
<fileset dir="${was_home}/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${was_home}/plugins">
<include name="**/*.jar" />
</fileset>
</path>
<property name="user.install.root" value="${was_home}/profiles/AppSrv01" />
<property name="was_cp" value="${toString:was.runtime}" />
<property name="java.endorsed.dirs" value="${toString:was.runtime}" />
I get the following error. Thanks for your help!
[wsInstallApp] Installing Application [K:\uoc-dev\bceEAR\build\ear\bce.ear]...
[wsadmin] WASX7209I: Connected to process "server1" on node zinfandelNode01 using SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\Users\IBM_AD~1\AppData\Local\Temp\wsant8484530159820548868jacl"; exception information: com.ibm.websphere.management.application.client.AppDeploymentException: com.ibm.websphere.management.application.client.AppDeploymentException: [Root exception is java.lang.NoClassDefFoundError: javax.annotation.security.RolesAllowed]
[wsadmin] java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: javax.annotation.security.RolesAllowed
I was able to get it working by using the ws_ant.bat file to run the build instead of using default ant on my machine.
I am trying to establish new SDL Tridion UI 2012 functionality on some test (default) pages. I am continuously retrieve "The preview for this page is not up to date" alert despite the fact that I click on "Update preview" several time. I was using virtual image, so anyone else is not possible to edit page except myself. No matters which component changed. I have taken a look into cd_core.log file on "session preview" web service side and find these nodes interesting:
INFO WritableODataClaimProcessor - No session wrapper is installed, not allowing modification operations
DEBUG HandleSessionContentUtil - There are no session wrappers into storage config file!
DEBUG HandleSessionContentUtil - There are no session wrappers into storage config file!
DEBUG WebContext - setCurrentClaimStore: com.tridion.siteedit.preview.PreviewClaimStore#dc60af, thread: Thread-59
DEBUG WritableODataClaimProcessor - Removing sessionId claim from ClaimStore!
DEBUG ClaimStore - remove: uri=taf:claim:contentdelivery:webservice:preview:sessionid
DEBUG WebContext - setCurrentClaimStore: null, thread: Thread-59
The most interesting part is that session wrappers were added to cd_storage_conf.xml on "session preview" web service side. Bellow is part of "session preview" cd_storage_conf.xml:
<Storages>
<Wrappers>
<Wrapper Name="SessionWrapper">
<Timeout>120000</Timeout>
<Storage Type="persistence" Id="sqlServerDb" 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="T2011" />
<Property Name="portNumber" Value="1433" />
<Property Name="databaseName" Value="Tridion_Session_Preview"/>
<Property Name="user" Value="TridionSessionPreview"/>
<Property Name="password" Value="tridion"/>
</DataSource>
</Storage>
</Wrapper>
</Wrappers>
<StorageBindings>
<Bundle src="preview_dao_bundle.xml"/>
</StorageBindings>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="staging" defaultFilesystem="false">
<Root Path="C:\inetpub\wwwroot\software" />
</Storage>
<Storage Type="persistence" Id="sqlServerDb" 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="T2011" />
<Property Name="portNumber" Value="1433" />
<Property Name="databaseName" Value="Tridion_Broker_Staging"/>
<Property Name="user" Value="TridionBrokerUser"/>
<Property Name="password" Value="tridion"/>
</DataSource>
</Storage>
</Storages>
</Global>
<ItemTypes defaultStorageId="sqlServerDb" cached="false">
<Item typeMapping="Page" cached="false" storageId="staging"/>
</ItemTypes>
I have check cd_storage_conf.xml validity state and everything is OK (try to open XML via IE and it is showed correctly).
When I republish the page (Finish Editing) everything is correct state after reload the page until the first change on any components is made. This unexpected state gave me such a strong pain and headache, furthermore create me a so nervous... :).
Here's what Update Preview does, make sure all the steps up to the actual page refresh work and are correctly configured and you should be good to do:
Render your template(s) in Preview Mode
Post the results to the Content Delivery Web Service
CD Web Service writes to Session Wrapper Database
Refresh the page
Ambient Framework filters (or HTTP Modules for .NET) check for a session token
DB is queried searching for content with the same session token
If content is found, it is merged with the content on the page.
Typical issues (in my experience so far) are around Ambient Framework Configuration - Either the modules are not installed/configured on your application, or the cd_ambient_conf.xml contains invalid configuration settings.
Might be worth tracing the logs from step 1 to figure out where it's failing - knowing where it fails is usually 80% of the solution.