Skip to content

Troubleshooting FAQs

alejandrort edited this page Jul 9, 2019 · 1 revision

Here you can find the most common errors that some previous students have found

Problem

The Glassfish link is missing when creating a new server. It sometimes happen during the first creation of a GlassFish server that the option for GlassFish is not found

Solution

These links solved most of the cases for the issue described above:

https://stackoverflow.com/questions/45995725/eclipse-oxygen-download-additional-server-adapters-link-missing

https://stackoverflow.com/questions/45641337/how-to-add-glassfish-server-to-eclipse-oxygen


Problem

The command prompt console (e.g., CMD in Windows) recognizes "java" but it does not recognizes "javac".

Solution

Sometimes the installations need a restart of the console or even the machine. After rebooting the computer both enviromental variables should be detected.


Problem

The command "java" does not show the version I installed.

Solution

Sometimes more than one JRE is installed in the same machine. It is important that the Environment Variables are properly pointing to the right java Paths. Make sure you double check that the paths do not contain typos! You can find how to set these variables in the page Install the Java Development Kit (JDK).


Problem [in OSX]

Java is recognized but not Maven.

Solution

There might be some error in the paths when using "nano" command.


Problem [specific from one student with some conflicts from other course projects]

He could not run the projects provided in this github. The problem were coming from some interference with another software called "Anaconda" and Glassfish.

How he identified the problem:

In the terminal, write "which asadmin".

If the response is "/anaconda/bin/asadmin" or anything other than "/opt/glassfish4/bin/asadmin" that might be the source of the problem.

Solution

Open "~/.bash_profile" and comment out every line that has to do with "anaconda" or "python".

Save, and execute "source ~/.profile" to run the new setup.

Restart eclpise.


Problem [This happens last year for people coming from UiB]

You may have a problem connecting to the DB or deploying the app. The problem may be solved using a VPN.

Solution

To connect to the UiB VPN follow this guide: https://it.uib.no/Tilkobling_til_UiBs_nettverk_utenfra.