users@glassfish.java.net

Can't get web service installed

From: John Roberts <jsrober_at_hotmail.com>
Date: Sun, 21 Oct 2007 08:34:57 -0400

Hi,

 

This is something that I'm doing wrong and not a problem with Glassfish. I
really like Glassfish.

 

I package my source (listed below) using the ant script (listed below).

 

I've deployed the war via the Web-GUI and via the 'asadmin deploy' command.
The problem is that CircleFunctions always shows up as a "Web Application"
and it's not listed under the "Web Services" group in the Web-GUI.

 

What am I doing wrong?

 

Thanks!!!

John

 

 

johnr_at_prescott(~/workspace/CircleFunctions) 1010$ find .



/src

/src/intellisig

/src/intellisig/server

/src/intellisig/server/CircleFunctions.java

/bin

/bin/intellisig

/bin/intellisig/server

/bin/intellisig/server/CircleFunctions.class

/.classpath

/.project

/CircleFunctions.ear

/build.xml

johnr_at_prescott(~/workspace/CircleFunctions) 1011$

 

 

johnr_at_prescott(~/workspace/CircleFunctions) 1011$ cat build.xml

<project name="Project Name" default="all" basedir=".">

  <target name="all">

    <delete dir="bin"/>

    <mkdir dir="bin"/>

    <javac srcdir="src" destdir="bin"/>

    <delete file="CircleFunctions.jar"/>

    <jar destfile="CircleFunctions.jar">

      <fileset dir="bin"/>

    </jar>

  </target>

</project>

johnr_at_prescott(~/workspace/CircleFunctions) 1012$

 

johnr_at_prescott(~/workspace/CircleFunctions) 1012$ cat
/src/intellisig/server/CircleFunctions.java

package intellisig.server;

 

import javax.jws.WebService;

 

@WebService

public class CircleFunctions

{

        public double getArea(double r)

        {

                return java.lang.Math.PI * (r * r);

        }

 

        public double getCircumference(double r)

        {

                return 2 * java.lang.Math.PI * r;

        }

 

}

johnr_at_prescott(~/workspace/CircleFunctions) 1013$