Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #876553] Thu, 24 May 2012 20:32 Go to next message
John Carter is currently offline John CarterFriend
Messages: 6
Registered: May 2012
Junior Member
I have the latest Glassfish 3.1.2 EE open source edition running on my Windows 7 machine. I have added the hello.war file and it runs just fine. But I cant get Eclipse build id 20120216-1857 to recognize this Glassfish installation.
I downloaded the server definition and its looking for Glassfish 3.1.2 Open source edition.
When I browse to the C:\...\glassfish3\glassfish directory it says its not valid installation of glassfish
I've tried changing the classpath environment variable to point to the JDK in the glassfish directory but not working.

Is it too new and I should install an older version?
Any help would be appreciated greatly.
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #881317 is a reply to message #876553] Mon, 04 June 2012 10:29 Go to previous messageGo to next message
Chris is currently offline ChrisFriend
Messages: 97
Registered: July 2009
Member
Check this post....

http://stackoverflow.com/questions/9001120/glassfish-3-1-2-and-eclipse


Cheers
Chris
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882091 is a reply to message #881317] Tue, 05 June 2012 20:40 Go to previous messageGo to next message
John Carter is currently offline John CarterFriend
Messages: 6
Registered: May 2012
Junior Member
Thanks I did check that out and may try to install Glassfish 3.1.1 at some point in the future. Since then I have installed Tomcat 7.0 with better success. Eclipse does recognize the Tomcat server but cant start or stop it correctly.
I have exported a simple Java EE project to a war file and had Tomcat deploy the war file. But the app doesn't work. It cant find the main servlet in the war file. I suspect the missing web inf xml file is the problem and hence the app doesn't work. How do I get eclipse to generate the web inf xml file for my project and included in the war file?

Thanks
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882104 is a reply to message #882091] Tue, 05 June 2012 21:24 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3248
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 6/5/2012 2:40 PM, John Carter wrote:
> Thanks I did check that out and may try to install Glassfish 3.1.1 at
> some point in the future. Since then I have installed Tomcat 7.0 with
> better success. Eclipse does recognize the Tomcat server but cant start
> or stop it correctly.
> I have exported a simple Java EE project to a war file and had Tomcat
> deploy the war file. But the app doesn't work. It cant find the main
> servlet in the war file. I suspect the missing web inf xml file is the
> problem and hence the app doesn't work. How do I get eclipse to generate
> the web inf xml file for my project and included in the war file?
>
> Thanks

When you create a new Dynamic Web Project, WebContent/WEB-INF/web.xml
will be created with a few likely defaults in it. Thereafter, it's up to
you to maintain it. When you generate the WAR file, it will be in there.
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882112 is a reply to message #882104] Tue, 05 June 2012 21:54 Go to previous messageGo to next message
John Carter is currently offline John CarterFriend
Messages: 6
Registered: May 2012
Junior Member
There is no web.xml file being generated.
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882123 is a reply to message #882112] Tue, 05 June 2012 22:21 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3248
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 6/5/2012 3:54 PM, John Carter wrote:
> There is no web.xml file being generated.

It's generated only at the creation of your Eclipse Dynamic Web Project.
If there, exporting the WAR file will include it.
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882150 is a reply to message #882123] Tue, 05 June 2012 23:54 Go to previous messageGo to next message
John Carter is currently offline John CarterFriend
Messages: 6
Registered: May 2012
Junior Member
I just created a Dynamic web Project and no web.xml file. I need a tutor with this program. Is there anyone in San Diego looking to make a few extra bucks or is there a class somewhere teaching eclipse?
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882467 is a reply to message #882150] Wed, 06 June 2012 14:01 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3248
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 6/5/2012 5:54 PM, John Carter wrote:
> I just created a Dynamic web Project and no web.xml file. I need a tutor
> with this program. Is there anyone in San Diego looking to make a few
> extra bucks or is there a class somewhere teaching eclipse?


Here's something for free:

http://www.javahotchocolate.com/wtp-tutorials/wtp-tutorial.html

There are also great tutorials at http://www.vogella.de.
Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition [message #882468 is a reply to message #882150] Wed, 06 June 2012 14:05 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
On 6/5/2012 7:54 PM, John Carter wrote:
> I just created a Dynamic web Project and no web.xml file. I need a tutor
> with this program. Is there anyone in San Diego looking to make a few
> extra bucks or is there a class somewhere teaching eclipse?
>

On the first page of the Dynamic Web Project wizard, you have a choice
of the "Dynamic web module version". If you choose a version less that
"3.0", then on the 3rd page of the wizard (the Web Module page) the
"Generate web.xml deployment descriptor" option will be checked by
default because it is required. However, with the "Dynamic web module
version" set to "3.0", the web.xml is optional. On the 3rd page, the
"Generate web.xml deployment descriptor" will not be checked by default.
Leaving it unchecked implies you will be declaring the "deployment
descriptor" contents using annotations in your Java classes instead of
using a web.xml.

If you have a "3.0" Dynamic Web Project and did not check the "Generate
web.xml deployment descriptor" option or add appropriate annotations to
your servlet, then I believe you are seeing expected behavior. You can
check the version of your project by opening the Project properties
dialog and selecting the Project Facets page. The version of the
"Dynamic Web Module" facet shows you the version for the project.

Cheers,
Larry
Previous Topic:jax-ws CFX - java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL
Next Topic:Can't get my web applications to deploy to Tomcat
Goto Forum:
  


Current Time: Sat Nov 29 01:42:01 GMT 2014

Powered by FUDForum. Page generated in 0.01836 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software