webservice axis2部署时启动tomcat出现的问题。希望大侠们帮忙,,,, 30
下面是错误信息。。[INFO]DeployingWebservice:version-1.4.1.aar-file:/C:/ProgramFiles/ApacheSoft...
下面是错误信息。。
[INFO] Deploying Web service: version-1.4.1.aar - file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF/services/version-1.4.1.aar
org.apache.axis2.deployment.DeploymentException: A ClassNotFoundException error occurred in loading the message receiver org.apache.axis2.rpc.RPCMessageReceiver
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:151)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) 展开
[INFO] Deploying Web service: version-1.4.1.aar - file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF/services/version-1.4.1.aar
org.apache.axis2.deployment.DeploymentException: A ClassNotFoundException error occurred in loading the message receiver org.apache.axis2.rpc.RPCMessageReceiver
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:151)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) 展开
6个回答
展开全部
POJO类不能使用package关键字声明包。
2. Axis2在默认情况下可以热发布WebService
3 在浏览器中测试WebService时,如果WebService方法有参数,需要使用URL的请求参数来指定该WebService方法参数的值,请求参数名与方法参数名要一致
4. 发布WebService的pojo目录只是默认的,如果读者想在其他的目录发布WebService,可以打开axis2.xml文件,并在<axisconfig>元素中添加如下的子元素:<deployer extension=".class" directory="my" class="org.apache.axis2.deployment.POJODeployer"/>
2. Axis2在默认情况下可以热发布WebService
3 在浏览器中测试WebService时,如果WebService方法有参数,需要使用URL的请求参数来指定该WebService方法参数的值,请求参数名与方法参数名要一致
4. 发布WebService的pojo目录只是默认的,如果读者想在其他的目录发布WebService,可以打开axis2.xml文件,并在<axisconfig>元素中添加如下的子元素:<deployer extension=".class" directory="my" class="org.apache.axis2.deployment.POJODeployer"/>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
升级操作直接读取zip文件流中的加密密文,Java直接读取Zip文件的流程如下:
public static void readFromZip(String zipFileName) throws IOException{
ZipFile zf = null;
InputStream in = null;
ZipInputStream zin = null; try{
zf = new ZipFile(zipFileName); in = new BufferedInputStream(new FileInputStream(zipFileName));
zin = new ZipInputStream(in);
ZipEntry ze = null; while ((ze = zin.getNextEntry()) != null) {
String zipName = ze.getName(); if(zipName.contains("descriptor")){//找到密文文件并读取
InputStream inputStream = zf.getInputStream(ze); byte[] data = new byte[inputStream.available()]; int len = 0; while ((len = inputStream.read(data)) > 0) {
System.out.println("length:"+len);
}
System.out.println("data is :"+Arrays.toString(data)); }
}
} finally { try {
zin.closeEntry(); in.close();
zf.close();
} catch (IOException e1) {
e1.printStackTrace();
}
}
}
public static void readFromZip(String zipFileName) throws IOException{
ZipFile zf = null;
InputStream in = null;
ZipInputStream zin = null; try{
zf = new ZipFile(zipFileName); in = new BufferedInputStream(new FileInputStream(zipFileName));
zin = new ZipInputStream(in);
ZipEntry ze = null; while ((ze = zin.getNextEntry()) != null) {
String zipName = ze.getName(); if(zipName.contains("descriptor")){//找到密文文件并读取
InputStream inputStream = zf.getInputStream(ze); byte[] data = new byte[inputStream.available()]; int len = 0; while ((len = inputStream.read(data)) > 0) {
System.out.println("length:"+len);
}
System.out.println("data is :"+Arrays.toString(data)); }
}
} finally { try {
zin.closeEntry(); in.close();
zf.close();
} catch (IOException e1) {
e1.printStackTrace();
}
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
信息提示找不到org.apache.axis2.rpc.RPCMessageReceiver这个类,检查下这个类对应的jar包是否部署到tomcat上了?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
怎样能是两台一定距离的android机器靠近对方就有反应啊,通过什么能实现这种功能啊,我想到的是蓝牙,大家还有别的吗。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |