NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

hello world java web app works with tomcat but not with glassfish

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
engrgrl



Joined: 26 Jun 2012
Posts: 2

PostPosted: Wed Jun 27, 2012 12:51 pm    Post subject: hello world java web app works with tomcat but not with glassfish Reply with quote

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.





PostPosted: Fri Jun 29, 2012 2:56 pm    Post subject: Re: hello world java web app works with tomcat but not with glassfish Reply with 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>
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.





PostPosted: Sun Jul 01, 2012 7:20 am    Post subject: Re: hello world java web app works with tomcat but not with glassfish Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo