Creating an application server stub until the JCA is fully implemented

Greetings,
          We have pretty much decided that the Java Connector Architecture is the
          way to go, when it comes down to integrating with EIS systems.
          However, the problem still remains that the JCA spec is not fully
          supported in the current beta release of the Connector implementation
          within WLS 6.0. In particular,
          I see that only non-transaction Resource Adapters can be deployed in
          this release (local transaction and XA transaction ones will have to
          wait until the full release in the summer).
          However, what our group wants to do is write XA-compliant Resource
          Adapters, even ahead of the actual support for them in the product. The
          issue for us is how to structyure our implementation so that we end up
          with a minimal re-write when the full implementation of the spec
          arrives.
          It seems to me that if I wanted to have support for XA-compliant
          Resource Adapters NOW, I would have to actually write some of the code,
          that would otherwise be part of the application server/container,
          myself. In particular, it is the code that "enlists" the XAResource
          object, which is associated with the ManagedConnection that an
          application bean asks for, with the Transaction Manager that is later
          going to coordinate things in the global XA transaction.
          Let me describe how I see things:
          when the application component calls into the Resource Adapter for a
          connection handle, the ConnectionFactory class according to the spec)
          delegates the call to the application server ConnectionManager (that it
          has been initialised with, typically at creation time), which in turn
          calls the createManagedConnection method of the ManagedConnectionFactory
          class inside the Resource Adapter.
          Now, I want to emulate the application server so that the
          ConnectionManager class is in fact implemented in my Resource Adapter.
          That I guess will not be a problem. However, the next thing IS (in the
          current BETA release): the application server code would normally
          retrieve the XAResource instance that is "hanging" off the
          ManagedConnection that has just been created and would "enlist" this
          with the Transaction Manager. Thereafter, everything would follow the
          normal XA transaction route, as the Transaction Manager would start
          calling back into the XAResource, notifying it on the status of the
          global XA transaction (start, end, prepare, commit, abort).
          Looking at the JTA specification, an in particular at what the
          application server code has to do, I see the following set of
          interactions:
          TransactionalResource res = ResourceFactory.getTransactionalResource();
          XAResource xaRes = res.getXAResource();
          (TransactionManager.getTransaction()).enlistResource(xaRes);
          <<<<<<<<<------------ how do/can I, in
          application code, within the Resource Adapter in fact, get hold of the
          TransactionManager instance? This is trivial when it is implemented
          within the app server code, but could I also do this?
          This will obviously be an interim solution for us: we will implement a
          very small part of the appliction server logic (you could call it a
          stub) around the registration of the XA resource with the global
          transaction manager. The aim is really to write something that will
          appear to our application beans as well as to the rest of the Resource
          Adapter as something that is behaving in the same way as the application
          server would (in the full implementation of the JCA spec), and would
          also ensure that neither our application component code nor our Adapter
          code would not have to be dramatically changed when that app server
          piece of the JCA-specified system contract implementation is in place.
          I realise that the APIs to the Transaction Manager implementation within
          WLS are "private" and that people may not want us to be using them. But
          it is the only way that I see for us to create something (Resource
          Adapters) which are a)XA compliant and b) will only have to change
          minimally, if at all, when the actual implementation is in place.
          I would appreciate any thoughts from BEA folks out there. Also, if you
          see another way of solving my problem (support global XA transaction
          within my Resource Adapters, AND minimal re-write) that I may be
          missing, I would appreciate your feeback around that.
          Many thanks in advance
          Kostas
          Kostas Karagianidis
          Technical Consultant
          PricewaterhouseCoopers
          Delta 602, Delta Business Park
          Swindon SN5 7XJ, Wiltshire
          United Kingdom
          Tel: +44 1793 536291
          Fax: +44 1793 529641
          Mobile: +44 7768 083452
          e-mail: [email protected]
          The information transmitted is intended only for the person or
          entity to which it is addressed and may contain confidential and/or
          privileged material. Any review, retransmission, dissemination or other
          use of, or taking of any action in reliance upon, this information by
          persons or entities other than the intended recipient is prohibited.
          If you received this in error, please contact the sender and delete the
          material from any computer.
          

Did you sign your jar file for JWS? I don't think the security manager will allow a filebrowser if the jar is not signed.
Edited by: Plee on Dec 29, 2008 6:54 AM

Similar Messages

  • WS not created in application server control after deployment

    Hi,
    I just tried to deploy fulfillmentESB project(SOADemo Projects) from Jdev to Oracle App server control. But there was no webservice created in Oracle application server control under webservices link....plz help me...
    Actually the steps which i had followed to deploy that fulfillment project are:
    * right-click fulfillmentESB
    * select Register with ESB, Integration connection
    after which the fulfillment webservice can be seen in ESB control as well as application server control. But i could not able to see webservice created in application server control.
    Also i tried deploying the fulfillmentESB using EAR file - no use
    So kindly give me some steps to solve this issue...
    -Indhu

    Here is an example of the two steps required to deploy a Web Service application, using the ant task for the 10.1.3.x release.
    <project name="CalculatePrice" default="all" basedir="." xmlns:o="antlib:oracle">
      <property file="build.properties"/>
      <property name="deployeruri"        value="deployer:oc4j:${oc4j.host}:${oc4j.admin.port}"/>
    <!--
      <property name="deployeruri" value="deployer:oc4j:opmn://${oc4j.host}:${oc4j.opmn.port}/home" />
    -->
      <property name="bindweb.website" value="default-web-site"/>
      <property name="app.name" value="sdots"/>
      <target name="deploy">
        < o :deploy file="${basedir}/dist/${app.name}.ear"
                  deploymentname="${app.name}" deployeruri="${deployeruri}"
                  userid="${oc4j.admin.user}" password="${oc4j.admin.password}"/>
        < o :bindWebApp deploymentname="${app.name}" deployeruri="${deployeruri}"
                      userid="${oc4j.admin.user}" password="${oc4j.admin.password}"
                      webmodule="webservice-web" websitename="${bindweb.website}"
                      contextroot="/sdots"/>
      </target>Not sure if this applies to your specific scenario.
    ps. cross posting on the different OTN forums is generally not a good idea as you get threads out of sync. In this specific case, you are running into an issue with a specific ESB demo, and the ESB-SOA forum is definitly a better palce to get specific help.
    WS not created in application server control after deployment
    ps2. I guess you should got it by now, as I am not the first one to make this comment.
    Webservice not created in oracle application server after deployment
    ps3. We still don't have details about the versions you are using and the specific about THE SOADemo Projects - provide the information someone else would need in the forum that best correspond to your issue; the SOA one in this case ;-)

  • I cannot create an Application server connection in Oracle JDeveloper 11 g

    i cannot create an Application server connection in Oracle JDeveloper 11 g , i got 0 of 9 test successful and i got this erros
    Cannot establish connection.
    Testing JSR-160 DomainRuntime ... skipped.
    Testing JSR-88 ... skipped.
    Testing JSR-88-LOCAL ... skipped.
    Testing JNDI ... skipped.
    Testing JSR-160 Edit ... skipped.
    Testing HTTP ... failed.
    Testing Server MBeans Model ... skipped.
    Testing HTTP Authentication failed
    0 of 9 tests successful.

    Hi,
    you can start the Jdev by command line and then see the log that it is generating. Maybe there you can see the problem that is happening.
    Also you can check if the server is running with
         telnet hostname 7001
    Some possible reasons
         you have a firewall blocking the connection
         did you check /etc/hosts file entry ? should be something like this <ip address of host > hostname1
    Cheers
    Augusto

  • I have started using Roboform Lite 2.0.0, after Roboform it takes to much time to open Firefox and when i open a new tab, until the tab is fully loaded, Firefox is not responding. Please help.

    After installing Roboform 2.0.0;
    Starting Firefox started to take too much time.
    When i open a new tab, until the tab is fully loaded and Roboform realizes which website it is, Firefox does not respond.
    When i tell Roboform to fill the username and password fields in a tab, until Roboform submits Firefox does not respond.
    I mean, as if Roboform is not working background and Firefox cannot work multithread because of it. When i navigate from one tab to another, Roboform is also checking the tab and meanwhile Firefox is waiting for Roboform to finish its work.
    Please help me about this problem.
    Regards
    İlhan Tanrıverdi ([email protected])

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Error while creating a application server connection in jdeveloper 10.1.3.2

    When I am trying to create a connection using the wizard with the following inputs
    hostname as :- localhost
    RMI Por as 22667
    When I use the test conection receive the following error
    racle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: Error while getting remote MBeanServer for url: ormi://localhost:22667/default
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:502)
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:161)
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.<init>(RemoteMBeanServer.java:128)
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.getMBeanServer(RemoteMBeanServer.java:158)
         at oracle.oc4j.admin.jmx.client.ClientMBeanServerProxyFactory.getMBeanServer(ClientMBeanServerProxyFactory.java:68)
         at oracle.oc4j.admin.jmx.remote.rmi.RMIJMXConnectorImpl.getConnector(RMIJMXConnectorImpl.java:190)
         at oracle.oc4j.admin.jmx.remote.JMXConnectorImpl.connect(JMXConnectorImpl.java:400)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getJMXConnector(J2EEConnectionWrapper.java:269)
         at oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.getPresentation(J2EEConnectionWrapper.java:76)
         at oracle.jdevimpl.cm.dt.browser.j2ee.J2EEBrowser.openConnectionBrowser(J2EEBrowser.java:75)
         at oracle.jdeveloper.cm.dt.ConnectionNode$NodeOpen.doWork(ConnectionNode.java:423)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:613)
    Caused by: javax.naming.NamingException: Error reading application-client descriptor: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused] [Root exception is java.lang.InstantiationException: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]]
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:127)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:468)
         ... 14 more
    Caused by: java.lang.InstantiationException: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at com.oracle.naming.J2EEContext.create(J2EEContext.java:104)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
         ... 20 more
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:110)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
         at com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
         at com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
         ... 21 more
    Caused by: javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:292)
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
         ... 26 more
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:428)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:207)
         at com.evermind.server.rmi.RMIClientConnection.createSocket(RMIClientConnection.java:682)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.createNetworkConnection(ClientSocketRmiTransport.java:58)
         at oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:78)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
         at com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:646)
         at com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:190)
         at com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:174)
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:283)
         ... 28 more
    ---- Embedded exception
    javax.naming.NamingException: Error reading application-client descriptor: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused] [Root exception is java.lang.InstantiationException: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]]
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:127)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:468)
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:161)
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.<init>(RemoteMBeanServer.java:128)
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.getMBeanServer(RemoteMBeanServer.java:158)
         at oracle.oc4j.admin.jmx.client.ClientMBeanServerProxyFactory.getMBeanServer(ClientMBeanServerProxyFactory.java:68)
         at oracle.oc4j.admin.jmx.remote.rmi.RMIJMXConnectorImpl.getConnector(RMIJMXConnectorImpl.java:190)
         at oracle.oc4j.admin.jmx.remote.JMXConnectorImpl.connect(JMXConnectorImpl.java:400)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getJMXConnector(J2EEConnectionWrapper.java:269)
         at oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.getPresentation(J2EEConnectionWrapper.java:76)
         at oracle.jdevimpl.cm.dt.browser.j2ee.J2EEBrowser.openConnectionBrowser(J2EEBrowser.java:75)
         at oracle.jdeveloper.cm.dt.ConnectionNode$NodeOpen.doWork(ConnectionNode.java:423)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:613)
    Caused by: java.lang.InstantiationException: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at com.oracle.naming.J2EEContext.create(J2EEContext.java:104)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
         ... 20 more
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:110)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
         at com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
         at com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
         ... 21 more
    Caused by: javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:292)
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
         ... 26 more
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:428)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:207)
         at com.evermind.server.rmi.RMIClientConnection.createSocket(RMIClientConnection.java:682)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.createNetworkConnection(ClientSocketRmiTransport.java:58)
         at oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:78)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
         at com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:646)
         at com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:190)
         at com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:174)
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:283)
         ... 28 more
    ---- Embedded exception
    java.lang.InstantiationException: Error communicating with server: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at com.oracle.naming.J2EEContext.create(J2EEContext.java:104)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:468)
         at oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:161)
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.<init>(RemoteMBeanServer.java:128)
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.getMBeanServer(RemoteMBeanServer.java:158)
         at oracle.oc4j.admin.jmx.client.ClientMBeanServerProxyFactory.getMBeanServer(ClientMBeanServerProxyFactory.java:68)
         at oracle.oc4j.admin.jmx.remote.rmi.RMIJMXConnectorImpl.getConnector(RMIJMXConnectorImpl.java:190)
         at oracle.oc4j.admin.jmx.remote.JMXConnectorImpl.connect(JMXConnectorImpl.java:400)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getJMXConnector(J2EEConnectionWrapper.java:269)
         at oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.getPresentation(J2EEConnectionWrapper.java:76)
         at oracle.jdevimpl.cm.dt.browser.j2ee.J2EEBrowser.openConnectionBrowser(J2EEBrowser.java:75)
         at oracle.jdeveloper.cm.dt.ConnectionNode$NodeOpen.doWork(ConnectionNode.java:423)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:613)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Connection refused; nested exception is:
         javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:110)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
         at com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
         at com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
         ... 21 more
    Caused by: javax.naming.CommunicationException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:292)
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
         ... 26 more
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:428)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:207)
         at com.evermind.server.rmi.RMIClientConnection.createSocket(RMIClientConnection.java:682)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.createNetworkConnection(ClientSocketRmiTransport.java:58)
         at oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:78)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
         at com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:646)
         at com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:190)
         at com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:174)
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:283)
         ... 28 more

    Caused by: java.net.ConnectException: Connection refused
    Is the Oracle application server running?

  • While downloading file to application server its overwriting the earlier fi

    hi if i am using below code with date time stamp the file is downloaded to the application server correctly and each time i execut eht program a difference file is generated as date time stamp differs each time but
    whne i remove the date time stamp ie sy-datum and sy-uzeit as we dont need to display the date time stamp with the file each time i execute the program a file is generated but it overwrites the ealier existing file please suggest as each time it shoul generate a new file....
    Concatenate file name sy-datum sy-uzeit '.txt' into v_datetimefile
    file on Appplication Server is selected
      CALL FUNCTION 'FILE_GET_NAME'
         EXPORTING
                CLIENT                        = SY-MANDT
               logical_filename              = 'ZFILE'

    Hi,
    first of all decide you have to overwrite the existing file or you want to create the new, i think the answer is there in your query itself, if you want to create new then concatenate the date and time, else don't do that.
    below are the additions we can use while opening the data set.
    FOR INPUT
    FOR OUTPUT
    FOR APPENDING
    IN BINARY MODE
    IN TEXT MODE
    AT POSITION p
    TYPE ctrl
    MESSAGE mess
    FILTER f
    Reward if useful.
    Thanks,
    Sreeram.

  • How to get creation date of a file created in application server?

    Dear experts ,
    I have some txt files in a particular path in application server .Suppose path is - \\PMICHSAPLA30\INTERFACE\\BCD\CO\OTC\SALES_RPT\test.txt.
    I want to fetch  the creation date of this txt file - test.txt . I tried with fm -  ADS2KIPUPL_GET_FILE_ATTRIBUTES , but this will give proper out put.
    I need to get file creation date. If today I am creating file - abc.txt, so according to this file I should get today's date as creation date.
    Please suggest me.  

                        BEGIN OF ty_file,
                        line(400)   TYPE c,                                      "File names
                      END   OF ty_file,
    This is the structure declaration.
    l_v_unixcom would be ls -l \\PMICHSAPLA30\INTERFACE\\BCD\CO\OTC\SALES_RPT\test.txt
    now call
    CALL 'SYSTEM' ID 'COMMAND' FIELD l_v_unixcom
                    ID 'TAB'     FIELD i_file[].
    and see contents of i_file[] it should have the details, post results so we can help further

  • Missing CRLF in file created on application server

    Hello,
    We have a requisite to create a file on the Application Server (AS/400) with CRLF at the end of every record. The records are stored in this structure:
    - OUTPUT: CHAR655, text to export;
    - LENGTH: NUMC4, length of the record (text to export).
    To create the file I have the following code:
      open dataset lv_filename
        for output in text mode
        encoding default
        with windows linefeed.
      loop at pt_output into ls_output.
        try.
            clear lv_length.
            lv_length = ls_output-length.
            transfer ls_output-output to lv_filename
              length lv_length.
          catch cx_root into gv_oref.
    *    TODO
        endtry.
      endloop.
    I have two problems:
    1º When I open the file in Notepad++ the records should have 500 caracters (lv_length = 500), but it has 502;
    2º Only LF appears, not CRLF.
    Can anyone help me please?
    Regards.

    Hello,
    Strangest thing, when I test it with 255 characters it works fine (CR+LF):
            clear lv_string.
            ls_output-output+254(1) = cl_abap_char_utilities=>cr_lf.
            lv_string = ls_output-output+0(255).
            transfer lv_string to lv_filename
              length 255.
    When I try with 256 characters it doesn't work, at the end of each record I can only find LF:
            clear lv_string.
            ls_output-output+255(1) = cl_abap_char_utilities=>cr_lf.
            lv_string = ls_output-output+0(256).
            transfer lv_string to lv_filename
              length 256.
    Don't understand why...
    Regards.

  • Creating Oracle Application Server Environment?

    Hi All,
    i am new to AS
    i need to know the way that i should build my Application server environment
    suppose i am a company that sells a software package, i have 2 clients for this package
    so i should install
    1 infrastructure (for both clients)
    1 middle tear (for both clients)
    2 application servers ( 1 each)
    please help as i asked a lot of questions before and no one reply me, it seems that this forum is not very active like the DB Admin one
    Thanks for any contribution

    If you are actively supporting 2 clients, but the codestream for each is the same then you really only need one AS... just use 2 databases and access the relevant one depending on your url parameters.
    You could create seperate AS but sounds like overkill to me.

  • JDeveloper - Error when trying to create an application server connection

    Hello everyone,
    I am trying to use JDeveloper to create a connection an Oracle WebLogic Server configured for Oracle SOA Suite. When I navigate to Connections and click on Application Server Connection, JDeveloper produces and error with the diagnostics shown below. I'm new to using JDeveloper so any help or advice on how to start to resolve this issue would be greatly appreciated. Fore the record I'm using JDeveloper 11G R2 (11.1.2.1.0) running on a Linux Red Hat 5 64 bit server.
    Performing action (39) Close All [ from  ] [ for ( <none>, MasterBuildScript.jpr, Infrastructure.jws ) ]
    Performing action (272) New Application... [ from ExplorerWindowImpl ] [ for ( <none>, MasterBuildScript.jpr, Infrastructure.jws ) ]
    Invoking command: [ from ExplorerWindowImpl ] [ for ( <none>, MasterBuildScript.jpr, Infrastructure.jws ) ]
    18-Oct-2011 10:37:02 oracle.adfinternal.rc.connection.AdfConnectionContextProvider getConnectionContext()
    SEVERE:
    oracle.adf.rc.exception.CatalogRuntimeException: error while obtaining a connection context using connection context provider [oracle.adfinternal.rc.connection.AdfConnectionContextProvider] Root Cause=[]
         at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:92)
         at oracle.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
         at oracle.jdeveloper.rescat2.model.registry.RescatContext.getConnectionContext(RescatContext.java:220)
         at oracle.jdeveloper.rcasadapter.rescat2.RescatContextStore.<init>(RescatContextStore.java:56)
         at oracle.jdeveloper.asnav.wizard.RescatAppServerWizard.setResourcePaletteStore(RescatAppServerWizard.java:99)
         at oracle.jdeveloper.asnav.wizard.RescatAppServerWizard.createWizardControl(RescatAppServerWizard.java:87)
         at oracle.jdeveloper.rcasadapter.wizard.AppServerProviderWizard.invoke(AppServerProviderWizard.java:93)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:446)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:530)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
         at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.NullPointerException
         at oracle.adfinternal.rc.connection.UncloseableContextWrapper.wrapContext(UncloseableContextWrapper.java:59)
         at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:79)
         ... 24 more
    oracle.adf.rc.exception.CatalogRuntimeException: error while obtaining a connection context using connection context provider [oracle.adfinternal.rc.connection.AdfConnectionContextProvider] Root Cause=[]
    o.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:92)
    o.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
    o.j.rescat2.model.registry.RescatContext.getConnectionContext(RescatContext.java:220)
    o.j.rcasadapter.rescat2.RescatContextStore.<init>(RescatContextStore.java:56)
    o.j.asnav.wizard.RescatAppServerWizard.setResourcePaletteStore(RescatAppServerWizard.java:99)
    o.j.asnav.wizard.RescatAppServerWizard.createWizardControl(RescatAppServerWizard.java:87)
    o.j.rcasadapter.wizard.AppServerProviderWizard.invoke(AppServerProviderWizard.java:93)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:642)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:612)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by:
    java.lang.NullPointerException
    o.adfinternal.rc.connection.UncloseableContextWrapper.wrapContext(UncloseableContextWrapper.java:59)
    o.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:79)
    o.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
    o.j.rescat2.model.registry.RescatContext.getConnectionContext(RescatContext.java:220)
    o.j.rcasadapter.rescat2.RescatContextStore.<init>(RescatContextStore.java:56)
    o.j.asnav.wizard.RescatAppServerWizard.setResourcePaletteStore(RescatAppServerWizard.java:99)
    o.j.asnav.wizard.RescatAppServerWizard.createWizardControl(RescatAppServerWizard.java:87)
    o.j.rcasadapter.wizard.AppServerProviderWizard.invoke(AppServerProviderWizard.java:93)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:642)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:612)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Thanks,
    Shaun.

    Not sure if this is a cause for your error, but JDev11.1.2.1.0 doesn't work with SOA right now. For SOA you need to use jdev11.1.1.5.0 or lower.
    Timo

  • Trouble creating new application server connection

    Hi. I am trying to create a new application server connection in jdev 10.1.3.1.0. I am taking all of the default settings in the wizard, and I am specifiying user name, password and checking deploy password. When I click test connection on the last screen of the wizard I get:
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    Does anybody know how to correct this?
    Thank you.

    Hello Anil,
    The error that you are getting indicates that the user that you are using to install the dialog server does not have enough rights to connect to the SAPMNT share of the central instance. 
    Please do the following:
    1.) Make sure that you are using a domain admin ID or a local admin ID that is on both systems with the same password.
    2.) Verify that SAPMNT is shared on the central instance by using the "net share" command from a Windows command prompt.
    3.) Make sure that the domain admin or local admin group is added to the file level permissions and share level permissions of SAPMNT with full rights.
    Also the general install guides will also have instructions on how to install a dialog instance as well.
    Hope this helps you,
    Thomas Wagner

  • File not created in application server

    Hi All,
    I have to create a file in the application server for this i have coded as
    OPEN DATASET G_PATH2 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    when i am creating the file in the foreground, it is creating the file, but the same thing when i am setting the back ground job for the program in which i have to create the file using OPEN DATASET, i am not able to create the file. I am getting the error message "File /usr/sap/BI_ARF/ABC.txt is not downloaded to Application Server" in my job log.
    Pls help to resolve the issue.
    Thanks,
    Raju

    Hi,
    Refer:
    Re: Creating a file on the application server.
    Re: creating a new file in application server
    Hope they help you.
    Regards,
    Tarun

  • No application server found in the server

    application not found
    Hi all,
    I have download liferay-portal-ent-3.0.0.ear from http://www.liferay.com and deploy its ear file on oracle application server 10g,it work properly,but when I restart its instance of OC4J ,
    it message is:No application named 'liferayportal' found in the server
    so I have to redeploy it.
    can any one help me?
    what should I do?
    thanks

    Hello,
    Did you get LifeRay to work?
    Thanks.

  • Failed to load report application server settings from the system registry

    Hi ,
    I have make test to run the reporter application server with simple double click but I got  the attach Error message.
    can any one please advice ?

    Run your app under the local PC Admin group/account by right clicking on it and selecting "Run As Administrator"
    Don

  • While creating web application prokect getting error: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

    I am getting error on creating even the empty web application project. The error message is as given below:
    The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
    I am using following build of Visual Studio:
    Visual Studio Professional 2013. Version 12.0.30723.00 Update 3
    Looks like it is the problem with the installation of the visual studio. But I can't take risk of re-installing now because it would stop my going on development work.
    Any would help to resolve this would be appreciated.
    P.S. I am also having Visual Studio 2010 and Visual Studio 2012 Ultimate on my system.
    Regards, Randeep

    Hello Randeep,
    Will you get the same error when creating any other apps, like C# WinForm?
    If only web application project has the problem, you can try the following to reset the templates:
    Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 12.0\Common7\IDE);
    Delete the ItemTemplatesCache, ProjectTemplatesCache folder;
    Open Visual Studio Tools/Developer Command Prompt for VS2013
    under Start menu -> All Programs -> Microsoft Visual Studio 2013 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);
    Run the devenv /InstallVSTemplates switch;
    Run the devenv /Setup switch
    If all your projects get this error, please try repair the installaiton from control panel first. By the way, can you use Visual Studio Web projects before you get this error? And have you tried to use the Visual Studio Update 4, I see you still used
    Update 3, is there any reason for you to still use the Update 3 version?
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for