Configuring JDBC in jboss-4.0.4.GA

I'm using JBoss-4.0.4.GA, Eclipse 3.1 and MS SQL Server2005.
To configure JBoss with MSSQL datasource I made the following:
Copy sqljdbc.jar and put them in server\default\lib direcroty.
I also copy the mssql-ds.xml from \docs\examples\jca\ and modify it according to my specification and put it in deploy directory of default server.
My DataSource is as Follows:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>regDataSource</jndi-name>
<connection-url>jdbc:sqlserver://localhost:1433;databaseName=Ereg;</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>sa</user-name>
<password>royal</password>
<metadata>
<type-mapping>MS SQLSERVER2005</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
When i build my application, i get the following exceptions......
[b]org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect)
     at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:177)
     at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:539)
     at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:228)
     at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:417)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:324)
     at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:379)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
     at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
     at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
     at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
     at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
     at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
     at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
     at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
     at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
     at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
     at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
     at $Proxy0.start(Unknown Source)
     at org.jboss.system.ServiceController.start(ServiceController.java:417)
     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
     at $Proxy420.start(Unknown Source)
     at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:82)
     at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626)
     at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475)
     at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
     at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
     at $Proxy0.start(Unknown Source)
     at org.jboss.system.ServiceController.start(ServiceController.java:417)
     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
     at $Proxy43.start(Unknown Source)
     at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
     at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
     at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
     at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
     at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
     at $Proxy44.start(Unknown Source)
     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
     at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
     at $Proxy6.deploy(Unknown Source)
     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
     at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
     at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
     at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
     at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
     at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
     at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:169)
     ... 113 more
Thanx in advance.

Enable TCP/IP protocol. Select Microsoft SQL Server 2005>Configuration Tools>SQL Server Configuration Manager. In the SQL Server Configuration Manager select the node SQL Server 2005 Network Configuration>Protocols for SQLEXPRESS. Right-click on the TCP/IP node and select Enable. Restart the SQL Server (SQLEXPRESS) service. Right-click on the SQL Server (SQLEXPRESS) service in Services and select Restart.

Similar Messages

  • Problem in configuring mysql with JBoss 4

    Hello Forum
    I m having following exceptions while invoking my session bean from servlet
    java.rmi.ServerException: RuntimeException; nested exception is: java.lang.NullPointerException I have put mysql-ds.xml file in :\jboss-4.0.3SP1\server\default\deploy directory and mysql-connector-java-3.1.10-bin.jar in :\jboss-4.0.3SP1\server\default\lib directory.
    my mysql-ds.xml code is (which I take from connector-j doc)
    <datasources>
        <local-tx-datasource>
            <!-- This connection pool will be bound into JNDI with the name
                 "java:/MySQLDB" -->
            <jndi-name>MySQLDB</jndi-name>
            <connection-url>jdbc:mysql://localhost:3306/student</connection-url>
            <driver-class>com.mysql.jdbc.Driver</driver-class>
            <user-name>root</user-name>
            <password>pakistan</password>
            <min-pool-size>5</min-pool-size>
            <max-pool-size>20</max-pool-size>
            <idle-timeout-minutes>5</idle-timeout-minutes>
            <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
            <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
        </local-tx-datasource>
    </datasources>and my session bean code is:
    imports ....
    public class JBSessionBean implements javax.ejb.SessionBean, JBSession.JBSessionRemoteBusiness {
        private javax.ejb.SessionContext context;
        public void ejbCreate() { }
        public java.sql.ResultSet setDbConnection()
            InitialContext ctx ;
            String jndiName = "java:/MySQLDB";
            DataSource ds = null;
            Connection conn = null;
            ResultSet rs = null;                
            String query = "SELECT * FROM stdinfo";
            try
                ctx = new InitialContext();
            catch (NamingException e)
                System.out.println (e.toString());
            //Lookup the data source
            ctx = null;
            try
                ds = (DataSource) ctx.lookup(jndiName);
            catch(NamingException e)
                System.out.println (e.toString() + "Error in Creating the DataSource");
            try
                conn = ds.getConnection();
            catch(SQLException e)
                System.out.println (e.toString() + "Error in Creating Connection");
            try
                Statement stmt = conn.createStatement( );
                System.out.println("got statmnet");
                rs= stmt.executeQuery( query ) ;
                System.out.println("got rs");     
            catch(SQLException e)
                System.out.println (e.toString() + "Error in Creating statement n query");
            return rs;
    }and my servlet code is
    public class JBossWeb extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            ResultSet rSet = null;
            JBSessionRemote remoteRef = lookupJBSessionBean();
            try {
               rSet =  remoteRef.setDbConnection();
            } catch (RemoteException ex) {
                out.println(ex.toString());
            } catch (SQLException ex) {
                out.println(ex.toString());
            } catch (Exception ex){
                out.println(ex.toString());
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet JBossWeb</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet JBossWeb</h1>");
            out.println(remoteRef.printTemp());
            if (rSet == null)
                out.println("Resultset null");
            out.println("</body>");
            out.println("</html>");
            out.close();
        private JBSession.JBSessionRemote lookupJBSessionBean() {
            try {
                javax.naming.Context c = new javax.naming.InitialContext();
                Object remote = c.lookup("java:comp/env/ejb/JBSessionBean");
                JBSession.JBSessionRemoteHome rv = (JBSession.JBSessionRemoteHome) javax.rmi.PortableRemoteObject.narrow(remote, JBSession.JBSessionRemoteHome.class);
                return rv.create();
            catch(javax.naming.NamingException ne) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
                throw new RuntimeException(ne);
            catch(javax.ejb.CreateException ce) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
                throw new RuntimeException(ce);
            catch(java.rmi.RemoteException re) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,re);
                throw new RuntimeException(re);
    }I m using NetBeans IDE 5. Am I missing anything regarding more configuration in JBoss regarding mysql?
    I could not found why I got exception, please tell me after reviewing my code.
    hope I will got solution from u ppl
    Thanx in advance

    dear dvohra09
    it still giving me the same exception
    java.rmi.ServerException: RuntimeException; nested exception is: java.lang.NullPointerException as u suggested
    <application-policy name = "MySqlDbRealm">
    <authentication>
    <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
    <module-option name ="principal"></module-option>
    <module-option name ="userName">root</module-option>
    <module-option name ="password">pakistan</module-option>
    <module-option name ="managedConnectionFactoryName"> jboss.jca:service=LocalTxCM,name=MySQLDB
    </module-option>
    </login-module>
    </authentication>
    </application-policy>but still I didnt able to connect my database to JBoss
    any idea...???

  • How to configure Hibernate in JBoss

    Hi,
    I'm using JBoss to run my application.
    we are migrating complete application from JDBC to Hibernate,
    Can any one explain how should i configure Hibernate in JBoss server
    Cheers

    Go through this tutorial: http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
    It explains how to setup hibernate.

  • Creating SSL certificate and configuring it with JBOSS 4.0.1

    I have to post some data to a secured site from my application.
    For this, I am creating connection to that site using URLConnection and to send data I create OutputStream using the connection.
    But, while creating the stream it is showing SSLException and message is No trusted certificate found.
    For this, I need to create SSL certificate (mostly using keytool command) and configure it with my application server which is JBOSS 4.0.1
    Now, my problem is that I don't know the exact steps to create a certificate and configure it with JBOSS. Please provide the steps in detail.

    I think you have this back to front. Unless this exception came from the server, in which case it is misconfigured, you don't have to create a certificate, you have to import the server's certificate, or that of one of its signers, into the client's truststore, and tell Java where the truststore is if it's in a non-standard location.
    See http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html. You'll have to ask about the JBoss part in a JBoss forum.

  • How to configure jdbc/jndi connection in crystal report 10

    Post Author: effy
    CA Forum: Data Connectivity and SQL
    i have tried to configure jdbc/jndi connection , i have both
    drivers  data base side and  crystal report side but i
    can't  configure it.  so please help if u know
    something. 

    Sorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
    Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
    I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
    .. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
    .. but none ...

  • OIM installation OIM schema missing on configure JDBC component schema

    I am trying to install OIM on Linux . I have installed Oracle 11g DB, RCU 11.1.1.6 version, Weblogic 10.3.5 Version, Oracle SOA Suite General version 11.1.1.6. I have installed OIM Version 11.1.1.6 with option install and configure later. I was able to install until this point successfully.
    When configuring OIM installation by executing the command in /oracle/Oracle/Middleware/Oracle_IDM1/common/bin/config.sh and moved on to step configure JDBC component Schema .. the page displays only SOA infrastructure, User Messaging Service, OWSM MDS Schema, SOA MDS Schema. The wizard does not display OIM Schema and OIM MDS Schema. I have tried several times and it does not show schemas related to OIM.
    Your help is greatly appreciated. I have been trying for almost 1 week and was not successful.

    As i.m.k. said, there is no OIM 11.1.1.6. The latest release of OIM is 11.1.1.5 (BP 3 I believe) the base can be found via Patch ID: 12575064. You've downloaded Identity Management 11.1.1.6 which does not contain OIM. At this point, you are going to need to use the RCU 11.1.1.6 tool to roll out the schema creates, then download RCU 11.1.1.5 to recreate the schema. You also need to download the SOA Suite 11.1.1.5 (Patch ID: 13691768) and blowout/reinstall SOA. Likewise with OIM.

  • How to configure and use jboss cache

    Hi,
    I need to use Jboss Cache in our application,
    But i don't know anything about Jboss Cache...
    can u tell me requirements and configuration for this?
    and i am using jboss application server 3.2.3..
    and apache-ant-1.7.1, jdk1.6.0_06, jbosscache 2.2.0
    can u tell me how to configure and use jboss cache?
    Thanks & Regards
    Thilkumar

    Go to the JBoss web site and read up on the documentation there.
    And if you still have any questions you'll probably get better answers at the JBoss forums than in these forums.
    - Roy

  • Configure JDBC component schema - manually edit the property

    Hello,
    I need help you manually editing one of the "configure JDBC component schema" under "Fusion Middleware configuration wizard" .
    I have done some mistake and due to which I am not able to start my server and since I am working from a remote machine, I am not able to get the UI appearance of wizard properly. I am looking for file where I can edit those values manally.
    Could someone please advice me how I can go and manually edit the properly file where these values are stores.

    Hi,
    The files are in $DOMAIN_HOME/config/jdbc
    Each file is a data source, the name pattern is [data-source-name]-[number]-jdbc.xml
    Cheers,
    Vlad

  • How to configure datasource in JBOSS?

    Hi All,
    I want to configure datasource in JBOSS for oracle database? The constraints are
    1) The password should be in the encrypted format in the configuration file because I dont want to reveal my password to anyone.
    How can we acheive this.
    Can I do the encryption at the time of build(If yes how?)
    For any help Thanks in advance.
    Rajani Kanth

    Hi Rajani
    I was browsing the web looking for a way to solve the same problem.
    Have you every found a way to do this?
    I'm faced with the same problem: I must encrypt the user name and
    password.
    Did you find out whether JBoss has a way to accomplish this.
    Many thanks in advance.
    Serge
    [email protected]

  • How to configure JDBC Adapter(Sender & Receiver)

    How to configure JDBC Adapter(Sender & Receiver)
    Rgds
    Ruchitha

    Hi ruchitha thakur ,
    These r the following web-sites which give u detailed information about configuring of JDBC Adapter(Sender & Receiver)
    JDBC is a technical Adapter provided by SAP.
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    Configuring the Receiver JDBC Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d36d51d-0b01-0010-b3aa-9cb313b63cf4
    SAP XI Utilize SAP Adapters to connect to heterogenous systems
    https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fc4bd90-0201-0010-68bd-ab931b06f9c2
    cheers!
    gyanaraj
    ***Pls reward points if u find this useful

  • Problem with Database Initialization when using Configuration Manager (ubuntu-jboss-mysql)

    Hello,
    When I try to initialize the database using Configuration Manager, the following error occurs:
    ALC-TTN-002-001: JDBC datasource lookup failed for resource reference [java:comp/env/jdbc/
    IdpDs]. The most likely cause is that a datasource having a JNDI
    name of [IDP_DS] does not exist or is misconfigured. Check the application
    server's configuration.
    I DO have an IDP_DS datasource configured in jboss. I carefully followed the Jboss configuration instructions, so I don't really understand which is the issue here.
    Anyone encountered a similar problem? Any help?
    Many thanks in advance,
    Artur

    Data source files have to end with ds.xml and should be copied to the /deploy folder of your JBoss configuration (all) for them to be picked up by JBoss.
    If the file was edited in Windows, make sure it does not contain DOS characters. Ubuntu Linux is not a supported LiveCycle OS platform currently. Only Red Hat Enterprise and SUSE Enterprise are.

  • Error in configuring JDBC Adapter

    Hi All,
    I have configured a sender JDBC Adapter with the following parameters.
    JDBC Drivers: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection: jdbc:microsoft:sqlserver://MIS-SERVER\MIS_DEV_SVR;DatabaseName=SEPG_NEWDB
    But in Runtime, I am getting error as follows...
    Error during database connection to the database URL 'jdbc:microsoft:sqlserver://MIS-SERVER\MIS_DEV_SVR;DatabaseName=SEPG_NEWDB' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://MIS-SERVER\MIS_DEV_SVR;DatabaseName=SEPG_NEWDB': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The requested instance is either invalid or not running.'
    It has been confirmed that JDBC Drivers are properly deployed.
    Any suggestions to resolve this issue?
    Regards
    Pavan

    Hi Pavan,
    I think Port is missing and also it should be look like this. (microsoft not required for SQL SERVER 2000).
    Make sure msbase.jar, msutil.jar, mssqlserver.jar are the driver files and deployment.
    Connection: jdbc:sqlserver://MIS-SERVER\MIS_DEV_SVR<b>:PORT</b>;DatabaseName=SEPG_NEWDB
    Regards,
    Sarvesh

  • Error in obtaining JDBC connection JBoss Seam 2.0.2 11g

    Hi,
    We are running a J2EE application based on JBoss Seam 2.0.2 and 11g R1.
    We are frequently encountering the below error. It is very intermittent and goes away on a screen refresh.
    Some help in resolving this would be greatly appreciated -
    java.lang.RuntimeException: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.OraclePreparedStatementWrapper - oracle.jdbc.driver.OraclePreparedStatementWrapper
    at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postActivate(LifecycleInterceptorHandler.java:152)
    at org.jboss.ejb3.stateful.StatefulContainer.invokePostActivate(StatefulContainer.java:409)
    at org.jboss.ejb3.stateful.StatefulBeanContext.postActivate(StatefulBeanContext.java:388)
    at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.activateSession(StatefulSessionFilePersistenceManager.java:316)
    at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:387)
    at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:375)
    at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:97)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
    at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:206)
    at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)
    at $Proxy354.destroy(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
    at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
    at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
    at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
    at org.javassist.tmp.java.lang.Object_$$_javassist_6.destroy(Object_$$_javassist_6.java)
    Caused by: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.OraclePreparedStatementWrapper - oracle.jdbc.driver.OraclePreparedStatementWrapper
    at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:822)
    at org.jboss.ejb3.stateful.StatefulBeanContext.getInterceptorInstances(StatefulBeanContext.java:781)
    at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.getLifecycleInvocationContext(LifecycleInvocationContextImpl.java:65)
    at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postActivate(LifecycleInterceptorHandler.java:143)
    ... 57 more
    Caused by: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.OraclePreparedStatementWrapper - oracle.jdbc.driver.OraclePreparedStatementWrapper
    at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:342)
    at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
    at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
    at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
    at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
    at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
    at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
    at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
    at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
    at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
    at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
    at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
    at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
    at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
    at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
    at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:163)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
    at org.jboss.serial.io.MarshalledObject.get(MarshalledObject.java:68)
    at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:793)
    ... 60 more
    Caused by: java.lang.InstantiationException: oracle.jdbc.driver.OraclePreparedStatementWrapper
    at java.lang.Class.newInstance0(Class.java:340)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:334)
    ... 85 more
    Thanks !!
    Shankar

    I agree with the previous post.
    Here are some of my previous posts that might help. As a general rule, an a MVC design, your JDBC objects (connection, resultSet, preparedStatement) should not be exposed outside of the database layer.
    Re: how to connect multiple databases
    Re: can not get the right query result using JDBC

  • Error while configuring the domain "Configure JDBC Component Schema"

    Hi Everyone,
    I have installed SOA Suite 11g on my Win 7 machine 64bit OS and while trying to configure the domain for the WebLogic Server. I fallowed the wizard and everything went well till the JDBC Component Schema window. Here I am able to pass through
    1. BAM Schema- Failed
    2. SOA Infrastructure-Failed
    3. User Messaging Service-Passed
    4. OWSM MDS Schema-Passed
    5. SOA MDS Schema-Passed
    and here is the error that i am facing...
    Component Schema=BAM Schema
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/XE
    User=DEV_ORABAM
    Password=*******
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='BAM' and version='11.1.1.2.0'
    CFGFWK-60850: Test Failed!
    CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=SOA Infrastructure
    Driver=oracle.jdbc.xa.client.OracleXADataSource
    URL=jdbc:oracle:thin:@localhost:1521/XE
    User=DEV_SOAINFRA
    Password=*******
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='SOAINFRA' and version='11.1.1.2.0'
    CFGFWK-60850: Test Failed!
    CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
    I googled the error and tried to check whether the Schema_version_registry has any rows are not and initially i don't have any and then I have created table named "Schema_version_registry" and then inserted the values accordingly..
    CREATE TABLE schema_version_registry(owner VARCHAR2(30), mr_type VARCHAR2(10), version VARCHAR2(50));
    INSERT INTO schema_version_registry(owner, mr_type, version) VALUES ('DEV_SOAINFRA','MDS','11.1.1.2.0');
    similarly i did for the DEV_ORABAM but there is no use...........
    I am struck at this position can any please help me out........... please..
    Thanks in advance
    Sorry Guys.. I understood my mistake and change the "mr-type" accordingly... it is successful now..
    Thanks if anyone tried to answer it.......
    Edited by: user10763276 on Oct 10, 2010 5:11 PM

    Hi can anyone please help me ...all the jdbc component schema is failing for me while creating domain.
    please find the log.
    Component Schema=SOA Infrastructure
    Driver=oracle.jdbc.xa.client.OracleXADataSource
    URL=jdbc:oracle:thin:@localhost:1521/XE
    User=sys as sysdba
    Password=*********
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='SOAINFRA' and version='11.1.1.5.0'
    CFGFWK-60850: Test Failed!
    CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=User Messaging Service
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/XE
    User=sys as sysdba
    Password=*********
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='ORASDPM' and version='11.1.1.2.0'
    CFGFWK-60850: Test Failed!
    CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=OWSM MDS Schema
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/XE
    User=sys as sysdba
    Password=*********
    SQL Test=select 1 from schema_version_registry where
                        owner=(select user from dual) and mr_type='MDS' and
                        version='11.1.1.5.0'
    CFGFWK-60850: Test Failed!
    CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=SOA MDS Schema
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/XE
    User=sys as sysdba
    Password=*********
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='MDS' and version='11.1.1.5.0'
    CFGFWK-60850: Test Failed!
    CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
    "

  • Your opinion - graphical configuration consoles for JBoss & Tomcat

    Hexamind Companion for JBoss and Hexamind Companion for Apache Tomcat are tools for developers and system administrators who manage the configuration of J2EE servers. We are nearing the final stages of development, and would like to hear your opinion about these tools.
    Please follow the links below to learn more and participate in our online surveys.
    If you are familiar with Apache Tomcat:
    http://www.hexamind.com/website/surveys/tomcat?orig=e1
    If you are familiar with JBoss Application Server:
    http://www.hexamind.com/website/surveys/jboss?orig=e1
    We thank you for your help,
    Itai Shirav
    Hexamind Ltd.
    http://www.hexamind.com

    Hmm Marketing

Maybe you are looking for

  • How to use Keyfigures in the Bex variable selection screen.

    Hi, I have a scenario, where the user whats to see the keyfigures like volume, amount in the variable selection screen, so that he can dynamically, set the condition according to his requirement. For example , he wants to see all the PO's for a parti

  • Mouse scrolling in lion problems

    I'm using a traditional mouse with a scroll wheel.  The mouse scrolling behavior is really odd in Lion and it seems to have something to do with bounce scrolling. Scrolling in apps like Safari works fine and is very responsive where bounce scrolling

  • TS1538 iTunes won't recognise iPhone

    I have recently installed updates for iTunes and now it will not recognise my iPhone.  I have tried all suggested fixes with no success.  any ideas?

  • Inner classes in Binary tree program

    hi everybody I am having trouble understanding the following lines of code: <code> public Enumeration elementsLevelOrder() { return new Enumeration() { private Queue q = new QueueArray(); { // initialise the queue q.enqueue(NodeTree.this); public boo

  • IWeb password not working

    I have made some changes to my website in iWeb, but when I try to publish it, and enter my password, it is not taking it. It has been a long time since I've made any changes. What am I missing here? Thanks.