Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/876553/#msg_876553
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.]]>John Carter2012-05-24T20:32:07-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/881317/#msg_881317
http://stackoverflow.com/questions/9001120/glassfish-3-1-2-and-eclipse
Cheers
Chris]]>Chris2012-06-04T10:29:49-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882091/#msg_882091
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]]>John Carter2012-06-05T20:40:15-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882104/#msg_882104
> 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.]]>Russell Bateman2012-06-05T21:24:32-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882112/#msg_882112
John Carter2012-06-05T21:54:07-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882123/#msg_882123
> 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.]]>Russell Bateman2012-06-05T22:21:31-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882150/#msg_882150
]]>John Carter2012-06-05T23:54:41-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882467/#msg_882467
> 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?
There are also great tutorials at http://www.vogella.de.]]>Russell Bateman2012-06-06T14:01:40-00:00Re: Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
https://www.eclipse.org/forums/index.php/mv/msg/355098/882468/#msg_882468
> 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.