On a Mac I developed and runned a Java EE application succesfully.
It is an EAR with a EJB module and a Web module.
Now continuing on a Linux device (Ubuntu) , I cant start exactly the same application anymore.
And with Netbeans with all the same result:
After building with dependecies and running.
It tells its succesfully running. But in services Servers/glassfish Server/applications/ nothing appears and the output is the server.log:
What could be the problem?The app did not change, its the environment.
Please help me out.
I would love to continue developping this app!
Well I've installed Ubuntu on my Mac and retrieved the code with git.
So unfortunately I can´t compare with my Mac (anymore).
The persistence unit created the DB automatically when not already available, the db was the default javadb. This is how it worked on my Mac, just out of the box.
The other WAR application besides the EJB container contains no persistence parts and shows a 404 error in the browser. So here the entity manager is not the problem, is my conclusion.
Where can I select the JNDI name?
After googling around I found the problem had to do with syntax.
Is the´re a quick overview (manual) available to understand how to setup glassfish?
The´re is probably an easy way to understand glassfish that I´m just missing.
Apache has just a couple of configuration files almost all in the same default folder.
I found the domain.xml file. ~/glassfish4/glassfish/domains/domain1/config/domain.xml In that file I wasn't able to find anything about the com.sun.appserv.*. packages. The app used to work with this default file (on Mac). With the asadmin terminal I tried to add custom Resources. And they whe're Listed. After restarting glassfish no different result.