Posted By:
zhebin_cong
Posted On:
Monday, March 10, 2003 06:22 PM
hello i have two class-"Bean1.claas" and "Bean2.class",both of them have a "sayHello()" method,but in the Bean1's sayHello method,i call the Bean2's sayHello method,the Bean2's sayHello method return "helllo world",as follow: +++++++++++++++++++++++++++++++++++++++++++++++ Bean1.java package test; public class Bean1 { public Bean1() { } public String sayHello(){ return (new Bean2()).sayHello(); } } ++++++++++++++++++++++++++++++++++++++++++++++++ Bean2.java package test; public class Bean2 {
More>>
hello
i have two class-"Bean1.claas" and "Bean2.class",both of them have a "sayHello()" method,but in the Bean1's sayHello method,i call the Bean2's sayHello method,the Bean2's sayHello method return "helllo world",as follow:
+++++++++++++++++++++++++++++++++++++++++++++++
Bean1.java
package test;
public class Bean1 {
public Bean1() {
}
public String sayHello(){
return (new Bean2()).sayHello();
}
}
++++++++++++++++++++++++++++++++++++++++++++++++
Bean2.java
package test;
public class Bean2 {
public Bean2() {
}
public String sayHello(){
return "hello world!";
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++
in the weblogic7,i ONLY publish the Bean1 as webservice,when i launch "WebLogic Webservice standard testing home page" and invoke the sayHello method,the wls throw following exception:
*****************************************************
javax.xml.rpc.JAXRPCException: Failed to invoke the target:test.Bean1@77766e operation name:sayHello method ublic java.lang
.String test.Bean1.sayHello() args:[Ljava.lang.Object;@3082arg.length:0 Due to exception:java.lang.NoClassDefFoundError: tes
t/Bean2
at weblogic.webservice.component.javaclass.JavaClassInvocationHandler.invoke(JavaClassInvocationHandler.java:92)
at weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:78)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
at weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:539)
at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.java:264)
at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(ServletBase.java:362)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:269)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:346)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
WebService Invoke failed:javax.xml.rpc.soap.SOAPFaultException: test/Bean2
*********************************************************
who can help me
thank you!
<<Less