You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by kishani Liyanage <ki...@yahoo.co.uk> on 2004/01/31 19:46:06 UTC

jsp web services - problem in import

I tried to invoke a web service through a jsp . I imported the stub class which is stored in the WEB-INF/classes/kish/test directory buti get this 
error. Please tell me what i should do.Thanx in advance.
org.apache.jasper.JasperException: Unable to compile class for JSP
C:\jakarta-tomcat-3.2.4\work\Standalone\localhost\examples\testkish\HelloAxis1$jsp.java:0: Class org.apache.axis.client.Stub not found in class kish.test.HelloAxis1SoapBindingStub.
package org.apache.jsp;
^
1 error
**********************************
heres the jsp import code:
<%@ page contentType="text/html;charset=windows-1252" import="kish.test.HelloAxis1SoapBindingStub"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>
Web Service JSP Client - Scriptlet
</title>
</head>
<body> 
-------
-------
******************************
heres a listing of my classpath
C:\axis-1_1\lib\wsdl4j.jar;
C:\jakarta-tomcat-3.2.4\common\lib\servlet.jar;
C:\jakarta-tomcat-3.2.4\lib\soap.jar;
C:\axis-1_1\lib\commons-discovery.jar;
C:\axis-1_1\lib\commons-logging.jar;
C:\axis-1_1\lib\jaxrpc.jar;
C:\axis-1_1\lib\saaj.jar;
C:\axis-1_1\lib\axis.jar;
C:\axis-1_1\lib\log4j-1.2.8.jar;
C:\jwsdp-1_0-ea1\common\lib\soap.jar;
C:\jakarta-tomcat-3.2.4\lib\mail.jar;
C:\jakarta-tomcat-3.2.4\lib\activation.jar;
C:\jakarta-tomcat-3.2.4\lib\xerces.jar;
C:\axis-1_1\lib\axis.jar;D:\xerces-2_5_0\xercesImpl.jar;
D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xercesSamples.jar;
D:\xerces-2_5_0\xmlParserAPIs.jar;
C:\Ericsson-vasp-mm7\src;.;C:\axis-1_1;. 
************************************************


---------------------------------
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80

RE: jsp web services - problem in import

Posted by kishani Liyanage <ki...@yahoo.co.uk>.
yes I have add axis.jar in my classpath. And it was there before as well.
heres what is in the classpath
 
heres a listing of my classpath

C:\axis-1_1\lib\wsdl4j.jar;
C:\axis-1_1\lib\axis.jar;
C:\jakarta-tomcat-3.2.4\common\lib\servlet.jar;
C:\jakarta-tomcat-3.2.4\lib\soap.jar;
C:\axis-1_1\lib\commons-discovery.jar;
C:\axis-1_1\lib\commons-logging.jar;
C:\axis-1_1\lib\jaxrpc.jar;
C:\axis-1_1\lib\saaj.jar;
C:\axis-1_1\lib\log4j-1.2.8.jar;
C:\jwsdp-1_0-ea1\common\lib\soap.jar;
C:\jakarta-tomcat-3.2.4\lib\mail.jar;
C:\jakarta-tomcat-3.2.4\lib\activation.jar;
C:\jakarta-tomcat-3.2.4\lib\xerces.jar;
C:\axis-1_1\lib\axis.jar;D:\xerces-2_5_0\xercesImpl.jar;
D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xercesSamples.jar;
D:\xerces-2_5_0\xmlParserAPIs.jar;
C:\Ericsson-vasp-mm7\src;.;C:\axis-1_1;. 

 



---------------------------------
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80

RE: jsp web services - problem in import

Posted by Richard Martin <rm...@essex.ac.uk>.
Hi Kishani,

Have you tried adding axis.jar to the WEB-INF/lib/ directory and reloading
Tomcat?

Regards, 

Richard 

________________________________________
From: kishani Liyanage [mailto:kishani_vic@yahoo.co.uk] 
Sent: 31 January 2004 18:46
To: axis-user@ws.apache.org
Subject: jsp web services - problem in import

I tried to invoke a web service through a jsp . I imported the stub class
which is stored in the WEB-INF/classes/kish/test directory buti get this 
error. Please tell me what i should do.Thanx in advance.
org.apache.jasper.JasperException: Unable to compile class for JSP
C:\jakarta-tomcat-3.2.4\work\Standalone\localhost\examples\testkish\HelloAxi
s1$jsp.java:0: Class org.apache.axis.client.Stub not found in class
kish.test.HelloAxis1SoapBindingStub.
package org.apache.jsp;
^
1 error
**********************************
heres the jsp import code:
<%@ page contentType="text/html;charset=windows-1252"
import="kish.test.HelloAxis1SoapBindingStub"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>
Web Service JSP Client - Scriptlet
</title>
</head>
<body> 
-------
-------
******************************
heres a listing of my classpath
C:\axis-1_1\lib\wsdl4j.jar;
C:\jakarta-tomcat-3.2.4\common\lib\servlet.jar;
C:\jakarta-tomcat-3.2.4\lib\soap.jar;
C:\axis-1_1\lib\commons-discovery.jar;
C:\axis-1_1\lib\commons-logging.jar;
C:\axis-1_1\lib\jaxrpc.jar;
C:\axis-1_1\lib\saaj.jar;
C:\axis-1_1\lib\axis.jar;
C:\axis-1_1\lib\log4j-1.2.8.jar;
C:\jwsdp-1_0-ea1\common\lib\soap.jar;
C:\jakarta-tomcat-3.2.4\lib\mail.jar;
C:\jakarta-tomcat-3.2.4\lib\activation.jar;
C:\jakarta-tomcat-3.2.4\lib\xerces.jar;
C:\axis-1_1\lib\axis.jar;D:\xerces-2_5_0\xercesImpl.jar;
D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xercesSamples.jar;
D:\xerces-2_5_0\xmlParserAPIs.jar;
C:\Ericsson-vasp-mm7\src;.;C:\axis-1_1;. 
************************************************
________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80