9 Replies Latest reply: Sep 27, 2012 4:35 AM by FISYA MAHMAD Branched to a new discussion. RSS

Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]

Y D Prakash Newbie

Hi,

 

I am migrating from AS-5 to AS-7 [jboss-as-7.1.1.Final]. I could able to deploy my .ear file without any issues after certain modifications.

But, I am not able to find the WSDLs generated for the web services. Even the "Web Service Endpoints" section in the admin console is also not showing any endpoints.

 

When I access the web service, I get "ClassCastException" as follows:

 

19:02:15,626 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myroot]] (http--0.0.0.0-9100-2) Marking servlet WSList as unavailable

19:02:15,699 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myroot].[WSList]] (http--0.0.0.0-9100-2) Allocate exception for servlet WSList: java.lang.ClassCastException: com.app.wsclass.WSList cannot be cast to javax.servlet.Servlet

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1156) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]

 

Where WSList is a web service whose definition is in a jar within the ear.

 

Please point out what am I missing here. Appreciate your help.

 

Thanks in advance.

  • 1. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Nicklas Karlsson Master

    Any deployment warnings? Any extra libs included in the deployment? How are the WS defined? Annotations?

  • 2. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Y D Prakash Newbie

    Hi Karlsson,

     

    The WS is defined with the annotation "@WebService" using "import javax.jws.WebService;".

     

    There are warnings during the deployment. The deployment log is as follows:

     

     

    16:50:11,502 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "demoear.ear"

    16:50:12,225 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/commons-io-2.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,229 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/commons-logging-1.0.4.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,231 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/fop.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,232 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/jaxrpc.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,233 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/mail.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,236 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/postgresql-8.4-701.jdbc4.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,237 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry lib/servlet-api.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,238 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry demoear-ejb.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear"  does not point to a valid jar for a Class-Path reference.

    16:50:12,240 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xercesImpl.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/xalan.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,241 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xml-apis.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/xalan.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,242 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry serializer.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/xalan.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,245 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry avalon-framework-4.2.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,248 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry commons-io-1.3.1.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,251 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry serializer-2.7.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,255 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry servlet-2.2.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,260 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xalan-2.7.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,264 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xercesImpl-2.7.1.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,269 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xml-apis-1.3.04.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,273 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xml-apis-ext-1.3.04.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,278 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry xmlgraphics-commons-1.4.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:12,282 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "demoear-war.war"

    16:50:12,282 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "demoear-ejb.jar"

    16:50:13,148 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015850: /D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/jboss-deployment-structure.xml in subdeployment ignored. jboss-deployment-structure.xml is only parsed for top leve

    l deployments.

    16:50:13,155 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-io-1.3.1.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,157 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-logging-1.0.4.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,161 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry serializer-2.7.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,163 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry servlet-2.2.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,165 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry xalan-2.7.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,167 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry xercesImpl-2.7.1.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,169 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry xml-apis-1.3.04.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,171 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry xml-apis-ext-1.3.04.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/demoear-war.war/WEB-INF/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    16:50:13,267 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 8.4)

    16:50:13,291 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 8.4)

    16:50:13,319 INFO  [org.jboss.web] (MSC service thread 1-6) JBAS018210: Registering web context: /demoear

    16:50:13,758 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "demoear.ear"

     

    Are these warnings actually the cause for the issue?Thanks.

  • 3. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Nicklas Karlsson Master

    What's with stuff with /bin/content dir? Some deployment directory you have configured explicitly?

     

    Try dropping all the extra libraries (servlet, xml, jdbc) that are alredy provided by the AS.

  • 4. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Y D Prakash Newbie

    I have no idea about "/bin/content"...

     

    Ok. I'll drop unnecessary libraries and come back toy you.

     

    Thanks.

  • 5. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Y D Prakash Newbie

    I have removed the unnecessary libraries and ear deploment is fine. Servlets in the ear are woking fine but I am not able to find the web service end points still, also getting the Class-Path reference warnings (only few).

     

    1. How can I get the services listed as we service end points? Is there any specific jars need to be added or any specific settings need to be in place while building the ear file[Ant build script]
    2. Where can I find the WSDLs in AS7?
    3. How can I remove these warnings on Class-Path reference?

     

    Now my log is as follows:

     

    15:53:13,302 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018558: Undeployed "demoear.ear"

    15:53:38,357 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "demoear.ear"

    15:53:38,682 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry avalon-framework-4.2.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,684 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry batik-all-1.7.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,686 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry commons-io-1.3.1.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,688 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry commons-logging-1.0.4.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,690 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry fop-hyph.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,692 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry serializer-2.7.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,694 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry servlet-2.2.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,704 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry xalan-2.7.0.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,706 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry xercesImpl-2.7.1.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,707 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry xml-apis-1.3.04.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,709 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry xml-apis-ext-1.3.04.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,710 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry xmlgraphics-commons-1.4.jar in "/D:/Prakash/Softwares/JBoss_Home/jboss-as-7.1.1.Final/bin/content/demoear.ear/lib/fop.jar"  does not point to a valid jar for a Class-Path reference.

    15:53:38,712 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "demoear-war.war"

    15:53:38,712 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "demoear-ejb.jar"

    15:53:38,815 INFO  [org.jboss.web] (MSC service thread 1-4) JBAS018210: Registering web context: /demoear

    15:53:39,045 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "demoear.ear"

     

    Please help. Thanks in advance.

  • 6. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Y D Prakash Newbie

    Added my ejb jar in WEB-INF/lib of my war followed by a classpath entry for that jar in MANIFEST file of my war.  This worked for me

     

    jar -tf command resulted the following output...[Modifications highlighted]

     

    demoear.ear

    META-INF/

    META-INF/MANIFEST.MF

    META-INF/application.xml

    META-INF/jboss-deployment-structure.xml

    lib/

    demoear-ejb.jar

    demoear-war.war

          META-INF/

          META-INF/MANIFEST.MF

         WEB-INF/

         WEB-INF/classes/

         WEB-INF/lib/

         WEB-INF/lib/META-INF/

         WEB-INF/lib/META-INF/MANIFEST.MF

         WEB-INF/lib/META-INF/jboss.xml

         WEB-INF/lib/demoear-ejb.jar

         WEB-INF/web.xml

     

    Class-Path entry in MANIFEST.MF defined as follows:

    Class-Path: demoear-ejb.jar

     

    Hopefully this is correct as it works for me.

  • 7. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    FISYA MAHMAD Newbie

    Hi,

    May I know what is the content of jboss.xml and web.xml?

     

    Thanks

  • 8. Re: Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
    Y D Prakash Newbie

     

    Find the files as attachment.

     

    Note: For web services, the entry in deployment descriptor is not mandatory. Just the annotation would be enough.