axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guo Jelix" <jelix...@hotmail.com>
Subject java.lang.VerifyError with samples execute
Date Fri, 19 Apr 2002 07:42:58 GMT
I am a newbie to axis.
Here is what I have done.
1) install tomcat 4.0.4-b2  
2) copy axis $TOMCAT_HOME/webapps.
3) copy jaxrpc.jar to $TOMCAT_HOME/common/lib
4) install Xerces-J-bin.2.0.1.tar.gz.  
    copy following to $TOMCAT_HOME/webapps/axis/WEB-INF/lib.
    xercesSamples.jar, xercesImpl.jar, xmlParserAPIs.jar
5) add following jar files to class path.
$TOMCAT_HOME/common/lib/jaxrpc.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/axis.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/commons-logging.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/log4j-core.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/wsdl4j.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/clutil.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/tt-bytecode.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/xercesSamples.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/xercesImpl.jar
$TOMCAT_HOME/webapps/axis/WEB-INF/lib/xmlParserAPIs.jar
4) start tomcat web server
The following is that I test the axis.
1) Test the axis in the browser.
    http://localhost:8080/axis/servlet/AdminServlet
    There is not error with start and stop server.
2) Excute the install step 5:
    java org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService
deploy.wsdd
    
   I get the following Error:
Exception in thread "main" java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at org.apache.axis.Constants.<clinit>(Unknown Source)
        at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(Unknown Source)
        at org.apache.axis.encoding.DefaultTypeMappingImpl.create(Unknown Source)
        at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(Unknown Source)
        at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(Unknown Source)
        at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(Unknown Source)
        at org.apache.axis.configuration.FileProvider.configureEngine(Unknown Source)
        at org.apache.axis.AxisEngine.init(Unknown Source)
        at org.apache.axis.AxisEngine.<init>(Unknown Source)
        at org.apache.axis.client.AxisClient.<init>(Unknown Source)
        at org.apache.axis.client.Service.getAxisClient(Unknown Source)
        at org.apache.axis.client.Service.<init>(Unknown Source)
        at org.apache.axis.client.AdminClient.<init>(Unknown Source)
        at org.apache.axis.client.AdminClient.main(Unknown Source)
3) Excute the example1
    java samples.userguide.example1.TestClient
    I get the following error. The error is same as above.
Exception in thread "main" java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at org.apache.axis.Constants.<clinit>(Unknown Source)
        at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(Unknown Source)
        at org.apache.axis.encoding.DefaultTypeMappingImpl.create(Unknown Source)
        at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(Unknown Source)
        at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(Unknown Source)
        at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(Unknown Source)
        at org.apache.axis.configuration.FileProvider.configureEngine(Unknown Source)
        at org.apache.axis.AxisEngine.init(Unknown Source)
        at org.apache.axis.AxisEngine.<init>(Unknown Source)
        at org.apache.axis.client.AxisClient.<init>(Unknown Source)
        at org.apache.axis.client.Service.getAxisClient(Unknown Source)
        at org.apache.axis.client.Service.<init>(Unknown Source)
        at samples.userguide.example1.TestClient.main(TestClient.java:70)
thanks
Jelix Guo从网站得到更多信息。MSN Explorer 免费下载:http://explorer.msn.com/lccn

Mime
View raw message