>Nick, and Timo,


thanks for your help. I went back to basics and double (quadruple at least 
really ;-) ) checked the Apache-soap install guide. And went carefully over 
the classpaths and where things were, to see that I hadn't inadverntently 
moved something out of the classpath.

Here's what I ended up with:
JBoss2.2.2_Tomcat3.2.2 dual vm with these jars in tomcat/lib:
servlet, ant, jasper, tools, webserver, parser, jaxp

these jars are under jboss/lib:
soap, xerces, xml, and
under jboss/lib/ext are
mail and activation jars


I amended the tomcat.bat file as suggested in the docs, but have just tried 
it with REM infront of the relevant line,
and it still works. So...

I amended jboss/bin/run_with_tomcat.bat to REM out the classpath settings 
there and made sure the relevant item,
JAVA_HOME/lib/tools.jar was added to the classpath setting in run.bat.

I amended jboss/bin/run.bat to look like this:

@echo off
@if not "%ECHO%" == ""  echo %ECHO%
@if "%OS%" == "Windows_NT"  setlocal

REM set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;run.jar

REM Add all login modules for JAAS-based security
REM and all libraries that are used by them here
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%

REM Crimson parser JAXP setup(default)
REM set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar
REM set 
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
REM set JAXP=%JAXP% 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl

REM Add the XML parser jars and set the JAXP factory names
REM add apache-soap and xerces jars: xerces.jar, soap.jar, mail.jar, 
activator.jar to classpath
REM (the later two are in jboss/lib/ext)
REM change =org.apache.crimson.jaxp... to org.apache.xerces.jaxp...

set 
JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;..\lib\xerces.jar;..\lib\soap.jar;run.jar;C:\jdk1.3.1\lib\tools.jar;..\lib\ext\mail.jar;..\lib\ext\activation.jar;D:\JavaWork\JBoss-2.2.2_Tomcat-3.2.2\JBoss-2.2.2_Tomcat-3.2.2\tomcat\lib\servlet.jar
 

set 
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
set JAXP=%JAXP% 
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

echo JBOSS_CLASSPATH=%JBOSS_CLASSPATH%
java %JAXP% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %1 %2 %3 %4 %5 %6 
%7 %8 %9

pause

You'll note I had to throw in the direct reference to the servlet.jar to 
get the soap servlets to work.

This all seems to work ok, at least it passes the basic setup tests in the 
apache-soap install guide.

You'll no doubt hear if I have problems getting the examples to work.
The true test will also come when I can replicate this on student machines 
in Sept.

Thanks again everyone. Have a good weekend. The blue skies are finally 
appearing over Aberdeen.


Cheers,

Dr. Bruce A. Scharlau
Dept. of Computing Science
Aberdeen University
[EMAIL PROTECTED]
01224 272193


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to