Hi, all and sunder!
Now I have tried your way, but still it doesn't work. :(
I registered the variables of JAVA_HOME, TOMCAT_HOME and CLASSPATH in the file /home/cboy/.bash_profile:
 
File /home/cboy/.bash_profile:
 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
 
# User specific environment and startup programs
 
PATH=$PATH:$HOME/bin:/usr/java/bin
BASH_ENV=$HOME/.bashrc
USERNAME=""
 
export USERNAME BASH_ENV PATH
 
#test for soap added by cboy
JAVA_HOME=/usr/java
export JAVA_HOME
TOMCAT_HOME=/home/cboy/soap/jakarta-tomcat-3.2.4
export TOMCAT_HOME
CLASSPATH=/home/cboy/soap/soap-2_2/lib/soap.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/javamail-1.2/mail.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/jaf-1.0.1/activation.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/xerces-1_2_3/xerces.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/soap-2_2
export CLASSPATH
 
Then I typed: /home/cboy/soap/jakarta-tomcat-3.2.4/bin/startup.sh, and got the following message:
 
Using classpath: /home/cboy/soap/xerces-1_2_3/xerces.jar:/home/cboy/soap/soap-2_2/lib/soap.jar:/home/cboy/soap/javamail-1.2/mail.jar:/home/cboy/soap/jaf-1.0.1/activation.jar:/home/cboy/soap/xerces-1_2_3/xerces.jar:/home/cboy/soap/soap-2_2:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/ant.jar:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/crimson.jar:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/jasper.jar:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/servlet.jar:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/test:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/webserver.jar:/home/cboy/soap/jakarta-tomcat-3.2.4/lib/xerces.jar:/usr/java/lib/tools.jar
Starting tomcat. Check logs/tomcat.log for error messages
2001-11-29 18:56:26 - ContextManager: Adding context Ctx( /examples )
2001-11-29 18:56:27 - ContextManager: Adding context Ctx( /admin )
2001-11-29 18:56:27 - ContextManager: Adding context Ctx(  )
2001-11-29 18:56:27 - ContextManager: Adding context Ctx( /test )
2001-11-29 18:56:27 - ContextManager: Adding context Ctx( /soap )
2001-11-29 18:57:43 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2001-11-29 18:57:48 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
 
Yet when I run the List command, it will give me the same error messages.
 
Sunder, I'm very grateful for your help, and I need your help! When I typed "echo $CLASSPATH" in the terminal, the result is
/home/cboy/soap/soap-2_2/lib/soap.jar:/home/cboy/soap/javamail-1.2/mail.jar:/home/cboy/soap/jaf-1.0.1/activation.jar:/home/cboy/soap/xerces-1_2_3/xerces.jar:/home/cboy/soap/soap-2_2
Is is right? And what did I forget??
Thank you again!
 
-Baosong
----- Original Message -----
Sent: Wednesday, November 28, 2001 3:01 PM
Subject: RE: An Installation Question

shan,
Why don u make use of their tomcat.sh instead. Like something is missing over here.
Set the tomcat home and java home properly in that file or in the shell and try it again.
 
-sunder
 

 
 -----Original Message-----
From: Baosong Shan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: An Installation Question

Dear sunder,
 
I'm very grateful for your help!
But unfortunately, it doesn't work. :(
I would like to tell you my problem in detail:
1. I installed jdk1.3, soap 2.2, javamail 1.2, jaf 1.1.1,
Since I'm a newcomer, I have many questions.
First, after I installed jdk1.3, java and other commands are not in the PATH. How should I do? And also the CLASSPATH.
Second, I write two shell file to startup and List:
 
/home/cboy/mystartup.sh:
 
#!/bin/sh
JAVA_HOME=/usr/java
export JAVA_HOME
TOMCAT_HOME=/home/cboy/soap/jakarta-tomcat-3.2.4
export TOMCAT_HOME
CLASSPATH=/home/cboy/soap/soap-2_2/lib/soap.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/javamail-1.2/mail.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/jaf-1.0.1/activation.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/xerces-1_2_3/xerces.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/soap-2_2
CLASSPATH-${CLASSPATH}:/usr/java/jre/lib:/usr/java/lib
export CLASSPATH
$TOMCAT_HOME/bin/startup.sh
echo $CLASSPATH
/home/cboy/mylister.sh:
 
JAVA_HOME=/usr/java
export JAVA_HOME
CLASSPATH=/usr/java/lib:/usr/java/jre/lib
CLASSPATH=${CLASSPATH}:/home/cboy/soap/soap-2_2/lib/soap.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/javamail-1.2/mail.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/jaf-1.0.1/activation.jar
CLASSPATH=${CLASSPATH}:/home/cboy/soap/xerces-1_2_3/xerces.jar
export CLASSPATH
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo $CLASSPATH
And I modified the file /home/cboy/soap/jakarta-tomcat-3.2.4/bin/tomcat.sh(line112-116):
if [ "$oldCP" != "" ]; then
    CLASSPATH=${oldCP}:${CLASSPATH}
fi
CLASSPATH=/home/cboy/soap/xerces-1_2_3/xerces.jar:${CLASSPATH}
export CLASSPATH
 
After all the above jobs, I run ./mystartup.sh.
And then when I run ./mylister.sh or press "List" button on the web http://localhost:8080/soap/admin, errors will occur, the message is in my first letter.
 
Thanks very much!
 
Baosong Shan
----- Original Message -----
Sent: Wednesday, November 28, 2001 12:06 PM
Subject: RE: An Installation Question

hi shan,
 Just remove jaxp.jar from the lib directory, and copy xerces.jar to the same directory.
Things will work fine.
-sunder
-----Original Message-----
From: Baosong Shan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 9:39 AM
To: Soap-User
Subject: An Installation Question

Hi, I'm a newcomer. And I encountered problems during installation.
First I installed RedHat 6.2(everything).
Then my apache can work properly.
Next I followed the Installation Instructions on the web page: http://xml.apache.org/soap/docs/index.html.
Then if I type http://localhost:8080/soap/servlet/rpcrouter, I get the message:

SOAP RPC Router

Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.

But if I type http://localhost:8080/soap/admin, and press the "List" button, I can't get the proper result. Instead, the message is:

Service Listing

Error: 500

Location: /soap/admin/list.jsp

Internal Servlet Error:

javax.servlet.ServletException
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

Root cause:

java.lang.NoSuchMethodError
	at org.apache.crimson.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:152)
	at org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:82)
	at org.apache.soap.util.xml.XMLParserUtils.getXMLDocBuilder(XMLParserUtils.java:138)
	at org.apache.soap.server.ServiceManager.(ServiceManager.java:83)
	at org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:103)
	at org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:118)
	at admin._0002fadmin_0002flist_0002ejsplist_jsp_0._jspService(_0002fadmin_0002flist_0002ejsplist_jsp_0.java:65)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

Please help me with it. Any hint would be welcome and thanks a lot.
Baosong Shan
 

Reply via email to