Why is <service> element not allowed in (generated) service.xml ?
the code snippet from ..ServerTest.java:
DeploymentEngine deploymentEngine = new
DeploymentEngine(basePath,"service.xml");
AxisConfiguration axisConfig = deploymentEngine.load();
my service.xml:
<!--Auto generated Axis Service XML-->
<service name="ILicenseServerSkeletonTest">
<parameter locked="xsd:false"
name="ServiceClass">de.innovations.licenseserver.axis2.ILicenseServerSkeleton</parameter>
<!--Mounting the method QueryLicenses-->
<operation name="QueryLicenses"/>
<!--Mounting the method InstallLicense-->
<operation name="InstallLicense"/>
<!--Mounting the method Reload-->
<operation name="Reload"/>
<!--Mounting the method FreeLicense-->
<operation name="FreeLicense"/>
<!--Mounting the method GetServerStatus-->
<operation name="GetServerStatus"/>
<!--Mounting the method RequestLicense-->
<operation name="RequestLicense"/>
</service>
java.lang.UnsupportedOperationException: service element is not allowed
in the server.xml
at
org.apache.axis.deployment.DeploymentParser.processGlobalConfig(DeploymentParser.java:200)
at
org.apache.axis.deployment.DeploymentEngine.load(DeploymentEngine.java:208)
at
de.innovations.licenseserver.axis2.server.ILicenseServerTest.setUp(ILicenseServerTest.java:40)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)