Deployment Error The Glassfish Application Server Could Not Start
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the glassfish web server company Business Learn more about hiring developers or posting ads with us Stack Overflow
Glassfish Jboss
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 glassfish tomcat million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot start GlassFish 4.1 from within Netbeans 8.0.1 Service area up vote 7 down vote favorite 2 On Windows could not start glassfish server http or https listener port is occupied 7 I downloaded the 'netbeans-8.0.1-javaee-windows.exe' installer from this site https://netbeans.org/downloads/. The installer installs GlassFish 4.1, Java 1.8.0_20 and NetBeans 8.01. After installation, whenever I try to start the GlassFish server from within the NetBeans Services area, I get this 'Could not start GlassFish Server 4.1: HTTP or HTTPS listener port is occupied while server is not running' error. So I used netstat -ano | find "1527" to find out which process is holding
Could Not Start Glassfish Server 4.1 Listener Port Is Occupied
this port and as it seems it is the Java Derby database itself that was just started by the GlassFish process. So the Glassfish startup is complaining about something it just caused itself. Strange. I don't know what to do. Anybody any idea? Thanks already. java netbeans glassfish share|improve this question asked Sep 23 '14 at 20:51 Dominique Bijnens 58116 add a comment| 7 Answers 7 active oldest votes up vote 5 down vote accepted Your description is a little bit strange because the GlassFish server can even start if port 1527 is occupied, because the Java Derby database is a separate java process. So one option could be to just ignore the message in case that the real GlassFish server is indeed starting correctly (NetBeans displays the output for the GlassFish server and the Derby server in different tabs). Nevertheless you can try to disable starting the registered Derby server for your GlassFish instance. Make sure that the Derby server is shut down, it can even still run if you have closed NetBeans. If you are not sure kill every java process via the task manager and restart NetBeans. Right-click your GlassFish instance in the Services tab and choose Properties. If instead the real problem is that either port 8080 or 443 (if you ac
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about how to change the port of glassfish server in netbeans hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask netbeans administrator port is occupied by null Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join
How To Change Glassfish Port
them; it only takes a minute: Sign up cant start glassfish within netbeans up vote 2 down vote favorite when i click on Run it displays and error message: Starting GlassFish v3 Domain GlassFish v3 Domain start failed. /Volumes/Private/noname/Sites/projects/java/MyFirstServlet/nbproject/build-impl.xml:602: http://stackoverflow.com/questions/26004517/cannot-start-glassfish-4-1-from-within-netbeans-8-0-1-service-area Deployment error: GlassFish v3 Domain start failed. See the server log for details. BUILD FAILED (total time: 2 minutes 0 seconds) but then i fire up Terminal in mac and use asadmin start-domain and it starts. and in netbeans i then Run the project and it fires up Safari and displays the content. but why cant glassfish start in netbeans? any idea? java netbeans glassfish share|improve this question edited Jan 10 '10 at 17:26 asked Jan 10 '10 http://stackoverflow.com/questions/2037726/cant-start-glassfish-within-netbeans at 17:01 ajsie 20.7k63212329 2 Please, provide the full error/trace, my crystal ball isn't working well those days. –Pascal Thivent Jan 10 '10 at 17:08 please read my updated post –ajsie Jan 10 '10 at 17:26 >> See the server log for details. << the content of this could be useful. –Pascal Thivent Jan 10 '10 at 18:38 if the file server.log is what they mean in the domain folder than i cant see anything regarding that issue. –ajsie Jan 10 '10 at 19:00 1 My server sometimes fails to start when another instance is already running... Re-start your IDE and kill all java tasks can help you. –Michael Bavin Jan 10 '10 at 20:31 add a comment| 10 Answers 10 active oldest votes up vote 3 down vote accepted I've met the same problem as I was learning java web programming, but in windows env. I've spent much time guessing what that error could mean because the log file wasn't clearly saying that. Finally I found out that glassfish v3 was trying to run on 8080 port, which was already occupied by reportingservicesservice.exe which is sql server service. I didn't get to know how to switch the port used by glassfish, but I found that in netbeans 6.8 (which I use) in tools->servers I can add a new glassfish server instance which runs on
glassfish server 4 administrator port is occupied by null Summary: could not start glassfish server 4 https://netbeans.org/bugzilla/show_bug.cgi?id=237477 administrator port is occupied by null Status: NEW Product: serverplugins Classification: Unclassified Component: GlassFish Version: 8.0 Hardware: PC Windows 8.1 x64 Priority: P3 with 3 votes (vote) TargetMilestone: TBD Assigned To: TomasKraus QA Contact: issues@serverplugins URL: loalhost:1527 Whiteboard: Keywords: Depends on: Blocks: Show dependency tree /graph Reported: 2013-10-22 13:19 UTC by ajacob Modified: 2016-06-07 09:26 UTC (History) CC List: could not 1 user (show) mkhramov See Also: Issue Type: DEFECT Exception Report : Attachments Server log (34.47 KB, application/octet-stream) 2014-01-03 15:41 UTC, ajqarshi Details View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description ajacob 2013-10-22 13:19:37 UTC Since I upgraded from Netbeans 7.3.1 could not start to Netbeans 7.4 I'm getting an error I never met before. When trying to deploy or redeploy an application I get this : NetBeans: Deploying on GlassFish Server profile mode: false debug mode: false force redeploy: true Starting GlassFish Server Could not start GlassFish Server: Administrator port is occupied by null Deployment error: Could not start GlassFish Server: Administrator port is occupied by null See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:258) at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:205) at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:123) at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:235) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) It's happening quite often but I've not yet found the steps to follow to reproduce the problem. What I can observe is that from Netbeans point of view Glassfish is not started (I can't stop it for example) To get rid of the problem I have to close Netbeans and then manually close Glassfish and restart everything. Without knowing if it is linked or not I should say that I'm often working with two different war projects deployed on the same glassfish instance. The problem can occur while deploying one of the two project (doesn't matter which one). Comment 1 ajqars