For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 17 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
ittaizMemberHello, i am developing a web application. I was using the myeclipse 5.1.0 version and i recently upgraded to the 5.5.1 version. after re-building my project in the 5.5.1 i received two errors in the web.xml file:
1.Referenced file contains errors (file:/C:/Program Files/MyEclipse 5.5.1 GA/myeclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.5.1/catalog-xsd/web-app_2_5.xsd). For more information, right click on the message and select “Show Details…”
2.cvc-elt.1: Cannot find the declaration of element ‘web-app’.after doing a little digging i found that in the same plug-in on the 5.1.0v i did not have a web-app_2_5.xsd file while in the new version it does exist. i then closed the IDE, removed, temporarily, the file from the plug-in directory and re-opened the IDE. after re-building the project the errors disappered.
it seems to me that there must be a better solution to my problem than to manually maipulate a built-in plug-in which comes with the installation. can you please tell me if this is a bug in the IDE or is the code of the web.xml wrong?
web.xml content:
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app version=”2.5″
xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd”><servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet><servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
</web-app>System details:
*** Date:
Thursday, August 30, 2007 9:46:31 AM IDT** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.5.1 GA
Build id: 20070521-5.5.1-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.5.1 GA
Build id: 20070521-5.5.1-GAEclipse Platform
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330Eclipse RCP
Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20070212-1330Eclipse Java Development Tools
Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20070212-1330Eclipse Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20070212-1330Eclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330Eclipse Graphical Editing Framework
Version: 3.2.2.v20070208
Build id: 20070208-1315Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Program Files\MyEclipse 5.5.1 GA\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
15e8_70
-vm
C:\Program Files\MyEclipse 5.5.1 GA\jre\bin\javaw.exethank you.
August 30, 2007 at 11:07 am #274829
Riyad KallaMemberIt looks like the problem was with the Java EE 5 JARs that ship with MyEclipse… i would never encourage you to copy around plugins from one release to another (just for future reference, it could lead to squirrely problems).
Given the state of your install, I would actually encourage you, just to start off on the right foot, to grab our 6.0 GA All in One installer and install it to a new dir, then reopen your existing workspace and continue working with that instead.
Also if you ever have build path issues like that again, be sure to first try and restart using -clean as outlined here:
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/That takes care of 90% of problems usually as they can be caused by stale plugin caches.
September 2, 2007 at 1:17 am #274940
ittaizMemberHi Riyad, thanks for your reply.
It looks like the problem was with the Java EE 5 JARs that ship with MyEclipse.
Were you able to reproduce the problem? Can a fix or a more reliable version of the jar be available?
grab our 6.0 GA All in One installer and install it to a new dir
I cannot use this version as we, as a team, work on the same version and we have all upgraded to 5.5.1 we cannot upgrade to the 6.0v
looking forward to your answers. thank you.
September 4, 2007 at 11:04 am #275016
Riyad KallaMemberI’m not sure why I told you it was a problem with the JARs… looking back over the problem it specifically looks like the web-app_2_5.xsd file was missing from the XML Catalog, which we added a while ago and is used for validation, autocomplete, etc.
If you had to stay on 5.5.1, the first thing I would try (if I were in your position) would be to redownload 5.5.1 All in One installer, and install it to a *brand new* directory (never re-used an existing directory) then reopen your workspace using -clean command line argument and see if all my problems went away.
NOTE: Don’t remove your old install until you are sure the new one is working fine.
NOTE: When you go to create the Start Menu group during the All in One install, you might want to give it a slightly different name, so it doesn’t create shortcuts that just overwrite your existing ones.
-
AuthorPosts