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 Keld Helbig Hansen <kh...@maerskdata.dk> on 2002/05/02 09:10:37 UTC

How to make Axis run on Jrun

Here are my experiences with installing Axis on Jrun.
I used a simple setup with a jws-file.

1. Use Jrun 3.1. I didn't succeed to make it work on 3.0 SP1. The latter
couldn't compile the jws-file, and when I did the compile the SOAP-output
didn't come back to my Axis client. No traces in log files about what went
wrong.

2. Define an application (using the Jrun Appl. Manag. Console) called
"axis" on the Jrun default server.

3. Copy the Apache axis application (in webapps/axis) to the new Jrun axis
directory.

4. Add xerces.jar to axis/web-inf/lib.

5. Add tools.jar to axis/web-inf/lib. (tools.jar from the jdk contains the
java compiler used to compile jws-files).

6. Add xerces.jar to jrun/lib and define it in global.properties
jrun.classpath={jrun.rootdir}/lib/xerces.jar;
{jrun.rootdir}/lib/ext;{jrun.rootdir}/lib/jrun.jar;{jrun.rootdir}/lib/install.jar;
If you omit this you may get this error
     [java] null
     [java] java.lang.NoSuchMethodError
     [java]     at
org.apache.axis.deployment.wsdd.WSDDDocument.&lt;init&gt;(Unknown Source)
     [java]     at
org.apache.axis.configuration.FileProvider.configureEngine(Unknown Source)
     [java]     at org.apache.axis.AxisEngine.init(Unknown Source)
     [java]     at org.apache.axis.AxisEngine.&lt;init&gt;(Unknown Source)
     [java]     at org.apache.axis.server.AxisServer.&lt;init&gt;(Unknown
Source)
. . .

7. Don't forget to restart Jrun!


If you run into problems be sure to check the Jrun log-files. Axis also
writes debug information to log4j-files, but I'm not too sure about how to
make this work. Can anybody say what's needed to make the log4j-output
appear somewhere?


Re: How to make Axis run on Jrun

Posted by Dennis Laursen <de...@newel.dk>.
I was playing arround with log4j and axis, and found the following to produce 
logoutput to the console in which tomcat was started:
----------
import org.apache.log4j.Category;
import org.apache.log4j.BasicConfigurator;
...
    private static Category log = Category.getRoot();
...
      log.info("Starting application");
-------
There is a log4j.properties in the axis.jar, which specifies that all 
output "worse" than info is logged to the console...someone mentioned that it 
should be possible to extract that file, make changes(e.g. to log to a file in 
stead) to it and place it somwhere in the classpath, in order to change how 
axis logs. I didn't manage to get it to work though...

Hope it is helpfull :)

./Dennis

> If you run into problems be sure to check the Jrun log-files. Axis
> also
> writes debug information to log4j-files, but I'm not too sure about how
> to
> make this work. Can anybody say what's needed to make the log4j-output
> appear somewhere?
> 
>