Deploying EJBs from Client-PC with DeployerTool ?

Hi,
I tried to deploy my EJBs with the DeployerTool that is running on a client
machine in the same LAN as the Weblogic Server (both under WinNT). Now I get
some errors because there is no ftp-Server running on the "weblogic"-machine.
Is there a way to use deployment form the DeployerTool without running a
ftpserver on the weblogic-machine ?
As a workaround I can use hot-deploy from the Console, the machines share parts
of there filesystem.
Excuse me for my not-so-well english,please.
Thanks,
Manfred
Configuration:
2 machines WinNT with shared filesystem,
Weblogic Server 5.1 SP3
Console and DeployerTool running on client-machine.
| Manfred Schenk | ICQ: (not available)
| Mail: [email protected] | IRC: Mampf2 (aber nur sehr selten)
| Fon : +491719509349 | WWW: http://www.ZEROByte.de/

Dana Jeffries schrieb:
>
The EJBDeployer runs its own little FTP server.
Do you use a proxy server or firewall product?
There is a proxy server and a firewall between the in-house-net and the
internet.
Do you run the EJBDeployer and the Console at the same time?The results are the same, whether I run both at the same time or not.
>
Have you ever been able to deploy using the EJBDeployer in this configuration?If I start the EJBDeployer on the same machine as the server, I have no
problems.
Here is the complete error message:
-->snip-->
weblogic.ejb.common.DeploymentException: Problem creating deployment
ftp://153.96.12.198W:/beanupgrade/eventsender/eventsender.jar from
ftp://153.96.12.198W:/beanupgrade/eventsender/eventsender.jar; nested exception
is:
     weblogic.ejb.common.DeploymentException: could not open URL stream
java.net.ConnectException: Connection refused: no further information
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
     at java.net.Socket.<init>(Socket.java:269)
     at java.net.Socket.<init>(Socket.java:98)
     at sun.net.NetworkClient.doConnect(NetworkClient.java:54)
     at sun.net.NetworkClient.openServer(NetworkClient.java:42)
     at sun.net.ftp.FtpClient.openServer(FtpClient.java:271)
     at sun.net.ftp.FtpClient.<init>(FtpClient.java:385)
     at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:82)
     at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:101)
     at java.net.URL.openStream(URL.java:818)
     at
weblogic.ejb.internal.EJBJarDeployment.initializeJarFile(EJBJarDeployment.java,
Compiled Code)
     at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:191)
     at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:166)
     at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
     at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:100)
     at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:94)
     at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:326)
     at weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:144)
     at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java,
Compiled Code)
     at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
     at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
weblogic.ejb.common.DeploymentException: could not open URL stream
java.net.ConnectException: Connection refused: no further information
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
     at java.net.Socket.<init>(Socket.java:269)
     at java.net.Socket.<init>(Socket.java:98)
     at sun.net.NetworkClient.doConnect(NetworkClient.java:54)
     at sun.net.NetworkClient.openServer(NetworkClient.java:42)
     at sun.net.ftp.FtpClient.openServer(FtpClient.java:271)
     at sun.net.ftp.FtpClient.<init>(FtpClient.java:385)
     at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:82)
     at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:101)
     at java.net.URL.openStream(URL.java:818)
     at
weblogic.ejb.internal.EJBJarDeployment.initializeJarFile(EJBJarDeployment.java,
Compiled Code)
     at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:191)
     at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:166)
     at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
     at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:100)
     at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:94)
     at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:326)
     at weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:144)
     at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java,
Compiled Code)
     at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
     at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Deployment failed.
<--snap<--
(153.96.12.198 is the client machine, 153.96.12.95 is the weblogic server
w: is a shortcut for a public accessible directory on the server machine.)
Thanks,
Manfred
| Manfred Schenk | ICQ: (not available)
| Mail: [email protected] | IRC: Mampf2 (aber nur sehr selten)
| Fon : +491719509349 | WWW: http://www.ZEROByte.de/

Similar Messages

  • Calling OC4J deployed EJB from Oracle 8.1.7 DB

    Hi
    I have deployed a Stateless Session Bean to OC4J (9.0.2). The client works fine. The Servlet and JSP works fine.
    What I need to do now is call this EJB from PL/SQL , ie call from Database PL/SQL package to wrapper to OC4j EJB.
    Trying to get this loaded into Oracle DB we get a class compilation error with the
    com.evermind....rmi... class. I do believe this is the OC4J implementation of RMI lookup. Is there a comparable class to load in the DB?
    Any ideas how to ??
    Tks
    Andre
    Here is a client sample of calls to the EJB
    package SampleWizUpdates;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import WizUpdates.WizAllocTotals;
    import WizUpdates.WizAllocTotalsHome;
    import resTotals;
    import resSuccess;
    import javax.rmi.*;
    public class WizAllocTotalsClient2
    public static void main(String [] args)
    WizAllocTotalsClient2 wizAllocTotalsClient2 = new WizAllocTotalsClient2();
    try
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "manager");
    env.put(Context.PROVIDER_URL, "ormi://sdt10645:23791/WizAllocTotals");
    Context ctx = new InitialContext(env);
    WizAllocTotals totalsBean;
    Object homeObject = ctx.lookup("WizAllocTotals");
    WizAllocTotalsHome home =
    (WizAllocTotalsHome)PortableRemoteObject.narrow(homeObject,
    WizAllocTotalsHome.class);
    totalsBean = (WizAllocTotals)PortableRemoteObject.narrow(home.create(),
    WizAllocTotals.class);
    // create new EJB instance
    totalsBean = home.create( );
    // Call any of the Remote methods below to access the EJB
    int operatorId = 1238;
    resTotals newRes = new resTotals();
    resSuccess newResSucc = new resSuccess();
    String newDataBase = "dwz3";
    int eventRefNo = 17445291;
    int actionNumber = 3;
    int allocValue = 125;
    totalsBean.setDataBase( newDataBase );
    newRes = totalsBean.getOperatorTotals( operatorId, eventRefNo );
    System.out.println("Result total 1 is "+newRes.totTransactLimitValue);
    System.out.println("Result total 2 is "+newRes.totDailyLimitValue);
    System.out.println("Result total 3 is "+newRes.totWeeklyLimitValue);
    System.out.println("Result total 4 is "+newRes.totMonthlyLimitValue);
    System.out.println("Result total 5 is "+newRes.remDailyLimitValue);
    System.out.println("Result total 6 is "+newRes.remWeeklyLimitValue);
    System.out.println("Result total 7 is "+newRes.remMonthlyLimitValue);
    System.out.println("Result success code is "+newRes.resCode);
    System.out.println("Result success message is "+newRes.resMessage);
    newRes = totalsBean.setOperatorTotals(operatorId,
    eventRefNo,
    actionNumber,
    allocValue,
    "C",
    "Testing Reason");
    System.out.println("Insert result success code is "+newRes.resCode);
    System.out.println("Insert result success message is "+newRes.resMessage);
    catch(Throwable ex)
    ex.printStackTrace();
    }

    Hi Andre,
    I am using stand-alone OC4J version 9.0.2.0.0 under (SUN) Solaris 7
    with JDK 1.3.1 and Oracle DBMS version 8.1.7.4.
    I have not yet been able to create a java stored procedure in the
    database that directly looks up an EJB deployed to OC4J.
    The only two ways I have found to "talk to" an EJB from a java stored
    procedure is
    1) go through a servlet
    2) go through a "remote" object (using RMI)
    For the first option, deploy an application to OC4J that contains
    your EJBs and a servlet (which acts as the client for the EJBs).
    Then, from your java stored procedure, contact the servlet using
    the classes in the "java.net" package -- including "URL" and "URLConnection".
    For the second option, use the "rmiregistry" to register a remote
    object. This remote object acts as the EJB client. The remote object
    does not need to be part of an application deployed to OC4J. Then
    contact the remote object from your java stored procedure.
    Hope this helps.
    Good Luck,
    Avi.

  • Calling a newly deployed EJB from an EJB gives a NoSuchMethod Exception if the jar of the newly deployed ejb is not in the classpath

    Hi ,
    I have an EJB A which is already deployed when the server starts. A second ejb
    B is deployed at a later time.
    EJB A calls methods in EJB B. I use reflection in EJB A to call methods in EJB
    B.
    I get a NoSuchMethodException when I call the create method in the Home object
    of EJB B. If I add the ejb jar file to the classpath before the server starts
    then it is able to resolve the method.
    The problem is the EJBs which are called from EJB A is not known before the server
    is started. New EJBs can be deployed at runtime and EJB A should be able call
    the methods in newly deployed EJB's.
    I also use the URLClassLoader to load all the classes in the jar file of the newly
    deployed EJB in EJB A and it still gives a NoSuchMethodException because it cannot
    resolve the stub class.
    My error log is shown below.
    This is an urgent issue.
    Thanks
    SampleConnector::testEJBService called
    In Key : P1 Value : Input2
    In Key : P3 Value : Input1
    In Key : P2 Value : SomeConst
    Loaded Class = com.bizwave.samples.rejb.SampleRemote
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getDeclaredMethod(Class.java:1151)
    at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
    ctorEJB.java:181)
    at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
    ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
    at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
    viceStepMgr.java:91)

    Hi,
    I am attaching a test case. This test case actually demonstrates a security bug.
    Unzip the file and modify the StartWeblogic.cmd in domainA to not refer to the
    SampleRemoteEJB.jar in the classpath. If u run the test client under the client
    dir u will see a NoSuchMethodException.
    The reason is it is not able to load the dynamically generated stub file.
    Initially I had the getMethod and it didn't work. You might have to modify the
    files to suit ur env. The easier way is to run th edomain wizard and create 2
    domains. Run the servers in development mode and place the jars under the applications
    dir
    Thanks
    Rajesh Mirchandani <[email protected]> wrote:
    Do you have any old EJB classes in your classpath? Did you recompile
    your EJBs if you
    upgraded from a old release or a Service pack?
    Bob Lee wrote:
    Hmmmm. That's an interesting problem.
    Why is it giving you a NoSuchMethodException instead of a
    ClassNotFoundException?
    Can you post the code from SampleConctorEJB.java, line 181?
    Try changing your call to getDeclaredMethod() to getMethod().
    getDeclaredMethod() searches only the class you called it on, whereas
    getMethod() traverses to the superclasses and interfaces. You onlyneed
    getDeclaredMethod() when you're accessing a nonpublic method.
    Not sure if this will help, but it's worth a shot.
    Bob
    Vasu wrote:
    Hi ,
    I have an EJB A which is already deployed when the server starts.
    A second ejb
    B is deployed at a later time.
    EJB A calls methods in EJB B. I use reflection in EJB A to call methodsin EJB
    B.
    I get a NoSuchMethodException when I call the create method in theHome object
    of EJB B. If I add the ejb jar file to the classpath before the serverstarts
    then it is able to resolve the method.
    The problem is the EJBs which are called from EJB A is not knownbefore the server
    is started. New EJBs can be deployed at runtime and EJB A shouldbe able call
    the methods in newly deployed EJB's.
    I also use the URLClassLoader to load all the classes in the jarfile of the newly
    deployed EJB in EJB A and it still gives a NoSuchMethodExceptionbecause it cannot
    resolve the stub class.
    My error log is shown below.
    This is an urgent issue.
    Thanks
    SampleConnector::testEJBService called
    In Key : P1 Value : Input2
    In Key : P3 Value : Input1
    In Key : P2 Value : SomeConst
    Loaded Class = com.bizwave.samples.rejb.SampleRemote
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getDeclaredMethod(Class.java:1151)
    at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
    ctorEJB.java:181)
    at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
    ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
    at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
    viceStepMgr.java:91)
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support
    [user_projects.zip]

  • Jax-ws deployed in standalone client fails with nullpointerexception

    I have a project which has deployed successfully as a standalone client with deployed jar files wlfullclient.jar, etc. When I add the jax-ws functions that I require, the deployed client fails with a nullpointerexception that is generated from the constructor of the Service class. The project runs successfully within the JDeveloper 11.1.1.5 environment and on a weblogic 10.3 server platform, but fails when I deploy as a standalone client with the wlfullclient.jar. I'm using JDK 1.6.0_24. In testing, the error occurs when I replace the {WLHome}\server\lib\weblogic.jar entry in the classpath with the wlfullclient.jar.
    I tested from another angle by creating my jax-ws functions in a standalone deployment, and it works successfully communicates with the webservices. No additional entries on the classpath besides my deployed jar. I then added to my deployment a simple JMS context lookup:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, contextFactoryProvider);
    ht.put(Context.PROVIDER_URL, urlString);
    Context context = new InitialContext(ht);
    This test runs without error in the JDeveloper environment. As soon as I add the wlfullclient.jar in the standalone environment, I get the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at javax.xml.ws.spi.FactoryFinder.safeLoadClass(FactoryFinder.java:150)
    at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:30)
    at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)
    at javax.xml.ws.spi.Provider.provider(Provider.java:83)
    at javax.xml.ws.Service.<init>(Service.java:56)
    Interestingly, there is a class com/sun/xml/internal/ws.spi/ProviderImpl in the {JAVA_HOME}/jre/lib/rt.jar file, and I suppose this is what is used by the jax-ws classes when the wlfullclient.jar is not present on the classpath.
    So, what is it that I am missing in how to get the jax-ws classes and the jms classes to work in the standalone deployment environment (outside of the JDeveloper environment).
    Edited by: user3653687 on Jan 9, 2012 1:38 PM
    Edited by: user3653687 on Jan 9, 2012 2:49 PM

    Here is how I solved this problem to execute the application from a jar file (using Oracle Fusion Middleware 11.1.1.5.0 distribution). The key seems to be to extract the contents of the wseeclient.zip file into the same directory as the wlfullclient.jar and ws.api_1.1.0.0.jar files and then ensure that these 2 jars are on the classpath.
    In JDeveloper, create a project that has the jms/jax-ws classes.
    Put the following text entries to form the classpath (along with other dependent jars, e.g. org.eclipse.persistence...) into a file which will be included in the manifest for the client jar. Be sure to separate entries with a space.
    lib/wlfullclient.jar lib/wseeclient.jar lib\ws.api_1.1.0.0.jar lib\org.eclipse.persistence_1.1.0.0_2-1.jar
    In the Edit Deployment Profile Properties, select Include Manifest File, specify the main class to execute, and Add the classpath file to be included in the manifest.
    Deploy the jar file.
    In a deployment area, create the directory that will contain all the classpath jars (e.g. ./lib).
    Within the directory ./lib, extract all files from wseeclient.zip (found in {weblogic home}/server/lib)
    Copy wlfullclient.jar into the directory ./lib from the {weblogic home}/server/lib
    Copy ws.api_1.1.0.0.jar into the directory ./lib from {oracle middleware home}modules
    Copy org.eclipse.persistence_1.1.0.0_2-1.jar (for jaxb support) itno the directory ./lib from {oracle middleware home}/modules
    Copy the deployed client jar to the deployment area and execute, e.g.:
    java -jar ClientTest.jar myArguments

  • How to mass deploy Windows InTune client software with GPO

    I have been looking for mass deploy Windows InTune client software. The only option that I had was with GPO. As we know the exe is not possible to deploy with GPO. Ok, we can play arouund with ZAP files or tranform exe to msi. In my opinion this is
    rather »walk-around« the »enginering aproach. So, how can we mass deploy InTune client with GPO. We need to extract the msi from exe. The command is »Windows_Intune_Setup.exe /Extract <destination-directory> ». The command extracts exe to x86 and x64
    client msi install. Then we can deploy throw GPO. The »WindowsIntune.accountcert« file must be in the same folder share as described in document http://technet.microsoft.com/en-us/library/jj676611.aspx.
    I have tested the deployment, and works good.

    Hi,
    Thanks for your sharing here! And this should be post on the Group Policy forum, I will move it there!
    Regards,
    Yan Li
    Regards, Yan Li

  • Cannot deploy EJB from JDev 3.2

    Dear Sirs,
    When you try to create a deployment profile using JDeveloper 3.2 step #2 of the wizard asks for "select a type of deployment". In Jdeveloper 3.1.1.2 the option "deploy Enterprise Java Bean (EJB) to Oracle8i". But in release 3.2 that option is taken away.
    Does this mean Jdeveloper does not support the EJB 1.1 spec (i.e. the XML deployment descriptor)? Or must I upgrade the database from 8.1.6 to 8.1.7. Or is this a bug?
    regards.

    Hello:
    Can anyone helps us with this EJB problem in Oracle? :
    With JDeveloper 3.1.12 we can deploy with the wizard an EJB component in Oracle (database) 8.1.6 but the client test fails with the following message:
    "oracle.jbo.ApplicationModuleCreateException:
    JBO-25222: Unable to create application module...."
    In an Oracle error log file (in the bdump directory) we find the following information:
    "Attempt to call System.getProperties failed
    ...skipping...
    at oracle.jbo.server.remote.ejb.EJBApplicationModuleImpl.ejbCreate
    (EJBApplicationModuleImpl.java:183)..."
    We think that the problem is related with:
    1- memory parameters of Oracle 8i ?
    2- Java security permissions in the server ?
    Thanks you for your help.
    Maria Consuelo Franky - Victor Toro
    CincoSOFT Ltda.
    Bogota - Colombia
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by slag:
    Oracle (database) 8.1.6 only supports 1.0 spec, 8.1.7 is 1.1 spec compliant, to my knowledge.
    [b]slag<HR></BLOCKQUOTE>
    null

  • Problems Accessing EJB from Client

    Hello All,
    I have deployed my first EJB in my JBoss App server and thats fine. However when I try and run the simple client that I have written to access this I get the following error:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    I have tried Debugging the app and cant understand where/why this error is occurring? Any ideas and suggestions would be appreciated...The code I am using in the client is below:
    Context c = new InitialContext();
          Object o = c.lookup("HelloWorldEJB");
          HelloWorldHome hw = (HelloWorldHome)PortableRemoteObject.narrow (o, HelloWorldHome.class);
          HelloWorld hello = hw.create();
          System.out.println ("Result is: " + hello.hello());
          hello.remove();

    Hi!
    I do not know if you have got the solution for your problem....
    I am also struggling around with similar issue
    Here is how i tried
    Properties prop = System.getProperties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
    prop.put(Context.PROVIDER_URL, "localhost");
    prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
    Context ctx = new InitialContext(prop);
    System.out.println("looking up ejb");
    Object obj = ctx.lookup("ejb/test");
    DO NOT forget to put jbossall-client.jar and jnpserver.jar in your classpath .
    This way at least you get the solution of the problem you are facing now.....
    Good Luck
    Alok

  • Error while running EJB from Client

    I am able to successfuly deploy the EJB in Oracle 8.1.5, While running the Client code I am getting the following error, can any one help how to solve.
    org.omg.CORBA.INTERNAL[completed=MAYBE, reason=java.lang.ClassNotFoundException: com.visigenic.vbroker.ds.DSUser]
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at org.omg.CORBA.SystemException.<init>(Compiled Code)
    at org.omg.CORBA.INTERNAL.<init>(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.locator(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.bind(Compiled Code)
    at com.visigenic.vbroker.orb.UnboundStubDelegate.bind(Compiled Code)
    at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
    at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._request(Compiled Code)
    at org.omg.CORBA._st_InitialReferences.get(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.defaultSession(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at Date.Client.main(Compiled Code)
    null

    Verify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
    Uday

  • Problem invoking EJB from client

    I'm using J2EE 1.4 to package this application
    but I get an internal error when trying to call the servlet client
    here are the codes for the stateless Bean
    import java.util.*;
    import java.io.*;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class LoanBean implements SessionBean
    private javax.ejb.SessionContext m_ctx = null;
    public void setSessionContext(SessionContext ctx)
         m_ctx = ctx;
    public void ejbCreate() throws java.rmi.RemoteException,javax.ejb.CreateException
         System.out.println("ejbCreate() on obj" + this);
    public void ejbRemove()
         System.out.println("ejbRemove() on obj" + this);
    public void ejbActivate()
         System.out.println("ejbActivate() on obj" + this);
    public void ejbPassivate()
         System.out.println("ejbPassivate() on obj" + this);
    public float calculateInterest(float rate, float time, float amount)throws java.rmi.RemoteException
         float interest = time * amount * (rate/ 100);
         return interest;
    the code for the home interface
    import javax.ejb.EJBHome;
    public interface LoanHome extends EJBHome
         public Loan create() throws java.rmi.RemoteException,javax.ejb.CreateException;
    the code for the remote interface
    import javax.ejb.EJBObject;
    public interface Loan extends EJBObject
         public float calculateInterest(float rate, float time, float amount)throws java.rmi.RemoteException;
    and here is the code for my servlet client
    import java.io.*;
    import javax.servlet.*;
    import javax.naming.*;
    import javax.servlet.http.*;
    import javax.rmi.PortableRemoteObject;
    import javax.ejb.*;
    public class LoanServlet extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException
              PrintWriter out = res.getWriter();
              res.setContentType("text/html");
              float rate = Float.valueOf(req.getParameter("rate")).floatValue();
              float time = Float.valueOf(req.getParameter("time")).floatValue();
              float amount = Float.valueOf(req.getParameter("amount")).floatValue();
              Loan myLoanRemote = null;
              LoanHome myLoanHome = null;
              InitialContext initCon = null;
              try
                   initCon = new InitialContext();
              catch(Exception e)
                   out.println("First" + e.toString());
              try
                   String JNDIName = "ejb/SimpleLoan";
                   Object obj = initCon.lookup(JNDIName);
                   myLoanHome = (LoanHome)PortableRemoteObject.narrow(obj, LoanHome.class);
              catch(Exception e)
                   out.println("Second" + e.toString());
              try
                   ****myLoanRemote = myLoanHome.create();
              catch(CreateException e)
                   out.println("Third" + e.toString());
              float interest = myLoanRemote.calculateInterest(rate, time, amount);
              out.println("<B> Interest : " + interest + " </B>");
    I get an internal error that points to the line with **** (that is line 40)
    help pls

    tried it but got this error
    java.lang.NullPointerException
         at LoanServlet.doGet(LoanServlet.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:748)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
         at java.lang.Thread.run(Thread.java:534)
    |#]

  • Deploy pre-compiled client proxy with a web service

    When a web service is deployed on an OAS server, the page at the endpoint URL includes a link to a proxy jar file (<endpoint url>?proxy_jar). I have a proxy jar that I've built and I'd like to be able to include it in my war file so that the proxy jar URL will download it instead of the server-generated one. Is there a way to do that?
    I did something similar with the wsdl file: I included it in the war file in the same folder and filename as the web service interface class, but that didn't work for the proxy jar file.
    -Peter

    Hi Peter,
    You cannot replace the proxy jar generated by the Oracle Web Services runtime with your own version. If you want to provide your own version, you will have to handle it as a classic resource in your .ear file, and advertize the location of this resource using some other mechanism.
    -Eric

  • To Fine the list of deployed ejbs

    we r using j2ee as application server and deployed serveral ejbs using
    deploytool.
    i need to find all the deployed ejbs.
    from where i will get this info..
    as i have seen in weblogic i can get this info from config.xml file
    under the application tag.
    Is there anything similar to this wherein i can get this?

    You can try "asadmin list-components ... --type ejb..."

  • Error while running EJB from java client on JBOSS

    Hi
    As i am new to EJB i have created a helloworld application in ejb which is working fine when i try to call it from servlet but when i try to invoke the same ejb from java client (i.e from diff jvm) on jboss i got the following error:
    javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.gl.TestClient.main(TestClient.java:39)
    Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
         ... 4 more
    Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
         ... 5 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:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:266)
         at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
         at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
         ... 5 more
    Following is my code:
    Home Interface:
    package com.gl;
    import javax.ejb.CreateException;
    public interface testHome extends EJBHome {
         String JNDI_NAME = "testBean";
         public     test create()
         throws java.rmi.RemoteException,CreateException;
    Remote Interface:
    package com.gl;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    public interface test extends EJBObject {
         public String welcomeMessage() throws RemoteException;
    Bean:
    package com.gl;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class testbean implements SessionBean {
         public void ejbActivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbPassivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbRemove() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void setSessionContext(SessionContext arg0) throws EJBException,
                   RemoteException {
              // TODO Auto-generated method stub
         public void ejbCreate(){}
         public String welcomeMessage(){
              return "Welcome to the World of EJB";
    ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>testBean</ejb-name>
    <home>com.gl.testHome</home>
    <remote>com.gl.test</remote>
    <ejb-class>com.gl.testbean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    jboss.xml:
    <?xml version='1.0' ?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
    <jboss>
    <enterprise-beans>
    <entity>
    <ejb-name>testBean</ejb-name>
    <jndi-name>testBean</jndi-name>
    </entity>
    </enterprise-beans>
    </jboss>
    Client code:
    package com.gl;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class TestClient {
         public static void main(String[] args) throws Exception{
                   try{
                   /*     Properties props=new Properties();
                        props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                        props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
                        props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
                   Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.jnp.interfaces.NamingContextFactory");
    props.put(Context.PROVIDER_URL, "localhost:1099");
                        System.out.println("Properties ok");
                        //env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
                        //env.put(Context.PROVIDER_URL,"http://localhost:8080");
                        //env.put(Context.SECURITY_PRINCIPAL, "");
                        //env.put(Context.SECURITY_CREDENTIALS, "");
                        Context ctx=new InitialContext(props);
                        System.out.println("context ok");
                        //testHome home = (testHome)ctx.lookup("testBean");
                        Object obj = ctx.lookup ("testBean");
                        System.out.println("ojb = " + obj);
                        testHome ejbHome = (testHome)PortableRemoteObject.narrow(obj,testHome.class);
                   test ejbObject = ejbHome.create();
                   String message = ejbObject.welcomeMessage();
                        System.out.println("home ok");
                        System.out.println("remote ok");
                        System.out.println(message);
                        catch(Exception e){e.printStackTrace();}
    I am able to successfully deployed my ejb on JBOSS but i m getting above error when i am trying to invoke ejb from java client.
    kindly suggest me something to solve this issue.
    Regards
    Gagan
    Edited by: Gagan2914 on Aug 26, 2008 3:28 AM

    Is it a remote lookup? Then maybe this will help:
    [http://wiki.jboss.org/wiki/JBoss42FAQ]
    - Roy

  • Urgent!!!!How to deploy only an EJB from Weblogic to oc4j.

    Hi
    How can i deploy only EJB from Weblogic into oc4j without any web application or client coming into pitcture as my client access bean remotely....
    regards,
    Sapthapathi

    If you are migrating from ejb1.1->ejb1.1 you shouldn't have many changes - your ejb-jar.xml file should be the same (I assume you are still talking about ejbs). Once you pull over the base ejb - then if you want to, mess around with the automatically generated orion-ejb-jar.xml file. Obviously - those are all app server specific. I go back and forth between wls6.1 and oc4j all the time. When going from wls5.1 to oc4j - what particular issues do you run into. What do you mean, in particular, by configuration changes?
    Curious -
    Ray
    hi,
    EJBs and other applications can be migrated from weblogic to oc4j but many changes are required.These changes are mainly configuration changes rather than code changes.Infact there are many problems in effect while migrating and delloyment.Hope oracle is a bit more attentive to this issue.
    regards,
    chennai

  • Calling EJB from from a client app

    Hi all,
    I am trying to call an EJB component from portal. The example EJB I have taken is from SDN Bonus Calculator example - Application Server/Web Dynpro/Samples and Tutorials/Using EJBs (20)
    I deployed the EAR file - no issue
    I wrote the following code in a client app and trying to connect to the EJB remotely.
              try {
                   java.util.Properties properties = new Properties();
                   properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   properties.put(Context.PROVIDER_URL, "ux0800:55304");
                   InitialContext ctx = new InitialContext(properties);
                   //InitialContext ctx = new InitialContext();
                   // get ejb home
                   home =
                        (BonusCalculatorLocalHome) ctx.lookup(
                             "localejbs/MySessionBean");
                   theCalculator = home.create();
              } catch (Exception namingException) {
                   namingException.printStackTrace();
    I get the following error
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sap.engine.services.jndi.InitialContextFactoryImpl [Root exception is java.lang.ClassNotFoundException: com.sap.engine.services.jndi.InitialContextFactoryImpl]
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.init(Unknown Source)
         at javax.naming.InitialContext.<init>(Unknown Source)
         at com.sap.bonus.calculation.sessionBean.MyCommandBean.<init>(MyCommandBean.java:27)
         at com.sap.bonus.calculation.sessionBean.MyCommandBean.main(MyCommandBean.java:68)
    Caused by: java.lang.ClassNotFoundException: com.sap.engine.services.jndi.InitialContextFactoryImpl
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
    Any clue will be appreciated.
    thnx

    Hi Sabbir,
    Following code works for me in calling EJB from normal java application. Did you added the jar files to your application?. see the required jar files in end of code.
    Create simple java applcation do the following steps:
    Give JNDI name to the EJB(HelloJNDI)->Add the HelloEJB to HelloEAR ->deploy
    Proxy Program to call ejb:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.sample.Hello;
    import com.sample.HelloHome;
    public class HelloTest {
         public static void main(String[] args) {
                       Hello remote = null;
                      try {
                        Context ctx = new InitialContext();
                        HelloHome home = (HelloHome) ctx.lookup("HelloJNDI");
                        remote = home.create();
                        String result = remote.hello();
                        System.out.print("Result:" + result);
                         } catch (Exception e) {
                                System.out.println("Exception:" + e.getLocalizedMessage());
    1. Go To  Run > Java Application ->New->select your project and select your main class(java program from which your going to call EJB)
    2. Click  next tab ->(x)=Arguments
    paste the following code in VM Arguments
    -Djava.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl -Djava.naming.provider.url=localhost:50104
    replace the server IP address with your server IP address where your ejbs are running.
    Under Class path settings for the program put the following jar files.
    You can search for them from net weaver soruce folders
    or copy from D:\usr\sap\J2E\JC01\j2ee\j2eeclient
    ejb20.jar
    logging.jar
    exception.jar
    sapj2eeclient.jar
    Add Corresponding ejb.jar
    and RUN >>>
    this makes testing of your client programs easier, you can find the error trace on which line and saves lot of time.
    Regards, Suresh

  • Copy file from client PC to server in a web deployed application

    I have developed one application using Oracle forms 6i, which is deployed on the web server.
    I run this application from a client PC in Internet Explorer using internet.
    I want to copy one file from the client PC to the web server.
    I have done following things
    - Created a shared folder on the server and given full rights to every one on this folder
    - I use 'net use' command in my program to connect to this shared folder
    - I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
    But this does not work.
    When I do the same thing in command window, it works.
    (ie. Start-Run cmd to open command window and then type the above copy command)
    Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
    Thanks

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

Maybe you are looking for

  • Deleting a row from a JTable using AbstractTableModel

    Hi, Can someone please help me on how should i go about deleting a row in a jtable using the AbstractTableModel. Here i know how to delete it by using vector as one of the elements in the table. But i want to know how to delete it using an Object[][]

  • FPE2 doc changes are not saved when C4EYE is reset via workflow

    Hello All,     I'm utilizing event # 5504 in FQEvents (in FICA) to start a workflow. When a user sets a payment method in FPE2, I set the C4EYE and then explicitly create a custom event which starts my approval workflow. On saving the document change

  • Changing RSS Feed in iWeb

    I use iWeb'09, GarageBand and MobileMe, and want to find out how to simply change the existing RSS feed for my podcast series in iWeb without resorting to using any further applications. Many thanks in advance.

  • How export a report in Excel where show Page Header in one sheet and the Body in other sheet?

    Hi, I need help!, because I need export a report in Excel where the Page Header shows in one sheet and the Body in other sheet. I have SQL 2008 R2, is it possible? Thanks a lot for your answers. Sukey Nakasima Sukey Nakasima

  • Can no longer set firefox to always open links in a new tab

    In the previous version I was able to set a preference that had firefox always open a clicked link in a new tab. Now I have to right click and select the option. I'm disappointed, I want that feature again. Is it hidden somewhere?