Ok,  it works now, but not with this solution. I explain here how I did :
- I installed Tomcat 4.1.12
- I installed Axis 1.0, like it's explained here :
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/install.html
BUT :
- I didn't install any new XML Parser (Xerces, Crimson...) because there's already one in Tomcat (see http://marc.theaimsgroup.com/?l=axis-user&m=103475413103881&w=2)
- I added the CATALINA_HOME\common\lib\servlet.jar to my CLASSPATH.

To run the stock example :
- Go to AXIS_PATH\samples\stock
- Deploy the service : java org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
- Go to AXIS_PATH
- Run the example : java samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX

Hope it helps,
Thank you all,
Olivier

Cédric Chabanois wrote:
Some versions of Tomcat cannot load classes from jar files in axis/WEB-INF/lib if they start with javax.
This is the case for jaxrpc.jar, saaj.jar, wsdl4j.jar. These files must be in tomcat/common/lib
 
But this is not the case with recent versions of Tomcat (4.1.10 for example).
All jars can be in  axis/WEB-INF/lib (but don't forget xerces.jar !)
 
Cédric Chabanois
-----Message d'origine-----
De : Olivier Gauwin [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 22 octobre 2002 09:44
À : [EMAIL PROTECTED]
Objet : Re: AW: what might be wrong? Please help me.

Could you precisely tell us which files ?? (and which should be in the classpath ?)
Thanks!

Bohn Volker wrote:
Yes, you're right Eric!
Some files are supposed to go in /tomcat/common/lib 
an some in your /webapps/[...]/lib

  
----------
Von: 	Jung, Eric (Contractor)[SMTP:[EMAIL PROTECTED]]
Antwort an: 	[EMAIL PROTECTED]
Gesendet: 	Montag, 21. Oktober 2002 15:28
An: 	'[EMAIL PROTECTED]'
Betreff: 	RE: what might be wrong? Please help me.

Aren't some of the Axis jars supposed to go in /tomcat/common/lib if using
Tomcat as the servlet container? I forget which ones, but if you search
the
mail-archives.com I'm sure you'll find them.
Anyone else have ideas?

-----Original Message-----
From: Emma Johansson [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 21, 2002 7:09 AM
To: [EMAIL PROTECTED]
Subject: what might be wrong? Please help me.


Hi! 
When browsing to http://150.132.6.212:8080 jakarta tomcats homepage is
viewing and I'm able to execute some examples from that page. Even thogh
everything is extreamly slow. 
When browsing to http://150.132.6.212:8080/soap the soap homepage pops up
(after several minutes) But when I'm trying to list the deployed list an
error message tells me 
------------------------- 
HTTP Status 500 - 
type Exception report 
message 
description The server encountered an 
internal error () that prevented it from fulfilling 
this request. 
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP 
An error occurred at line: 4 in the jsp file: /admin/list.jsp 
Generated servlet error: 
    [javac] Compiling 1 source file 
/home/loke/ejoemma/tomcat/work/Standalone/localhost/soap/admin/list_jsp.ja
va
:8: package org.apache.soap does not exist 
import org.apache.soap.Constants; 
                       ^ 
/home/loke/ejoemma/tomcat/work/Standalone/localhost/soap/admin/list_jsp.ja
va
:9: package org.apache.soap.server does not exist 
import org.apache.soap.server.*; 
^ 
..... 
...... 
...... 
------------------------------------ 
The same thing is with apache axis. I can browse to the homepage
(...:8080/axis) but when trying to click 'Validate' or 'View' error pages
appears instead of the correct pages. 
-------------------------------------- 
HTTP Status 500 - 
type Exception report 
message 
description The server encountered an internal error () that prevented it
from fulfilling this request. 
exception 
org.apache.jasper.JasperException: Cannot inherit from final class 
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:2
48) 
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) 
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
.... 
... 
... 
-------------------------------------- 
  
This is my .cshrc file (classpath): 
Have I missed some or must I change the location of some of the files? 
---------------------------------------------------------------- 
source /usr/local/lib/Cshrc 
setenv PATH
/usr/local/j2sdk1.4.0/bin:/home/loke/ejoemma/tomcat/bin:${PATH} 
setenv CLASSPATH .: 
/usr/local/j2sdk1.4.0/lib:.: 
/usr/local/j2sdk1.4.0: 
/usr/local/j2sdk1.4.0/bin: 
/home/loke/ejoemma/tomcat/common/lib/servlet.jar: 
/home/loke/ejoemma/tomcat/common/lib/mail.jar: 
/home/loke/ejoemma/tomcat/common/lib/activation.jar: 
/home/loke/ejoemma/soap-2_3_1/lib/soap.jar: 
/home/loke/ejoemma/soap-2_3_1: 
/home/loke/ejoemma/tomcat: 
/home/loke/ejoemma/xml-axis-10: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/axis.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/commons-discovery.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/commons-logging.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/jaxrpc.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/saaj.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/log4j-1.2.4.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/wsdl4j.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/xercesImpl.jar: 
/home/loke/ejoemma/tomcat/webapps/axis/WEB-INF/lib/xmlParserAPIs.jar 
------------------------------------------------------------------- 
Does anyone know what I should do to make (specially) axis to work? 
/Emma 
  

    


  




Reply via email to