MyEclipse: Autodeployement and stop on break point [Closed]

ayc868 - Nov 17, 2004 - 11:00 PM
Post subject: Autodeployement and stop on break point [Closed]
I suddenly can not auto deploy my file(JSP or Java) to Tomcat
after make change, also, toggle breakpoint, no longer stop on the
breakpoint. DO they have any relation? They come almost at the ame time. They both working before last week. Do I accidentally change something?
support-rkalla - Nov 18, 2004 - 05:06 PM
Post subject:
Try and remove your deployment and recreate it. If this doesn't work, then deploy your app with an exploded deployment, open up your Eclipse log file (workspace dir\.metadata\.log) and then change a file in your project that would normall cause a hot-deploy, then check the log file.. is there an exception?
ayc868 - Nov 18, 2004 - 06:43 PM
Post subject:
I delete the deployment under Tomecat webapps and redeploy use Myeclipse still doesn't work.
The metadata was a error show below, but Nov 18th look no error. I don't what to change, please advice.


Quote:


at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
!SUBENTRY 1 org.eclipse.core.resources 4 566 Nov 17, 2004 11:37:47.84
!MESSAGE An error occurred while traversing resources.
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.taglib.AbstractWebTaglibLocator.getServerRoot(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibLocator.calculateURIForFile(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator.searchTLDFile(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator.searchFile(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator$2.visit(Unknown Source)
at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator.search(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.searchForTaglibs(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.processFile(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry$1.visit(Unknown Source)
at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.handleResourceModified(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.handleResourceAdded(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.refresh(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.<init>(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.WebTaglibRegistry.<init>(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager.createNewRegistry(Unknown Source)
at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager.getTaglibRegistry(Unknown Source)
at com.genuitec.eclipse.j2eedt.core.J2EEProjectUtil.getTaglibURIStream(Unknown Source)
at com.ibm.sse.model.util.ProjectResolver.getURIStream(Unknown Source)
at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager.loadTaglib(Unknown Source)
at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager.getCMDocument(Unknown Source)
at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.enableTaglibFromURI(Unknown Source)
at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processTaglib(Unknown Source)
at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processTaglib(Unknown Source)
at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.nodeParsed(Unknown Source)
at com.ibm.sse.model.xml.internal.parser.XMLSourceParser.fireNodeParsed(Unknown Source)
at com.ibm.sse.model.jsp.parser.JSPSourceParser.parseNodes(Unknown Source)
at com.ibm.sse.model.xml.internal.parser.XMLSourceParser.getDocumentRegions(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.setText(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.set(Unknown Source)
at com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.setDocument(Unknown Source)
at com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.processPostModelEvent(Unknown Source)
at com.ibm.sse.model.LifecycleNotificationManager.signalLifecycleEvent(Unknown Source)
at com.ibm.sse.model.AbstractStructuredModel.signalLifecycleEvent(Unknown Source)
at com.ibm.sse.model.AbstractStructuredModel.setStructuredDocument(Unknown Source)
at com.ibm.sse.model.xml.internal.document.XMLModelImpl.setStructuredDocument(Unknown Source)
at com.ibm.sse.model.AbstractModelLoader.load(Unknown Source)
at com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
at com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
at com.ibm.sse.model.ModelManagerImpl.getModelForRead(Unknown Source)
at com.ibm.sse.model.jsp.internal.java.search.JSPSearchDocument.createCompilationUnit(Unknown Source)
at com.ibm.sse.model.jsp.internal.java.search.JSPSearchDocument.<init>(Unknown Source)
at com.ibm.sse.model.jsp.internal.java.search.JSPSearchSupport.addJspFile(Unknown Source)
at com.ibm.sse.model.jsp.internal.java.search.JSPIndexManager$2.visit(Unknown Source)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
at com.ibm.sse.model.jsp.internal.java.search.JSPIndexManager$1.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

!ENTRY com.ibm.sse.model.jsp 2 2 Nov 17, 2004 17:07:22.889
!MESSAGE SAXParseException while reading descriptorValue must be quoted.

!ENTRY com.ibm.sse.model.jsp 2 2 Nov 17, 2004 17:07:22.982
!MESSAGE SAXException while reading descriptororg.xml.sax.SAXParseException: Value must be quoted.

support-rkalla - Nov 18, 2004 - 08:01 PM
Post subject:
Quote:
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.taglib.AbstractWebTaglibLocator.getServerRoot(Unknown Source)

Strange! Can you open your project properties and go to "MyEclipse-Web", do you have a Web Root and Context Root setup? Are either of them blank?
ayc868 - Nov 18, 2004 - 11:58 PM
Post subject:
Both have value, but I use 'web' instead of using 'WebRoot' as
normal MyEclipse default. I use 'web' for a long time.
ayc868 - Nov 19, 2004 - 12:33 AM
Post subject:
my other big problem is Debug no long work as well. AutoDeploy is tighted with Debug.
support-rkalla - Nov 19, 2004 - 12:35 AM
Post subject:
Using 'web' should be fine...

Can you shut down Eclipse, erase your log file, then restart Eclipse and then erase and recreate your deployment, then start your application server, then make some changes that would cause an autodeploy and check your log file? Does it exist? Are there any exceptions in it?

I want to make sure we are tracking down the right problem here...
ayc868 - Nov 19, 2004 - 12:37 AM
Post subject:
ayc868 wrote:
my other big problem is that Debug no long work. AutoDeploy is tighted with Debug I believe

support-rkalla - Nov 19, 2004 - 12:38 AM
Post subject:
Debugging is broken too? There must have been something that changed on your machine recently.... try checking your JDK version and Application server version... what are they? What version of Eclipse are you using?
ayc868 - Nov 19, 2004 - 12:42 AM
Post subject:
Which log file? Tomcat or MyEclipse Metadata
ayc868 - Nov 19, 2004 - 12:45 AM
Post subject:
My JDK, WEB Server, and MyEclipse have never change for at least two months. Autodeployment and debug is still working last week.
ayc868 - Nov 19, 2004 - 01:31 AM
Post subject:
My JDK, WEB Server, and MyEclipse have never change for at least two months. Autodeployment and debug is still working last week. The only different is working on different project this week. I just proved that my the other project debug is still working
support-rkalla - Nov 19, 2004 - 01:51 AM
Post subject:
The Eclipse log file (workspace dir\.metadata\.log).

Please tell me what your JDK/WEbServer and MyEclipse version are.

Can you look into your .mymetadata file and compare the two files between the Working project and the Not Working project? Is the 'not working' project a Web Project or a Java Project?
ayc868 - Nov 19, 2004 - 05:49 PM
Post subject:
I only see either .metadata(on webapps) or .myeclipse(on each project). .metadata only content .log
.myeclipse is empty for every project.

WEbServer Tomcat 5.0
JDK 1.4.2_02
MyEclipse 3.8.2
support-rkalla - Nov 19, 2004 - 06:52 PM
Post subject:
You should have a file .mymetadata for each file, you likely have to change to the Navigator view to see it... do the contents look similar?
ayc868 - Nov 19, 2004 - 07:11 PM
Post subject:
Quote:

<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="min_mgt"
id="myeclipse.1088119853147"
context-root="/min_mgt"
j2ee-spec="1.3"
archive="min_mgt.war">
<attributes>
<attribute name="webrootdir" value="web" />
</attributes>
</project-module>


The following is workable one

Quote:

<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="acct_mgt6"
id="myeclipse.1097879197642"
context-root="/acct_mgt6"
j2ee-spec="1.4"
archive="acct_mgt6.war">
<attributes>
<attribute name="webrootdir" value="web" />
</attributes>
</project-module>

support-rkalla - Nov 19, 2004 - 10:36 PM
Post subject:
ayc,
After discussing this with a dev we'd like to see you try the following:

Create a new 1.3-spec project with a simple, default
JSP page and deploy that and see if it works.

Also, please make sure that you shut down tomcat, delete the deployment
within MyEclipse (and confirm the deletion on the file system using Windows explorer or equivalent file browser), create a new
deployment, then restart Tomcat. Don't do this with Tomcat running.

One more thing, select all breakpoints in the breakpoints
view and delete them. Then just put back 1 trial breakpoint into one JSP
page in the problem project. Does it work? Can he set a breakpoint and hit
it in a Java class in the same project?
ayc868 - Nov 20, 2004 - 01:54 AM
Post subject:
I don't remember what I did, probably just deleted and redeployed project, and
I got syntax problem.

BillingPlanDAO billingPlanDao = new BillingPlanDAOImpl(dbProps);
ApprovedRadioDAO dao = new ApprovedRadioDAOImpl(dbProps);

it keep saying symbol BillingPlanDAO and ApprovedRadioDAO can not be resolved.
for my experience, this should be a simple case. I check again and again, and it is there.
The old working JSP suddenly has symbol reference problem. PLease help on this first, before go an further.
ayc868 - Nov 20, 2004 - 02:00 AM
Post subject:
I remember one thing. MyWin XP virtual memory ran low while myEclipse still on-line.
My hard drive was running and locked my whole system, and can not reboot. I power off my PC.
support-rkalla - Nov 20, 2004 - 02:04 AM
Post subject:
Quote:
it keep saying symbol BillingPlanDAO and ApprovedRadioDAO can not be resolved.

If these classes come from the same project your are working on, navgiate to your Java Build Path and make sure you still have a Source Directory setup and a Output directory setup. If these classes were from a JAR or another project, go to the LIbraries tab and make sure everything is setup correctly. Then go to the Project menu and make sure "Build Automatically" is checked, then do a "Clean" on your project and cause it to rebuild the entire project.
ayc868 - Nov 22, 2004 - 06:51 PM
Post subject:
I checked all of them, but still no luck.
ayc868 - Nov 22, 2004 - 07:19 PM
Post subject:
I create another project, and import all the java and JSP files. The error goes away.
I will see debug and autodeployment later today.
The original project still in the puzzle.
ayc868 - Nov 22, 2004 - 07:54 PM
Post subject:
debug, and autodeploy work as well. you can close the case, but the puzzle still unsolved. At least,
how to trouble shoot the problem.
support-rkalla - Nov 22, 2004 - 08:02 PM
Post subject:
This is very strange, but I am glad everything is working for you... I wonder if an Eclipse cache issue was the reason.... strange.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits