glassfish failed to start-Collection of common programming errors
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)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
BUILD FAILED (total time: 20 minutes 4 seconds)
Nothing is helping. Only when I deinstall Glassfish and isntall again it works (can start), but again – till next reloading of NetBeans.
added: log file
The solution is found. See here
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.
Thus with a subsequent start the Java DB finds a process listening to port 1527 already resulting in this error.
Thanks to everyone for helping!)
-
check you server logs. the logs can be found in
glassfish_home\glassfish\domains\\logs
(e.g. C:\glassfish3\glassfish\domains\domain1\logs). it could be due to an error in your web.xml or other configuration files. -
There are a lot of exception in the log file. You have to identify the one that may cause the error.
A guess: (from your log file):
[#|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] com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: jsf.main.MainManagedBean. Caused by: java.lang.NullPointerException at ejb.sbs.StudentFacade.findById(StudentFacade.java:31) at jsf.main.MainManagedBean.(MainManagedBean.java:54)
One of your beans can’t be created. Check what’s wrong with your code at StudentFacade.java:31
Originally posted 2013-12-02 20:57:13.