- This topic has 4 replies, 3 voices, and was last updated 19 years, 12 months ago by kulkarni_ash.
-
AuthorPosts
-
kulkarni_ashMemberHi
I created a new web project from my directory ,(not eclipse work space) which had all the required library for struts 1.2 ( i unzipped struts-blank project) and then tried to add struts capabilites after creating the project.
But i am getting error while doing so, i am sure the struts-config.xml file is valid
i am adding error jpg image of the error message
What do i do
Ashish
– System Setup ——————————-
Operating System and version:
Eclipse version: 3.0.1
Eclipse build id: 200409161125
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
MyEclipse version: 3.8.3
Eclipse JDK version:1.4.2_06
Application Server JDK version: 1.4.2_06
Are there any exceptions in the Eclipse log file? No– Message Body ——————————-
Scott AndersonParticipantSorry, the images aren’t making it. Can you just post the text in the error message?
kulkarni_ashMemberHi
sorry about the images, the error message is
I am going to post the images again
Ashish
abuschMemberI think I have the same problem. I’ve created a Web Project with Struts 1.2 capabilities using MyEclipse, and checked that into CVS (including the struts-config.xml file).
If I check out the project again as a new web project, and try to add Struts capabilities again, the following error appears when I try to select “Struts 1.2”:
“Invalid struts 1.2 config file found.
org.jdom.JDOMException: Error on line 3: Element type “struts-config” is not declared. : Error on line 3: Element type “struts-config” is not declared.”I have to select struts 1.1 then edit .mystrutsdata to change version 1 into 2.
kulkarni_ashMemberHi
I this is what i did, i renamed the struts-config.cml to struts-config1.xml file and then added the struts1.2 capabilities, and then renamed struts-config.xml back , just remmeber to change the doc type in struts-config.xml fileAshish
-
AuthorPosts