Connect to weblogic using C++

Dear experts,
How do i connect my c++ apps to the weblogic and what version do i use?
The version that support JMS C API is 9.0 so isit I need to install WL v9.0 and above?
THank you. :)

You may find some useful information about JMS C API, including system requirements at
http://download.oracle.com/docs/cd/E15523_01/web.1111/e13746/toc.htm
In case that you are interested, WLS 10.3.1 (Oracle Fusion Middleware 11gR1) introduces a new .NET Client that provides a JMS C# API. More information can be found at
http://download.oracle.com/docs/cd/E15523_01/web.1111/e13746/toc.htm

Similar Messages

  • Unable to connect to weblogic using JRMControl Any help appreciated

    I am trying to connect to a weblogic instance (admin server) on a remote linux system from my windows pc. its asking for a password with the the below message. (this is after I enter the username/password and its not taking the weblogic admin password.)
    NLS missing message: MasterPasswordWizardPage_ERROR_PASSWORD_EMPTY_TEXT in: com.jrockit.mc.rjmx.ui.security.messages
    Do we need to set any JXM changes on the weblogic server inorder to connect to it with JRMC?
    Thank you.

    I don't quite remember, but I think you may need to specify the port explicitly:
    -Xmanagement:ssl=false,authenticate=false,autodiscovery=true,port=12345
    Henrik

  • Unable to connect to weblogic using JRMC Any help appreciated

    I am trying to connect to a weblogic instance (admin server) on a remote linux system from my windows pc.
    I am getting below errors
    +com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:+
    +     java.io.EOFException]+
    +com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:+
        +     java.io.EOFException]+
    +     at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:63)+
    +     at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:38)+
    +     at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:74)+
    +     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)+
    +Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:+
        +     java.io.EOFException]+
    +     at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)+
    +     at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:229)+
    +     at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:537)+
    +     at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:144)+
    +     at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:111)+
    +     at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:154)+
    +     at com.jrockit.mc.rjmx.ConnectionManager.innerConnect(ConnectionManager.java:95)+
    +     at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:61)+
    +     ... 3 more+
    +Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:+
        +     java.io.EOFException]+
    +     at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)+
    +     at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)+
    +     at javax.naming.InitialContext.lookup(InitialContext.java:351)+
    +     at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817)+
    +     at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)+
    +     at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)+
    +     ... 10 more+
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    +     java.io.EOFException+
    +     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)+
    +     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)+
    +     at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)+
    +     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)+
    +     at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)+
    +     ... 15 more+
    Caused by: java.io.EOFException
    +     at java.io.DataInputStream.readByte(DataInputStream.java:243)+
    +     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)+
    +     ... 19 more+
    I have added these java options to weblogic startup scripts.
    -Xmanagement:ssl=false,authenticate=false,autodiscovery=true
    Thank you.
    Edited by: Harsha Chava on Sep 3, 2009 4:42 PM

    I don't quite remember, but I think you may need to specify the port explicitly:
    -Xmanagement:ssl=false,authenticate=false,autodiscovery=true,port=12345
    Henrik

  • Issue while creating connection pool in weblogic using SERVICE NAME

    Found two issues while creating connection pool in weblogic using SERVICE NAME
    1. While running apps from jdeveloper using xxx-jdbc.xml
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io exception: The Network Adapter could not establish the connection
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
         at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
         at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
    2. Configuriing the jndi in Weblogic server
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:SERVICENAME
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
    Problem
    database url is generated based on SID
    eg: jdbc:oracle:thin:@localhost:1521:SID
    Solution
    (generate seperate url for SERVICE NAME)
    jdbc:oracle:thin:@localhost:1521/SERVICENAME
    ------------------------

    It is so clear: host not found error for network connection and the other SID servcie name not found means your oracle instance name is not up. check with srvctl status for given servcie name or node, else check CRS_Stat -t if you are using RAC.

  • How to connect to weblogic data source using jndi name?

    I am trying to connect to database using data source look up from weblogic as below:
    factory = "weblogic.jndi.WLInitialContextFactory"
    conn = zxJDBC.lookup('ApplicationDB',INITIAL_CONTEXT_FACTORY=factory)
    this is throwing DatabaseError:
    however i can connect to the db using uname, pwd and url. its working fine using zxJDBC in jython.
    any clue why the first one is failing?

    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import java.util.*;
    public class MyDataSourceLookupClient
         public final static String JNDI_FACTORY = "weblogic.jndi.WLInitialContextFactory";
         private static String serverUrl ="t3://localhost:7001";
    public static void main(String ar[])throws Exception
    InitialContext ic=null;
    try{
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
              env.put(Context.PROVIDER_URL, serverUrl);
              ic = new InitialContext(env);
    catch(Exception e){}
    try{
    DataSource ds=ic.lookup("YourDataSourceJNDIName");
    Connection con=ds.getConnection();
    System.out.println("\n\t Got Connection: "+con);
    con.close();
    catch(Exception e)
    System.out.println("\n\n\t jack Exception => "+e);
    e.printStackTrace();
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Datasource connection in Weblogic server using JDeveloper

    Hi,
    I am using JDeveloper 11g Release 2 (11.1.2.1.0) and WebLogic Server Version: 10.3.5.0.
    We have a project (ant build.xml) with some Application Modules.
    In JDeveloper we did the following to create a connection to datasource in the WebLogic:
    1- Created an Application Server Connection (called ActivityModuleConnection) testing this gives success so we have connection to WebLogic.
    2- Created a database connection (called ActivityModuleCore) and test goes well here as well.
    3- In WebLogic Server created a datasource (called jdbc/ActivityModuleCordeDS).
    And here are the bc4j.xcfg file that we have:
    <AppModuleConfig DeployPlatform="EjbWls" oracle.jbo.usemds="false" jbo.pers.max.active.nodes="-1" oracle.adfm.usemds="false" name="J2EEDS" ApplicationName="dv.framework.activity.model.ActivityModule">
    <Security AppModuleJndiName="dv.framework.activity.model.ActivityModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/VeraActivityModuleCoreDS" AppServerConnectionName="ActivityModuleConnection"/>
    </AppModuleConfig>
    <ConnectionDefinition name="ActivityModuleConnection">
    <Entry value="7002" name="JMX_CONNECTOR_SSL_PORT"/>
    <Entry value="WebLogic_10.x" name="ConnectionType"/>
    <Entry value="weblogic" name="user"/>
    <Entry value="base_domain" name="weblogic.domain"/>
    <Entry value="localhost" name="JMX_CONNECTOR_HOST"/>
    <Entry value="false" name="USE_SSL"/>
    <Entry value="7001" name="JMX_CONNECTOR_PORT"/>
    <SecureEntry name="password">
    <XXXXXXXX>
    </SecureEntry>
    <Entry name="DeployPassword" value="true"/>
    </ConnectionDefinition>
    </BC4JConfig>
    But when running the application it seems that it can not find the datasource:
    oracle.jbo.ConfigException: JBO-33003: The connection file ActivityModuleConnection has not been defined.
    at oracle.jbo.client.Configuration.initializeFromConnectionName(Configuration.java:1255)
    at oracle.jbo.client.Configuration.getConfiguration(Configuration.java:648)
    at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:605)
    at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:332)
    Could you help please? what am I doing wrong here?
    I also tried with
    JDBCDataSource="jdbc/VeraActivityModuleCoreDS" but no luck.
    Best Regards
    Keyvan

    Hi Johan and thanks for comments,
    Now I made some changes and it looks like :
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig xmlns="http://xmlns.oracle.com/bc4j/configuration" version="11.1">
    <AppModuleConfigBag ApplicationName="dv.framework.activity.model.ActivityModule">
    <AppModuleConfig name="J2EEDS" DeployPlatform="LOCAL" jbo.pers.max.active.nodes="-1" java.naming.factory.initial="oracle.jbo.common.JboInitialContextFactory" ApplicationName="dv.framework.activity.model.ActivityModule" oracle.jbo.usemds="false" oracle.adfm.usemds="false">
    <Security AppModuleJndiName="dv.framework.activity.model.ActivityModule"/>
    <Custom JDBCDataSource="jdbc/VeraActivityModuleCoreDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    But the error message is:
    oracle.jbo.DMLException: JBO-27200: JNDI-fel. couldn't search for datasource in the context jdbc/VeraActivityModuleCoreDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1476)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:332)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:592)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:422)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8995)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4603)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2533)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2343)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3242)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
    Best Regards
    Keyvan
    Edited by: 916815 on 2012-mar-24 08:55

  • How to print/list all the groups/users present in Weblogic using Java code

    Hi,
    Weblogic version : 11.1.1.5
    How to print/list all the groups/users present in Weblogic using Java code
    I want to make a remote connection to Weblogic server and print all the users/groups present in it.
    I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
    Thanks in advance,
    Edited by: 984107 on 05-Feb-2013 05:26
    Edited by: 984107 on 05-Feb-2013 22:59

    see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
    Hope this helps.

  • Connect to weblogic Server's JVM

    Hello everybody,
    I´m trying connect to weblogic server´s JVM to execute a class inside the jar.
    It works fine, but my jar has a class with static atributes that I want change its values calling the following command line:
    %JAVA_HOME%\bin\java -Djavax.naming.Context.INITIAL_CONTEXT_FACTORY=weblogic.jndi.WLInitialContextFactory -Djavax.naming.Context.PROVIDER_URL=t3://localhost:7001 -jar %_APP_HOME%\WEB-INF\lib\AdminServer.jar -1
    Afer it the values of my class atribute has changed but my web application does not see this news values.
    I thinking... Am I connected to weblogic server´s JVM ?
    Could Anyone help me?

    You need to take a step back and think about what you're trying to achieve, Denilson.
    Using static attributes in classes has all sorts of side-effects because of how classloaders work in J2EE - if you're referencing a class used inside the web application and poking a static property, what is most likely happening is that your local application is loading the class in its own classloader, modifying the property, and then exiting. A separate copy of the class has been loaded by the web application.
    You can see more information on classloaders here: http://edocs.bea.com/wls/docs81/programming/classloading.html#1089798
    If you want to run an application to change some value on the server, there are a number of options available:
    - getting, changing and replacing an object in the JNDI tree (this is still an ugly solution)
    - using a servlet or stateless session bean to get the job done (this is a better solution - simple, but still not as good as you could potentially get)
    I'd suggest using a servlet to modify an attribute scoped at the web application level as a lightweight way to do what you're trying to. <i>(if I'm understanding what your goal is correctly)</i>. That way you could test making changes with your browser, not just a Java application.
    Does any of that help?
    <br>
    Kevin Powe
    http://www.integral-techsolutions.com

  • JMX - java -  how to connect on MBeans using encrypted password?

    Hi all,
    I am trying to write a java program which connect on weblogic JMX server:
    Map<String, String> jmxEnvMap = new HashMap<String, String>();
    jmxEnvMap.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    jmxEnvMap.put(javax.naming.Context.SECURITY_PRINCIPAL, username);
    jmxEnvMap.put(javax.naming.Context.SECURITY_CREDENTIALS, password); //
    -- How to use the encrypted password value (ex. {3DES}1HQGOlfHha4rhNlqEOvcOQ==) indeed of its clear text value?
    -- How to use userConfigFile/userKeyFile files to connect on the mbeans server?
    Cyryl

    Hi all,
    I am trying to write a java program which connect on weblogic JMX server:
    Map<String, String> jmxEnvMap = new HashMap<String, String>();
    jmxEnvMap.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    jmxEnvMap.put(javax.naming.Context.SECURITY_PRINCIPAL, username);
    jmxEnvMap.put(javax.naming.Context.SECURITY_CREDENTIALS, password); //
    -- How to use the encrypted password value (ex. {3DES}1HQGOlfHha4rhNlqEOvcOQ==) indeed of its clear text value?
    -- How to use userConfigFile/userKeyFile files to connect on the mbeans server?
    Cyryl

  • "Connection refused" when using Java client for Web Service

    I deployed a web service to Weblogic Server 7.0 running on Windows 2000. I can
    use IE browser to see its WSDL perfectly but when I run the Java client, the proxy
    method call generates the following error:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:412)
    at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:390)
    at weblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
    ding.java:246)
    at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:34)
    at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    javax.xml.rpc.JAXRPCException: Failed to send request:java.net.ConnectException:
    Connection refused: connect
    at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:37)
    at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Exception in handler's handleRequest().
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Conn
    ection refused: connect; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    186)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:459)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)

    In your client program, when you do "new XXX_Impl(String wsdlurl)", did you
    pass in the wsdl you were hitting with browser?
    -Neal
    "Ray Yan" <[email protected]> wrote in message
    news:[email protected]...
    >
    I deployed a web service to Weblogic Server 7.0 running on Windows 2000. Ican
    use IE browser to see its WSDL perfectly but when I run the Java client,the proxy
    method call generates the following error:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    atjava.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    atweblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:412)
    atweblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:390)
    atweblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
    ding.java:246)
    atweblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:34)
    atweblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    javax.xml.rpc.JAXRPCException: Failed to sendrequest:java.net.ConnectException:
    Connection refused: connect
    atweblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:37)
    atweblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Exception in handler's handleRequest().
    java.rmi.RemoteException: SOAPFault:javax.xml.rpc.soap.SOAPFaultException: Conn
    ection refused: connect; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    186)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: Connection refused:connect
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:459)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)

  • "Connections currently in use" negative???

    WL 4.5.1 sp7, Solaris 2.6, Oracle 8i
    We're have multiple connection pools set up on wl, and are seeing very slow
    response on one particular pool. Upon inspection of the WL console, we see
    that the connections currently in use is '-5'! Is this a console bug, or is
    WL somehow catching more returned connections than checked-out connections?
    Gene

    This is the case on slow connection pools in WLS 4.5.1. It is fixed in SP13.
    http://websupport.beasys.com/websupport/clearexp_cgi/case.htm?case.id_number
    =184642
    *** NOTES 26-JUL-2000 14:26:14 [26-JUL-2000 14:26:14 PST] websupport
    *** Logged by contact: Michael Reiche, 408-718-5021
    Product=WLS 4.5.1 SP10 Solaris 2.6
    Revision=(Release Level)=SP10
    Problem Description=Whenever a connection pool runs out of connections, all
    the threads of the WLS become blocked.
    I had a discussion with Joe Weinstein starting on the weblogic jdbc news
    group and continuing in email. He told me to use Driver.connect() instead of
    DriverManager.getConnection() and provided me with a patch - jtsdriver.jar.
    Can someone please provide me with more information on this? Specifically,
    if jtsdriver.jar is an official patch? Here is the last email from Joe ...
    At 04:37 PM 7/11/00 -0700, you wrote:
    >
    Seems to work. Thanks a bunch.
    MikeSure, glad to help.
    Joe
    *** NOTES AND STATUS CHANGE 30-NOV-2000 13:51:11 [30-NOV-2000 13:51:11 PST]
    moshea Action Type: Sent E-Mail
    Hi Mike,
    Here is the modified service pack doc which includes the reference to Issue
    32204
    This fix made it to source but for some reason did not get documented.
    So this fix for sure is in service pack 13.
    hope this is what you are looking for.
    Best Regards,
    Michael O'Shea.
    Mike
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Gene Chuang wrote:
    Hi Joe,
    I could have anticipated the solution ;-).... back in my old job this
    problem would not have even manifested, so you can believe how far back
    into my head my eyes rolled when I found out we were still running WL
    4.5.1 sp7 on JDK 1.2.2 here. Curse me for working for a big, profitable
    Internet company with long QA cycles!And curse us for producing an old product that was stable enough that the
    big profitable company never had to replace it till now maybe? ;-)
    Gene
    Joseph Weinstein wrote:
    Gene Chuang wrote:
    WL 4.5.1 sp7, Solaris 2.6, Oracle 8i
    We're have multiple connection pools set up on wl, and are seeing very
    slow
    response on one particular pool. Upon inspection of the WL console,we see
    that the connections currently in use is '-5'! Is this a console bug,or is
    WL somehow catching more returned connections than checked-outconnections?
    >>>>
    Gene
    It's neither of those, it is probably a counting bug in that server'sversion
    of the pool.
    Joe

  • ResourceException: Access not allowed (when trying to grab a connection from weblogic pool)

    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries to grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);
    Thanks in advance.

    Hi Jung,
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Do you know how to change security setting on the connection pool?
    Thanks.WebConsole:
    1.Compatibility Security => ACLs
    Create a new ACL,
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : reserve, reset
    group : everynone
    2.Services => JDBC => Connection Pool
    Create a new Connection Pool
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button
    Slava
    >
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jung,
    Could you try providing weblogic user name and password
    in the properties?
    Could you also check security setting of the connection pool?
    Regards,
    Slava Imeshev
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Well that is exactly what I am doing. The variable dbName is database
    connection pool name that I created in weblogic console. Again, it
    worked
    in WLS6 but after migration, it stopped working.
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    In my code I am supplying name of the connection pool already
    created
    in
    weblogic server. I am asking you to get connection from the pool
    using
    pool
    driver.
    In your case you are trying to create connection straight to
    database
    using pool
    driver.
    What I am asking is pass name of the connection pool instead of
    database
    name.
    Thanks,
    Mitesh
    Jung Yang wrote:
    What would be the difference between your code and mine? Mine
    simple
    appends dbName string value for connection pool name at the end of
    "jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
    not
    work in WLS7?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);Instead of doing this what if you use
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
    Will you please try this and see if that helps?
    Mitesh
    Jung Yang wrote:
    Isn't that exactly what I posted for my code piece?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    Try As described below:
    The following example demonstrates how to use a database
    connection
    pool
    from a servlet.
    Load the pool driver and cast it to java.sql.Driver. The
    full
    pathname
    of
    the driver is weblogic.jdbc.pool.Driver. For example:
    Driver myDriver = (Driver)
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Create a connection using the URL for the driver, plus
    (optionally)
    the
    name of the registered connection pool. The URL of the pool
    driver
    is
    jdbc:weblogic:pool.
    You can identify the pool in either of two ways:
    Specify the name of the connection pool in a
    java.util.Properties
    object
    using the key connectionPoolID. For example:
    Properties props = new
    Properties();props.put("connectionPoolID",
    "myConnectionPool");Connection conn =
    myDriver.connect("jdbc:weblogic:pool", props);
    Add the name of the pool to the end of the URL. In this case
    you
    do
    not
    need a Properties object unless you are setting a username
    and
    password
    for using a connection from the pool. For example:
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
    null);
    Note that the Driver.connect() method is used in theseexamples
    instead of
    the DriverManger.getConnection() method. Although you may
    use
    DriverManger.getConnection() to obtain a databaseconnection,
    we
    recommend
    that you use Driver.connect() because this method is not
    synchronized
    and
    provides better performance.
    Note that the Connection returned by connect() is an
    instance
    of
    weblogic.jdbc.pool.Connection.
    Call the close() method on the Connection object when youfinish
    with
    your
    JDBC calls, so that the connection is properly returned to
    the
    pool. A
    good coding practice is to create the connection in a try
    block
    and
    then
    close the connection in a finally block, to make sure the
    connection
    is
    closed in all cases.
    conn.close();
    Mitesh
    Jung Yang wrote:
    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries
    to
    grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at
    weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn =
    driver.connect("jdbc:weblogic:pool:"
    +
    dbName,
    null);
    >>>>>>>>>
    Thanks in advance.

  • Cannot connect to p6ws using demo application

    Hi everyone,
    I started a few days ago to take some interest in Primavera p6 as a was asked to connect to an existing Primavera P6 server. First of all I wanted to do a standalone installation and see what was this about...
    Well, I was provided with some information about the current primavera P6 version that was being used, (Release 7) so I started to download the Primavera P6 project management.
    So far so good, I installed it using SQL Server and (after a few tries) i succeeded in login into the program.
    After some reading I decided to use Primavera P6 web services as the way to connect my system to the current Primavera P6 system. So I willingly downloaded the P6 Webservices module and Weblogic 10g R3 (recommended version in the administrator guide pdf).
    After downloading both files I installed without much trouble Primavera P6 Web services and I linked it to the pmdb database in my system successfully (or at least it says so) and right after that I installed Weblogic 10g R3 in production mode in my system aswell. I created a new domain called test_primavera.
    I managed to start Weblogic using "startWeblogic.cmd" script existing in weblogichome/user_projects/domains/bin folder.
    The problems begin now...
    I follow up all the steps described in the administrator guide and I try to launch the p6ws.war existing in the previously installed p6webservices_1 folder in my system.
    The first problem I found is that Weblogic is not able to finde a class named CXFServlet as it jar is not located in the classpath. Well I've checked my %CXF_HOME% environment variable and it was ok (otherwise I would not be able to install P6 WebServices and I tried manually to add %CXF_HOME% folder to the classpath with no result. Checking the startWeblocig.cmd log I discover that Weblogic is always looking for classes in the already deployed war folder which in my case is "C:\weblogichome\user_projects\domains\test_primavera\servers\AdminServer\tmp\_WL_user\p6ws\nmdpik\war\WEB-INF\lib" and no matter what I did it always looked for those classes in that folder. In a desperate attempt I copied all the jars from the %CXF_HOME%/modules folder into that folder and found a new error, Outofmemoryerror PermGenSpace.
    I managed to fix this error playing with the memory variables and I finally managed to launch the p6ws war in my system (yay!!).
    I am now able to go open the browser (http://mycomputer:7001/p6ws) and I see what I think is the primavera p6 webservice activated. But I cannot use the p6wsdemo.jar to connect to the server it always says "Demo failed. Please check if the server is running and try again." I configured the authentication using Username token profile and I've tried the 3 users I know in the system (pubuser, privuser and admin).
    I have tried also to create a small program to login in the system but with no result aswel, here is the code
    private static boolean testLogin()
              URL wsdlURL = null;
              try {
                   wsdlURL = new URL("http://mycomputer:7001/p6ws/services/AuthenticationService?wsdl");
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              AuthenticationService service = new AuthenticationService(wsdlURL);
              AuthenticationServicePortType servicePort = service.getAuthenticationServiceSOAP12PortHttp();
              BindingProvider bp = (BindingProvider)servicePort;
              boolean success = false;
              try {
                   success = servicePort.login("admin", "admin", 1); // <- Line 119
              } catch (IntegrationFault e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return success;
    When I try to run this program I always get the following error:
    Information: Creating Service {http://xmlns.oracle.com/Primavera/P6/V7/WS/Authentication}AuthenticationService from WSDL: http://mycomputer:7001/p6ws/services/AuthenticationService?wsdl
    com.primavera.ws.p6.authentication.IntegrationFault: Fatal error: Could not initialize class com.primavera.integration.server.ServerFacade
         at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:128)
         at $Proxy41.login(Unknown Source)
         at p6webservice.testLogin(p6webservice.java:119)
         at p6webservice.main(p6webservice.java:71)
    Now I am completely stuck.
    I am working in a Windows 8 - 64 bit system using Primavera P6 Release 7 and Weblogic 10g R3. I have thought about installing everything in a Win xp 32 bit emulated system but I would like to avoid it. Any ideas?
    Any help would be great
    Thanks in advance!
    Regards
    PS: Sorry if my english causes you any trouble :)
    Edited by: 991858 on 05-mar-2013 7:21

    Try switching to HTTP Cookies for authentication. This is a simpler method and usually works well with .Net.
    Also, you should be able to call the ReadDatabaseInstances without logging in to test if the web service is returning values.
    var dbinstances = AuthService.ReadDatabaseInstances(new object());
    I have a helper method that I use with HTTP Cookies for authentication.
    using System;
    using System.Linq;
    using System.Net;
    using Primavera.Ws.P6.Authentication;
    namespace Fortum.ServiceHelpers.P6Api
    public class P6AuthenticationService
    private const String TransportUrl = "http://<hostname>:<p6WsPort number>/p6ws/services/AuthenticationService";
    public AuthenticationService AuthService;
    private readonly Login _login;
    public CookieContainer CookieContainer { get; set; }
    private string _server;
    public String Server
    get { return _server; }
    set
    _server = value;
    AuthService.Url = UpdateP6HostUrl();
    private int _port;
    public Int32 Port
    get { return _port; }
    set
    _port = value;
    AuthService.Url = UpdateP6HostUrl();
    public Boolean IsLoggedOn { get; set; }
    private string _username;
    public String Username
    get { return _username; }
    set
    _username = value;
    login.UserName = username;
    private string _password;
    public String Password
    get { return _password; }
    set
    _password = value;
    login.Password = password;
    private int _databaseInstanceId;
    public Int32 DatabaseInstanceId
    get { return _databaseInstanceId; }
    set
    _databaseInstanceId = value;
    login.DatabaseInstanceId = databaseInstanceId;
    _login.DatabaseInstanceIdSpecified = true;
    public P6AuthenticationService()
    _login = new Login();
    AuthService = new AuthenticationService();
    IsLoggedOn = false;
    public P6AuthenticationService(String p6WsServer, Int32 p6WsPort)
    : this()
    Server = p6WsServer;
    Port = p6WsPort;
    AuthService.Url = UpdateP6HostUrl();
    AuthService.CookieContainer = new CookieContainer();
    public String UpdateP6HostUrl()
    return TransportUrl.Replace("<hostname>", Server).Replace("<p6WsPort number>", Port.ToString());
    public Boolean DatabaseExists(String databaseName)
    var retVal = false;
    if (databaseName == null) throw new ArgumentNullException("databaseName");
    if (GetDatabaseInstance(databaseName) != null) retVal = true;
    return retVal;
    public Boolean DatabaseExists(int databaseId)
    var retVal = false;
    if (databaseId < 1) throw new ArgumentOutOfRangeException("databaseId");
    if (GetDatabaseInstance(databaseId) != null) retVal = true;
    return retVal;
    public Int32? GetDatabaseInstanceID(String databaseName)
    if (databaseName == null) throw new ArgumentNullException("databaseName");
    var databaseInstances = ReadDatabaseInstances().ToList();
    var instance = databaseInstances.FirstOrDefault(x => x.DatabaseName.IsEqualTo(databaseName, true));
    if (instance != null) return instance.DatabaseInstanceId;
    return null;
    public ReadDatabaseInstancesResponseDatabaseInstance GetDatabaseInstance(String databaseName)
    if (databaseName == null) throw new ArgumentNullException("databaseName");
    var databaseInstances = ReadDatabaseInstances().ToList();
    return databaseInstances.FirstOrDefault(instance => instance.DatabaseName.IsEqualTo(databaseName, true));
    public ReadDatabaseInstancesResponseDatabaseInstance GetDatabaseInstance(int databaseId)
    if (databaseId < 1) throw new ArgumentOutOfRangeException("databaseId");
    var databaseInstances = ReadDatabaseInstances().ToList();
    return databaseInstances.FirstOrDefault(instance => databaseId == instance.DatabaseInstanceId);
    public ReadDatabaseInstancesResponseDatabaseInstance[] ReadDatabaseInstances()
    var dbinstances = AuthService.ReadDatabaseInstances(new object());
    return dbinstances;
    public Boolean Login(string username, string password)
    _login.UserName = username;
    _login.Password = password;
    if (AuthService == null) return false;
    AuthService.Login(_login);
    CookieContainer = AuthService.CookieContainer;
    IsLoggedOn = true;
    return true;
    public void Logout()
    AuthService.Logout(new object());
    IsLoggedOn = false;
    Gene

  • VB/Delphi connectivity to Weblogic server

    We have a application server currently running on BEA's Weblogic Server 6.0.
    In addition to my webclients built using JSP Servlet etc., I would like to
    build a intranet application using either Microsoft Visual Basic or Borland
    Delphi or any other front end tool. Is there a way to have my application
    build thus to connect to Weblogic server?
    Thanks and appreciate any help.
    Raj George

    Check out Jintegra from Linar.com.
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "Raj George" <[email protected]> wrote in message
    news:3b0da123$[email protected]..
    We have a application server currently running on BEA's Weblogic Server6.0.
    In addition to my webclients built using JSP Servlet etc., I would like to
    build a intranet application using either Microsoft Visual Basic orBorland
    Delphi or any other front end tool. Is there a way to have my application
    build thus to connect to Weblogic server?
    Thanks and appreciate any help.
    Raj George

  • Failed to lookup connection factory weblogic.jms.XAConnectionFactory

    when i deploy any service with jms protocol (write to queue) using sbconsole i face this error
    "Failed to lookup connection factory weblogic.jms.XAConnectionFactory"
    any suggestion?
    Thanks

    weblogic.jms.XAConnectionFactory is the default XA connection factory class. You wont see this in any JMS modules in Weblogic server. It should be available by default.
    Can you once check the JNDI tree of your servers if this JNDI name exists. (in Weblogic Administration console go to Servers, click on any server and there will be a link for JNDI tree on the server's page)
    Also, try creating a new connection factory in Weblogic console and using that in your service. Although it is highly unlikely that a new connection factory will work since all custom XA connection factories are dependent on the default connection factory class you mentioned.

Maybe you are looking for

  • 'RP_GET_PERNR_FROM_USERID'

    DATA:   USRID LIKE PA0105-USRID,       USRTY LIKE PA0105-USRTY. USRID = PA0105-USRID. USRTY = PA0105-USRTY. *function module to the personnel number CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'   EXPORTING     BEGDA           = sy-datum     ENDDA        

  • Meaningful error handling with Sax Parsers (Apache Xerces)

    Hello All, I am using the Apache Xerces Parser 2.6.2 to parse some XML documents with a W3C XML Schema document. My schema has a lot of rules enforced on the different elements and I was looking at some way to get userfriendly/meaningful prescriptive

  • Can i create photo album directly in my ipad 2?

    As you know we have to create photo albums form computer,but is there any way to create photo albums directly in th ipad??

  • Parenthasis in songs not showing up in ios5 music player.

    When I go to look at a song that is a remix or has any type of parenthasis, it only shows the original song title. And not the remix info. For example: Yoü and I (Mark Taylor Remix) is in my iPads music library as Yoü and I but I know that's not how

  • ODI 9.1.3

    Hi, I am trying to load the metadata of a dimension into Hyperion Planning. It is from flat file (.csv) to Hyperion Planning. I am facing the below error. Can any one one help me out. org.apache.bsf.BSFException: exception from Jython: Traceback (inn