MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
catienza
Post subject:   PostPosted: Nov 13, 2008 - 04:48 PM
Registered Member
Registered Member


Joined: Sep 25, 2007
Posts: 8

Hi,

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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Nov 13, 2008 - 05:57 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Quote:

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.

That doesn't matter, MyEclipse will still try and pull remote resources for the purposes of validation.

Quote:

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?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
catienza
Post subject:   PostPosted: Nov 14, 2008 - 09:29 AM
Registered Member
Registered Member


Joined: Sep 25, 2007
Posts: 8

Perfect. 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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Nov 14, 2008 - 07:52 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

catienza,

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits