Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Netbeans + Glassfish Not generating wsdl or service url

843833Oct 14 2009 — edited Oct 29 2009
I know this is a problem that could have a thousand causes, somewhere deep in a conf file.

I have a Netbeans 6.7 manager project. I added some a web service class, added an operation to test. The project deploys to glassfish no problem. However if I try and go to the test via Netbeans (right click a web service and pick "Test Web Service") I get an error "Warning: unable to open web service tester page: http://localhost:8080/Manager/WSFooService?tester"

Clearly browsing to that URL doesn't work. It seems like the project is not even generating the WSDL for the web service so I can't make any clients to test it.

I am not sure which conf files to post, so here is a couple:

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app metadata-complete="true" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 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/web-app_2_5.xsd">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>

    </web-app>
sub-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
  <context-root>/MegaManager</context-root>
  <class-loader delegate="true"/>
  <jsp-config>
    <property name="keepgenerated" value="true">
      <description>Keep a copy of the generated servlet class' java code.</description>
    </property>
  </jsp-config>
</sun-web-app>
Netbeans also shows a directory in the tree
src
  - conf
    - xml-resources
     - web-service-references
      - EMPTY
I think I need to modify my build.xml to override one of the build tasks so it generates the proper wsdl and Service end points (like wsgen or whatever I am suppose to use). I guess Netbeans fails to do this automatically.


Thanks for any help you can provide.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2009
Added on Oct 14 2009
4 comments
1,893 views