facebook

error while adding struts1.2 capabilites to existing project

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #222020 Reply

    kulkarni_ash
    Member

    Hi
    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 ——————————-

    #222025 Reply

    Scott Anderson
    Participant

    Sorry, the images aren’t making it. Can you just post the text in the error message?

    #222039 Reply

    kulkarni_ash
    Member

    Hi
    sorry about the images, the error message is
    I am going to post the images again

    Ashish

    #222561 Reply

    abusch
    Member

    I 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.

    #223731 Reply

    kulkarni_ash
    Member

    Hi
    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 file

    Ashish

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: error while adding struts1.2 capabilites to existing project

You must be logged in to post in the forum log in