NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
engrgrl
Joined: 26 Jun 2012 Posts: 2
|
Posted: Wed Jun 27, 2012 12:51 pm Post subject: hello world java web app works with tomcat but not with glassfish |
|
|
After getting very frustrated yesterday that I didn't know how to run the e-commerce tutorial on tomcat, i decided to uninstall everything netbeans and reinstall with glassfish as well so I could access the database.
I'm trying the most basic program: java web application as is the starter program without adding a single line of code, which should output hello world.
On tomcat, this works fine and I see "hello world" in the firefox browser.
However, on glassfish, nothing is appearing in firefox. a blank page that runs with no errors but no outputs.
As I just reinstalled everything this morning with the packaged tomcat and glassfish, i'm not sure what would be wrong such that only one server works. Is there something I need to do within glassfish to make it work or compatible with netbeans?
version are as follows in case it matters: apachee tomcat 7.0.22, glassfish server open source edition 3.1.2, netbeans ide 7.1.2, mozilla firefox 12.0 |
|
| Back to top |
|
 |
emiddio-frontier Posted via mailing list.
|
Posted: Fri Jun 29, 2012 2:56 pm Post subject: Re: hello world java web app works with tomcat but not with glassfish |
|
|
sounds like the default url is set to wrong location for the hello world
servlet to respond and the default servlet has no page to return.
----- Original Message -----
From: "engrgrl" <address-removed>
To: <address-removed>
Sent: Wednesday, June 27, 2012 5:51 AM
Subject: [nbj2ee] hello world java web app works with tomcat but not with
glassfish
After getting very frustrated yesterday that I didn't know how to run the
e-commerce tutorial on tomcat, i decided to uninstall everything netbeans
and reinstall with glassfish as well so I could access the database.
I'm trying the most basic program: java web application as is the starter
program without adding a single line of code, which should output hello
world.
On tomcat, this works fine and I see "hello world" in the firefox browser.
However, on glassfish, nothing is appearing in firefox. a blank page that
runs with no errors but no outputs.
As I just reinstalled everything this morning with the packaged tomcat and
glassfish, i'm not sure what would be wrong such that only one server works.
Is there something I need to do within glassfish to make it work or
compatible with netbeans?
version are as follows in case it matters: apachee tomcat 7.0.22, glassfish
server open source edition 3.1.2, netbeans ide 7.1.2, mozilla firefox 12.0 |
|
| Back to top |
|
 |
Marwa Ashraf Posted via mailing list.
|
Posted: Sun Jul 01, 2012 7:20 am Post subject: Re: hello world java web app works with tomcat but not with glassfish |
|
|
please write the 2 URLs u use in both tomcat and glassfish
also in netbeans check the Services window, servers glassfish and check that ur application is deployed on glassfish
On Fri, Jun 29, 2012 at 6:56 AM, emiddio-frontier <address-removed ([email]address-removed[/email])> wrote:
| Quote: | sounds like the default url is set to wrong location for the hello world
servlet to respond and the default servlet has no page to return.
----- Original Message -----
From: "engrgrl" <address-removed ([email]address-removed[/email])>
To: <address-removed ([email]address-removed[/email])>
Sent: Wednesday, June 27, 2012 5:51 AM
Subject: [nbj2ee] hello world java web app works with tomcat but not with
glassfish
After getting very frustrated yesterday that I didn't know how to run the
e-commerce tutorial on tomcat, i decided to uninstall everything netbeans
and reinstall with glassfish as well so I could access the database.
I'm trying the most basic program: java web application as is the starter
program without adding a single line of code, which should output hello
world.
On tomcat, this works fine and I see "hello world" in the firefox browser.
However, on glassfish, nothing is appearing in firefox. a blank page that
runs with no errors but no outputs.
As I just reinstalled everything this morning with the packaged tomcat and
glassfish, i'm not sure what would be wrong such that only one server works.
Is there something I need to do within glassfish to make it work or
compatible with netbeans?
version are as follows in case it matters: apachee tomcat 7.0.22, glassfish
server open source edition 3.1.2, netbeans ide 7.1.2, mozilla firefox 12.0
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|