Amila: De: Amila Suriarachchi [mailto:[email protected]] Enviado el: sábado, 19 de febrero de 2011 22:23 Para: [email protected] CC: Jorge Infante Osorio Asunto: Re: [Carbon-dev] Problem with .AAR file in deployment into App Server 4.0 o wsas 3.2.1!!
On Sat, Feb 19, 2011 at 9:29 PM, Jorge Infante Osorio <[email protected]> wrote: Amila: Witch axis2 version you use in WSAS 3.2.1 and Appserver 4.0? I thinks as a recommendation that in the WSO2 documentation must be specified the libraries and version needed to deploy correctly the services, generated with Eclipse, inside WSAS or AppServer or the version at the moment. As you suggest I put the jars come with WSAS 3.2.1 in the eclipse project class path but the same error arise. Can you please try generating code with the WSAS admin console or wsdl2java tool. Just to verify. I generated the code from the HelloService wsdl, with only service name modification, in the WSAS admin console and then create an Eclipse project and import that code, with this error in the type classes: the type Greet must implement the inherited abstract method ADBBean.serialize(QName, OMFactory,MTOMAwareXMLStreamWriter) I see this error before as a missing jar problem with axis2. This error also arise if I codegen with the WSAS jar in the eclipse project class path. I put in the axis2 1.5.3 jars into the project class path, with no success then I put the [CARBON_HOME]\repository\components\plugins\ jars in the class path also with no success. So my question are: what are the missing jars?? I continue with the modification of the class that implement the service, and make an .aar file with the axis2 service archiver plugin and deploy it in the apache tomcat with axis2, and this error appear: [INFO] The serviciohola.aar service, which is not valid, caused java.lang.Error: Unresolved compilation problems: org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axis2.util cannot be resolved org.apache.axis2.AxisFault cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axiom.om.OMAbstractFactory cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axis2.AxisFault cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axiom.om.OMAbstractFactory cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axis2.AxisFault cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axis2.AxisFault cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache.axis2.AxisFault cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type at org.wso2.www.types.ServicioholaMessageReceiverInOut.<init>(Servicioho laMessageReceiverInOut.java:14) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Jorge. thanks, Amila. Jorge. De: [email protected] [mailto:[email protected]] En nombre de Amila Suriarachchi Enviado el: viernes, 18 de febrero de 2011 8:33 Para: [email protected] Asunto: Re: [Carbon-dev] Problem with .AAR file in deployment into App Server 4.0 o wsas 3.2.1!! What is the appserver version you use? This could be due to version mismatch. try generating the code with the wsdl2java tool comes with the appserver or putting the axis2 jars comes with the appserver verson you use to the class path of the ant. thanks, Amila. 2011/2/18 Iósev Pérez Rivero <[email protected]> So, I have a simple service into a aar file, it is generated and packaged from a WSDL using ant and axis2 (1.5.1 or 1.5.4), I am making deploy to axis2 server standalone and I may consume that services without problem, . But when it package (.aar) I deploy to appserver o wsas I have this error: Any idea? [2011-02-18 03:22:52,606] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: SimpleService {super-tenant} {org.wso2.carbon.core.deployment.DeploymentInterceptor} [2011-02-18 03:22:53,199] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: SimpleService.aar - file:/D:/DEVELO~1/WSO2AP~1.0/bin/../repository/deployment/server/axis2servic es/SimpleService.aar {org.apache.axis2.deployment.DeploymentEngine} [2011-02-18 03:22:53,199] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: SimpleService.aar - file:/D:/DEVELO~1/WSO2AP~1.0/bin/../repository/deployment/server/axis2servic es/SimpleService.aar {org.apache.axis2.deployment.DeploymentEngine} [2011-02-18 03:23:06,693] ERROR {org.apache.axis2.transport.http.AxisServlet} - {org.apache.axis2.transport.http.AxisServlet} java.lang.AbstractMethodError at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourc edElementImpl.java:691) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl. java:965) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnv elopeImpl.java:283) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvel opeImpl.java:245) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSeria lizableImpl.java:193) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageForm atter.java:88) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputSt ream(CommonsHTTPTransportSender.java:404) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTT PTransportSender.java:281) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic( AbstractInOutMessageReceiver.java:43) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe ceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:178) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT TPTransportUtils.java:173) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:145) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest( ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxySer vlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet. java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:314) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:685) at java.lang.Thread.run(Thread.java:619) [2011-02-18 03:23:06,693] ERROR {org.apache.axis2.transport.http.AxisServlet} - {org.apache.axis2.transport.http.AxisServlet} java.lang.AbstractMethodError at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourc edElementImpl.java:691) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl. java:965) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnv elopeImpl.java:283) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvel opeImpl.java:245) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSeria lizableImpl.java:193) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageForm atter.java:88) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputSt ream(CommonsHTTPTransportSender.java:404) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTT PTransportSender.java:281) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic( AbstractInOutMessageReceiver.java:43) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe ceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:178) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT TPTransportUtils.java:173) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:145) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest( ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxySer vlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet. java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:314) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:685) at java.lang.Thread.run(Thread.java:619) _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
