3 Replies Latest reply on Aug 11, 2009 6:00 PM by 648844

    WebService annoated with @stateless does not deploy in WLS11g

    franck_mosse-JavaNet
      To facilitate the packaging and the deployment of a web service, i annotate it with the @stateless annotation. In this way the web service is packaged with all my others ejb in the same jar. When i deploy the jar that is also packaged in an ear, i have got the following error message :

      Unable to find ejb-jar with uri lock-impl in ear at D:\cless2009\CoreBuild\out\lib\WLS_cless\wls_cless.ear

      This is part of the code of my web service :
      @Stateless
      @WebService(name = "ChangeStatus", targetNamespace = "http://cless.gemalto.com/ChangeStatus")
      @XmlSeeAlso({
      ObjectFactory.class
      })
      public class ChangeStatusWS implements ChangeStatus
      { ... }

      As you can see, the web service is also annotated with @stateless but without any @Local or @Remote definition.
      the jar does not contain any ejb-jar.xml, weblogic-ejb-jar.xml.


      Can you tell me what's wrong with this way of doing things ?
           
      Some help would be appreciated. Thanks.
        • 1. Re: WebService annoated with @stateless does not deploy in WLS11g
          648844
          Hi,

          This sounds like an application packaging issue. Can you check if the wls_cless.ear file contains an application.xml that defines an ejb-jar at the URI "lock-impl"? If so, can you verify your ear file contains such a URI? If so, can you ensure your EJB is packaged under this URI?

          - Matt
          • 2. Re: WebService annoated with @stateless does not deploy in WLS11g
            franck_mosse-JavaNet
            See here under my application.xml

            <?xml version="1.0" encoding="ASCII"?>
            <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
            <display-name>ClessServer</display-name>
            <module>
            <ejb>util.jar</ejb>
            </module>
            <module>
            <ejb>repository-impl.jar</ejb>
            </module>
            <module>
            <ejb>workflow-impl.jar</ejb>
            </module>
            <module>
            <ejb>swift-listener.jar</ejb>
            </module>
            <module>
            <ejb>counters-impl.jar</ejb>
            </module>
            <module>
            <ejb>perso-impl.jar</ejb>
            </module>
            <module>
            <ejb>serviceDelivery-impl.jar</ejb>
            </module>
            <module>
            <ejb>lock-impl.jar</ejb>
            </module>
            <module>
            <ejb>deletion-impl.jar</ejb>
            </module>
            <module>
            <ejb>customerCare-impl.jar</ejb>
            </module>
            </application>

            and my weblogic-application.xml :
            <?xml version="1.0" encoding="UTF-8"?>
            <wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
            <!-- server-version: 10.3 -->
            <wls:application-param>
            <wls:param-name>webapp.encoding.default</wls:param-name>
            <wls:param-value>UTF-8</wls:param-value>
            </wls:application-param>
            </wls:weblogic-application>

            The lock-impl.jar is in my ear at the root of the ear file.

            Edited by: fmosse on 11 août 2009 04:38
            • 3. Re: WebService annoated with @stateless does not deploy in WLS11g
              648844
              Hi,

              It's strange that it complains about the uri "lock-impl" when you have "lock-impl.jar" in your application.xml. Are you able to successfully run weblogic.appc on the ear file from the command line?