{"id":1838,"date":"2022-08-30T15:19:52","date_gmt":"2022-08-30T15:19:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/glassfish-failed-to-start-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:52","modified_gmt":"2022-08-30T15:19:52","slug":"glassfish-failed-to-start-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/glassfish-failed-to-start-collection-of-common-programming-errors\/","title":{"rendered":"glassfish failed to start-Collection of common programming errors"},"content":{"rendered":"<p>GlassFish failed to start. It happens every time I reload Netbeans (before that it worked fine). The following error occurs.<\/p>\n<pre><code>init:\ndeps-module-jar:\ndeps-ear-jar:\ndeps-jar:\nlibrary-inclusion-in-archive:\nlibrary-inclusion-in-manifest:\ncompile:\ncompile-jsps:\nStarting GlassFish Server 3.1\nC:\\Users\\???????\\Documents\\NetBeansProjects\\WebApplication4\\nbproject\\build-impl.xml:720: \nDeployment error:\nStarting of server GlassFish Server 3.1 has timed-out\nSee the server log for details.\n    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:200)\n    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)\n    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\n    at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n    at java.lang.reflect.Method.invoke(Method.java:597)\n    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\n    at org.apache.tools.ant.Task.perform(Task.java:348)\n    at org.apache.tools.ant.Target.execute(Target.java:390)\n    at org.apache.tools.ant.Target.performTasks(Target.java:411)\n    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)\n    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)\n    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)\n    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)\n    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)\n    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)\n    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)\nBUILD FAILED (total time: 20 minutes 4 seconds)\n<\/code><\/pre>\n<p>Nothing is helping. Only when I deinstall Glassfish and isntall again it works (can start), but again &#8211; till next reloading of NetBeans.<\/p>\n<p>added: log file<\/p>\n<p>The solution is found. See here<\/p>\n<blockquote>\n<p>When I start NB a javaw.exe and two java.exe are started. One is about 360K and the other that 30K java.exe which, as said, is not terminated, when NB terminates.<\/p>\n<p>Thus with a subsequent start the Java DB finds a process listening to port 1527 already resulting in this error.<\/p>\n<\/blockquote>\n<p>Thanks to everyone for helping!)<\/p>\n<ol>\n<li>\n<p>check you server logs. the logs can be found in <code>glassfish_home\\glassfish\\domains\\\\logs<\/code> (e.g. C:\\glassfish3\\glassfish\\domains\\domain1\\logs). it could be due to an error in your web.xml or other configuration files.<\/p>\n<\/li>\n<li>\n<p>There are a lot of exception in the log file. You have to identify the one that may cause the error.<\/p>\n<p>A guess: (from your log file):<\/p>\n<pre><code>[#|2011-05-18T14:24:07.223+0300|SEVERE|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.application|_ThreadID=25;_ThreadName=Thread-1;|Error Rendering View[\/profile.xhtml]  \ncom.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: jsf.main.MainManagedBean.    \n\nCaused by: java.lang.NullPointerException   \n    at ejb.sbs.StudentFacade.findById(StudentFacade.java:31)\n    at jsf.main.MainManagedBean.(MainManagedBean.java:54)\n<\/code><\/pre>\n<p>One of your beans can&#8217;t be created. Check what&#8217;s wrong with your code at <em>StudentFacade.java:31<\/em><\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-02 20:57:13. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>GlassFish failed to start. It happens every time I reload Netbeans (before that it worked fine). The following error occurs. init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Starting GlassFish Server 3.1 C:\\Users\\???????\\Documents\\NetBeansProjects\\WebApplication4\\nbproject\\build-impl.xml:720: Deployment error: Starting of server GlassFish Server 3.1 has timed-out See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:200) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1838","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1838"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1838\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}