简体   繁体   中英

Compatibility Glassfish and Eclipse for WebApplications

I tried some tutorials for creating Web Applications using Eclipse Neon 3, Hibernate, Spring and Glassfish server 4.1. I downloaded Glassfish Tools via Eclipse Marketplace, but I don't know how to solve my error about not publishing via Glassfish server the project. Could you tell me what is the compatibility between them? Glassfish tools don't refer to the Glassfish server 4.1, just 4. I read another questions and tried the solutions found there but it didn't work.

The error is: Could not publish to the server.

java.lang.NullPointerException
 cannot Deploy [project_name]
 deploy is failling = java.util.concurrent.TimeoutException

In Eclipse Project---> Clean --> Clean all projects---> ok. Try to run the project Run as server.

Right click on the Glassfish Server -> Properties -> GlassFish -> Tick on the Use JAR Archives for deployment. (at the bottom)

This might work.

And also if you get any domain related errors, just change the location of the installed Glassfish server from C: drive to other drives as Glassfish needs administrative access if placed in C: drive. So better place in other drives.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM