I am having very difficult time trying to schedule a package in SSIS through Management Studio. I am using SQL Server 2008 R2.
My package runs fine when executed directly from BIDS. However when I create the job and run it from Management Studio it throws various errors. When i put DontSaveSensitive the package does not run from BIDS but when I put as EmcryptSensitivedataWithKey it runs on BIDS but fails in Management Studio with error DTS:Password with error
0x8009000B Key not valid for use in specified state.
You may not be authorized to access this information. This error occurs when there is a cryptographic error.
I have changed the package setting to DontSaveSensitive and modified configuration file to include password in connection string.
My XML looks like this:
<?xml version="1.0"?><DTSConfiguration><DTSConfigurationHeading><DTSConfigurationFileInfo GeneratedBy="SEWA\120097" GeneratedFromPackageName="Payments2" GeneratedFromPackageID="{07F1FADD-D78D-4229-B71D-0E19692DE30C}" GeneratedDate="7/17/2016 8:26:14 AM"/></DTSConfigurationHeading><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>Data Source=CCBPROD;Password=RPTUSER;User ID=RPTUSER;Provider=MSDAORA.1;Persist Security Info=True;</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[Description]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[InitialCatalog]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[Name]" ValueType="String"><ConfiguredValue>CCBPROD.RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[Password]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[ProtectionLevel]" ValueType="Int32"><ConfiguredValue>1</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[RetainSameConnection]" ValueType="Boolean"><ConfiguredValue>0</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[ServerName]" ValueType="String"><ConfiguredValue>CCBPROD</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[UserName]" ValueType="String"><ConfiguredValue>RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>Data Source=CCBTEST;Password=RPTUSER;User ID=RPTUSER;Provider=MSDAORA.1;</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[Description]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[InitialCatalog]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[Name]" ValueType="String"><ConfiguredValue>CCBTEST.RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[Password]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[ProtectionLevel]" ValueType="Int32"><ConfiguredValue>1</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[RetainSameConnection]" ValueType="Boolean"><ConfiguredValue>0</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[ServerName]" ValueType="String"><ConfiguredValue>CCBTEST</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[UserName]" ValueType="String"><ConfiguredValue>RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Properties[PackagePassword]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Properties[ProtectionLevel]" ValueType="Int32"><ConfiguredValue>2</ConfiguredValue></Configuration></DTSConfiguration>
Please help!!
Related
I am trying to configure logback based log masking for Apache Storm topologies.
When I try to replace logback.xml file inside Apache Storm log4j2- directory and update worker.xml and cluster.xml file, Apache Storm nimbus and supervisors are unable to understand logback based keywords.
Error:
2022-10-02 16:31:51,671 Log4j2-TF-1-ConfiguratonFileWatcher-2 ERROR Unable to locate appender "A1" for logger config "root"
2022-10-02 16:32:51,681 Log4j2-TF-7-ConfiguratonFileWatcher-4 ERROR Error processing element appender ([configuration: null]): CLASS_NOT
Sample cluster.xml file:
<configuration monitorInterval="60" shutdownHook="disable">
<properties>
<property name="pattern">%msg%n</property>
</properties>
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/>
<import class="ch.qos.logback.core.FileAppender"/>
<FileAppender name="A1">
<file>logfilename.log</file>
<encoder>
<pattern>${pattern}</pattern>
</encoder>
</FileAppender>
<loggers>
<root level="info"> <!-- We log everything -->
<appender-ref ref="A1"/>
</root>
</loggers>
</configuration>
To my best knowledge, Apache Storm uses naturally log4j2, as also your logfile indicates. However, when I used log4j in Storm, I did not need to import any further classes. You also do not seem to use these logback-classes in the rest of your xml-file. So have you tried to simply remove those?
So, I realize that there are a lot of questions on here pertaining to this problem, but none seem to be the same as to what I'm dealing with. I had to delete my dataset out of visual studio and bring it back in. After doing so I got the error. I'm using mysql as a backend, so I'm using the dotconnect for mysql extension for visual studio. Everything was working fine until I did this step. Here is my app.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="RMSteel.My.MySettings.RMSteelConnectionString" connectionString="User Id=rmsteel;Password=password;Host=192.168.0.46;Database=RMSteel;Persist Security Info=True"
providerName="Devart.Data.MySql" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
Whenever I use my connection I use the name RMSteel.My.MySettings.RMSteelConnectionString, since this is auto-generated (I assume by dotconnect). I am fairly far in this project and would like to find a fix using this connection string, so I don't have to rewrite that much. Thanks for any help, and if you'd like me to post more code, I can.
I'm a newbie to EE and I'm working on an application on Weblogic 12c. Data Source tests fine in the Admin Console. When the EJB tries to access it, it throws this ClassNotFoundException. I've done three hours of research and I know the issue is that some jar is not in the server's classpath, but I can't figure out which one!!! I'm using the default EclipseLink persistence provider and using MySQL Driver. BOTH of these come packaged with Weblogic (according to Oracle documentation) so I shouldn't have to explicitly add them to the classpath. And besides, adding them didn't work. Any other ideas?
Here's the persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="YLE_PU" transaction-type="JTA">
<jta-data-source>YLEDataSource</jta-data-source>
<class>com.yle.studentmodule.entity.Address</class>
<class>com.yle.studentmodule.entity.Contact</class>
<class>com.yle.studentmodule.entity.Semester</class>
<class>com.yle.studentmodule.entity.Student</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="eclipselink.cache.type.default" value="NONE"/>
</properties>
</persistence-unit>
Quote from WebLogic Documentation:
"In addition to the Oracle Thin Driver, the mySQL 5.0.x (mysql-connector-java-commercial-5.0.x-bin.jar) JDBC driver is installed with WebLogic Server.
This driver is installed in the WL_HOME\server\lib folder (where WL_HOME is the folder where WebLogic Server is installed) with weblogic.jar. The manifest in weblogic.jar lists this file so that it is loaded when weblogic.jar is loaded (when the server starts). Therefore, you do not need to add this JDBC driver to your CLASSPATH."
Thanks!
In other case,
Check your jdk version and bit
I solved that change to 64bit jdk
There can be another situation, that more than one class file (jars) are available at the server, which creates ambiguity. This situation also generates the same error.
My suggestion is to keep only one jar (related to JDBC) at your server.
I resolved the same issue in weblogic 12c with Oracle as DBMS.
In my case I had the .jar file of the Oracle driver inside the jdk/jre/lib/ext folder and another one inside weblogic folder as well. Removing the driver from the JDK folder solved my problem.
i am not a sql server guy but i am working on a client's application and want to connect to the database through EF Code first
the Exception message that i have is
The underlying provider failed to open
The Exception details
Cannot open database [DatabaseName] requested by the login. the login failed
login failed for user 'IIS APPPOOL\ASP.NET v4.0"
My web config
<add name="TraininGoDB"
providerName="System.Data.SqlClient"
connectionString="Server=LOCALPCNAME\SQLEXPRESS;Database=[DATABASENAME];Integrated Security=True;"/>
The EF context and entities are defined in a separate project with the app config of the following
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">
<parameters>
<parameter value="Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
</configuration>
i am using SQL Server Express 2008
don't know the problem from the database configration or from the web config
The user under which the web application pool (associated to your web application) is running doesn't have permissions to access your database. You need to grant it permissions or run under another user who has permissions. So, to summarize: check under which user your application pool is running, then check that that user has access to your database.
If all of your Web.config files are correct, SQLSERVER has the appropriate permissions, etc., there's one more thing you can check. I once had this issue when a client had me configure the project so that Entity Framework would not automatically drop the databases (if, for example, the models changed), but I was still testing the project on localhost. I thus needed to create a new database, but I forgot to fix my context files. For example, my problem was:
public MasterContext(string nameOrConnectionString) : base(nameOrConnectionString)
{
Database.SetInitializer<MasterContext>(null);
}
when it should have been (for the purpose of testing):
public MasterContext(string nameOrConnectionString) : base(nameOrConnectionString)
{
Database.SetInitializer<MasterContext>(new DropCreateDatabaseIfModelChanges<MasterContext>());
}
Otherwise, I would receive the same error, that the underlying provider failed on open, with the inner exception being that the login failed for the user.
I am using the sample from castle # http://old.castleproject.org/container/facilities/trunk/remoting/containersconnected.html for "Scenario: Using the container on both endpoints and use the container components"
The only update I have made to this is one line in the config files from type="Castle.Facilities.Remoting.RemotingFacility, Castle.MicroKernel"
to
type="Castle.Facilities.Remoting.RemotingFacility, Castle.Windsor" as suggested by Mauricio in question Castle remoting facility not working
I also updated the references in both the client and server to use latest castle dlls. The server starts up successfully but the client does not. I get the following exception on the client:
Could not set up component 'remote.console.component'. Type 'System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' does not implement service 'Example.Shared.IRemoteConsole, Example.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Any suggests on what I am doing wrong?
The following is the client config file
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor"/>
</configSections>
<castle>
<facilities>
<facility id="remote.facility"
type="Castle.Facilities.Remoting.RemotingFacility, Castle.Windsor"
baseUri="tcp://localhost:2133"
isClient="true"
remoteKernelUri="tcp://localhost:2133/kernel.rem"
remotingConfigurationFile="RemotingTcpConfigClient.config">
</facility>
</facilities>
<components>
<component
id="remote.console.component"
service="Example.Shared.IRemoteConsole, Example.Shared"
type="System.Object, mscorlib"
remoteclient="component"/>
</components>
</castle>
</configuration>
Replace:
<component
id="remote.console.component"
service="Example.Shared.IRemoteConsole, Example.Shared"
type="System.Object, mscorlib"
remoteclient="component"/>
with:
<component
id="remote.console.component"
type="Example.Shared.IRemoteConsole, Example.Shared"
remoteclient="component"/>