Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1271 by mmrvelj: WebService deployment fails on JBoss 5 based mobicents
http://code.google.com/p/mobicents/issues/detail?id=1271


What steps will reproduce the problem?
1. Create annotated stateless session bean which is also a webservice (see
example below)
2. Deploy on mobicents sip servlets 1.1 or 1.2  (based on JBoss 5.1)
3. deployment should be succesfull, but instead an exception occurs:
Exception occurs
 java.lang.ClassCastException:
org.jboss.metadata.ear.spec.EjbModuleMetaData cannot be cast to
org.jboss.metadata.ear.spec.WebModuleMetaData

What version of the product are you using? On what operating system?
Tested on mobicents sip servlet 1.1 and 1.2 (both based on JBoss 5.1.0.GA).

Please provide any additional information below.

Example source to reproduce problem. The same example deploys
successfully on JBoss 5.1.0.GA.

Test.java:
------ CUT HERE ---
package com.test;

import javax.jws.WebService;

@WebService
public interface Test {
        String getMessage();
}

------ CUT HERE ---

TestWS.java:
------ CUT HERE ---
package com.test;

import javax.ejb.Stateless;
import javax.jws.WebService;

@WebService(name = "TestWS")
@Stateless(name = "TestService")
public class TestWS implements Test {
        @Override
        public String getMessage() {
                return "Hello world";
        }
}
------ CUT HERE ---

In attachment is also built EAR that from the above source.


Attachments:
        testws.ear  1.6 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to