|
Home > Archive > WebSphere Application Server > May 2004 > Web Service problem with WAS 5.0
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Web Service problem with WAS 5.0
|
|
| chardebolle 2004-05-25, 4:30 pm |
| Hello,
I am new to web service and to websphere.
I developped a little "hello world" web service with WSAD 5.1. When I test =
it in WSAD it works perfectly (I tried several tutorials before, and all of=
them work in WSAD).
But when I try to deploy it on WAS 5.0 I have the following error :
SRVE0020E: [Erreur servlet]-[com_helloworld_HelloWorld]: Le chargement du s=
ervlet a =E9chou=E9: java.lang.ClassCastException: com.helloworld.HelloWorl=
d at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebApp=
ServletManager.java:224) at com.ibm.ws.webcontainer.webapp.WebAppServletMan=
ager. loadAutoLoadServlets(WebAppServletManage
r.java:453) at com.ibm.ws.webc=
ontainer.webapp.WebApp.loadServletManager(WebApp.java:1233) at com.ibm.ws.w=
ebcontainer.webapp.WebApp.init(WebApp.java:273) at com.ibm.ws.webcontainer.=
srt.WebGroup.loadWebApp(WebGroup.java:317) at com.ibm.ws.webcontainer.srt.W=
ebGroup.init(WebGroup.java:194) at com.ibm.ws.webcontainer.WebContainer.add=
WebApplication(WebContainer.java:950) at com.ibm.ws.runtime.component.WebCo=
ntainerImpl.install(WebContainerImpl.java:133) at com.ibm.ws.runtime.compon=
ent.WebContainerImpl.start(WebContainerImpl.java:360) at com.ibm.ws.runtime=
component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401) at com.ibm=
ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(Deplo=
yedApplicationImpl.java:743) at com.ibm.ws.runtime.component.DeployedModule=
Impl.start(DeployedModuleImpl.java:337) at com.ibm.ws.runtime.component.Dep=
loyedApplicationImpl.start(DeployedApplicationImpl.java:531) at com.ibm.ws.=
runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.ja=
va:254) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicatio=
nMgrImpl.java:232) at com.ibm.ws.runtime.component.ContainerImpl.startCompo=
nents(ContainerImpl.java:343) at com.ibm.ws.runtime.component.ContainerImpl=
start(ContainerImpl.java:234) at com.ibm.ws.runtime.component.ApplicationS=
erverImpl.start(ApplicationServerImpl.java:117) at com.ibm.ws.runtime.compo=
nent.ContainerImpl.startComponents(ContainerImpl.java:343) at com.ibm.ws.ru=
ntime.component.ContainerImpl.start(ContainerImpl.java:234) at com.ibm.ws.r=
untime.component.ServerImpl.start(ServerImpl.java:182) at com.ibm.ws.runtim=
e.WsServer.start(WsServer.java:135) at com.ibm.ws.runtime.WsServer.main(WsS=
erver.java:232) at java.lang.reflect.Method.invoke(Native Method) at com.ib=
m.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)=20
Does anyone have an explanation for me ?
I really need help : I tried many things but nothing works ...
Thanks a lot !
C=E9cile Hardebolle
| |
| Felix Wong 2004-05-25, 4:30 pm |
| The WebSphere Test Environment 5.0 in WSAD may have PTF applied. I
think there were some changes in Web Services in WAS 5.0.2. I would
check WAS and see the same level of PTF has been applied or not.
HTH
Felix
chardebolle wrote:
> Hello,
> I am new to web service and to websphere.
> I developped a little "hello world" web service with WSAD 5.1. When I test it in WSAD it works perfectly (I tried several tutorials before, and all of them work in WSAD).
>
> But when I try to deploy it on WAS 5.0 I have the following error :
>
> SRVE0020E: [Erreur servlet]-[com_helloworld_HelloWorld]: Le chargement du servlet a échoué: java.lang.ClassCastException: com.helloworld.HelloWorld at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224) at com.
ibm.ws.webcontainer.webapp.WebAppServletManager. loadAutoLoadServlets(WebAppServletManage
r.java:453) at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1233) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273) at com.ibm.ws.
webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:950) at com.ibm.ws.runtime.component.WebContainerImpl.insta
ll(WebContainerImpl.java:133) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360) at com.ibm.ws.runtimecomponent.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401) at com.ibmws.runtime.compon
ent.DeployedApplicationImpl. fireDeployedObjectStart(DeployedApplicat
ionImpl.java:743) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:337) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationIm
pl.java:531) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:232) at com.ibm.ws.runtime.component.ContainerImpl.startComponen
ts(ContainerImpl.java:343) at com.ibm.ws.runtime.component.ContainerImplstart(ContainerImpl.java:234) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117) at com.ibm.ws.runtime.component.ContainerImpl.startComponents
(ContainerImpl.java:343) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182) at com.ibm.ws.runtime.WsServer.start(WsServer.java:135
) at com.ibm.ws.runtime.WsServer.main(WsServer.java:232) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
>
> Does anyone have an explanation for me ?
> I really need help : I tried many things but nothing works ...
> Thanks a lot !
>
> Cécile Hardebolle
|
|
|
|
|