• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upgrading application from axis1 to axis2:exception when exposing method havin userdefined data type

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have an application where we are exposing ejb's method through axis1 but recently we tried to upgrade to axis2, our application is deployed in exploded format.
So for that(axis2) we replaced the server-config.wsdd file with services.xml
<serviceGroup>
<service name="Prop" >
<description>Hello! web service</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass">com.PropEJB</parameter>
<parameter name="localInterfaceName">com.PropEjbLocal</parameter>
<parameter name="localHomeInterfaceName">com.PropEjbLocalHome</parameter>
<parameter name="beanJndiName">ejb:PropEjbLocalHome</parameter>
<operation name="*"/>
</service>

<service name="Pack" >
<description>Hello! web service</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass">org.PackEJB</parameter>
<parameter name="localInterfaceName">org.PackEjbLocal</parameter>
<parameter name="localHomeInterfaceName">org.PackEjbLocalHome</parameter>
<parameter name="beanJndiName">ejb:PackEjbLocalHome</parameter>
<operation name="*"/>

</service>
</serviceGroup>
keeping in mind the directory structure(web-inf/service/meta-inf/services.xml) as specified in apache axis2 doc
in that case we are able to view the wsdl from the link(localhost:8080/services/........?wsdl)when the ejb has method returning primitive or wrapper data type, but in case of userdefined data type
it through following exception at time of deployment

16:45:38,670 ERROR [STDERR] org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: null
16:45:38,672 ERROR [STDERR] at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106)
16:45:38,672 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
16:45:38,672 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
16:45:38,672 ERROR [STDERR] at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
16:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
16:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
16:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
16:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
16:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
16:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
6:45:38,673 ERROR [STDERR] at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
16:45:38,674 ERROR [STDERR] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
16:45:38,674 ERROR [STDERR] at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
16:45:38,675 ERROR [STDERR] at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
16:45:38,675 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208)
16:45:38,675 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108)
16:45:38,675 ERROR [STDERR] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628)
16:45:38,675 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3851)
16:45:38,676 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294)
16:45:38,676 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
16:45:38,676 ERROR [STDERR] at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477)
16:45:38,676 ERROR [STDERR] at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
16:45:38,676 ERROR [STDERR] at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
16:45:38,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:45:38,677 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
16:45:38,677 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
16:45:38,677 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
16:45:38,677 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
16:45:38,677 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
16:45:38,677 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
16:45:38,678 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
16:45:38,678 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
16:45:38,678 ERROR [STDERR] at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
16:45:38,678 ERROR [STDERR] at $Proxy41.start(Unknown Source)
16:45:38,678 ERROR [STDERR] at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)
16:45:38,679 ERROR [STDERR] at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)
16:45:38,679 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
16:45:38,679 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
16:45:38,680 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
16:45:38,680 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
16:45:38,680 ERROR [STDERR] at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
16:45:38,680 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
16:45:38,680 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
16:45:38,680 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
16:45:38,681 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
16:45:38,681 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
16:45:38,681 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)
16:45:38,681 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)
16:45:38,681 ERROR [STDERR] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182)
16:45:38,682 ERROR [STDERR] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58)
16:45:38,682 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
16:45:38,682 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
16:45:38,682 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
16:45:38,682 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
16:45:38,682 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
16:45:38,683 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)
16:45:38,690 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603)
16:45:38,691 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
16:45:38,691 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
16:45:38,691 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
16:45:38,691 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
16:45:38,691 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
16:45:38,691 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
16:45:38,692 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
16:45:38,692 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
16:45:38,692 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
16:45:38,692 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
16:45:38,692 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
6:45:38,692 ERROR [STDERR] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
6:45:38,693 ERROR [STDERR] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
16:45:38,693 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)
16:45:38,693 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)
16:45:38,693 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)
16:45:38,693 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
16:45:38,693 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallActionSimpleControllerContextAction.java:62)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
16:45:38,694 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
16:45:38,695 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
16:45:38,695 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
16:45:38,695 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
16:45:38,695 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
16:45:38,695 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.startProfileActivationWrapper.java:190)
16:45:38,696 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)
16:45:38,696 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)
16:45:38,696 ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)
16:45:38,696 ERROR [STDERR] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112)
16:45:38,696 ERROR [STDERR] at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87)
16:45:38,696 ERROR [STDERR] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91)
16:45:38,697 ERROR [STDERR] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132)
16:45:38,697 ERROR [STDERR] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
16:45:38,697 ERROR [STDERR] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
16:45:38,697 ERROR [STDERR] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
16:45:38,697 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)


How do we specify bean mapping in axis2, like we have in axis1 <beanmapping> tag server-config.wsdd.
And if my bean has method other than getter and setter should it cause above mentioned exception.


 
reply
    Bookmark Topic Watch Topic
  • New Topic