0

due to some company requirement I have enable the asadmin> create-service and set the GlassFish Server as a windows service while setting it to Start in a Automatic way. I am using Netbean 8.0. However after I enable the Glassfish server service in auto method and when I try to deploy a Try sample project (Java Web) in Netbeans, after I RUN the project I got the following error in the Internet explorer.

HTTP Status 500 - Internal Server Error


Exception report

Internal Server Error

The server encountered an internal error that prevented it from fulfilling this request.

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac.  A full JDK (not just JRE) is required

The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.

However when I remove the Glassfish server from windows service list and when I run the project back, then it successful.

since I have no idea on java and all, can kindly help me to find the root cause of this or what is the workaround?

Thanks Hasitha

Namphibian
  • 11,705
  • 7
  • 45
  • 70
  • “A full JDK (not just JRE) is required.” – lxg Sep 09 '14 at 21:51
  • You should provide a full JDK, or server JRE. If it's installed, the fish doesn't find it, and just sees another, std JRE installation. See [here](http://stackoverflow.com/questions/10444959/how-do-i-specify-the-jdk-for-a-glassfish-domain) to learn how to point a Glassfish installation to a JDK installation. – fvu Sep 09 '14 at 21:54
  • Hi Thank you very much for your support because I am zero knowledge on this area.. I will look in to this now and let you know. – Hasitha Sep 09 '14 at 22:04
  • Hi ,I tried it But no luck. IN my case I refer to the below link to enable the glassfish server service Automatically as a windows service. link is as follows "http://docs.oracle.com/cd/E19798-01/821-1751/gglqp/index.html" however I can successfully start the glassfish server service as well. but the error occurs when I run the project. – Hasitha Sep 09 '14 at 22:16
  • show us your asenv.conf file please. – fvu Sep 09 '14 at 22:17
  • Hi,sorry. as you mentioned I tried it again modifying the asenv.bat. it is success. earlier there was a typo error. :). thanks for the great support sir. – Hasitha Sep 09 '14 at 22:32

0 Answers0