quality@glassfish.java.net

Re: New version of Eclipse plugin for glassfish published (v1.0.12)

From: Judy Tang <Judy.J.Tang_at_Sun.COM>
Date: Tue, 21 Oct 2008 09:02:09 -0700

Thanks dinghy for sharing your expertise with us. If you see any GF
Eclipse issue (after discussion here), please
use the following link Davis gave to help us to file it.

https://glassfishplugins.dev.java.net/issues

Thanks,
Judy
dinghy wrote:
> Well,thanks for your patience...your analysis covers the workflow of
> project--test...
> For the " unlocking bug",we usually take it as below,
>
> First,if we have the same web-app running on different web-servers or
> app-servers,these servers' plugins for eclipse show normally the same.
> However,the WebApp on GF-Eclipse runs into the errors before while Ok
> on Tomcat-Eclipse.
>
> And if we abandoned the eclipse work environment,only for a
> deployed-package as WAR ,we can see
> the same result running happily on prior different servers.
>
> So we have to drag our mind to bugs for GF plugin,as you see.
>
> At last, here is an example to reproduce your hope to check the
> bug...may it be of use for you and us.
>
> The example is from BIRT project.
>
> http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_3_1-200809221151/birt-runtime-2_3_1.zip
>
>
> download the birt-runtime zip,and extract the* WebViewerExample* from
> in. Clone an dynamic Web project on Eclipse IDE,deploy it to GF v3b28b by
> GF plugin for Eclipse. Remember to add common-logging.jar to
> WEB-INF\lib, or you will face the NO-CLASS-FOUND ERROR.
>
> Usually you will see things as below:
>
> GlassFish: Error Deploying
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\WEB-INF\platform\configuration\org.eclipse.core.runtime\.manager\.tmp41237.instance.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\WEB-INF\platform\configuration\org.eclipse.equinox.app\.manager\.tmp41235.instance.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\WEB-INF\platform\configuration\org.eclipse.osgi\.manager\.tmp41232.instance.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\logs\org.eclipse.datatools.connectivity.oda_2008_10_21_20_58_49.log.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\logs\org.eclipse.datatools.connectivity.oda_2008_10_21_20_58_49.log.lck.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\logs\org.eclipse.datatools.enablement.oda_2008_10_21_20_58_49.log.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\logs\org.eclipse.datatools.enablement.oda_2008_10_21_20_58_49.log.lck.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\logs\ReportEngine_2008_10_21_20_58_57.log.
> May be locked by another process.
> Could not delete
> D:\server\glassfish\v3b28b\glassfish\domains\domain1\eclipseApps\WebViewerExample\logs\ReportEngine_2008_10_21_20_58_57.log.lck.
> May be locked by another process.
> However,if you deploy the same app to tomcat 6 with tomcat plugin for
> eclipse, you can't find the same errors.
>
> And now deploy the war to Tomcat 6 and GlassFish v3b28b
> seperately......all runs OK.
>
> Thanks for your patience again,looking forward to your attention and
> plan to fix it,even if it may not be a bug of GF-PlugIn.But we do
> encounter the same problem,which depresses our interest and leaves us
> in trouble.
>
> the same error does not appear at MyEclipse's plugin for GF,but
> MyEclipse has only the V1&V2 plugins...
>
> If it's so hard to fix the problem, at least the plugin may act as below:
> when removing the useless temporary files or documents, unlock them
> first from Useless Procedures,
>
>
>
> ------------------ Original ------------------
> *From: * "Ludovic Champenois"<Ludovic.Champenois_at_Sun.COM>;
> *Date: * Tue, Oct 21, 2008 10:42 AM
> *To: * "quality"<quality_at_glassfish.dev.java.net>;
> *Subject: * Re: New version of Eclipse plugin for glassfish published
> (v1.0.12)
>
> dinghy wrote:
> > OK...I am looking forward to fix this bug. BTW,Judy,the bug is from
> > the eclipse plugin,not the glassfish v2/3~~:)
>
> Well, I need to understand the bug and a set of steps to reproduce it in
> order to possibly fix in in the Eclipse Plugin...
>
> But I still doubt that some Eclipse plugin code can fix file locking on
> the App Server runtime area.
> Of course, if there is a way, we will implement it, assuming we have a
> small test case that reproduce the issue.
> I've seen so many other issues related to file locking with GF (and not
> really related to GF but more to the framework libraries like spring or
> hibernate or jsf component libraries) that I need to understand if there
> is another test case that could involve Eclipse code...
>
> Thanks for adding more info,
> Maybe if you give us a war file to test outside Eclipse that would help
> to detect to root cause for the locking.
> You can also read and try
> http://blogs.sun.com/quinn/entry/tool_for_diagnosing_failed_glassfish
> As you see, it is not a recent issue, and at that time, was not related
> to Eclipse:-)
>
> Ludo
> > I don't know whether it's in the fishcat roadmap control.
> > But I think it's very necessary to fix it for so many eclipse users....
> > Because of the bug,I have to change my developping environment to
> > Tomcat 6...and finally to deploy the App on GlassFish without any
> > compatibility test between GF and TC.
> > OS: windows xp sp3
> > Eclipse Version: Birt-All-in-One 2.3.1
> > GlassFish:v3 b28b
> > JDK: 15015
> > Tomcat:6018
> >
> >
> >
> > The WebApp includes Struts1/2,Spring2.5,Hibernate3....
> >
> > Temporal Methods are :
> > 1/ Install the software named "UNLOCKER"
> > 2/ Locate to the position when the error "XXXX logs/XXX-log or tmp
> > file was locked,deploy failed" comes out.
> > 3/ RightClick the document which contains the file(s),"UNLOCKER" it
> > ,usually you will have to kill some "java(w).exe" procedures.
> > 4/ Now you may deploy your webApp to "synchronized" :) but next time
> > .....
> >
> >
> >
> > ------------------ Original ------------------
> > *From: * "Judy Tang"<Judy.J.Tang_at_Sun.COM>;
> > *Date: * Tue, Oct 21, 2008 09:33 AM
> > *To: * "quality"<quality_at_glassfish.dev.java.net>;
> > *Subject: * Re: New version of Eclipse plugin for glassfish published
> > (v1.0.12)
> >
> > Hi dinghy,
> >
> > Did you also ran into this kind issue ? Would you like to share your
> > thoughts with us :-)
> >
> > Thanks,
> > Judy
> > dinghy wrote:
> > > still the bug for the no-handling locks by java.exe(tomcat) .........
> > > no so lucky
> > >
> > >
> > > ------------------ Original ------------------
> > > *From: * "Survivant 00"<survivant00_at_gmail.com>;
> > > *Date: * Tue, Oct 21, 2008 03:21 AM
> > > *To: * "quality"<quality_at_glassfish.dev.java.net>;
> > > *Subject: * Re: New version of Eclipse plugin for glassfish published
> > > (v1.0.12)
> > >
> > > I got a new problem.
> > >
> > >
> > > I delete a jar from my web-inf/lib
> > >
> > > did a refresh on the project.. did a CLEAN..
> > >
> > > and I git a nice error popup : /unable to delete file [xxxx.jar].
> > > look like GF is not able to unload a jar that was used.
> > >
> > >
> > > and the jar in
> > >
> >
> C:\glassfishv3-prelude\glassfish\domains\domain1\eclipseApps\GrizzlyBuilder\WEB-INF\lib
> > >
> > > is still present.
> > >
> > > I will have to stop GF.. and redeploy.
> > >
> > > can it be fixed ?
> > >
> > >
> > >
> > >
> > > 2008/10/20 Davis Nguyen <Davis.Nguyen_at_sun.com
> > > <mailto:Davis.Nguyen_at_sun.com>>
> > >
> > > Hi Survivant/Ludo
> > >
> > > I tried to reproduce this problem on a fresh installation
> > > Glassfish Prelude-b28b and the Glassfish Plugin 1.0.12, but I
> > > still could not.
> > > One thing I notice that if I started the server from command line,
> > > the status does not get updated. However, The stop server command
> > > works opposite. The server status get updated?
> > > -davis
> > >
> > > Survivant 00 wrote:
> > >> to solve the problem is to stop GF (process tab.. STOP) and
> > >> restart it.. it will fix it.
> > >>
> > >> not able to reproduce it either.. I had the same problem with WAS
> > >> 6, but it was not hard to obtain it :)
> > >>
> > >>
> > >>
> > >>
> > >> 2008/10/20 Ludovic Champenois <Ludovic.Champenois_at_sun.com
> > >> <mailto:Ludovic.Champenois_at_sun.com>>
> > >>
> > >> Survivant 00 wrote:
> > >>
> > >> little problem. running GFv3_preludeb28b and
> > gfpluggins 1.12
> > >>
> > >> I started GF with the servers.. did a "clean ..." but
> > >> aftert few seconds I receive a popup : "startup failed..
> > >> something like that", but the server didn't failed.. it
> > >> was just slow. and now it's fully started, but in the
> > >> console servers: GF is stopped, but actually it's
> running.
> > >>
> > >>
> > >> I've seen that, but not sure how to reproduce.
> > >> Does an eclipse restart solves the issue (in fact, if this is
> > >> what I think, the popup message indicates to do that:-)
> > >> If not, what do you see when you double click on the server
> > >> node in the server editor? are the port numbers correct or
> > >> not, or the domain dir?
> > >> If they are incorrect, the only current workaround is to
> > >> delete this server and re-register it to the IDE...
> > >> Still investigating....
> > >> ps: it is amazing to see Spring startup time to be so
> > >> slooowwww....
> > >> Ludo
> > >>
> > >>
> > >>
> > >>
> > ------------------------------------------------------------------------
> > >>
> > >>
> > ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> > >> quality-unsubscribe_at_glassfish.dev.java.net
> > >> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
> > >> For additional commands, e-mail:
> > >> quality-help_at_glassfish.dev.java.net
> > >> <mailto:quality-help_at_glassfish.dev.java.net>
> > >>
> > >>
> > >>
> > >>
> > ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> > >> quality-unsubscribe_at_glassfish.dev.java.net
> > >> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
> > >> For additional commands, e-mail:
> > >> quality-help_at_glassfish.dev.java.net
> > >> <mailto:quality-help_at_glassfish.dev.java.net>
> > >>
> > >>
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net