I'm trying to work on a existing ASP.NET project which use Oracle databases. I encountered some issues when it came to run the project. At the edmx level, Visual Studio displays an error message :
The specified store provider cannot be found in the configuration.
Here is the underlined part :
<edmx:StorageModels>
<Schema Namespace="Model1.Store" Alias="Self" Provider="Oracle.DataAccess.Client" ProviderManifestToken="10.2" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityContainer Name="Model1StoreContainer">
<EntitySet Name="PIVOT_GRID_LAYOUTS" EntityType="Model1.Store.PIVOT_GRID_LAYOUTS" store:Type="Tables" Schema="HR_DWH" />
</EntityContainer>
<EntityType Name="PIVOT_GRID_LAYOUTS">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="number" Nullable="false" />
<Property Name="NT_ACCOUNT" Type="varchar2" MaxLength="255" />
<Property Name="PIVOTGRID_NAME" Type="varchar2" MaxLength="255" />
<Property Name="LAYOUT_STRING" Type="varchar2" />
<Property Name="LAYOUT_NAME" Type="varchar2" MaxLength="255" />
<Property Name="LAYOUT_STRING_CLOB" Type="clob" />
</EntityType>
</Schema>
</edmx:StorageModels>
After research, I understood that I had to install the ODP.NET components in order to use Oracle databases in my Visual Studio application.
So I installed Oracle 11g R2 (x86) and then the ODAC 11.2.0.3. I thought it would be enough to make the things work but apparently it is not.
Any lead on that? I kinda followed lots of tutorials but can't figure out what I'm doing wrong.
Related
I have created a flex mobile as3 project that exports to air, to ipa and apk.
This project does not use any specific to mobile or air calls (camera, files. .)
my question is : how do I create a swf ?
Regards
Since your project doesn't use any AIR-specific APIs, you can use an Ant build to create a SWF from your mobile project. The following build file will do the trick if your project is self-contained as a single Flash Builder project.
<?xml version="1.0" ?>
<project name="Build" default="build">
<property name="FLEX_HOME" value="C:/Program Files/Adobe/Adobe Flash Builder 4.7/sdks/4.6.0" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<property name="PROJECT_NAME" value="MyMobileProject" />
<property name="PROJECT_BASE_DIR" value="C:/FlexProjects/${PROJECT_NAME}" />
<property name="PATH_TO_SRC_FOLDER" value="${PROJECT_BASE_DIR}/src" />
<property name="OUTPUT_DIR" value="${PROJECT_BASE_DIR}/bin" />
<target name="build">
<mxmlc file="${PATH_TO_SRC_FOLDER}/${PROJECT_NAME}.mxml"
output="${OUTPUT_DIR}/${PROJECT_NAME}.swf"
show-actionscript-warnings="false" show-binding-warnings="false"
locale="en_US" incremental="true">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${PATH_TO_SRC_FOLDER}" />
<external-library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc" />
</external-library-path>
<compiler.library-path dir="${PROJECT_BASE_DIR}/libs" append="true" includes="*"/>
</mxmlc>
</target>
</project>
I am trying to deploy EAR in my WAS 7.0 in Unix Server by means of ANT Scripts but couldn't get it working.It works fine in Windows environment.
A part of ws_ant.xml is as follows,
<property name="options" value="-appname CRMWeb -MapModulesToServers {{.* .* WebSphere:cell=Cell01,node=Node01_POR,server=Web_Server1}}" />
<property name="application" value="CRMWeb" />
<property name="conntype" value="SOAP" />
<property name="host" value="172.20.10.10" />
<property name="port" value="20062" />
<property name="profile_root" value="/opt/app/was7/wasprd02/AppServer" />
<property name="webserverName" value="Web_Server1" />
<taskdef name="wsStartApp" classname="com.ibm.websphere.ant.tasks.StartApplication"/>
<taskdef name="wsStopApp" classname="com.ibm.websphere.ant.tasks.StopApplication"/>
<taskdef name="wsUninstallApp" classname="com.ibm.websphere.ant.tasks.UninstallApplication"/>
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/>
<target name="uninstallApp">
<wsUninstallApp
application="${application}"
conntype="${conntype}"
host="${host}"
port="${port}"
user="${userId}"
password="${password}"
failonerror="false"
/>
</target>
When I try to install / uninstall the EAR in Unix with above script, there is no effect. Manual deployment from WebSphere console is working fine.
I have referred Using Ant to deploy EAR to remote websphere application server and tried to make some changes but still it is not working.
Please suggest.
Thanks
I am playing with writing integration tests for our project. This is the first time I am writing tests so please pardon me if this is a simple question.
I have different modules like core, site, admin etc.,
I want to keep our unit tests separate from our integration tests. So in the core of the project, I created a folder src/it/java and a package in it - com.test.integration. This package has the test that I am trying to run.
The test application context and required test properties files are in src/it/java directly. I added src/it/java to my build path. In my application context I have the following
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="url" value="jdbc:mysql://${mysql.host}/${mysql.db_blc}?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/>
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="username" value="${mysql.user}" />
<property name="password" value="${mysql.pass}" />
<property name="testWhileIdle" value="true"/>
<property name="testOnBorrow" value="true"/>
<property name="testOnReturn" value="false"/>
<property name="validationQuery" value="SELECT 1"/>
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate">
<constructor-arg ref="dataSource" />
</bean>
Now in my sample test
#RunWith(BlockJUnit4ClassRunner.class)
#ContextConfiguration("/applicationContext-test.xml")
public class SampleTest {
#Resource(name="jdbcTemplate")
private NamedParameterJdbcTemplate jdbcTemplate;
}
The jdbcTemplate bean is null and I can't seem to figure out why.
Any input is appreciated. We are using Spring 3.0.5 and JUnit4
Thanks
Mehul
try using SpringJunit4ClassRunner
I would suggest changing the context configuration to this
#ContextConfiguration("classpath:/applicationContext-test.xml")
I am installing user interface update for SDL Tridion 2011SP1.When I make below entry in the
cd_storage_conf.xml file
<Wrapper Name="SessionWrapper">
<Timeout>120000</Timeout>
<Storage Type="persistence" Id="db-session-staging" 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="XYZ" />
<Property Name="portNumber" Value="123" />
<Property Name="databaseName" Value="XYZ" />
<Property Name="user" Value="TridionBrokerUser" />
<Property Name="password" Value="xyz" />
</DataSource>
</Storage>
</Wrapper>
It is throwing below error.
NOTE: - Some time such error comes due to expiration of licence so I checked the licence file it is not expired anyway.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Java.Lang.Throwable: Could not initialize class
com.tridion.storage.StorageManagerFactory
Some Java classes or interfaces could not be found or loaded
The most typical reasons for this problem are:
you forgot to configure a classpath
a jarfile, zipfile, or directory is missing from your classpath
you have a typo in one of your classpath entries
a jarfile required by one of your classes is missing from your classpath
a jarfile on your classpath is out-of-date and does not contain some new classes
============================================================
com.tridion.web.jsp.tag.BinaryLinkHandler
com.tridion.preview.web.BinaryContentFilter
com.tridion.web.jsp.ResponseWrapper
com.tridion.web.jsp.tag.TaxonomyHandler
com.tridion.webservices.odata.ODataPublicationMappingFilter
com.tridion.storage.StorageManagerFactory
com.tridion.web.jsp.JSPProcessor [Ljavax.servlet.http.Cookie;
com.tridion.marketingsolution.profilesync.Handler
com.tridion.webservices.odata.ODataContextListener
com.tridion.web.jsp.tag.ComponentPresentationHandler
com.tridion.web.jsp.tag.IncrementKeyHandler
com.tridion.web.jsp.tag.TargetGroupHandler
com.tridion.preview.web.PageContentFilter
com.tridion.web.jsp.tag.ConditionHandler
com.tridion.ambientdata.web.AmbientDataServletFilter
com.tridion.web.jsp.tag.ComponentLinkHandler
com.tridion.web.jsp.JSPXSLTProcessor
com.tridion.web.jsp.tag.ConditionsHandler
com.tridion.web.jsp.tag.DynamicComponentLinkHandler
com.tridion.web.jsp.tag.PageLinkHandler javax.servlet.http.Cookie
com.tridion.webservices.security.authentication.OAuth2AccessTokenHandler
javax.servlet.ServletResponse com.tridion.web.jsp.tag.LinkBaseHandler
javax.servlet.http.HttpServletResponse javax.servlet.ServletRequest
javax.servlet.http.HttpServletRequest
Please help me in this regard as soon as possible.
As the message states, you're missing some jars somewhere. For a complete picture of what's needed for each CD role, you can read the CD JAR file reference on LiveContent.
Are you sure you have the correct JRE installed? If you are using a 64bit deployer website you will need to install the 64bit JRE as well...
Alternatively you might have accidentally left the AppPool of the deployer website on 32bits (which would essentially give you the same issue as you would now need a 32bit JRE).
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.