1 2 Previous Next 18 Replies Latest reply on Jul 26, 2009 12:59 PM by Peter Johnson

    WSDL is not genreated

    Yonghong Wang Newbie

      Hi,

      I'm using jboss 4.2.2GA, JBOSSWS native 3.0.4, jdk 1.5

      I created a web service and a client application in my local using eclipse. Everything was fine.

      I created a war file and deploy it to our test server jboss/../../deploy.

      WSDL is not genreated.

      Any idea?

      Thanks

        • 1. Re: WSDL is not genreated
          Peter Johnson Master

          The WSDL is generated dynamically(?) when asked for. Go to http://localhost:8080/jbossws and click on the "View a list of deployed services" and then click on the WSDL link for your service. Also note the URL - you can use it at any time to see the WSDL.

          • 2. Re: WSDL is not genreated
            Yonghong Wang Newbie

            Thanks for your replay. I went to http:hostname:port/jbossws/services.
            I got : There are currently no endpoints deployed.

            I checked jboss/.../data/wsdl , there is no myApp.war folder there.

            Any idea?

            Thanks




            • 3. Re: WSDL is not genreated
              Peter Johnson Master

              Did you declare any endpoints in your app? If so, could you post one of your endpoints?

              • 4. Re: WSDL is not genreated
                Yonghong Wang Newbie

                package myWebService;

                @javax.jws.WebService
                @SOAPBinding(style = SOAPBinding.Style.RPC)
                public class TestWS {


                @WebMethod
                public void insertTier(String firstName, String lastName,String cp, String createDate, Tier[] myTier){
                org.apache.log4j.Logger log = Logger.getLogger(Logger.class);

                Services.insertStudent(firstName,lastName, createDate, myTier);

                }
                }

                • 5. Re: WSDL is not genreated
                  Yonghong Wang Newbie

                   

                  "yonghongb" wrote:
                  JBossWS/Services
                  Registered Service Endpoints
                  There are currently no endpoints deployed


                  • 6. Re: WSDL is not genreated
                    Peter Johnson Master

                    That should do it. Are you sure this class was packaged in the WAR? Did the deployment show up in the console log? There should be some log entries about the endpoint before and after the deployment of the web apps. Here is what I see for one of my apps:

                    12:05:21,210 INFO [DefaultEndpointRegistry] register: jboss.ws:context=salestax
                    ,endpoint=SalesTax
                    12:05:21,491 INFO [TomcatDeployer] deploy, ctxPath=/salestax, warUrl=.../tmp/de
                    ploy/tmp5164324044718083712salestax-exp.war/
                    12:05:22,847 INFO [WSDLFilePublisher] WSDL published to: file:/C:/opt/jbia/jbia
                    .423/jboss-4.2.3.GA/server/ws/data/wsdl/salestax.war/SalesTaxService672465130727
                    8161333.wsdl

                    • 7. Re: WSDL is not genreated
                      Yonghong Wang Newbie

                      No.

                      I saw :

                      WARN [config] Unable to process deployment descriptor for context 'null'

                      • 8. Re: WSDL is not genreated
                        Peter Johnson Master

                        OK, so the WAR did not deploy so let's find out why. Post the contents of the WAR file. To do this, post the output from running "jar -tf xxx.war" where xxx.war is the name of your WAR file. (If JAVA_HOME/bin is not in your PATH you will have to use the full path name for the jar utility.)

                        Post the contents of your WEB-INF/web.xml file. When posing xml content, enclose it within 'code' tags. To do this, select the XML text and click the Code button above the editor window.

                        Restart the app server with your WAR in the deploy directory. Post the full console log.

                        Make sure you do all of this from a command prompt - do not use an IDE (no Eclipse or NetBeans).

                        • 9. Re: WSDL is not genreated
                          Yonghong Wang Newbie

                          META-INF/
                          META-INF/MANIFEST.MF
                          .classpath
                          .project
                          .settings/
                          .settings/.jsdtscope
                          .settings/org.eclipse.jdt.core.prefs
                          .settings/org.eclipse.jst.common.project.facet.core.prefs
                          .settings/org.eclipse.wst.common.component
                          .settings/org.eclipse.wst.common.project.facet.core.xml
                          .settings/org.eclipse.wst.jsdt.ui.superType.container
                          .settings/org.eclipse.wst.jsdt.ui.superType.name
                          build/
                          build/classes/
                          build/classes/client_log4j.properties
                          build/classes/consentWebService/
                          build/classes/consentWebService/Consent.class
                          build/classes/consentWebService/ConsentTier.class
                          build/classes/consentWebService/ConsentWS.class
                          build/classes/consentWebService/FindObjectHelper.class
                          build/classes/consentWebService/Services.class
                          build/classes/deploy.wsdd
                          build/classes/echo/
                          build/classes/echo/Echo.class
                          build/classes/echo/FindObjectHelper.class
                          build/classes/echo/Services.class
                          build/classes/remoteService.xml
                          build/classes-old/
                          build/classes-old/client_log4j.properties
                          build/classes-old/consentWebService/
                          build/classes-old/consentWebService/Consent.class
                          build/classes-old/consentWebService/ConsentTier.class
                          build/classes-old/consentWebService/ConsentWS.class
                          build/classes-old/consentWebService/FindObjectHelper.class
                          build/classes-old/consentWebService/Services.class
                          build/classes-old/deploy.wsdd
                          build/classes-old/echo/
                          build/classes-old/echo/Echo.class
                          build/classes-old/echo/FindObjectHelper.class
                          build/classes-old/echo/Services.class
                          build/classes-old/remoteService.xml
                          build.xml
                          conf/
                          conf/client_log4j.properties
                          conf/deploy.wsdd
                          conf/remoteService.xml
                          log4j.PROPERTIES
                          src/
                          src/consentWebService/
                          src/consentWebService/Consent.java
                          src/consentWebService/ConsentTier.java
                          src/consentWebService/ConsentWS.java
                          src/consentWebService/FindObjectHelper.java
                          src/consentWebService/Services.java
                          src/echo/
                          src/echo/Echo.java
                          src/echo/FindObjectHelper.java
                          src/echo/Services.java
                          WebContent/
                          WebContent/META-INF/
                          WebContent/META-INF/MANIFEST.MF
                          WebContent/WEB-INF/
                          WebContent/WEB-INF/lib/
                          WebContent/WEB-INF/lib/activation.jar
                          WebContent/WEB-INF/lib/aspectjrt.jar
                          WebContent/WEB-INF/lib/axis.jar
                          WebContent/WEB-INF/lib/castor-0.9.9.jar
                          WebContent/WEB-INF/lib/catissuecore-client.jar
                          WebContent/WEB-INF/lib/catissuecore.jar
                          WebContent/WEB-INF/lib/cglib-full-2.0.1.jar
                          WebContent/WEB-INF/lib/commonpackage.jar
                          WebContent/WEB-INF/lib/commons-codec-1.3.jar
                          WebContent/WEB-INF/lib/commons-discovery-0.2.jar
                          WebContent/WEB-INF/lib/commons-httpclient-3.0.1.jar
                          WebContent/WEB-INF/lib/commons-logging.jar
                          WebContent/WEB-INF/lib/edu.wustl.catissuecore.domain.pathology.xsd
                          WebContent/WEB-INF/lib/edu.wustl.catissuecore.domain.shippingtracking.xsd
                          WebContent/WEB-INF/lib/edu.wustl.catissuecore.domain.xsd
                          WebContent/WEB-INF/lib/hibernate3.jar
                          WebContent/WEB-INF/lib/jaxrpc.jar
                          WebContent/WEB-INF/lib/junit-3.8.1.jar
                          WebContent/WEB-INF/lib/junit-4.1.jar
                          WebContent/WEB-INF/lib/log4j-1.2.8.jar
                          WebContent/WEB-INF/lib/log4j-1.2.9.jar
                          WebContent/WEB-INF/lib/mail.jar
                          WebContent/WEB-INF/lib/mapping.dtd
                          WebContent/WEB-INF/lib/minimalDataSharing-client.jar
                          WebContent/WEB-INF/lib/odmg.jar
                          WebContent/WEB-INF/lib/saaj.jar
                          WebContent/WEB-INF/lib/shippingtracking.jar
                          WebContent/WEB-INF/lib/spring-richclient.jar
                          WebContent/WEB-INF/lib/spring.jar
                          WebContent/WEB-INF/lib/struts.jar
                          WebContent/WEB-INF/lib/washu-commons.jar
                          WebContent/WEB-INF/lib/wsdl4j-1.5.1.jar
                          WebContent/WEB-INF/lib/xalan-2.4.0.jar
                          WebContent/WEB-INF/lib/xalan.jar
                          WebContent/WEB-INF/lib/xercesImpl.jar
                          WebContent/WEB-INF/lib/xml.properties
                          WebContent/WEB-INF/log4j.PROPERTIES
                          WebContent/WEB-INF/web.xml

                          • 10. Re: WSDL is not genreated
                            Yonghong Wang Newbie

                             

                            "yonghongb" wrote:
                            <?xml version="1.0" encoding="UTF-8"?>
                            <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
                            <display-name>DeIdentifyService</display-name>
                            <servlet>
                            <servlet-name>ConsentWS</servlet-name>
                            <servlet-class>consentWebService.ConsentWS</servlet-class>
                            </servlet>

                            <servlet-mapping>
                            <servlet-name>ConsentWS</servlet-name>
                            <url-pattern>/ConsentWS</url-pattern>
                            </servlet-mapping>
                            <welcome-file-list>
                            <welcome-file>index.html</welcome-file>
                            <welcome-file>index.htm</welcome-file>
                            <welcome-file>index.jsp</welcome-file>
                            <welcome-file>default.html</welcome-file>
                            <welcome-file>default.htm</welcome-file>
                            <welcome-file>default.jsp</welcome-file>
                            </welcome-file-list>
                            </web-app>


                            • 11. Re: WSDL is not genreated
                              Yonghong Wang Newbie

                               

                              16:53:50,666 INFO [TomcatDeployer] deploy, ctxPath=/DeIdentifyService, warUrl=.
                              ../tmp/deploy/tmp1319754815190816118DeIdentifyService-exp.war/
                              16:54:04,534 WARN [config] Unable to process deployment descriptor for context
                              'null'


                              • 12. Re: WSDL is not genreated
                                Yonghong Wang Newbie

                                Sorry, Can not copy whole log since we other jars......it is too big....to copy...

                                Apprieciate your help.

                                • 13. Re: WSDL is not genreated
                                  Peter Johnson Master

                                  What you posted in not a valid WAR file. This looks like an entire Eclipse Dynamic Web Project directory packaged into a file with a .war extension.

                                  • 14. Re: WSDL is not genreated
                                    Yonghong Wang Newbie

                                    Yes, I did create the jar using a command in Eclipse Dynamic Web Project directory.

                                    Should i exclude the jar files in lib?

                                    1 2 Previous Next