Problem setting classpath in apache axis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nawrin22
    New Member
    • Aug 2006
    • 1

    Problem setting classpath in apache axis

    hi..

    I am a niwebie in 'AXIS' . but i had correctly installed it without any problem
    with the help of 'apache.axis.in stall.pdf' and also tested the examples
    under 'samples\usergu ide' directoy provided with 'AXIS'.

    Later ,I wanted to run a 'build.xml' file created of my own to run the
    'example3' project under a diffrent directory and configured the 'build.xml'
    accordingly. I succeded but after then .. I could not run any of the examples.

    When i tried to run any 'CLIENT' file from command prompt ....

    " h:\axis\samples \stock > java -cp %AXISCLASSPATH%
    org.apache.axis .client.AdminCl ient
    -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

    "

    It works. but if i run..

    h:\axis\samples \stock > java org.apache.axis .client.AdminCl ient
    -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd


    it shows me

    ''Exception in thread "main" java.lang.NoCla ssDefFoundError :
    org/apache/axis/client/AdminClient ''

    This is same for all the examples.
    I can't anticipate .. what the problem may be. For ur convenience .. i here
    provide all the classpaths...


    JAVA_HOME = H:\Java\j2sdk1. 5.0
    AXIS_HOME =H:\tomcat\weba pps\axis
    AXIS_LIB = %AXIS_HOME%\web-inf\lib


    AXISCLASSPATH = %AXIS_LIB%\axis .jar;
    %AXIS_LIB%\axis-ant.jar;
    % AXIS_LIB%\commo ns-discovery-0.2.jar;
    %AXIS_LIB%\comm ons-logging-1.0.4.jar;
    %AXIS_LIB%\jaxr pc.jar;%AXIS_LI B%\saaj.jar;
    %AXIS_LIB%\log4 j-1.2.8.jar;
    %AXIS_LIB%\xml-apis.jar;
    %AXIS_LIB%\xerc esImpl.jar;
    %AXIS_LIB%\xmls ec.jar;
    %AXIS_LIB%\acti vation.jar;
    %AXIS_LIB%\mail api_1_3_1.jar;
    H:\tomcat\commo n\lib\servlet.j ar;
    %AXIS_LIB%\wsdl 4j-1.5.1.jar;
    %AXIS_LIB%\xmlP arserAPIs.jar

    CLASSPATH = .;%AXISCLASSPAT H%;h:\Java\clas ses





    It's really urgent for me... i'll be grateful to u if u pls can give any solution .
  • Vishwa
    New Member
    • Jan 2007
    • 1

    #2
    Hi,
    Have u got any solution for this issue? me too getting same problem, plz help me in this....

    Thank you...

    Originally posted by nawrin22
    hi..

    I am a niwebie in 'AXIS' . but i had correctly installed it without any problem
    with the help of 'apache.axis.in stall.pdf' and also tested the examples
    under 'samples\usergu ide' directoy provided with 'AXIS'.

    Later ,I wanted to run a 'build.xml' file created of my own to run the
    'example3' project under a diffrent directory and configured the 'build.xml'
    accordingly. I succeded but after then .. I could not run any of the examples.

    When i tried to run any 'CLIENT' file from command prompt ....

    " h:\axis\samples \stock > java -cp %AXISCLASSPATH%
    org.apache.axis .client.AdminCl ient
    -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

    "

    It works. but if i run..

    h:\axis\samples \stock > java org.apache.axis .client.AdminCl ient
    -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd


    it shows me

    ''Exception in thread "main" java.lang.NoCla ssDefFoundError :
    org/apache/axis/client/AdminClient ''

    This is same for all the examples.
    I can't anticipate .. what the problem may be. For ur convenience .. i here
    provide all the classpaths...


    JAVA_HOME = H:\Java\j2sdk1. 5.0
    AXIS_HOME =H:\tomcat\weba pps\axis
    AXIS_LIB = %AXIS_HOME%\web-inf\lib


    AXISCLASSPATH = %AXIS_LIB%\axis .jar;
    %AXIS_LIB%\axis-ant.jar;
    % AXIS_LIB%\commo ns-discovery-0.2.jar;
    %AXIS_LIB%\comm ons-logging-1.0.4.jar;
    %AXIS_LIB%\jaxr pc.jar;%AXIS_LI B%\saaj.jar;
    %AXIS_LIB%\log4 j-1.2.8.jar;
    %AXIS_LIB%\xml-apis.jar;
    %AXIS_LIB%\xerc esImpl.jar;
    %AXIS_LIB%\xmls ec.jar;
    %AXIS_LIB%\acti vation.jar;
    %AXIS_LIB%\mail api_1_3_1.jar;
    H:\tomcat\commo n\lib\servlet.j ar;
    %AXIS_LIB%\wsdl 4j-1.5.1.jar;
    %AXIS_LIB%\xmlP arserAPIs.jar

    CLASSPATH = .;%AXISCLASSPAT H%;h:\Java\clas ses





    It's really urgent for me... i'll be grateful to u if u pls can give any solution .
    Last edited by Niheel; Jan 8 '07, 06:18 PM.

    Comment

    • radhu
      New Member
      • Apr 2007
      • 1

      #3
      hey guys..
      please help me out.
      i'm stuck up with the same problem

      thanks in advance...

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        You are putting .jar files in your classpath. What you really need to do is put a path in there.

        Comment

        • Hiamit
          New Member
          • Sep 2008
          • 1

          #5
          Originally posted by Motoma
          You are putting .jar files in your classpath. What you really need to do is put a path in there.
          HI
          I could not understand you.What do u mean by saying put a path there.

          Comment

          Working...