facebook

[Closed]No Jar files after ‘add struts capabilities’

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

    Leo Chavez
    Participant

    I did a search and looked in the FAQ, but didn’t find anything that solved this.

    OS: WinXP
    MyEclipse Version: 5.1.0 GA
    Java Version : jre1.5.0_09
    Eclipse Version: 3.2.1
    Build id: M20060921-0945

    When adding “Struts capabilities”, I noticed that it does not add the jar files under the project.
    This in turn leads to issues when I try to follow the Quickstart Struts Development.

    Everything works until “Figure 21 – Struts Action Wizard”. At that point, it says “Warning: Superclass does not exist.” Referring to superclass org.apache.struts.action.Action

    I checked the “MYECLIPSE_STRUTS_HOME” variable, and the jars are all located in that directory.
    I have screen shots of everything, if needed.
    I also tried the QuickStart JSF tutorial, that one worked fine.

    Any help would be appreciated.
    Thanks

    #263572 Reply

    Greg
    Member

    Are there any errors printed to the log when you add these struts capabilities? You can view the log either in the PDE > Error log or in <your_workspace_dir>/.metadata/.log.

    #263620 Reply

    Leo Chavez
    Participant

    Hi, I checked and there was nothing. I purged the contents of the file and restarted the demo, I checked again right at the point of adding the libraries. But it was completely empty.

    2 Things to note.
    – I tried it with my own user created libraries (which is basically the same path and jar files as “MYECLIPSE_STRUTS_HOME”) , and the demo worked at that point. The classpath was found.

    – When adding “Add Struts Capabilities” the jar files are added to the WebRoot/WEB-INF/lib directory. But like I said, they don’t appear under the actual Project Name like in the Tutorial(or like when I added the user Libraries). Its my understanding that Eclipse needs them in both. One for development, the other for deploying(I could be wrong).

    Anyways, here are some pics of when it fails, that might give you a better idea.

    – This is the MYECLIPSE_STRUTS_HOME path and contents
    [URL=http://img246.imageshack.us/my.php?image=1myeclipsestrutshomegu3.jpg][/URL]

    – This is the tutorial with the jar files under the project
    [URL=http://img225.imageshack.us/my.php?image=2myeclipsestrutstutoriacv3.jpg][/URL]

    – This is the project AFTER adding struts capabilities
    [URL=http://img143.imageshack.us/my.php?image=3mystrutsprojectmissingiq0.jpg][/URL]

    – This is the message
    [URL=http://img80.imageshack.us/my.php?image=4superclassactionmissinpb3.jpg][/URL]

    #263621 Reply

    Greg
    Member

    Here is what you can do to at least get you up and running. Look at the package explorer from this screenshot: http://img143.imageshack.us/my.php?image=3mystrutsprojectmissingiq0.jpg

    Notice under the StrutsLoginDemo/WebRoot/WEB-INF/lib directory you have several jar files. Select all of these jar files and right-click and select Build Path > Add to build path. That will at least get the demo working again.

    For MyEclipse Web Project every jar that is added to the WEB-INF/lib directory should get automatically added to the project classpath. Can you do me a favor? Right-click on the StrutsLoginDemo and go to Properties > Builders. Can you take a screenshot of this builders property page and post it here?

    #263624 Reply

    Leo Chavez
    Participant

    Hi,

    Here is the image you requested.

    [URL=http://img81.imageshack.us/my.php?image=5buildersjj9.jpg][/URL]

    #263627 Reply

    Greg
    Member

    Hmm, so it seems your builders are indeed correct. Now that you have added those jars to the build path, does the wizard work correctly now?

    #263635 Reply

    Leo Chavez
    Participant

    @support-greg wrote:

    Hmm, so it seems your builders are indeed correct. Now that you have added those jars to the build path, does the wizard work correctly now?

    Yes, everything works now. This is not really a show stopper. I can code fine as long as I add my own user libraries with all the appropriate jars, or as long as I try your suggestion (right click jars and Add to build path).

    Like you said, the jar files are not added to the .classpath automatically by the “add struts capabilities” function.

    So its not an issue for me anymore, but it would be nice to see this fixed for future developers.

    Thanks for your help

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: [Closed]No Jar files after ‘add struts capabilities’

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