• Post Reply Bookmark Topic Watch Topic
  • New Topic

Has anyone seen this before with Axis Web services before?

 
Joey HasNoLastName
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I built an Axis Web Service, it deploys fine to Sun App Server 9, but it seems like when I try to actually call it, I see the following issue:

[#|2007-06-11T09:01:09.952-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=39;_ThreadName=httpWorkerThread-8080-1;|WebModule[/TestService] ServletContext.log():Marking servlet TestService as unavailable|#]

[#|2007-06-11T09:01:09.952-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=39;_ThreadName=httpWorkerThread-8080-1;_RequestID=48f68392-faa6-40f1-97cf-afbabcb518e2;|StandardWrapperValve[TestService]: Allocate exception for servlet TestService
java.lang.ClassCastException: mil.test.ws.TestServicePortImpl
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]


I get the concept of a ClassCastException, but I'm not sure what would be causing this. In the code for standardWrapper, line 1087 is " classClass = Class.forName(actualClass);" classClass is defined as a Class object, and Class.forName returns a Class object. I don't understand how this could be causing issues.

Does anyone have any ideas?

Thanks!
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

During registration you may have overlooked the JavaRanch policy regarding Publicly Displayed Names. Please adjust your display name to comply with that policy. Your cooperation is appreciated.

Accounts that persist in the use of non-compliant display names will be locked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!