Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Problem running Apache axis

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I've installed Apache AXIS on my system but I am having one problem. My programs compile but each time I try to run them I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service

Any ideas on how to fix this?
Thanks.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
after the installation you must copy the directory
YourAXIS-Home/webapps/axis
into (by example!!) C:\Programme\Tomcat5.0\webapps
(axis runs as wepapps!!) yue need an application server (T:-)Cat)?
if you are working with resin:
into C:\Programme\resin-3.0.12\webapps
On the box:
this is my batch file to start tomcat and axis:
rem begin of file setJava.bat
@echo off
@rem -----------------------------------------
@rem setJava.bat
@rem
@rem Sets up the Java environment
@rem by adding the correct java files for JDK Ver 1.4.2_04
@rem to the PATH
@rem ant environment will be initialized
@rem Xalan environment will be initialized
@rem xerces environment will be initialized
@rem junit environment will be initialized
@rem tomcat environment will be initialized
@rem -----------------------------------------
set CATALINA_HOME=C:\Programme\Tomcat5.0
set CATALINA_BASE=C:\Programme\Tomcat5.0
set JAVA_HOME=D:\Programme\j2sdk1.4.2_04
set JUNIT_HOME=D:\Programme\XerTom\junit3.8.1
set PATH=%JAVA_HOME%\bin;%PATH%
set CLASSPATH=%JAVA_HOME%\lib\tools.jar
set ANT_HOME=D:\Programme\apache-ant-1.6.2
set PATH=%ANT_HOME%\bin;%JUNIT_HOME%;%PATH%
set CLASSPATH=.;D:\Programme\XerTom\xerces-2_2_0\xercesImpl.jar;%CLASSPATH%
set CLASSPATH=C:\Sun\AppServer\lib\j2ee.jar;%CLASSPATH%
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xalan.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xml-apis.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xalansamples.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xalanservlet.jar
set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\jndi\lib\fscontext.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\jndi\lib\providerutil.jar
set AXISCLASSPATH=D:\Programme\axis-1_1\lib\axis.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\axis-ant.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\commons-discovery.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\commons-logging.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\jaxrpc.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\log4j-1.2.8.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\saaj.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\wsdl4j.jar
@rem call %CATALINA_HOME%\bin\startup.bat
@rem end of file setJava.bat
You need perhaps only the set AXISCLASSPATH's
enjoy AXIS
ser
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

My programs compile but each time I try to run them I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service



Just have a look into axis documentation files. Firstly go through install.html
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic