When I launch the application, only the web engine works in GlassFish. "webservices" is not running

I first tried a simple web service program. When I launch the application, only the web engine works in GlassFish. The "webservices" engine is not running. I installed java ee sdk 1.6

+4
source share
7 answers

I assume that you have created a dynamic web project with Webservices annotations in your classes. When you deploy and log into the Glassfish admin console, and then in the Applications app and search for the Engines column against your deployed app, Glassfish only displays a website and does not show web services.

To enable web services, it seems your classes are not compiling in the default / classes directory by default.

Do one of the following: Right-click on your project> Build Project. or Go to the eclipse menu> Project> Automatically create

Now redeploy the application again. webservices The engine must be visible with the web engine.

+4
source

Make sure that you are using the Full Profile non- Web version of Glassfish

in your folder with binfish bin check if this command has a glassfish4 web service \ bin> asadmin container list if not, you have a web version

go to https://glassfish.java.net/download.html and download, unzip and replace your files

+4
source

I had a similar problem. In fact, the project worked with NetBeans and local GlassFish, but when I deployed to GlassFish 4.1.1 (on amazon linux), the "webservices" engine did not start. I followed the previous answer (mposadar form) and simply added to the class initialization block:

@WebService(endpointInterface = "service.ITranslate") public class Translate implements ITranslate { { try { URL url = new URL("http://MY_INSTANCE.us-west-2.compute.amazonaws.com:8080//Translate/TranslateService?wsdl"); } catch (MalformedURLException ex) { Logger.getLogger(Translate.class.getName()).log(Level.SEVERE, null, ex); } } ... 

After assembly and deployment, the "webservices" option also works on the remote server, and a link to the "View Endpoint" and wisdl is also available.

+1
source

According to oracle page there are differences between webprofile and fullscreen glass color

parameter

 Implementing Java Web Services 1.3 

flagged for full profile only, so it doesn’t work if you have a web profile

You can look at the license file name to determine which full profile or web profile

 <glassfish install dir>/glassfish/legal/3RD-PARTY-LICENSE.txt <glassfish install dir>/glassfish/legal/3RD-PARTY-LICENSE-WEB-PROFILE 

Glassfish documentation also states:

If you use a web profile, you can also use the Update Tool to get technologies that are enabled by default on the full platform, for example:

  • Java Beans Enterprise
  • Underground
  • Jersey
0
source

I have a full GlassFish server profile, so I did this to manually execute the wsdl-url of my java class. For instance:

My Java class is a "Test": url = http: // localhost: 8080 / ProjectName / TestService? Wsdl

then I will reload the GlassFish admin application tab. troubleshooting.

hope this helps someone

0
source
  • Remove your glassfish4 server from the current eclipse ide (eclipse must support jee).
  • Go to Windows in the eclipse menu bar, select show console and select the server.
  • Click the "Install New Server Link" button in the console.
  • Choose JDK1.8 not default jre. then select glassfish 4.0 to install.
  • Find the directory in which you want to install your glass fish (it is better to select in C: / Program Files / glassfish).
  • Click the server setup button. Accept the license and wait until your glassfish 4.0 has eclipse ide installed.
  • Finally, deploy your application, it will show the webservice and view the EndPoint.
0
source

The Oracle website has a Java type version with two types.

i) Java EE 7 Platform SDK Platform

ii) Java EE 7 Web Profile SDK

if you want the "webservices" engine to run in GlassFish applications, you need to work with the "Java EE 7 Platform SDK" version ...

-one
source

Source: https://habr.com/ru/post/1497029/


All Articles