users@glassfish.java.net

Re: Can't get web service installed

From: <glassfish_at_javadesktop.org>
Date: Mon, 22 Oct 2007 02:21:52 PDT

I don't know what your're doing wrong but I can tell you how I did. Since I don't need a web project and started using JBoss at first I just deployed my jar file directly to the JBoss server. However, this didn't work for me on Glassfish so I packaged my jar within an ear file. The structure of my ear file is pretty simple and I get it generated from maven with the maven ear plugin. The jar file is found in the root directory of the ear file and in the META-INF directory I have my application.xml file. This is pretty much what I did to get my web services in my jar file to be deployed. Just like you I used the annotation @Webservice but since my web service also is a stateless session bean I used the @Stateless annotation also.

I'm not sure how it's supposed to work within a war file. Perhaps it doesn't deploy automatically because they think that you should define it manually within the web.xml? I guess someone else has to answer that for you.

/Leo
[Message sent by forum member 'woel' (woel)]

http://forums.java.net/jive/thread.jspa?messageID=241460