axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh <gemini...@gmail.com>
Subject [AXIS2] ClassCastException in DescriptionBuilder while debugging
Date Mon, 02 Apr 2007 16:00:00 GMT
All,

When debugging Axis2 code on Weblogic 8.1 in an exploded format, I receive a
ClassCastException in DescriptionBuilder, Line 176:

*receiver = (MessageReceiver) messageReceiver.newInstance();*

Where messageReceiver is of class
org.apache.axis2.rpc.receivers.RPCMessageReceiver

Here is the stack trace:

Apr 2, 2007 11:53:47 AM org.apache.axis2.deployment.DeploymentEnginedoDeploy
INFO: Invalid service  BookService due to java.lang.ClassCastException
 at org.apache.axis2.deployment.DescriptionBuilder.loadMessageReceiver(
DescriptionBuilder.java:176)
 at org.apache.axis2.deployment.ServiceBuilder.processOperations(
ServiceBuilder.java:612)
 at org.apache.axis2.deployment.ServiceBuilder.populateService(
ServiceBuilder.java:269)
 at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(
ServiceGroupBuilder.java:96)
 at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(
ArchiveReader.java:99)
 at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup
(ArchiveReader.java:167)
 at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
DeploymentEngine.java:528)
 at org.apache.axis2.deployment.repository.util.WSInfoList.update(
WSInfoList.java:196)
 at org.apache.axis2.deployment.RepositoryListener.update(
RepositoryListener.java:227)
 at org.apache.axis2.deployment.RepositoryListener.checkServices(
RepositoryListener.java:174)
 at org.apache.axis2.deployment.DeploymentEngine.loadServices(
DeploymentEngine.java:88)
 at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(
WarBasedAxisConfigurator.java:252)
 at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:72)
 at org.apache.axis2.transport.http.AxisServlet.initConfigContext(
AxisServlet.java:392)
 at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331)
 at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(
ServletStubImpl.java:1094)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
:121)
 at weblogic.servlet.internal.ServletStubImpl.createServlet(
ServletStubImpl.java:970)
 at weblogic.servlet.internal.ServletStubImpl.createInstances(
ServletStubImpl.java:949)
 at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
ServletStubImpl.java:888)
 at weblogic.servlet.internal.WebAppServletContext.preloadServlet(
WebAppServletContext.java:3430)
 at weblogic.servlet.internal.WebAppServletContext.preloadServlets(
WebAppServletContext.java:3375)
 at weblogic.servlet.internal.WebAppServletContext.preloadResources(
WebAppServletContext.java:3356)
 at weblogic.servlet.internal.WebAppServletContext.setStarted(
WebAppServletContext.java:6208)
 at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
 at weblogic.j2ee.J2EEApplicationContainer.start(
J2EEApplicationContainer.java:2134)
 at weblogic.j2ee.J2EEApplicationContainer.activate(
J2EEApplicationContainer.java:2175)
 at weblogic.j2ee.J2EEApplicationContainer.activate(
J2EEApplicationContainer.java:2122)
 at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation
(SlaveDeployer.java:3099)
 at
weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications
(SlaveDeployer.java:1768)
 at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java
:351)
 at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(
DeploymentManagerServerLifeCycleImpl.java:229)
 at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
 at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
 at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
 at weblogic.Server.main(Server.java:32)

If I run weblogic outside of eclipse, it does not break
here.  The variable, "messageReceiver", is not null and of type "
org.apache.axis2.rpc.receivers.RPCMessageReceiver".  This should work.  Any
ideas why this would fail?  Is this an eclipse thing?

Regards,

Joshua

Mime
View raw message