On 12 oct, 04:12, JDragon314159 <zhaoli...@gmail.com> wrote: > Hi Michele: > > I removed the application from Glassfish v3 but was not able to do > this in Glassfish v2 from the Services tab. Yes, it is difficult to remove an application from GlassFish v2, since there is no mechanism included in the server to do it as in GlassFish v3.
The first time I've tried to do it, I could not find a way, so I simply threw away GlassFish v2 installation and installed it again. Next I've found a way to do it but I did not remind exactly how. You should first stop the server, remove any traces of your application in GlassFish particular domain (you have to go in any subfolder to be sure there is not something left), then you have to change the configuration file which recaps all installed web applications (I don't remember the name but it is easy to find it) and remove all references to this application again), next reboot to be sure there is no cache session left, then start GlassFish again. But by the time you achieve this, you would have probably reinstalled GlassFish v2 three or four times. Hence if you have not any critical application on your server, the best way to get rid of this issue is to throw away the GlassFish v2 installation and reinstall it again. > The server from the run menu is set to Glassfish 2 and running under > J2EE 1.4. There is not option to run under J2EE 1.5. This is because you have not declared the right Java platform in NetBeans probably. > We are to run the projects in Glassfish v2 for this course??? Normally you would have to install at least NetBeans 6.7. I'll guess NetBeans 6.8 and NetBeans 6.9 work, but the sample are different for 6.8 and 6.9 since the GlassFish server is not the same. In any case, you should choose the full installation (or JE22 installation). I'll guess that Java 1.5 or 1.6 is the preferred Java version, I doubt anything work with J2EE 1.4. This is what I have done to get hello2 run in NetBeans 6.8, GlassFish v3, J2EE 1.5 platform. 1 - In the hello2 project, you have to change the j2ee.platform=1.4 to j2ee.platform=1.5 in the project.properties file (Files->nbproject). Save the file. 2. Next you change the source/binary format to JDK 5 or JDK 6 as you want via right-clicking on the project select properties sources tab, click ok to save the change. 3. Clean and build the project >From there you may follow the lab more or less (that is some screenshot are a little old but basically this is the same process, accept default when there are some default to accept). It runs fine for me just now. Michèle Garoche -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en