Compile WS client

Hi all,
I have problems to compile a web service client called Access.java. I coded it following the J2EE 1.4 Tutorial, chapter 8, section "Dynamic Proxy Client".
I used wscompile to obtain the classes needed to connect:
C:\Sun\jwsdp-1.6\jaxrpc\bin\wscompile.bat -import -keep -verbose -httpproxy:xxxxxxx:xxxx -O config.xml
config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration
     xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
     <wsdl
          location="xxxxxxxxxxxxxxxxxx"
          packageName="WSClient" />
</configuration>
I obtained these classes:
Authentication.class
AuthenticationSoap.class
AuthenticationSoap_Impl.class
... (other classes related with each method of the Web Service)
And I try to compile with javac in this way:
C:\PROGRA~1\Java\jdk1.5.0_04\bin\javac.exe -verbose -cp "%CLASSPATH%" Access.java
The classpath includes the 3 jar files for XML rpc of the JWSDP 1.6
The code is the following:
package WSClient;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.JAXRPCException;
import WSClient.AuthenticationSoap;
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service WSService = serviceFactory.createService(WSClientWsdlUrl, new QName(nameSpaceUri, serviceName));
WSClient.AuthenticationSoap proxy = (WSClient.AuthenticationSoap) WSService.getPort(new QName(nameSpaceUri, portName), WSClient.AuthenticationSoap.class);
I get some errors in the last line. The compiler says it cannot find WSClient.AuthenticationSoap.class. It even says it can't find WSClient.Authentication in the line of the import at the beginning.
I have tried to add it to the classpath, but it doesn't work. What is missing?
And other question. Which is the class I have to use? Authentication, AuthenticationSoap or AuthenticationSoap_Impl? I think it's AuthenticationSoap because in the java file I saw that it is the archive which includes the interface for the methods of the service.
So please, help me. If you need more information, just ask for it, and I'll post it.
Thanks for everyone.

Oliver, is it only wrong in the stub? Does all of the generated code compile? If it all compiles then there is no error. The reason the _Type was added is because they are other WSDL names that have the same name.  Please read section 4.3.12 of the JAXRPC spec for more detail.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • [Solved] Can't compile lastfm-client

    Hi!
    I'm having some problems compiling lastfm-client from AUR. Long story short, I'll just post the output of makepkg
    g++ -Wl,-rpath,/usr/lib -shared -Wl,-soname,libMoose.so.1 -o libMoose.so.1.0.0 ../../build/Moose/release/confirmdialog.o ../../build/Moose/release/MooseCommon.o ../../build/Moose/release/LastFmSettings.o ../../build/Moose/release/moc_confirmdialog.o ../../build/Moose/release/moc_LastFmSettings.o -L/home/shin/lfm/src/last.fm-1.5.1.31879/bin -L/usr/lib -lLastFmTools -lQtXml -L/usr/lib -pthread -pthread -lQtGui -L/usr/X11R6/lib -pthread -lpng -lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork -lssl -lcrypto -pthread -pthread -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
    ln -s libMoose.so.1.0.0 libMoose.so
    ln -s libMoose.so.1.0.0 libMoose.so.1
    ln -s libMoose.so.1.0.0 libMoose.so.1.0
    rm -f ../../bin/libMoose.so.1.0.0
    rm -f ../../bin/libMoose.so
    rm -f ../../bin/libMoose.so.1
    rm -f ../../bin/libMoose.so.1.0
    mv -f libMoose.so.1.0.0 libMoose.so libMoose.so.1 libMoose.so.1.0 ../../bin/
    make[1]: Leaving directory `/home/shin/lfm/src/last.fm-1.5.1.31879/src/libMoose'
    cd src/libFingerprint/fplib/pro_qmake/ && make -f Makefile.fplib
    make[1]: Entering directory `/home/shin/lfm/src/last.fm-1.5.1.31879/src/libFingerprint/fplib/pro_qmake'
    make[1]: *** No rule to make target `/usr/share/qt4/mkspecs/linux-g++/qmake.conf', needed by `Makefile.fplib'. Stop.
    make[1]: Leaving directory `/home/shin/lfm/src/last.fm-1.5.1.31879/src/libFingerprint/fplib/pro_qmake'
    make: *** [sub-src-libFingerprint-fplib-pro_qmake-fplib-pro-make_default-ordered] Error 2
    mv: cannot stat `build/fplib/libfplib_debug.a': No such file or directory
    ==> ERROR: Build Failed.
    Any ideas?
    Last edited by lateralus (2008-11-09 15:59:28)

    kazuo wrote:
    lateralus wrote:
    make[1]: *** No rule to make target `/usr/share/qt4/mkspecs/linux-g++/qmake.conf', needed by `Makefile.fplib'. Stop
    Any ideas?
    The qt4 path is wrong, qmake.conf is installed on /usr/share/qt/mkspecs/linux-g++/qmake.conf.
    The PKGBUILD is from commubity correctly? it have a sed to change qt4 to qt, I don't know why it is commented you can try to change it.
    OK, I've made an symbolic link /usr/share/qt -> /usr/share/qt4 and now it works. PKGBUILD was straight from the AUR CVS.
    Thanks!

  • Compiling a client of an application using a library

    Hi,
    I got a library that wraps 3GL code.
    I build this library first (projtype 3), then I distribute as client my forte
    application, and I'm able to compile the client on the same node where
    the library has been made, but not on other node types.
    i.e. Mylib.sl is generated on my node A, and MyApp0 is generated on node A.
    But I can't get MyApp0.exe on my node B
    (A unix, B nt)
    Here's the output:
    Processing partition generation file: D:\Public\comp_out\MyApp0\MyApp0.pgf
    Creating and initializing code generator, this could take some time.
    Generating code for partition MyApplication_cl0_Client.
    Processing BOM file: MyApp0.bom
    main.cc
    main.cc(71) : fatal error C1083: Cannot open include file: 'userapp/mylib/cl0
    /inc/mylib/mylib.cdf': Permission denied
    Error during compilation, aborting.
    ~
    The library was neither build nor installed on the nt node, as it shouldn't be
    required.
    Thanks for any input,
    j-paul gabrielli
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/forte>

    Hi,
    I got a library that wraps 3GL code.
    I build this library first (projtype 3), then I distribute as client my forte
    application, and I'm able to compile the client on the same node where
    the library has been made, but not on other node types.
    i.e. Mylib.sl is generated on my node A, and MyApp0 is generated on node A.
    But I can't get MyApp0.exe on my node B
    (A unix, B nt)
    Here's the output:
    Processing partition generation file: D:\Public\comp_out\MyApp0\MyApp0.pgf
    Creating and initializing code generator, this could take some time.
    Generating code for partition MyApplication_cl0_Client.
    Processing BOM file: MyApp0.bom
    main.cc
    main.cc(71) : fatal error C1083: Cannot open include file: 'userapp/mylib/cl0
    /inc/mylib/mylib.cdf': Permission denied
    Error during compilation, aborting.
    ~
    The library was neither build nor installed on the nt node, as it shouldn't be
    required.
    Thanks for any input,
    j-paul gabrielli
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/forte>

  • RE: Compiling a client of an application using alibrary

    Jean,
    I believe that the library does need to be installed/built on all nodes
    where you plan on running your application. Hope this helps.
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    9th Floor
    Minneapolis, MN 55440-1309
    (612)883-7317
    -----Original Message-----
    From: Jean-Paul Gabrielli
    [SMTP:[email protected]]
    Sent: Thursday, July 22, 1999 10:14 AM
    To: '00 Forte Mailinglist'
    Subject: Compiling a client of an application using a library
    Hi,
    I got a library that wraps 3GL code.
    I build this library first (projtype 3), then I distribute as client
    my forte
    application, and I'm able to compile the client on the same node
    where
    the library has been made, but not on other node types.
    i.e. Mylib.sl is generated on my node A, and MyApp0 is generated on
    node A.
    But I can't get MyApp0.exe on my node B
    (A unix, B nt)
    Here's the output:
    Processing partition generation file:
    D:\Public\comp_out\MyApp0\MyApp0.pgf
    Creating and initializing code generator, this could take some time.
    Generating code for partition MyApplication_cl0_Client.
    Processing BOM file: MyApp0.bom
    main.cc
    main.cc(71) : fatal error C1083: Cannot open include file:
    'userapp/mylib/cl0
    /inc/mylib/mylib.cdf': Permission denied
    Error during compilation, aborting.
    ~
    The library was neither build nor installed on the nt node, as it
    shouldn't be
    required.
    Thanks for any input,
    j-paul gabrielli
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/forte>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/forte>

    A Few things to try:
    * Try to make a distributions and compilations separately as follows:
    * Make distribution to node A only, and auto compile. Do not install
    * Make distribution to node B only, and auto compile. Do not install
    * Make a full distribution to your central server node, without
    autocompile
    * ftp the node-specific compilation results from A and B to the
    sub-directory on the central server node.
    * Install the application into the environment
    If that doesn't make any difference, it could be a simpler problem:
    * Go to the NT Box and make sure you don't have explorer open on the
    directory.
    * Make sure the NT box hasn't run out of hard disk space.
    John Pianezze
    S1 Technologies,
    Melbourne Australia.
    -----Original Message-----
    From: Jean-Paul Gabrielli
    [SMTP:[email protected]]
    Sent: Friday, July 23, 1999 2:14 AM
    To: '00 Forte Mailinglist'
    Subject: Compiling a client of an application using a library
    Hi,
    I got a library that wraps 3GL code.
    I build this library first (projtype 3), then I distribute as client
    my forte
    application, and I'm able to compile the client on the same node
    where
    the library has been made, but not on other node types.
    i.e. Mylib.sl is generated on my node A, and MyApp0 is generated on
    node A.
    But I can't get MyApp0.exe on my node B
    (A unix, B nt)
    Here's the output:
    Processing partition generation file:
    D:\Public\comp_out\MyApp0\MyApp0.pgf
    Creating and initializing code generator, this could take some time.
    Generating code for partition MyApplication_cl0_Client.
    Processing BOM file: MyApp0.bom
    main.cc
    main.cc(71) : fatal error C1083: Cannot open include file:
    'userapp/mylib/cl0
    /inc/mylib/mylib.cdf': Permission denied
    Error during compilation, aborting.
    ~
    The library was neither build nor installed on the nt node, as it
    shouldn't be
    required.
    Thanks for any input,
    j-paul gabrielli
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/forte>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/forte>

  • Unable to compile EJB client program

    Hi, I developed a simple client program to an entity bean and I am not able to compile. Following are the few lines picked up from the code: (all my ejb,home and remote classes are under "test" package)
    import test.*;
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class TestClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    Object objRef = initial.lookup("MyTestBean");
    TestHome home = (TestHome) PortableRemoteObject.narrow(objRef, TestHome.class);
    ... etc.
    I am getting the following compilation error
    TestClient.java:13: inconvertible types found : java.lang.Object required: TestHome
    TestHome home = (TestHome) PortableRemoteObject.narrow(objRef, TestHome.cl
    ass);
    The classpath is set to j2ee.jar and the local working directory in which the package "test" resides.
    Any help in this matter is greatly appreciated.
    Thanks.

    Greetings,
    Hi there,
    Did pengjuc's answer help you to solve this problem?
    I'd be really interested to know if it did.Unlikely, since the error reported is not with the object reference but with the specified class type. Additionally, this approach is not recommended since it assumes the underlying protocol is always (RMI-)IIOP and not vendor specific - portability is lost.
    Thanks
    Amanda
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers
    Regards,
    Tony "Vee Schade" Cook

  • Compiling server-client with eclipse

    hi. i'm new to java programming and i'm using eclipse. i have 2 simple programmes, one for a server and another for a client and would like to use them to communicate with each other. i have an error message with both programs.. i think that there is a prblem with my server program...is there anything i need to add to get it running or is there anything in particular needed when using eclipse to run server/client programs? here is the code:
    import java.io.*;
    import java.net.*;
    public class Serveur {
         public static void main(String[] args) {
              try{
              ServerSocket ss= new ServerSocket(1500);
              Socket sc= ss.accept();
              System.out.println("connection etablie");
              PrintWriter flux_sortant = new PrintWriter(sc.getOutputStream());
              flux_sortant.println("coucou j'ecris");
              //ss.close();
              //sc.close();
              catch (IOException e){
                   System.out.println("Connection non etablie");
    and for the client:
    import java.io.*;
    import java.net.*;
    public class Client {
         public static void main(String[] args) {
              try{
                   Socket s= new Socket("local host",1500);
                   BufferedReader flux_entrant= new BufferedReader(new InputStreamReader(s.getInputStream()));
                   System.out.println("J'ai lu:" + flux_entrant.readLine());
              catch (IOException e){
                   System.out.println("probleme de connection");
    thanks

    Hello,
    if you want your server programm to listen for incoming connections all the time, then you shouldn't close your ServerSocket because it is accepting the connections.
    I would try something like this:
    public class Serveur implements Runnable{
           private boolean running = true;
           private ServerSocket ss;
           public Serveur(){
                   ss = new ServerSocket(1500);
          public static void main(String[] args){
                  new Thread(new Serveur()).start();
        public void run(){
                while(running){
                        Socket sc = ss.accept();
                        System.out.println("Connection established");
                       PrintWriter writer = new PrintWriter(sc.getOutputStream());    
                       writer.println("Blah");
                       sc.close();           
    }This server would accept a connection send back "Blah" and close the connection to the client.
    hope that helps...
    greetz
    Message was edited by:
    n3bul4

  • Compilation errors when using Client program

    Hi all,
    I face a problem when compiling the client.
    Compilation errors:
    "Not able to resolve symbols HelloHome, Hello"
    At this line: HelloHome home = (HelloHome)ctx.lookup("HelloHome")
    I have cut and paste the client program below:
    Please look into it.
    Thanks
    Ranjan
    //Client for HelloBean
    import java.rmi.*;
    import javax.naming.*;
    import java.util.*;
    public class HelloClient {
    public static void main(String args[]) {
    try
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
    InitialContext ctx = null;
    ctx = new InitialContext(ht);
    HelloHome home = (HelloHome)ctx.lookup("HelloHome");
    Hello hel = home.create();
    String retval = hel.sayHello("Ranjan");
    System.out.println("Returned: " + retval);
    hel.remove();
    catch (RemoteException e)
    System.out.println("RemoteException occured: " + e);
    catch (javax.ejb.CreateException e)
    System.out.println("Create Exception occured: " + e);
    catch (javax.ejb.RemoveException e)
    System.out.println("Remove Exception occured: " + e);
    catch(javax.naming.NamingException e)
    System.out.println("Naming Exception occured: " + e);
    **************************

    Hi,
    Yes the Hello and HelloHome classes are present in the same directory as the HelloClient.class
    Regards
    Ranjan

  • Trouble compiling web service client file

    Hi,
    I am trying to deploy a test web services implementation on JBoss 3.2.1 and Axis 1.1RC2. The problem is, I cannot even compile my client code (the one that invoke the web services)...it seems that the java compiler cannot locate the following packages:
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    even though I have set my classpath (in the environment var part of my Win2k box) to: C:\axis-1_1RC2\lib\axis.jar;C:\axis-1_1RC2\lib\jaxrpc.jar;C:\axis-1_1RC2\lib\saaj.jar;C:\axis-1_1RC2\lib\commons-logging.jar;C:\axis-1_1RC2\lib\commons-discovery.jar;C:\axis-1_1RC2\lib\wsdl4j.jar;C:\axis-1_1RC2\lib\;C:\axis-1_1RC2\[rest of classpath truncated]
    Has anyone experienced something similar? I'll award Duke dollars to the first person getting the right solution. Thanks!
    Here are the error messages:
    C:\web_clients>javac DataUserClient.java
    DataUserClient.java:1: package org.apache.axis.client does not exist
    import org.apache.axis.client.Call;
    ^
    DataUserClient.java:2: package org.apache.axis.client does not exist
    import org.apache.axis.client.Service;
    ^
    DataUserClient.java:3: package javax.xml.namespace does not exist
    import javax.xml.namespace.QName;
    ^
    DataUserClient.java:26: cannot resolve symbol
    symbol : class Service
    location: class DataUserClient
    Service myWebServ= new Service(url, "StandardPersonData");
    ^
    DataUserClient.java:26: cannot resolve symbol
    symbol : class Service
    location: class DataUserClient
    Service myWebServ= new Service(url, "StandardPersonData");
    ^
    DataUserClient.java:27: cannot resolve symbol

    Hi,
    I had the same problem with my client too. The problem is with your classpath. You have to set it at the command prompt as well as editing the setclasspath.bat file. The full path to where you libs are stored is required. eg:
    set classpath=%classpath%;C:\axis-1_1\lib\axis.jar;C:\axis-1_1\lib\jaxrpc.jar...etc
    I tried to set the classpath using %axisDirectory%\lib\axis.jar ...etc but it didnt work for whatever reason. The above method seems to eliminate all errors. At the moment im just running axis 1.1 under tomcat 4.1.
    Hope that helps :-)

  • Openldap client compile in Solaris 8/9

    Did anyone compile openldap client with ssl/TLS in solaris 8/9 platform and authenticate against SUN one iplanet directory server 5.1 sp2 successfully?
    I cannot get the openldap client talk to the IDS ?
    Thanks
    DMA

    Lars,
    Use ldmp2v to convert existing physical server to VM  and
    Convert Solaris 8 and 9 physical servers to container in Solaris 10 VM?
    Is that what you are saying?
    Major constraint I have is, applications running in the current physical servers have no vendor support, vendor doesn't exist any more. Application has been locked to run only on the same OS version. What I am worried is, while running ldmp2v should not prevent the application coming up in the new virtualized environment. Keeping that in mind, I gave a thought like
    1. Install and configure the CDOM (control domain)
    2. configure and Install LDOMs with Solaris 10 OS
    3. Run flar on the existing Solaris 10 physical server
    4. Transfer the flar created to Solaris 10 LDOM and configure it as a zone
    5. For Solaris 8 and 9, create LDOMs with Solaris 10 OS
    6. Install additional patches and packages needed for supporting Solaris 8 and 9 zones
    6. create flar images on the existing Solaris 8 and 9 physical servers
    7. transfer the images to newly created LDOM and configure the zone.
    8. Current servers sun4u which has to be converted to sun4v.

  • Compiling Client for SessionBean

    on compilation of client program :
    javac -classpath {$CLASSPATH}:ejb.jar Client.java
    it is giving me the error showing that program is not able to locate EJB classes containg ejb.jar.
    please help me on this

    I have a Client program(HelloWorldClient.java) on compilation of this client i am getting following error. myejb.jar contains all ejb classes residing under com.desai package.
    Same code is working on Unix machine.
    I am not getting why it is not working for windows. please reply.
    HelloWorldClient.java:3: package javax.ejb does not exist
    import javax.ejb.*;
    ^
    HelloWorldClient.java:8: package com.desai does not exist
    import com.desai.*;
    ^
    HelloWorldClient.java:24: cannot resolve symbol
    symbol : class HelloHome
    location: class HelloWorldClient
    HelloHome home = (HelloHome) PortableRemoteObject.narrow(obj,Hel
    loHome.class);
    ^
    HelloWorldClient.java:24: cannot resolve symbol
    symbol : class HelloHome
    location: class HelloWorldClient
    HelloHome home = (HelloHome) PortableRemoteObject.narrow(obj,Hel
    loHome.class);
    ^
    HelloWorldClient.java:24: cannot resolve symbol
    symbol : class HelloHome
    location: class HelloWorldClient
    HelloHome home = (HelloHome) PortableRemoteObject.narrow(obj,Hel
    loHome.class);
    ^
    HelloWorldClient.java:25: cannot resolve symbol
    symbol : class HelloRemote
    location: class HelloWorldClient
    HelloRemote remote = home.create();
    ^
    6 errors

  • Client program not compiling?

    Hi
    I am using Weblogic server 8.1 for EJB applications.
    I deployed simple session ejb program,i successfully deployed ,but client program not compiling it doesn't take home and remote interface.
    How to set classpath for client program,before compiling a client.
    for example i had client in this dir
    D:\ejb\
    ejbclient.jar
    client.java
    bye

    Hi,
    Before running the ejb client we need to follow the steps as given below.
    1)set the weblogic environment using the setWLSEnv
    2)set the classpath for ejb(home,remote and bean).
    3)run the client program
    Note:To set the classpath for the ejb
    set classpath=d:\ejb;.; %classpath%
    Regards
    Anilkumar kari

  • Tutorial Step 8 - Compile and run Client

    I have been unsuccessful in getting the client to run from the command prompt.
    I have modified the compile and run bat files as follows"
    COMPILE.BAT
    c:\bea\jdk131_03\bin\javac -classpath ../../WEB-INF/lib/Investigate.jar;../../WEB-INF/lib/webserviceclient.jar;c:\bea\weblogic700\server\lib\webserviceclient.jar
    *.java
    RUN.BAT
    c:\bea\jdk131_03\bin\java -cp .;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic700\server\lib\webserviceclient.jar;
    InvestigClient
    What am I missing????
    ===============
    C:\bea\weblogic700\samples\workshop\applications\samples\tutorials\java_client>c
    :\bea\jdk131_03\bin\java -cp .;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic
    700\server\lib\webserviceclient.jar; InvestigClient
    Exception in thread "main" java.lang.NoClassDefFoundError: InvestigClient (wrong
    name: tutorials/java_client/InvestigClient)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)

    Craig,
    The error suggests the absence of the class file 'InvestigClient.class' in
    the CLASSPATH.
    Could you please confirm that you were able to compile the client correctly.
    Please check that you have the Investig.class file in the
    tutorials\java_client directory.
    I was able to run the client successfully here.
    Regards,
    Anurag
    Workshop Support
    "Craig Hall" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have been unsuccessful in getting the client to run from the commandprompt.
    I have modified the compile and run bat files as follows"
    COMPILE.BAT
    c:\bea\jdk131_03\bin\javac -classpath../../WEB-INF/lib/Investigate.jar;../../WEB-INF/lib/webserviceclient.jar;c:\
    bea\weblogic700\server\lib\webserviceclient.jar
    *.java
    RUN.BAT
    c:\bea\jdk131_03\bin\java -cp.;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic700\server\lib\webservice
    client.jar;
    InvestigClient
    What am I missing????
    ===============
    C:\bea\weblogic700\samples\workshop\applications\samples\tutorials\java_clie
    nt>c
    :\bea\jdk131_03\bin\java -cp.;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic
    700\server\lib\webserviceclient.jar; InvestigClient
    Exception in thread "main" java.lang.NoClassDefFoundError: InvestigClient(wrong
    name: tutorials/java_client/InvestigClient)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)

  • Compiled Client Error

    I am experiencing a problem building an application that I have not experienced
    before. While I am compiling my client, I am receiving the following error:
    BEGIN FILE
    Working directory is c:\forter3m\tmp\cg1\pc_nt\spectr0
    Processing BOM file: spectr0.bom
    Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 for 80x86
    Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
    Command line warning D4002 : ignoring unknown option '/Ob1'
    main.cc
    fatal error C1063:
    p main.cc
    Error during compilation, aborting.
    END FILE
    I searched the Microsoft Support Knowledge Base for error C1063, which indicates
    that this error (compiler stack overflow error) may occur sporadically under
    extremely low disk space situations. I have over 3gb free, so the probability
    of a disk space problem should not be an issue. Error C1063 may also be caused
    by C++ code that incorrectly deletes a typedef of a pointer to a structure.
    Does anyone have any ideas?
    I am using Forte 3.0.M.2 and MS Visual C++ 6.0, my /Zm flag is set to 1750.
    -jeff

    Ok. I got it but not hte way I wanted. Maybe someone could explaine me. Instead of casting to SocketConnection, I casteded to StreamConnection that is a superinterfece for SocketConnection and the URI argument for Connector.open() remained the same, e.g. "socket://xxx.xxx.xxx.xxx:xxxx".
    What is the problem to SocketConnection? It is declared in CLDC and must be supported by vendors, but it's still unloadable...

  • Error while running a EJB client

    Hi All,
    I am trying to execute a Hello World Prgram using EJB's. I have Deployed a Stateless Session bean in J2EE 1.3 deploytool.I am also able to compile my Client, but when i a executing the Client i am getting this error.
    =========================
    java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception is: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDeleg ate.java:137) at javax.rmi.CORBA.Util.mapSystemException(Util.java:65) at headfirst._Advice_Stub.getAdvice(Unknown Source) at AdviceClient.go(AdviceClient.java:21) at AdviceClient.main(AdviceClient.java:11) Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java :39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorI mpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage _1_2.java:93) at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl. java:108) at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:132) at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457) at headfirst._Advice_Stub.getAdvice(Unknown Source) ... 2 more ===============================
    I have undeployed and redeployed couple of time but i am still getting the same problem. I am using J2EE 1.3 deploytool for deploying the EJB.
    Can anyone please help me in figuring out the problem.
    Thanks in Advance.
    ~Ravi.

    You are having network-related errors to the client.
    Let me see your Remote interface

  • How to implement an independent static stub client ? Please, help

    Hi everybody!
    I'm using the jwsdp1.2 and i got the static stub tutorial client to test my webservice. It works fine! However, i tried to compile the client code separately and it didn't worked. The jvm can't find the webservice class. So, the questions are:
    - How to implement an independent static stub whithout the ant help?
    - How can the client get the endpoint to create the proxy?
    - Must I use any javax.xml.rpc interface (call or service maybe) to do the job?
    - Could anybody show me some sample code?
    Well, that's it. I'm waiting for some answer. Please, help me.
    Tks in advance,
    Rodrigo.

    Can you explain what you mean by "independent static stub" ?
    JWSDP Tutorial explains all the steps required to create a static stubs client and invoke the service. In addition, https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario2 explains the detailed steps to achieve the same from command line.
    Hope that helps.
    Post your JAX-RPC related questions to [email protected] for a quicker resolution.
    Send an email to [email protected] to subscribe to the alias.
    Send an mail to [email protected] for a complete list of help commands.
    -Arun

Maybe you are looking for

  • UI: Popup content (input helps, ...) not shown

    We're running the CRM 2007 web UI. We've got problems with the content of popups. The behaviour is different on several hosts calling the UI internally (intranet) and using the same browser (IE6). Here's a description on how we're able to reproduce t

  • How do I input column headers in an Excel report with variable width columns?

    Hi: I have read this question before but I can´t open the link, when I try to download the solution I get the following : HTTP Status 404 The requested resource is not available. Can anyone help me with the solution ? I just want to put a header for

  • Solution Manager 7.1 SPS8 to SPS11 with SUM

    Hello, I'm just upgrading SolMan 7.1 to SPS11 (AIX, DB/2). The SUM Initialization and Extraction part is done without any errors. Now in step 5.3 Configuration the ABAP part is also done, but Java brings following error: I'm wondering, because the SA

  • FRM - 30085 (Chart in Oracle 9i Forms)

    I need to display charts based on conditions. but after i draw a chart and select the data block, X Y coordinates, when i try to compile it says FRM - 30085. problem with block based chart and cannot generate form. Please help on how to draw charts i

  • Regarding Iterm Proposal Creation

    Hello , i got one error message while  creating the item proposal in VA51 "Company was not supplied in Function Module interface"  and when i double click on this i showing one error message number "Message no. FI320" please  give any solution to sol