How to run a client?
A want a client progrma to connect to the server by pressing a button.
But the method to run a client is by typing:
"java HelloClient"
before run the program.
How can I call the client connection when I already run the program(an applet)?
Thanks~~
There are two concepts of being a client, the first one is to be a "storage disabled node" in the cluster which means that you are a full member of the cluster but no data is stored on your node.
To disable storage on a node, pass the following attribute on the java command line:
-Dtangosol.coherence.distributed.localstorage=falseThe second concept of a client is to use Coherence*Extend to connect to a cluster over TCP.
More details on [how to configure Coherence*Extend over here|http://wiki.tangosol.com/display/COH35UG/Configuring+and+Using+Coherence+Extend]
Similar Messages
-
How to run the client program in weblogic 8.1 server
Hi
I am new to EJB 2.0. I am deployed sucessfully a session ejb program.
While running an ejb client program it throws an exception. In my session ejb program i created two jar file. one is sessionejb.jar and another one is sessionejbclient.jar. In sessionejb.jar contains home ,remote ,session bean class and deployment descriptor.In sessionejbclient.jar contains home,remote and client program. Both jar files are included in class path of environment variable( i am using Standalone server).
Plese guide me how to run an session ejb client correctly.
Regards
JaiganeshBoth jar files are
included in class path of environment variable( i am
using Standalone server).did u include both these jars in the "weblogic's class path" ?
in that case, it obviously wont work.
what u need is an understanding of the following topics (i have described them briefly, but for details u can always check the documentation of weblogic):
1. Class loaders in weblogic: there are various levels of class loaders. at the top is the weblogic's class loader. below it are various EARs' class-loaders. and so on....
2. Packaging. You must ensure that in the same class loader, there are not two classes from 2 different jars.
hope that helps -
How to run application client of an EJB application?
Hi,
My EJB application is deployed on websphere. I have written a small java client program to interact with an EJB which is working fine if I compile and run it in websphere studio environment.
However I am getting runtime exception when I tried to run it at command line.
RemoteConn.java
import java.util.Hashtable;
import com.deque.HelloJavaHome;
import com.deque.HelloJava;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.ejb.EJBHome;
import javax.ejb.EJBObject;
public class RemoteConn {
public static void main(String[] ar) throws Exception{
String name="Paruchuri!!";
String greeting = "";
try{
Hashtable env = new Hashtable();
//env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
InitialContext initContext = new InitialContext(env);
Object obj = initContext.lookup("ejb/HelloJavaHome");
HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
HelloJava remote = home.create();
greeting = remote.getGreeting(name);
catch(Exception e){
e.printStackTrace();
System.out.println("Greeting::"+ greeting);
I have set the application ejb client jar in the class path of client program.
The exception I am getting at runtime is
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at RemoteConn.main(RemoteConn.java:38)
Initially I thought I shuold set some jar file of websphere in the classpath of client. But I did not find such a jar containing the above class in websphere studio.
Basically the error is generated at the below statement at runtime.
Object obj = initContext.lookup("ejb/HelloJavaHome");
The only difference I discovered was that the client application has a descriptor file (application-client.xml ) available to it when it ran in websphere studio,. I guess the same META-INF should be provided to client when it runs at command line.
Right now I am not using any client descriptor file to run the client program. If the above error is due to not supplying META-INF to the client application, how should I make this folder available to client at runtime?
I greatly appreciate if I could get help ASAP.
ThanksHey got what is going on. In order to invoke EJB, deployed on WebSpehre App Server, from application client we need to install either WebSphere Application Pluggable Client or WebSphere Thin client on the workstation. Pluggable client is a wrapper to SUN JRE where as Thin Client uses IBM JRE.
-
How to run a client program in Session bean using weblogic 8.1
Hi
I am new to weblogic server 8.1. I sucessfully deployed session ejb Session Bean. I created sessionbean jar file and put it it classpath also.
and also i created sessiobeanclient jar file, it included in class path.
While running client program it throws exception like noclass def found exception
plz tell me the right way to run the session ejb program.
byeHi,
You have to follow the given steps before you are going to run the client program that invokes the session bean .
1)set the Weblogic Environment using the tool setWLSEnv
2)place the Session bean jar file in classpath
3)run the client program
Note:If the client has to execute on remote machine we need to copy client class,remote interface, home interface and other classes which are used as
parameters and return types.
Regards
Anilkumar kari -
How to run ejb client on a separate host using Oracle example
The example I used was under $ORACLE_HOME/javavm/demo/examples/ejb/basic/jdbcimpl
If I used the Makefile provided to run the client and server, it worked ok. Now I tried to move the client to an NT machine and it did not work. (BTW, the server was on a Linux machine.)
What I did was to copy the compiled class and jar files to NT (Client.class, employee/*.class aurora_client.jar, vbjapp.jar, and vbjorb.jar). After I ran it, I got an error in javax.naming.InitialContext.lookup.
I compiled and ran the code using jdk1.1.8. If I recompiled the code on NT using jdk1.3, I got a CORBA.OBJECT_NOT_EXIST error.
Any clue?Copy the following files to the CT's machines. Copy the server_generated.jar also to the CT's machine. In your case the file will be there in the $ORACLE_HOME/javavm/demo/examples/ejb/basic/jdbcimpl directory.
C:\ORA816\lib\aurora_client.jar;
C:\ORA816\jdbc\lib\classes111.zip; // Replace this with classes12.zip if you are using JDK 1.2.2
C:\ORA816\sqlj\lib\translator.zip; // If you are using SQLJ in the CT's code
C:\ORA816\lib\vbjorb.jar;
C:\ORA816\lib\vbjapp.jar;
server_generated.jar
Set you classpath to include the all the above files.
Oracle 8.1.6 can work with JDK 1.2.2 and JDK 1.1.8. Please try with the JDK 1.2.2 and let us know the results.
null -
I would like to run Client.java thanks to a JSP
i have got a .jar that i put in WEB-INF/lib
but that the class Client is not foundtry putting your application's web-inf/lib directory in your classpath. this is typical in development environments. you wouldn't have to do it for production.
hope this helps.
cem. -
Hi Guys,
I have successfully created a bean and deployed it in J2EE server. My next step according to the head first ejb is to create a client. I compiled AdviceClient successfully (Thanks to grava). However when I try to run the compiled class I get the following error:
C:\projects\advice>java AdviceClient
javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:10)
Could you please tell me what is going on?
The following is the class ActiveClient:
import javax.naming.*;
import java.rmi.*;
import headfirst.*;
import javax.rmi.*;
import javax.ejb.*;
public class AdviceClient{
public static void main (String[] args){
new AdviceClient().go();
public void go(){
try{
Context ic=new InitialContext();
Object o=ic.lookup("Advisor");
AdviceHome home=(AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);
Advice advisor=home.create();
System.out.println(advisor.getAdvice());
}catch (Exception ex){
ex.printStackTrace();
Kind regards,
AlHi,
When running client, in my previous attempts, the j2ee server was not running. However when I run the server the following error messages appear:
C:\projects\advice>java AdviceClient
javax.naming.CommunicationException: java.rmi.MarshalException: CORBA MARSHAL 13
98079699 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Custom marshaling of RMI:java.lang.Throwable:F8678B4F4D2EB705 5C635273977B8CB not
compatible with local class (local class not custom marshal capable) minor code
: 1398079699 completed: Maybe
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Custom mars
haling of RMI:java.lang.Throwable:F8678B4F4D2EB705 5C635273977B8CB not compatible with local class (local class not custom marshal capable) minor code: 139807
9699 completed: Maybe
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1083)
at com.sun.corba.ee.internal.iiop.CDRInputStream.read_value(CDRInputStre
am.java:296)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lo
okup(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:10)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:138
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:10)
I appreciate any attempts to solve this problem.
Kind regards,
Al -
How to run different client ?
Hi,
I have downloaded and installed Oracle8i Enterprise edition Release 8.1.7.0.0.
Now I have to connect to the above server either using Oracle client version 8.1.6.3.1 or 8.1.6.2. My question is -
- is it possible to download the above version Oracle
Client ?
- how can I connect from above such client to the above
server ?
Please let me know.
Thanks,
HarishI don't know of any site where you can still download the 8.1.6 Oracle client or database. Oracle Support may know of an FTP site for desupported products.
In general, connecting from any version of the Oracle client to an Oracle server is pretty much the same.
- You want to create a new TNS name on your client machine. This is most easily accomplished by using the Net Config Assistant (the name changes slightly between releases)
- You then connect (assuming SQL*Plus) as
connect user/password@tnsname
Justin -
How to run the client from server
HI FRIENDS,
I HAVE A SMALL PROBLEM WITH MY PROGRAM.I WANTED TO START THE CLIENT FROM SERVER I.E THE CLIENT SHOULD BE EXECUTED AS SOON AS THE SERVER STARTS EXECUTION.SOME OF THEM SAID THAT THIS CAN BE DONE BY USING 'EXEC' COMMAND.BUT I COULDNT.SO PLEASE ANYONE HELP ME IN DOING THIS.
BYE
KPHI FRIENDS,
I HAVE A SMALL PROBLEM WITH MY
MALL PROBLEM WITH MY PROGRAM.I WANTED TO START THE
CLIENT FROM SERVER I.E THE CLIENT SHOULD BE EXECUTEDCan't be done, unless the server and the client are on the same machine, or you have some other COM object or service set up to allow someone to do this remotely -
How to run App server applications in Client systems
Hi all,
I m new to Oracle Devsuite 10g and App server. I configured the app server and i m able to run in my local machine (server) but i m not able to run in some others machines. even though i have given same path.
its displaying page cannot be dispalyed
My path is http://vagee/forms/frmservlet?config=TEST_APPS
please tell me how to run in client systems?
Regards,
Kalyanhi
thanks for your reply. i found the problem. In server machine Firewall was in On Mode. So that it was not allow to access. then i have switched off the firewall. now its running well in client systems also.
thank you. -
How to run Session ejb client program?
Hi
I am using weblogic server8.1 . I was running an ejb session client program it throws exception like below. Can any one tell me how to run a client in weblogic server. give the syntax for running ejb client.
D:\Weblogicserver\user_projects\domains\mydomain\applications\MyEJB\stateful>jav
a -cp .;c:\j2ee\j2ee.jar;c:\weblogic\classes;D:\Weblogicserver\weblogic81\server
\lib\weblogic.jar PortfolioClient
Exception in thread "main" java.lang.NoClassDefFoundError: PortfolioClient (wron
g name: stateful/PortfolioClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
byeIf stateful is the package for the client application, you should be executing from
D:\Weblogicserver\user_projects\domains\mydomain\applications\MyEJB
on the command line. The command should look like -
java -classpath <whatever should be here> stateful.MyClient -
Hi
I am trying to remember how to run OWB client (10gr1) from a unix command. Can anyone please help with what command you run from unix?
Thanks
GBHi,
To start Warehouse Builder using UNIX:
1.Start a shell.
2.Navigate (cd) to <OWB ORACLE HOME>/owb/bin/unix
3. Invoke owbclient.sh
Thanks,
Sutirtha -
How to run expdp from client ?
Hi All,
I tried searching google and forums for my issue but to no avail > How to run expdp from client side ....like in my laptop.
Because currently our PROD database server has no space for expdp dump file. So I want it directed to my laptop which has an extenal USB of 1TB harddisk...via client EXPDP
import data using impdp command
Posted on: 08-May-2012 11:36, by user: 841731 -- Relevance: 53% -- Show all results within this thread
below command is correct or not? if it is not correct could you please send me the correct command. impdp user/pass@databasename schemas=sourceschemaname remap_schema=sourceschemaname:destinationschemaname ...
System generated Index names different on target database after expdp/impdp
Posted on: 30-May-2012 11:58, by user: 895124 -- Relevance: 43% -- Show all results within this thread
After performing expdp/impdp to move data from one database (A) to another (B), the system name generated indexes has different ...
[ETL] TTS vs expdp/impdp vs ctas (dblink
Posted on: 08-May-2012 21:10, by user: 869578 -- Relevance: 39% -- Show all results within this thread
(table : 500 giga, index : 500 giga), how much faster is TTS (transportable tablespace) over expdp/impdp, and over ctas (dblink) ? As you know, the speed of etl depends on the hardware capacity. (io ...
Oracle Client
Posted on: 21-Jun-2012 22:47, by user: Sh**** -- Relevance: 32% -- Show all results within this thread
Hi Guys, Please can you guys elaborate the difference between Oracle Client and Oracle Instant Client. Also, please can you advise from where I can download the Oracle normal ...
Oracle 10g Client
Posted on: 05-Jun-2012 10:11, by user: dzm -- Relevance: 26% -- Show all results within this thread
to search at oracle site and this forum, but i wasn't able to find a link to download the oracle 10g client. I really need especificaly the 10g version. Anybody know the link or another way to download ...
9i client to access 11g database
Posted on: 22-Jun-2012 07:31, by user: kkrm333 -- Relevance: 24% -- Show all results within this thread
Hi, Can i access a 11g database using 9i client? Thanks,
SQLplus in Oracle Client
Posted on: 14-Jun-2012 00:36, by user: Tim B. -- Relevance: 24% -- Show all results within this thread
Hi, I tried to install an 11g oracle client in linux. As I've compared the files with the files when you install using the oracle instant ...
Re: Information on Oracle Client 11202-1.1.4-6
Posted on: 05-Jun-2012 03:33, by user: 898763 -- Relevance: 23% -- Show all results within this thread
Actually thats the client requirement
Analysing the performance of a single client
Posted on: 28-Mar-2012 02:05, by user: 880172 -- Relevance: 23% -- Show all results within this thread
timeouts even on some of the simplest queries. I want to try and get some data about how just this one client is performing and what it’s doing, but everything Google has thrown up so far is orientated around ...
to make client connection as sys
Posted on: 12-Jun-2012 22:04, by user: user11221081 -- Relevance: 23% -- Show all results within this thread
Dear gurus can i connect to my server from my client machine with sysdba without giving sys password i have connected in different ways as sys@abc ...Thanks a lot.Though you can initiate the binary from your client side but for the file creation, there is no other way but to store it on the server side. So your best bet would be to get some space free on the server side of yours.
Aman.... -
How to run ADF command-line test-client on standalone weblogic host
I have followed the steps to create a test client for the ADF application. In used the following link:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/bcquerying007.htm
The above link does not talk about how to setup the environment where the standalone weblogic is installed to be able to run the test client.
I can run it in the jdeveloper environment.
I can also run from the command line on the development host, by cut-paste the command from the jdeveloper output log tab.
I am trying to run this client on the machine where we have a weblogic installed (standalone) for testing. We can run our ADF application from the browser with no issues. We want to automate and run some testing related to the ADF model (non-viewcontroller part) from the command line on this test stage.
Which/Where are the ADF libraries?
How can I add our application jar deployed on the weblogic (ear file) to the CLASSPATH?
What other libraries ADF/Weblogic do I need for the command line test client?
What am I missing?
Thanks for any help.
Edited by: mmunawar on Jul 2, 2011 1:03 PM
Edited by: mmunawar on Jul 2, 2011 1:04 PMcreate weblogic application server connection from jdeveloper and then Deploy that application through jdeveloper in the weblogic application server and then run it from jdeveloper and see if its working.
-
NAV 2013 R2; How to run a customized report (206 sales invoice) in the classic client
Hello, in preparing a newly installed NAV 2013 R2, I'm questioning the following:
In the Development Environment I have customized report 206 Sales - Invoice in the Design menu View Layout with the space of the logo (by Microsoft SQL Server Report Builder) and
finally saved and compiled.
When I do run it connects to the server of what I call the classic client or the real NAV 2013 R2 and I can select a posted sales invoice to show the new layout and the result is
fine as customized as I wanted.
When I later ordinary print one of the posted sales invoices this customized logo layout doesn't appear on the print. I print in PDF and paper. When I make a next new sales invoice
this new layout is not in use either.
Another thing is run print started from the Development Environment is called Sales - Invoice in the header and not just Invoice that it the name when printing when invoicing and
printing of posted documents.
Additionally this form of Sales - Invoice shows our company details and good information as web, e-mail, bank account and bank name that is well demanded on a perfect invoice.
How to get these informations out normally?
Is the classic client having a wrong report as sales invoice?
How to run a customized report (206 sales invoice) in the classic client NAV 2013 R2?
It is like the customized report (206 sales invoice) is not in use yet in the classic client.
All you wise people out there are welcomed to help me now
Best regards
CarstenTry on Dynamics Community forum: https://community.dynamics.com/nav/f/34.aspx
Maybe you are looking for
-
Transformation Rule: Error while loading from PSA to ODS using DTP
Hi Experts, I am trying to load data from PSA to ODS using DTP. For about 101 records I get the following error: "Runtime error while executing rule -> see long text RSTRAN 301" On further looking at the long text: Diagnosis An error occu
-
I cant open my iphone 3g .... needs restore and itunes cant make restore has an error on phone .... how can I solve this problem?
-
Files corrupted by Copy finder items
I made a simple Automator workflow droplet. When a (PDF) file is dropped onto it, it copies it to the desktop, does a rename step, then copies it to another folder on the server. Today, I've been having a problem with the pdf files getting corrupted
-
Hi, When I open any PDF file, I am unable to access Tools and/or Sign option inside Adobe Reader. It is the same thing with both tools. Just empty. Nothing happens. Any ideas how to solve this issue?
-
We have an older G4 Power Mac that we use for Video editing. Recently upgraded to FC Studio, Motion 3 wil not run on this machine due to Video card not supporting open GL. Our IT depart purchased a ATI Radeon 9600 Pro PC/Mac edition, they were told i