

war is built you should navigate to the “dist” directory and compare the. war file it’s very important to validate it was a successful build. If you do not do this then the GlassFish server may throw dependency errors to the server log and you will have a corrupt build.Īfter you have built your. Before you clean and build your web application it is important to make sure your GlassFish server is stopped. Whilst building, the web application will create and place the. war file from the “dist” directory, this is usually located in “NetBeansProjects\myApplication\dist”. war is what you deploy to your GlassFish server.Ĭleaning your NetBeans web application will delete the. war contains the actual built web application along with the html, java, jsp and javascript. jar contains all of your libraries, resouces and property files whilst a. Directly trying to access the server via a URL won’t work, the URL must include the correct port numbers. If you have problems accessing your GlassFish server then ensure you are accessing it on the correct port, by default the administration port is 4848.
#Glassfish blog windows#
war file to the GlassFish server it’s important to ensure that you use the correct spelling and case sensitivity, this is because to ensure your web application has cross-platform support you need to take into account that Windows is case In-Sensitive whilst Unix is case Sensitive. Using GlassFish and NetBeans makes it very easy to mix and match technologies (HTML5/CSS/JAVA). NetBeans also allows you to access many GlassFish features such as deploying/undeploying web applications and controlling the server state directly from the IDE.
#Glassfish blog download#
The reason why we use the NetBeans IDE when working with web applications and GlassFish is because NetBeans has fantastic GlassFish support, you can download the NetBeans Java Enterprise Edition (EE) which comes with GlassFish pre-installed. A great thing about GlassFish is that you can run it on a single machine for testing and development and it allows non-java developers to access our Java server application via web services (we can sell Java to non-Java users!).
#Glassfish blog pdf#
For example, at PDF we run our online PDF to HTML5 converter on a GlassFish server. It’s a server that you can run and test your web applications on. GlassFish is a fully-blown web-application server. In this article I intend to share our lessons learned using GlassFish and NetBeans to save you time and ridicule from your peers. Lessons Learned Using GlassFish and NetBeansĪfter my talk at JavaOne2013 I felt there was some really useful material which deserved a wider audience so I have decided to use some of it as the basis of this blog article.Īt IDR Solutions we use GlassFish and NetBeans on a daily basis, so we’ve had our fair share of mistakes and gotchas. Nathan also enjoys writing technical blog-articles and playing games in his spare time. Nathan Howard Nathan is a Java/HTML5 developer.
