- This topic has 14 replies, 3 voices, and was last updated 20 years, 11 months ago by david32.
-
AuthorPosts
-
david32MemberHi,
I have been using Lomboz and decided to give MyEclipse a try. So I have some questions, is it possible to deploy a file just to the filesystem as I have to ftp the war file up to my Weblogic server.
If not can MyEclipse generate a build file similar to the one Lomboz generates for you or would I have to write one myself?
Also I decided to try MyEclipse because I thought it could validate or code assist web.xml and tld files, was I wrong in this or have I just failed to turn something on.Thanks
Dave
support-michaelKeymasteris it possible to deploy a file just to the filesystem
We originally coded this capability into MyEclipse but disabled it to better understand our customer’s needs and support issues. We plan to reenable it during the late Dec release.
thought it could validate or code assist web.xml and tld files, was I wrong
For releases 2.6.x/3.6.x, XML validation of deployment descriptors is a user enabled preference, see Window menu>Preferences>MyEclipse>Editors>XML and enable/disable deployment descriptor validation. General XML validation was disable until DTD caching is added to avoid issues when off the network or on a slow network. TLD validation is N/A for the current releases.
The good news is that releases 2.7/3.7 scheduled for the 1st week of Dec will include a completely new XML editor with code completion, outline viewer, and DTD caching. It will also enable general XML validation. This editor is the basis for new Struts editing and design features that will also be released in preliminary form. I’m pretty jazzed about this release because of the new XML editor and we have been making lots of internal improvements to position ME for J2EE 1.4 and better XML/JSF/ support that will be released in 2004.
Regards,
Michael
MyEclipse Support
david32MemberThanks for that,
I still can’t get deployment descriptor validation to work, I’ve made sure its turned on in the preferences, I’ve restarted and created a new web.xml file based on your template just in case there was something wrong with my original. It takes a while to save but reports no errors, even though I’ve entered junk tags.Dave
support-michaelKeymasterEarlier you mentioned switching from Lomboz. Is Lomboz still installed in your environment or other 3rd party plugins that may be overriding MyEclipse behaviors?
Michael
MyEclipse Support
david32MemberI deleted the Lomboz directorys from the plugins directory because the JSP’s won’t compile if Lomboz was there. Something I discovered from another topic. The only other plugin I have installed is PMD which I can’t imagine is interfering with your XML editor. Its using the XML editor and its highlighting the tags it looks like its not seeing they are deployment descriptors
Dave
Scott AndersonParticipantDave,
Are our descriptors inside META-INF or WEB-INF directories? The validator specifically looks for this and won’t validate outside that hierarchy.
–Scott
MyEclipse Support
support-michaelKeymasterMy thoughts:
1) I’m sorry but what is PMD?
2) Your problem is your Eclipse environment. Disable Lomboz by either removing its plugin dirs from the Eclipse plugins dir or rename the plugin.xml file in each of its plugins.
3) Create a MyEclipse Web Project (e.g., HelloWorld). It will have a default web.xml file. Try editing it with junk and then save it. With deployment descriptor validation enabled you should see error markers added to the file.
Michael
MyEclipse Support
david32MemberHi,
Its in the WEB_INF directory.1)
PMD is a code analyser http://pmd.sourceforge.net/ I tired removing it no joy.2)
Already removed those directorys3)
Tried that, still have the same problem.I’m just checked and I’m running Eclipse 2.1.0 is there some feature MyEclipse is expecting that not in that version? I don’t get any errors
Thanks
Dave
support-michaelKeymasterDo you have the “auto-build on save” preference enabled?
See the preference page at Windows menu>Preferences>Workbench
Michael
MyEclipse Support
david32MemberHi,
Yep I have that set. If I download 2.1.1 can I just install that over the top? Or would I then need to reinstall MyEclipse and set up my settings again? Or do you think that having 2.1.0 should make a difference?Dave
Scott AndersonParticipantDave,
I think the simplest path to a solution is to install Eclipse 2.1.2 in parallel to your current Eclipse installation and then install MyEclipse on it. Once that’s done, verify the installation by running a few tests, such as checking XML editing functionality. Once you’re satisfied, if you’d like to begin working with your old workspace simply modify the alias used to start 2.1.2 to point to it by adding a ‘-data <path-to-old-workspace>’ argument. This method will avoid all interference between your old installation and you new MyEclipse installation without seriously disrupting your old setup.
–Scott
MyEclipse Support
david32MemberHi,
Sorry for the delay. I tried that and it didn’t work on my machine in work. It does work when I installed it on my machine at home!
It doesn’t do something silly like actually contact the Sun site to get the dtd does it? As I’m behind an MS proxy so eclipse wouldn’t be able to get out. And if that is the case how come I get no error or something.
That’s just a guess as its the only major difference I can see between both machines.Dave
david32MemberHi,
I looked up the error log and yes I think its trying to download the dtd from the webjava.net.UnknownHostException: java.sun.com
is the error.
Is there any way around this?
Dave
support-michaelKeymasterThe next release will support a local DTD cache to prevent network access and all the hassle suffered do that. You can disable XML validation using the preference located at
Windows menu>Preferences>MyEclipse>Editor>XML
Michael
MyEclipse Support
david32MemberThanks for that, good to know what the problem was.
I’ll look out for the new release so.Thanks for your help
Dave
-
AuthorPosts