I'm going through a netbeans tutorial on Java ecommerce located here:
http://netbeans.org/kb/docs/javaee/ecommerce/setup-dev-environ.html

When I get to "running the web project, step 1", I click the green run button in the NetBeans IDE.

In my browser, it goes to http://localhost:8080/AffableBean, but no HTML is displayed.

If I view the admin domain console for glassfish, the click on applications, and click launch for my affable bean project, a window comes up with two options that says:

Application Name:
AffableBean
Links:
[server]    http://Andres-PC:8080/AffableBean
[server]    https://Andres-PC:8181/AffableBean

If I click the second one, the https option, the html is displayed and all is well.

What is going on here, and why can't I just run it directly from the NetBeans IDE?

I am running netbeans 7.1.1 and Glassfish 3.1.2

Member Avatar for LastMitch

What is going on here, and why can't I just run it directly from the NetBeans IDE?

This is a connection issue.

Did you follow it the Instructions Running the Web Project closely:

http://netbeans.org/kb/docs/javaee/ecommerce/setup-dev-environ.html#run

Try this first just to see you are link correctly:

http://netbeans.org/kb/docs/javaee/ecommerce/page-views-controller.html

Then run the Running the Web Project again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.