MS Access as Datasource

Hi,
For my reporting requirement i have to fetch the data from non-r/3 source i.e. MS Access.
I am not much aware how to achieve this, 1 way that i know is using UD Connect.
Can anyone please guide me how to create connectivity between two systems and access the data.
Please dont post me the links, i have already looked into that but thats very confusing for me, can someone please provide a step by step solution.
I'll be very thankfull if someone can do the same.

hai dipika,
check out the following pdf document step by step for connecting j2ee data base
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff
db connect pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
hope this help you
regards
harikrishna N

Similar Messages

  • HELP : How to access a datasource rowset in the AM class ?

    Hi,
    i have an AM "TestAM" which contains the viewobject "ViewTest".
    in the class "TestAMImpl.java" i added a method called "verify()".
    in my JSP i have initialised the AM and a datasource based on the VO "ViewTest" :
    <jbo:ApplicationModule id="am" configname="TestAM.TestAMLocal" releasemode="Stateful" />
    <jbo:DataSource id="ds" appid="am" viewobject="ViewTest" />
    <%
    TestAM am = (TestAM) am.useApplicationModule();
    String Message = am.verify();
    %>
    My question is how to access to the rowset of the datasource "ds" in the code of the method
    "verify()" ?
    public class TestAMImpl extends ApplicationModuleImpl implements TestAM {
    public String verify()
    How to access the rowset initialised in the JSP???????????
    Thanks for your help

    This is correct. Think of the AM as having a hashtable of instances of view objects that you can lookup by instance name.
    The <jbo:DataSource> tag lets you lookup an instance by name in the AM and get a reference to it to use in the JSP page. Within your AMImpl class, you can either:
    [list]
    [*]Call findViewObject("YourViewInstanceName"), or
    [*]Just call the generated getYourViewInstanceName() method which is ok to call inside the Impl class to get hold of the same VO.
    [list]

  • Accessing a DataSource with a userid, password.

    I am getting an SQL Exception with trying to create a database connection using a datasource with userid and password, I can log in to the database manually with the credentials but when I try to access via the datasource this is the error returned.
    java.sql.SQLException: java.sql.SQLException: User: doug, failed to be authenticated.
    <code>
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    // start getConnection
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    * Creates a new connection to the database
    * @return the connection object
    public Connection getConnection() throws Exception{
    Context context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("JDBC-GSFP_ResourceTracker");
    return(dataSource.getConnection("doug","root"));
    } // end getConnection
    </code>
    Any Ideas,

    Hi
    When you created DataSource in Weblogic Admin Console, at one point, you will give all the db details like DB Host, port, sid and username/password. You can TEST the connection also right there. If it says success, thats it.
    Now, on the java side, you do Initial context and do JNDI Lookup for that DataSource and directly get the DataSource. There is no need to pass again username/password from Java Side. Just use dataSource.getConnection() without any arguments.
    public Connection getConnection() throws Exception{
    Context context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("JDBC-GSFP_ResourceTracker");
    return(dataSource.getConnection());
    } // end getConnection
    Thanks
    Ravi Jegga

  • How to access the datasource window in SSRS for sql server 2008 R2 for writing my query without having to go through the wizard?

    I have used SSRS a lot years ago with Sql Server 2000 and Sql Server 2005. I have written external assemblies, ... But now I have to do this with Sql Server 2008 (R2 -- which I realize I am way behind the times already but ...)  in sql server 2000 and
    2005 there was a tab for datasource to the left of the tab for design which was to the left of the preview tab. How do I get to the datasource window in sql server 2008 (r2) ?
    I see that datasource explorer.  But where can I get to the datasource window to edit my queries and so forth for sql server 2008 (R2)?
    Thanks
    Rich P

    I think I found the answer to my question --- just right-click on the the Data Sources or Datasets for editing connections and dataset queries.  I'm guessing it gets even fancier with Sql Svr 2012 - 2014.    Man, that's the one thing
    about coding platforms -- you let it go for a few years and come back, and everything has changed (well, a lot of things).  Now I need to figure out how to add an external assembly to SSRS 2008 (R2).
    Rich P

  • Problem accessing J2EE DataSource with BC4J

    I'm trying to create MySQL database connection with BC4J via a J2EE DataSource. But without success.
    The errors I receive:
    Launching OC4j...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    2003-03-18 09:40:36 ApplicationModuleProvider - unspecified properties:
    password drivertype user sid connectionstring host encryptiontype port
    ApplicationModuleProvidernull
    java.lang.NullPointerException
    at oracle.cle.persistence.ConnectionProvider.getConnectionString(Connect
    ionProvider.java:606)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.createModule(A
    pplicationModuleProvider.java:331)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.getConnection(
    ApplicationModuleProvider.java:200)
    at oracle.cle.persistence.ConnectionProvider.getConnection(ConnectionPro
    vider.java:669)
    at oracle.cle.persistence.ConnectionManager.getConnection(ConnectionMana
    ger.java:607)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:168)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:92)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getC
    onnection(DataSourceHandlerImpl.java:331)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getA
    pplicationModule(DataSourceHandlerImpl.java:874)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getD
    ataSourceSet(DataSourceHandlerImpl.java:462)
    at oracle.jheadstart.process.GetDataSourceSet.retrieveSimple(GetDataSour
    ceSet.java:538)
    at oracle.jheadstart.process.GetDataSourceSet.persist(GetDataSourceSet.j
    ava:502)
    at oracle.jheadstart.process.PersistingDataSource.start(PersistingDataSo
    urce.java:251)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Process.start(Process.java:97)
    at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
    at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
    at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Service.start(Service.java:389)
    at oracle.clex.process.controller.HttpServletController.doPost(HttpServl
    etController.java:439)
    at oracle.jheadstart.process.controller.JhsHttpServletController.doPost(
    JhsHttpServletController.java:70)
    at oracle.clex.process.controller.HttpServletController.doGet(HttpServle
    tController.java:849)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:797)
    at java.lang.Thread.run(Unknown Source)
    ApplicationModuleProvider: ApplicationModuleProvidernull
    GetDataSourceSet Exception: A Connection could not be made for class: oracle.emp
    depdemo.resource.Department and sessionId: e3c568a09dec48d7b5a6cb86d041d22b orig
    inal message is: ApplicationModuleProvider: ApplicationModuleProvidernull
    See also thread MySQL at the JHeadstart forum.
    data-sources.xml (oc4j\j2ee\home\config):
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@172.16.2.240:1521:dev2"
              inactivity-timeout="30"
         />     
    cle-providers.xml:
    <cle-providers>
    <provider name="EmpDepServiceProvider" class="oracle.clex.persistence.bc4j.ApplicationModuleProvider">
    <property name="persistencebase" value="oracle.empdepdemo.persistence.bc4j"/>
    <property name="modulename" value="oracle.empdepdemo.persistence.bc4j.Bc4jModule"/>
    <property name="failover" value=""/>
    <property name="scope" value="request"/>
    <property name="managestate" value="false"/>
    <property name="configuration" value="Bc4jModuleLocal"/>
    </provider>
    </cle-providers>
    bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="Bc4jModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <DBconnection>jdbc:oracle:thin:@localhost:1521:orcl</DBconnection>
    <JDBCName>ScottTiger</JDBCName>
    <jbo.project>empdep</jbo.project>
    <AppModuleJndiName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</AppModuleJndiName>
    <ApplicationName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="ScottTiger">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="localhost"/>
    <ENTRY name="user" value="Scott"/>
    <ENTRY name="ConnectionName" value="ScottTiger"/>
    <ENTRY name="SID" value="orcl"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    </ConnectionDefinition>
    </BC4JConfig>

    Thank you Dhiraj,
    On my Oracle database it is working. But on MySQL I still have the same problem.
    I'm still ivestigating it.
    Thanks anyway.
    Marcel

  • POJO runtime datasource to report designed using CRv10 Access DAO datasourc

    I need to pass POJO runtime data source to a report which was designed using Crystal Report Designer v 10 using MS Access database as data source ie (DAO data source connection). I'm using CR for Java "import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;"
    report = new ReportClientDocument();
    report.setReportAppServer(ReportClientDocument.inprocConnectionString);
    report.open(reportName, OpenReportOptions._openAsReadOnly);
    // Set run time data source to the report
    report.getDatabaseController().setDataSource(arraulist1,Address.class, tableAlias, tableAlias);
    report.getPrintOutputController().printReport(printOptions);
    where tableAlias is a name of a table. When I call printoutput controller, it throws me, "Error finding JNDI name error.
    Caused by: com.crystaldecisions.reports.common.JndiNotFoundException: Error finding JNDI name (D:\P4U\P4U_Stuff\P4UBackup\DatabaseWrk\CSS.mdb)
         at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:1856)
         at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1800)
         at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
         at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2979)
         at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
         at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
         at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:984)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.byte(SourceFile:218)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1909)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
         ... 19 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Error finding JNDI name (D:\P4U\P4U_Stuff\P4UBackup\DatabaseWrk\CSS.mdb)
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
         at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
         at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
         ... 29 more
    Please guide me how can I approach this issue. Thanks.

    Hi Dhamayanthi,
    I am receiving the same error when I run my report created using ODBC in Crystal Report viewer. Can you please suggest me how to resolve it?
    Regards,
    Murtaza Ghodawala,
    [email protected]
    Mobile: +96597180549

  • Access to Weblogic 7.0 SP1 datasource throws Oracle Exception

    Hi,
    I am trying to access a DataSource & Connection Pool set up in a Weblogic 7.0
    SP1 instance, from a client app running in a different JVM than the app server
    itself. The code I used is given below,
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    ctx = new InitialContext(ht);
    if (ctx != null) ds = (DataSource) ctx.lookup("sample.SQLServer2KDS");
    Connection conn = ds.getConnection("system", "password");
    The connection pool points to a SQL Server 2000 database. But the getConnection
    throws an Oracle exception, given below. We don't have any reference to oracle
    drivers anywhere and we don't have any installations of Oracle. When I put the
    Oracle JDBC driver in the classpath of my client application, this problem went
    away.
    Does anyone else encounter this ? Does anyone know if this is fixed by BEA ?
    Thanks,
    -Arun
    weblogic.rjvm.PeerGoneException: ; nested exception is:
         weblogic.utils.NestedException: oracle/sql/BfileDBAccess - with nested exception:
    [java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess]
         at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
         at weblogic.jdbc.common.internal.RmiDataSource_WLStub.getConnection(Unknown Source)
         at sample.DBClient.getConnection(DBClient.java:37)
         at sample.DBClient.main(DBClient.java:57)
    Caused by: weblogic.utils.NestedException: oracle/sql/BfileDBAccess - with nested
    exception:
    [java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess]
         at weblogic.rjvm.RJVMImpl.gotExceptionReceiving(RJVMImpl.java:592)
         at weblogic.rjvm.ConnectionManager.gotExceptionReceiving(ConnectionManager.java:896)
         at weblogic.rjvm.t3.T3JVMConnection.hasException(T3JVMConnection.java:632)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:399)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested
    exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
         weblogic.utils.NestedException: oracle/sql/BfileDBAccess - with nested exception:
    [java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess]]
         at weblogic.jdbc.common.internal.RmiDataSource_WLStub.getConnection(Unknown Source)
         at sample.DBClient.getConnection(DBClient.java:37)
         at sample.DBClient.main(DBClient.java:57)

    You need to have classes12.zip in your CLASSPATH, even though you are not using Oracle
    as your database.
    This problem will be fixed in the WLS release coming out in spring, 2003.
    "Arun Panicker" <[email protected]> wrote in message news:[email protected]...
    >
    Hi,
    I am trying to access a DataSource & Connection Pool set up in a Weblogic 7.0
    SP1 instance, from a client app running in a different JVM than the app server
    itself. The code I used is given below,
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    ctx = new InitialContext(ht);
    if (ctx != null) ds = (DataSource) ctx.lookup("sample.SQLServer2KDS");
    Connection conn = ds.getConnection("system", "password");
    The connection pool points to a SQL Server 2000 database. But the getConnection
    throws an Oracle exception, given below. We don't have any reference to oracle
    drivers anywhere and we don't have any installations of Oracle. When I put the
    Oracle JDBC driver in the classpath of my client application, this problem went
    away.
    Does anyone else encounter this ? Does anyone know if this is fixed by BEA ?
    Thanks,
    -Arun
    weblogic.rjvm.PeerGoneException: ; nested exception is:
    weblogic.utils.NestedException: oracle/sql/BfileDBAccess - with nested exception:
    [java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess]
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
    at weblogic.jdbc.common.internal.RmiDataSource_WLStub.getConnection(Unknown Source)
    at sample.DBClient.getConnection(DBClient.java:37)
    at sample.DBClient.main(DBClient.java:57)
    Caused by: weblogic.utils.NestedException: oracle/sql/BfileDBAccess - with nested
    exception:
    [java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess]
    at weblogic.rjvm.RJVMImpl.gotExceptionReceiving(RJVMImpl.java:592)
    at weblogic.rjvm.ConnectionManager.gotExceptionReceiving(ConnectionManager.java:896)
    at weblogic.rjvm.t3.T3JVMConnection.hasException(T3JVMConnection.java:632)
    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:399)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested
    exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
    weblogic.utils.NestedException: oracle/sql/BfileDBAccess - with nested exception:
    [java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess]]
    at weblogic.jdbc.common.internal.RmiDataSource_WLStub.getConnection(Unknown Source)
    at sample.DBClient.getConnection(DBClient.java:37)
    at sample.DBClient.main(DBClient.java:57)

  • Exceptions arsing while accessing DataSource   from a stand alone java clie

    Dear all responders,
    can any one help in resolving my problem??the problem description is as follows:
    i am using sun one application server 7.0 to deploy a J2EE Apllication
    so i have created a data source using the admin page with the name
    "nodbsession".now i want to access this datasource using a stand alone java client and want to establish a connection to database.i am using the following code snippet to do so
    **code is as follows**
    Hashtable env=new Hashtable();
                   env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
                   env.put(Context.PROVIDER_URL, "iiop://localhost:3700");
                   System.out.println("creating context");
                   Context ctx =new InitialContext(env);
                                  System.out.println("created successfull");
                   DataSource ds =(DataSource)ctx.lookup("nodbsession");
    /* by using like this also it is not working
    DataSource ds =(DataSource)ctx.lookup("java:comp/env/jdbc/nodbsession");
    i am able to obtain the context succussfully but the exception is thrown for the data source look up
    the following exception is thrown
    javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
    at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at Test.<init>(Test.java:27)
    at Test.main(Test.java:47)
    please help me in resolving the above problem
    advance thanx to all those who intend to reply
    please provide me a proper resolution

    I think the appserver uses com.sun.enterprise.naming.SerialInitContextFactory on the server side to register different resources. Anything registered with SerialialInitContextFactory cannot be resolved with a CNCtxFactory.
    Can you try using SerialInitContextFactory on the client side.

  • CF MX Access datasource UNC network link possible?

    I've tried both mapping a drive on the server and using a UNC
    link, but my Access Unicode datasource won't work with files on
    another server. I have the domain "logon" account rights embedded
    in the CF application service, so that should be set.
    If I use a network drive I get this error:
    Connection verification failed for data source: 00aaatest
    com.inzoom.adojni.ComException: 'w:\data\404.mdb' is not a
    valid path. Make sure that the path name is spelled correctly and
    that you are connected to the server on which the file resides.
    The root cause was that: com.inzoom.adojni.ComException:
    'w:\data\404.mdb' is not a valid path. Make sure that the path name
    is spelled correctly and that you are connected to the server on
    which the file resides. in Microsoft JET Database Engine code=0
    Type=1
    If I use a UNC link I get this error:
    Connection verification failed for data source: aaatest
    com.inzoom.adojni.ComException:
    '\\\prism2\premierWWW\data\404.mdb' is not a valid path. Make sure
    that the path name is spelled correctly and that you are connected
    to the server on which the file resides.
    The root cause was that: com.inzoom.adojni.ComException:
    '\\\prism2\premierWWW\data\404.mdb' is not a valid path. Make sure
    that the path name is spelled correctly and that you are connected
    to the server on which the file resides. in Microsoft JET Database
    Engine code=0 Type=1
    Should I be embedding a username/pw in the ColdFusion
    username and ColdFusion password boxes under advanced settings? I
    tried domain credentials, but this didn't work either.
    thanks for any suggestions!
    Chuck

    Don't know about the Map drive, looks ok to me (except
    missing prism2\premier\www, but perhaps that was included in the
    map to w
    . At any rate we shouldn't be using map drives,
    right?
    For the UNC, the answer is the design bug (feature?) of the
    administrator adding an extra \ for you so you wind up with 3.
    Doesn't make any sense to me, but that's the way it is. Only use
    one up front slash for UNC's.

  • MDB Accessing datasource

    Hi,
    I have a question regarding MDBs accessing a datasource. Since application servers create a pool of MDBs that will consume messages, how should the datasource be retrieved efficiently?
    public class MDB implements MessageDrivenBean, MessageListener
         private MessageDrivenContext   context = null;
              private DataSource dataSource = null;
         public void ejbCreate()
                        InitialContext initialContext = new InitialContext();
              dataSource = (DataSource) initialContext.
                                                      lookup(lookupstring);
         public void setMessageDrivenContext(MessageDrivenContext context)
               context = context;
         public void onMessage(Message msg)
                    Connection connection = dataSource.getConnection();
         public void ejbRemove()
    }Since the application server will instantiate a pool of MDBs, the ejbCreate method will be called n times depending on the size of the MDB pool. Each instance of the MDB will have their own instance of the datasource. I want my MDBs to share a single instance of the datasource. How can I do this?
    For example, fo servlets, you have an init method which is only called once by the servlet container where you can instantiate a datasource. Subsequent requests to the servlet will create 1 thread for each request. But each thread will only access a single instance of the datasource.
    How can i do this with MDBs? Is my code correct or is there a better way? Or is it even a non-issue for application servers. Btw, I'm using JBoss.
    Can anyone point to any reading about this or can clarify this?
    Thanks in advance :)

    Hi Uday
    Configuration link for Sender Adapter
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm</b>
    Configuration link of Reciever Adapter
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm</b>
    XML Document Format for the Message Protocol XML SQL Format
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm</b>
    Hope it helps.For further doubts u are free to post
    Regards
    Arpit Seth

  • Unable to use Datasource.cfc in Admin API - The current user is not authorized to invoke this method

    Hi Everyone,
    I am having some issues accessing the methods in the datasource.cfc in the adminAPI.
    I can successfully load the administrator CFC and am told that I have successsfuly logged in;
    But when I try to subsequently load the datasource.cfc I get an error that the current user is unable to access the method.
    /* Create an Admin API object and call the login method */
                                                      var local = {};
                                                      local.adminObj = createObject("component", "cfide.adminapi.administrator");
                                                      /* Enter your password for the CF Admin */
      /* if you dump this - TRUE is returned */
                                                      local.adminObj.login(adminPassword="my_admin_user_password");
                                                      /* Create an object of datasource component */
                                                      local.dsnObj = createObject("component", "cfide.adminapi.datasource");
      writeDump(local.dsnObj.getDataSources());
    I tried creating separate admin users and passwords - yhinking that perhaps a revent hotfix had stopped the "admin" user from being allowed to use the adminAPI - but changing to a new adminuser yielded the same results.
    I could login to the admin API with the new username and passsword - but could not access the datasource.cfc after that.
    Here is the debug output from the error...
    The current user is not authorized to invoke this method.
    The error occurred in accessmanager.cfc: line 48
    Called from datasource.cfc: line 52
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 155
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 52
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 45
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 1
    -1 : Unable to display error's location in a CFML template.
    Resources:
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
    Remote Address 
    127.0.0.1
    Referrer 
    Date/Time 
    22-Apr-13 01:09 PM
    Stack Trace
    at cfaccessmanager2ecfc974154242$funcCHECKADMINROLES.runFunction(E:/cf10_final/cfusion/wwwro ot/CFIDE/adminapi/accessmanager.cfc:48) at cfdatasource2ecfc1679861966$funcGETDATASOURCES.runFunction(E:/cf10_final/cfusion/wwwroot/ CFIDE/adminapi/datasource.cfc:52) at cfApplication2ecfc498167235$funcPREREQUISITESTART.runFunction(C:/inetpub/wwwroot/projectD ir/trunk/Application.cfc:155) at cfApplication2ecfc498167235$funcINIT.runFunction(C:/inetpub/wwwroot/projectDir/trunk/Appl ication.cfc:52) at cfApplication2ecfc498167235._factor5(C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: 45) at cfApplication2ecfc498167235.runPage(C:/inetpub/wwwroot/projectDir/trunk/Application.cfc:1 )
    coldfusion.runtime.CustomException: The current user is not authorized to invoke this method. at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfaccessmanager2ecfc974154242$funcCHECKADMINROLES.runFunction(E:\cf10_final\cfusion\wwwroot\CFIDE\adminapi\accessmanager.cfc:48) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432) at cfdatasource2ecfc1679861966$funcGETDATASOURCES.runFunction(E:\cf10_final\cfusion\wwwroot\CFIDE\adminapi\datasource.cfc:52) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432) at cfApplication2ecfc498167235$funcPREREQUISITESTART.runFunction(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:155) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfApplication2ecfc498167235$funcINIT.runFunction(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:52) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfApplication2ecfc498167235._factor5(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:45) at cfApplication2ecfc498167235.runPage(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:538) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:234) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:159) at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:120) at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:138) at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:84) at coldfusion.runtime.AppEventInvoker.<init>(AppEventInvoker.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:232) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
    And here is the listed exceptions, beneath the stack trace;
    13:09:56.056 - cfadminapiSecurityError Exception - in E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc : line 48
             The current user is not authorized to invoke this method.
    13:09:56.056 - cfadminapiSecurityError Exception - in E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc : line 48
             The current user is not authorized to invoke this method.
    13:09:56.056 - java.io.FileNotFoundException - in C:/ColdFusion10/cfusion/wwwroot/WEB-INF/exception/errorcontext.cfm : line 44
             E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc (The system cannot find the path specified)
    This perspn seems to be having the same issue;
    http://forums.adobe.com/message/5051892
    and I agree I don't have "E" drive either!

    I've found a solution to my plight - I don't know if it'll work for you or help you try something that MAY fix it.
    I use a common code set which includes the Application.cfc from a CF Mapping - So, in the application.cfc in the actual website I do this:-
    <cfinclude template="/UberDirectory/Application.cfc">
    Then, in the /UberDirectory/Application.cfc, I was initialising a CFC which checks if the datasource was created for the website. The datasource checking code attempts to log into the Admin API and check & create if necessary the datasource.
    This has previously worked without fail for me - But in this instance it failed!! I was doing two things wrong - Firstly, the CFC should only be called in the Application.cfc in the onRequestStart section as the Application had to be initialised first - This is maybe because I've invoked the application.cfc in a "non-standard" manner.
    Secondly, once I'd moved the CFC invocation into oNRequestStart I saw the following error:-
    The string COOKIE.CFAUTHORIZATION_uber-directory is not a valid ColdFusion variable name.
    I had this as the app name .... <cfset this.name = 'uber-directory'>
    Changedthe dash to an underscore and I was away and could once again check the datasources
    Hope it helps
    Martin

  • SSRS report with PowerPivot datasource - 401 Unauthorized

    Hello together,
    I have a tricky issue and hope that you can help me:
    Problem: I want to build a Reporting Services Report with a PowerPivot datasource with Report Builder 3.0. When I try to access the datasource via Report Builder I get the error: The remote server returned an error: 401 - Unauthorized.
    The PowerPivot file lies on a Sharepoint 2013 with Kerberos authentification.
    Logs: Here are some sample log entries after getting the error:
    Token Cache: Could not find SPSite for 'sharepoint.com/_vti_bin/PowerPivot/secureredirector.svc/?DataSource=sample.xlsx'.
    Exception trying get context compatibility level: System.IO.FileNotFoundException: The site sharepoint.com/_vti_bin/PowerPivot/secureredirector.svc/?DataSource=sample.xlsx could not be found in the Web application SPWebApplication Name=sharepoint.com. 
    Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|user, ClaimsCount=118
    Notes: I tried some solutions from the internet, where the web.config from PowerPivot has to be changed. Also I saw that it could be Kerberos related, but no detailed information where to start as the other features are working fine. SPNs
    and Delegations are configured. And changing to NTLM is not an option as this is a multi-server platform. 
    I hope that you have another idea, where the problem could be.
    Kind regards, 
    Robin

    Has noone an idea?

  • Remote access of InitialContext via JMX client

    Hi,
    I'm not sure if i'm the right place here for posting my problem, but I don't know where to put it otherwise.
    I'm trying to access a JBoss datasource via JMX. The JMX code and datasource code is both placed inside a WAR file that is deployed in Jboss 5.1.
    When I access the datasource from a servlet, it runs oke but when I try to run it from jconsole I get a classnotfoundexception.
    The code where I register the MBean is:
    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    try
    ObjectName mbeanName = new ObjectName(OBJECT_NAME);
    Test mbean = new Test();
    mbs.registerMBean(mbean, mbeanName);
    catch (Exception e)
    //handle
    The code where I get the exception is:
    Context initContext = new InitialContext(jndiProps);
    The exception is:
    javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
    These are my JNDI props:
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    java.naming.provider.url=jnp://localhost:1099
    Any ideas?

    OK - I found another thread dealing with the problem at hand.
    http://forums.sun.com/thread.jspa?threadID=5369697
    Edited by: Christian.Yttesen on Jan 13, 2010 5:15 AM

  • Using datasource with streaming api inside a web service

    I am using the 9.1 server and accessing a datasource
    created with aldsp3.0. When I run the code below as a
    standalone java app, everything works fine. When I run it
    on the server, I get a class cast exception when trying to cast an object returned from the stream to MyData type.
    When running the java app in the debugger, the objects
    dataServiceDoc, dog , and dObj all have
    the correct type. When running the web service in the debugger, the objects are all of type
    DataObjectGeneral, thus causing the cast error.
    <p><p>
    Any help will be greatly appreciated!
    <p>
    Thanks.
    <p><p>
    package services;
    <p>
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import weblogic.jndi.Environment;
    import com.bea.dsp.RequestConfig;
    import com.bea.dsp.das.DASResult;
    import com.bea.dsp.das.DataAccessServiceFactory;
    import com.bea.dsp.das.PreparedExpression;
    import com.bea.sdo.impl.data.DataObjectGeneral;
    import commonj.sdo.DataObject;
    <p>
    @WebService
    <p>
    public class MyService
    <p>
    private final static String DS_URL = "t3://localhost:7001";
    <p>
    @WebMethod
    <p>
    public String testMethod2()
    <p>
    StringBuilder result = new StringBuilder();
    <p>
    try
    <p>
    // Get the initial context to the WebLogic Server passing in user credentials
    <p>
    Context ctx = getInitialContext(DS_URL,"weblogic", "weblogic");
    <p>
    RequestConfig reqConfig = new RequestConfig();
    <p>
    reqConfig.enableFeature(RequestConfig.RETURN_DATA_SERVICE_AUDIT);
    <p>
    reqConfig.enableFeature(RequestConfig.RETURN_AUDIT_PROPERTIES);
    <p>
    reqConfig.setStringArrayAttribute(RequestConfig.RETURN_AUDIT_PROPERTIES,
    new String[] { "common", "query" });;
    <p>
    String dspDataSpace = "MY_DS";
    <p>
    String adhoc = createQuery();
    <p>
    PreparedExpression pe = DataAccessServiceFactory.prepareExpression(ctx, dspDataSpace, adhoc);
    <p>
    DASResult<Object> dasResult = pe.executeQuery(reqConfig);
    <p>
    int i = 0;
    <p>
    int N = 100;
    <p>
    Long[] ids = new Long[N];
    <p>
    while (dasResult.hasNext() && i<N)
    <p>
    Object dataServiceDoc = dasResult.next();
    <p>
    // Convert Object to a Data Object
    <p>
    DataObjectGeneral dog = (DataObjectGeneral) dataServiceDoc;
    <p>
    DataObject dObj = dog.getRootObject();
    <p>
    // Cast the Data Object to the SDO Type (MyDataType)
    <p>
    MyDataType p = (MyDataType) dObj;
    <p>
    i++;
    <p>
    <p>
    catch (Exception e)
    <p>
    result.append(e);
    <p>
    <p>
    return result.toString();
    <p>
    <p>
    private static InitialContext getInitialContext(String url, String username, String password) throws NamingException
    <p>
    Environment env = new Environment();
    <p>
    env.setProviderUrl(url);
    <p>
    env.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
    <p>
    env.setSecurityPrincipal(username);
    <p>
    env.setSecurityCredentials(password);
    <p>
    return new InitialContext(env.getInitialContext().getEnvironment());
    <p>
    <p>
    public static void main(String [] args)
    <p>
    MyService ms = new MyService();
    <p>
    System.out.println(ms.testMethod2());
    <p>
    <p>
    <p>

    test

  • Dynamic datasource in ColdFusion via LCDS ES

    Hi All,
    I'm hitting a wall on a requirement for a Flex application which utilizes the LCDS version included with ColdFusion.
    I have the project setup to use DAO's, Assemblers and ValueObject (cfc's) which I call from Flex via DataService implmentation and the fill(), getItem(), etc... methods.
    I need to setup my ColdFusion layer to access multiple datasources from the same Flex application.  However, because of the way LCDS gets called from Flex, it doesn't seem that Application or Session variables in ColdFusion persist when I set them.  I was thinking I could just have the HTML (cfm) wrapper page for my Flex application set that, but it is not recognized when I go to make a fill or get call against the assembler.
    I thought about passing the datasource as a parameter each time a call is made, but while that would work when I initiate fill and get methods, the sync methods are "invisible" and I wouldn't be able to append an argument to them.
    So my issue is... how do I go about having ColdFusion read a dynamic variable to define it's datasource?
    Thanks in advance for the help.
    Brendan

    Hi Ian,
    Thanks very much for the reply.  While it doesn't provide the solution, you definitely hit the nail on the head as to the problem :-) 
    Ben Forta provides and explanation (and solution) for what you describe here: http://www.forta.com/blog/index.cfm/2007/11/15/Flex-And-ColdFusion-Session-Variables  However, I tried his method out, and it didn't work for me... perhaps the difference between HTTP RemoteObject access, and RTMP DataServices.
    You know... I tried it out a while ago before I had a better understanding of the problem... perhaps I'll try again :-)  Will post results of latest attempt...
    Thanks again,
    Brendan

Maybe you are looking for