I am currently working on upgrading an application from Java7
running on Glassfish 3.1.2.2
, to Java8
running on Glassfish 4.1
. The application is packaged as an ear
-file, containing an ejb-jar
, and a war
. The war
in turn contains some webservices
.
In Glassfish 3.1.2.2
, deploying the ear
will lead to the war
exposing a number of webservices
. But, when I deploy the ear
in Glassfish 4.1
, no webservice
are exposed. When listing the components for the ear
in Glassfish
, the war
does not list webservices
(only web
) in 4.1
(but does in 3.1.2.2
).
I have tried deploying the war
-file as a standalone application, and when doing this the webservices
becomes available.
Does anyone know if there is a known bug with regards to deploying webservices
through an ear
-file with Glassfish 4.1?
When it comes to changes, I have upgraded some dependencies, but as far as I know there is nothing that should affect this.
My application.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>myApplication-ear</display-name>
<description>myApplication</description>
<module>
<ejb>myApplication-ejb-5.2-SNAPSHOT.jar</ejb>
</module>
<module>
<web>
<web-uri>myApplication-war-5.2-SNAPSHOT.war</web-uri>
<context-root>/myApplication-war</context-root>
</web>
</module>
</application>