- This topic has 18 replies, 5 voices, and was last updated 16 years ago by Riyad Kalla.
-
AuthorPosts
-
C.A.GarciaMemberHi,
Related with the possibility of being a network problem it is discarded as I work locally. Both MyEclipse and my development workspace and Tomcat server are located in the same machine. In fact I’m just connect to Internet.
I switched to the default JRE and rebuild both projects. Afterwards I opened web.xml file. => restart of MyEclipse. I started with eclipse.exe -clean and the first thing I did was to open the web.xml file (just wanted to check if after a clean restart with the new JRE something might have changed) but it hang again and I had to restart.
Why do you think this happens only when I open web.xml file?
Riyad KallaMemberRelated with the possibility of being a network problem it is discarded as I work locally. Both MyEclipse and my development workspace and Tomcat server are located in the same machine. In fact I’m just connect to Internet.
That doesn’t matter, MyEclipse will still try and pull remote resources for the purposes of validation.
Why do you think this happens only when I open web.xml file?
It sounds like it’s happening when it tries to validate the XSD that the web.xml file references.
Let’s do a quick test to see if this is what is happening.
1. I have attached a ZIP to this post that includes 2 projects.
2. Download the file and import the projects into your workspace using File > Import > Existing Projects and then select the Archive file (and import both projects).
NOTE: Open your Progress view and have it visible before continuing…
3. Try and open the web.xml file from the “WebXML-NoXSD-Project” project, it should open in the normal XML editor and open instantly, does it do that?
4. Now try and open the web.xml file in the “WebXML-WithXSD-Project” project, it should take a bit of time, possibly spin up a process you might see down in the Process view, and it should open in the normal web.xml editor. Is that what happened?
Attachments:
You must be logged in to view attached files.
C.A.GarciaMemberPerfect. It has behaved as you said. I have removed from my web.xml file the reference to the schema location and now it works pretty well. Is this a bug? I tried before to removed validations, both of XML and DTDs, but did not help it.
Thanks a lot.
Riyad KallaMembercatienza,
Make sure that your app still deploys… some app servers require that XSD reference because it tells them how to process the file for you. What you can do is leave the XSD reference there, right-click on the XML file and go to Open With > MyEclipse XML Editor instead.
As far as it being a bug, yes it sounds like the validation is being way too aggressive in certain scenarios… I’ve filed a bug for the dev team to look into.
-
AuthorPosts