|
Get it done:
With the * .jar package in the code, put all the * .jar packages used in the right "WEB-INF\lib" directory.
If the code contains the package in the project written by yourself, copying the entire directory where the package is located to "WEB-INF\classes" is equivalent to treating the package in the project as a class.
If the service is in a package, such as:
package myexcel;
import jxl. *;
import jxl.format.UnderlineStyle;
import jxl.write. *;
import jxl.write.Number;
import jxl.write.Boolean;
import java.io. *;
import java.util. *;
import myBean. *;
import java.io.File;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.RollingFileAppender;
import org.apache.log4j. *;
public class MyExcel {
/ **
* Read Excel
* @param filePath
* /
static final Logger logger = (Logger) Logger.getLogger (MyExcel.class);
The
public ArrayList readExcel (String filePath)
{
ArrayList _myExA = new ArrayList ();
...
Then you can only copy this package (that is, the entire directory in the project corresponding to this myexcel package: myexcel) to the "WEB-INF\classes" directory.
It should be written like this in server-config.wsdd:
<service name = "MyExcel" provider = "java: RPC">
<parameter name = "className" value = "myexcel.MyExcel" />
<parameter name = "allowedMethods" value = "*" />
</ service>
Or do the reverse, and put the * .jar package of axis under the "WEB-INF\lib" directory corresponding to the project. The effect is the same. |
|