Web service on weblogic

Discussions

XML & Web services: Web service on weblogic

  1. Web service on weblogic (1 messages)

    Hi All
    I installed the weblogic 8.1 with service pack 5, and tried to run some web services on it. I have to problems.
    On this link (http://e-docs.bea.com/wls/docs90/webserv/jsr109.html) it is explained, how can we make a webservice without any tool, and deploy it on weblogic server. I did exacty the same way it is explained in the tutorial.
    1) when i tried to deploy the Servlet end point interface, i got following error:
    ---------------------------------------------------------------------------------
    <Dec 27, 2005 10:58:46 PM EET> <Error> <HTTP> <BEA-101126> <[ServletContext(id=23169663,name=BEATestingProjectWeb,contex
    t-path=/BEATestingProjectWeb)] Error casting servlet: "WarDeployBean" to javax.servlet.Servlet
    java.lang.ClassCastException
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1093)
    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:3387)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3373)
    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.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:252
    0)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2438)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2155)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2254)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2149)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2401)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Dec 27, 2005 10:58:46 PM EET> <Error> <HTTP> <BEA-101216> <Servlet: "WarDeployBean" failed to preload on startup in Web
    application: "BEATestingProjectWeb".
    javax.servlet.ServletException: Servlet class: 'examples.warDeploy.HelloJavaBean' does not implement javax.servlet.Servl
    et
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1112)
    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:3387)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3373)
    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.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:252
    0)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2438)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2155)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2254)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2149)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2401)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Dec 27, 2005 10:59:07 PM EET> <Warning> <WSRP-Producer> <BEA-420900> <[BEATestingProjectWeb] Failed to find container c
    lass com.bea.wsrp.producer.adapter.javaportlet.JavaPortletAdapter. Portlets that can be handled by this container will n
    ot be deployed.>
    <Dec 27, 2005 10:59:07 PM EET> <Warning> <WSRP-Producer> <BEA-420900> <[BEATestingProjectWeb] Failed to find container c
    lass com.bea.wsrp.producer.adapter.jsp.JspPortletAdapter. Portlets that can be handled by this container will not be dep
    loyed.>
    <Dec 27, 2005 10:59:12 PM EET> <Warning> <WSRP-Producer> <BEA-420900> <[BEATestingProjectWeb] Failed to find container c
    lass com.bea.wsrp.producer.adapter.javaportlet.JavaPortletLoader. Portlets that can be handled by this container will no
    t be deployed.>

    ---------------------------------------------------------------------------------
    ---------------------------------------------------------------------------------
    2)When i tried to deploy the EJB end point interface, i got following error:
    ---------------------------------------------------------------------------------
    <Dec 27, 2005 11:02:01 PM EET> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 18 for th
    e application MyWebService.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 18
    Module: MyWebService Error: [EJB:011025]The XML parser encountered an error in your deployment descriptor. Pl
    ease ensure that your DOCTYPE is correct. You may wish to compare your deployment descriptors with the WebLogic Server e
    xamples to ensure the format is correct. The error was:
    XML document does not appear to contain a properly formed DOCTYPE header.

    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2484)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 18
    Module: MyWebService Error: [EJB:011025]The XML parser encountered an error in your deployment descriptor. Pl
    ease ensure that your DOCTYPE is correct. You may wish to compare your deployment descriptors with the WebLogic Server e
    xamples to ensure the format is correct. The error was:
    XML document does not appear to contain a properly formed DOCTYPE header.
    ]
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2413)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >


    ---------------------------------------------------------------------------------
    The above error suggested that there was some problem with the weblogic-ejb-jar.xml, but even after replacing this file from the server example (after modification:-)) it did not work.
    Can some one help me on this?

    Regards,
    Rajeev
  2. Re: Web service on weblogic[ Go to top ]

    I am also facing lot of problem with weblogic portal server, they have a messy deployment strategy.. If they donot resolve them weblogic portal server would be wiped out of the market. Thanks, Souravmay