1 2 Previous Next 27 Replies Latest reply on Jun 18, 2007 2:45 PM by pringleuc Go to original post
      • 15. Re: JBossWS Plugin gen code problem
        mwr0707

        Thanks again Ole,

        I tried this again on another machine, and this time, the wstools-configxxxxx.xml file did not get created in Local Settings\Temp.

        The wstools error this time was: "The system cannot find the path specified." for obvious reasons.

        Regards,
        -Mark

        • 16. Re: JBossWS Plugin gen code problem

          ok.. where did it get generated instead? (did it get generated at all?)

          regards!

          /Ole

          • 17. Re: JBossWS Plugin gen code problem
            mwr0707

            I did a search and it does not seem to have been generated at all.

            Regards

            • 18. Re: JBossWS Plugin gen code problem

              ok.. can you show the output in the log window when running wstools?

              regards!

              /Ole

              • 19. Re: JBossWS Plugin gen code problem
                mwr0707

                Here's the log window output:

                Running JBossWS wstools for [DemoProject]
                directory: C:\Documents and Settings\mrosenth\workspace2\DemoProject
                command: cmd.exe /C C:\jboss-4.0.5.GA\bin\wstools.bat -cp build/classes -config C:\DOCUME~1\mrosenth\LOCALS~1\Temp\wstools-config25073.xml -dest C:\Documents and Settings\mrosenth\workspace2\DemoProject\ejbModule
                ========================================================================="
                .
                 WSTools Environment
                .
                 JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..
                .
                 JAVA: \bin\java
                .
                 JAVA_OPTS:
                .
                ========================================================================="
                .
                The system cannot find the path specified.
                


                Thanks!

                • 20. Re: JBossWS Plugin gen code problem

                  thanks!

                  and there is no

                  C:\DOCUME~1\mrosenth\LOCALS~1\Temp\wstools-config25073.xml file

                  in the filesystem? strange indeed.. this is just created using the standard File.createTempFile( "wstools-config", ".xml" );

                  hmm...

                  /Ole

                  • 21. Re: JBossWS Plugin gen code problem
                    mwr0707

                    That is correct. Strange indeed.

                    • 22. Re: JBossWS Plugin gen code problem
                      mwr0707

                      Hi Ole,

                      After a reboot, the missing config file issue went away. Go figure...

                      But the "The system cannot find the path specified." error remained. I finally realized that wstools.bat expects the JAVA_HOME environment variable to be set.

                      I guess we should ask the wstools team to include the name of the directory entry that can't be found in the error message. Might save some time for someone else. 8-)

                      Once I fixed that, the errors on both systems are now the same:
                      "Failed to update deployment descriptor"

                      As I originally reported.

                      Regards,
                      -Mark

                      • 23. Re: JBossWS Plugin gen code problem

                        Thanks for your feedback Mark.. this looks like a bug in the plugin.. will be fixed in next beta.. I'll let you know..

                        regards!

                        /Ole

                        • 24. Re: JBossWS Plugin gen code problem
                          mwr0707

                          Thanks Ole,

                          Do you also see the issue where the generated jaxrpc-mapping.xml and webservices.xml fail validation?

                          This is appears to be a result of being unable to locate j2ee_1_4.xsd.

                          Regards

                          • 25. Re: JBossWS Plugin gen code problem
                            mwr0707

                            Looking at the JBoss installation, I see that copies of all of these schemas reside in the JBoss docs/schema directory.

                            Is there a preference I should be setting to cause Eclipse to validate against local copies of the schemas?

                            Regards

                            • 26. Re: JBossWS Plugin gen code problem
                              mwr0707

                              As an example, this modified version of webservices.xml validates without error:

                              <?xml version="1.0" encoding="UTF-8"?>
                              <webservices xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:impl='urn:com.acme'
                               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee file:/C:/jboss-4.0.5.GA/docs/schema/j2ee_web_services_1_1.xsd" version="1.1">
                               <webservice-description>
                               <webservice-description-name>PowerService</webservice-description-name>
                               <wsdl-file>META-INF/wsdl/PowerService.wsdl</wsdl-file>
                               <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
                               <port-component>
                               <port-component-name>PowerServicePort</port-component-name>
                               <wsdl-port>impl:PowerServicePort</wsdl-port>
                               <service-endpoint-interface>com.acme.PowerService</service-endpoint-interface>
                               <service-impl-bean>
                               <ejb-link>PowerService</ejb-link>
                               </service-impl-bean>
                               </port-component>
                               </webservice-description>
                              </webservices>


                              Note the xsi:schemaLocation
                              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee file:/C:/jboss-4.0.5.GA/docs/schema/j2ee_web_services_1_1.xsd"


                              • 27. Re: JBossWS Plugin gen code problem
                                pringleuc

                                I have the same problem, did you find a solution?

                                1 2 Previous Next