aspose file tools
The moose likes Web Services and the fly likes Has anyone seen this before with Axis Web services before? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Has anyone seen this before with Axis Web services before?" Watch "Has anyone seen this before with Axis Web services before?" New topic
Author

Has anyone seen this before with Axis Web services before?

Joey HasNoLastName
Greenhorn

Joined: Jun 11, 2007
Posts: 1
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

Joined: Aug 19, 2005
Posts: 2906
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.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Has anyone seen this before with Axis Web services before?
 
Similar Threads
ResulSet returning nullPointerException where running query
Reflection on EJB3
EJB3.0 & calling remote interface.
EJB3.0 on Sun WebApp9.0 - dead end!
java.sql.SQLException: Stream has already been closed