cannot Deploy DssGlassServiceEAR
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: port out of range:1114848
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishDeployedDirectory(SunAppServerBehaviour.java:743)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishModuleForGlassFishV3(SunAppServerBehaviour.java:591)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishModule(SunAppServerBehaviour.java:281)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:949)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1039)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:872)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:708)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2731)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:1115)
at org.eclipse.jst.ws.internal.consumption.ui.command.StartServerCommand$1.run(StartServerCommand.java:132)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.IllegalArgumentException: port out of range:1114848
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
cannot Deploy DssGlassServiceEAR
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: port out of range:1114848
Prateek Parekh wrote:
cannot Deploy DssGlassServiceEAR
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: port out of range:1114848
You should configure your Glassfish server to use a valid port i.e. somewhere in the range 1023 - 65535.
The axis runtime and application server have 2 different objectives. Check out the following article. It will help clear things up.
http://www.softwareagility.gr/index.php?q=node/21
right click on the java file -> Web Services -> Create Web Service.
Ivan Krizsan wrote:Hi!
Do NOT do the following when developing your web service:
right click on the java file -> Web Services -> Create Web Service.
The tools in Eclipse uses Axis or Apache CXF, not GlassFish (Metro).
What you need to do to develop the simplest form of web service in Eclipse and deploy it to GlassFish is:
- Create a dynamic web project.
- Develop your web service endpoint implementation class (annotated with @WebService etc).
- Deploy the project to GlassFish.
GlassFish will automatically generate the WSDL and other artifacts, as needed.
Best wishes!
Chris Stabler wrote:When you say "- Develop your web service endpoint implementation class (annotated with @WebService etc)." does that mean just create my java class?
i have multiple jar files that contains classes, and other various dependency classes.
3. Export the project to Glassfish.
Should i import that project by loading up the actual glassfish IDE? or does eclipse offer an export to a glassfish project? does it even matter?
Ivan Krizsan wrote:Hi!
Chris Stabler wrote:When you say "- Develop your web service endpoint implementation class (annotated with @WebService etc)." does that mean just create my java class?
Exactly!
i have multiple jar files that contains classes, and other various dependency classes.
Treat those as you would treat JAR files to be included in a dynamic web project, that is, place them in the designated web application library folder.
3. Export the project to Glassfish.
If you mean "Deploy to GlassFish", then you are correct.
Should i import that project by loading up the actual glassfish IDE? or does eclipse offer an export to a glassfish project? does it even matter?
Eclipse does not offer a specific GlassFish project. As before, you can use a regular Dynamic Web Application project and deploy it to GlassFish. You should have the latest GlassFish plugin installed in Eclipse and configured an instance of a GlassFish server, also in Eclipse.
As you may already know, the procedure to deploy a web application in Eclipse is:
- Right-click on the project node in the Package Browser window.
- Select "Run As" and select "Run on Server".
- Select the configured GlassFish server.
Hope this helps!
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|