axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: axis2 and embedded jetty
Date Fri, 17 Jul 2009 19:01:36 GMT
Martin,

The explanation for this could be that the contextRoot and servicePath
parameters are not set correctly in axis2.xml.

Andreas

On Fri, Jul 17, 2009 at 10:33, Martin Fernau<m.fernau@cps-net.de> wrote:
> Hi Andreas,
>
> you're right. After removing the corresponding parts from axis2.xml I don't get these
exceptions any more.
> But the service isn't working properly. I get the follwoing output during startup:
>
> --- cut
> 2 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@32c41a via org.mortbay.log.Slf4jLog
> 275 [main] INFO org.mortbay.log - jetty-6.1.3
> 1232 [main] INFO org.apache.axis2.deployment.AxisConfigBuilder - Unable to instantiate
deployer org.apache.axis2.deployment.TransportDeployer
> 1647 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing-1.5
- file:/tests/webapps/WEB-INF/modules/addressing-1.5.mar
> 1666 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: jaxws-1.5
- file:/tests/webapps/WEB-INF/modules/axis2-jaxws-mar-1.5.mar
> 1686 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: script-1.5
- file:/tests/webapps/WEB-INF/modules/axis2-scripting-1.5.mar
> 1749 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: metadataExchange-1.5
- file:/tests/webapps/WEB-INF/modules/mex-1.5.mar
> 1778 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: mtompolicy-1.5
- file:/tests/webapps/WEB-INF/modules/mtompolicy-1.5.mar
> 1805 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.5
- file:/tests/webapps/WEB-INF/modules/ping-1.5.mar
> 1829 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: soapmonitor-1.5
- file:/tests/webapps/WEB-INF/modules/soapmonitor-1.5.mar
> 1914 [main] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: metadataExchange
- file:/opt/java_libraries/axis2-1.4.1/lib/mex-1.4.1.jar
> 2658 [main] INFO org.apache.axis2.deployment.ServiceDeployer - Deploying Web service:
version-1.5.aar - file:/tests/webapps/WEB-INF/services/version-1.5.aar
> 2230 [main] INFO org.apache.axis2.deployment.ServiceDeployer - Deploying Web service:
SimpleHotelService.aar - file:/tests/webapps/WEB-INF/services/SimpleHotelService.aar
> 2756 [main] INFO org.mortbay.log - Started SocketConnector @ 0.0.0.0:8080
> --- cut
>
> but I can't call eny EPR
>
> --- cut
> 53138 [btpool0-1] ERROR org.apache.axis2.engine.AxisEngine - The endpoint reference (EPR)
for the Operation not found is /services/SimpleHotelService and the WSA Action = null
> [...]
> --- cut
>
>
> I think I do something wrong with the paths and/or initializing the Axis-Servlet within
Jetty.
> A working code snipset would be helpful if anyone can provide this for me.
>
> Thanks,
> Martin
>
> Am Freitag 17 Juli 2009 schrieb Andreas Veithen:
>> Martin,
>>
>> I think that Axis2 relies on some Tomcat libraries for clustering
>> support. Have a look at axis2.xml and try to disable clustering.
>>
>> Andreas
>>
>> On Fri, Jul 17, 2009 at 10:09, Martin Fernau<m.fernau@cps-net.de> wrote:
>> > Hi,
>> >
>> > can someone provide me a simple description how to get axis2 to run in an
>> > embedded jetty6 Server?
>> > Until now I'm unable to get it to work.
>> > What I currently have is the following:
>> >
>> > --- cut
>> >                Server server = new Server(8080);
>> >
>> >                ServletHolder axisServletholder = new ServletHolder(new
>> > AxisServlet()); ServletHolder axisAdminServletholder = new
>> > ServletHolder(new AxisAdminServlet());
>> >
>> >                Context root = new Context(server, "/", Context.SESSIONS);
>> >                // set Path to exploded axis2.war
>> >                FileResource basePath = new FileResource(new
>> > URL("file:/tests/webapps")); // Without these axis complain about missing
>> > axis2.xml
>> >                root.setBaseResource(basePath);
>> >                root.addServlet(axisServletholder,
>> > "/servlet/AxisServlet"); root.addServlet(axisServletholder,
>> > "/services/*"); root.addServlet(axisServletholder, "*.jws");
>> >                root.addServlet(axisAdminServletholder,
>> > "/servlet/AdminServlet");
>> >
>> >                server.start();
>> > --- cut
>> >
>> > But this just throw me some "java.lang.NoClassDefFoundError:
>> > org/apache/catalina/tribes/ChannelException" messages. It seems that
>> > axis2 needs tomcat libraries?
>> >
>> > Anyone with helpful comments or code snipsets which get axis2 to work
>> > under an embedded jetty?
>> >
>> > Thanks a lot,
>> > Martin
>

Mime
View raw message