facebook

attach servlet source

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #208785 Reply

    Brett Connor
    Member

    i’m sure this is more likely an eclipse issue but I can’t see any trace of it there, I’m hoping someone here knows what I’m doing stupid:

    I want to attach source for javax.servlet stuff (largely so code assist gives me javadoc and meaningful parameter argument names). Firstly it is pretty hard to find the source for the API classes, Sun don’t seem to ship them now. I have found them under jetty in the jboss source installation, but when I “attach source” to the directory above “javax” or try to jar the sources and attach that, nothing happens.
    I know I’ve had this working attaching other sources, though I can’t remember what.

    Why I’m posting here:
    – first if anyone has seen this or knows my problem (apart from late friday night). Does MyEclipse get involved in any way or is this purely eclipse?
    – secondly it would be nice if API sources were included with the binary jars in the library sets, so I didn’t have to go trawling around downloading any package that may include sources.

    #208787

    Riyad Kalla
    Member

    Does MyEclipse get involved in any way or is this purely eclipse?

    This is exclusively an Eclipse issue.

    secondly it would be nice if API sources were included with the binary jars in the library sets

    I think there are licensing issues here that keep us from just shipping it with ME.

    The way you described attaching the “dir above javax” all sounds right. If nothing happened, then you are likey attaching the wrong binary version to the wrong source version. What app server are you using? Go downloads its source, and use its impls to attach to its own binaries. I use Tomcat 5, this all works quite well.

    #208792

    Brett Connor
    Member

    Ah licensing issues; perhaps that’s why Sun don’t seem to make it available any more.

    I’m using jboss 3.2.2, so everything should be servlets 2.3 spec. I can’t afford to spend any more time on it right now. My jboss uses tomcat but the source I have uses jetty, I’ll try with the other source when I get more time, although I can’t see how it will make a difference, they’re both 2.3.

    Thanks as alays for your quick and helpful response.

    #208795

    Riyad Kalla
    Member

    although I can’t see how it will make a difference, they’re both 2.3

    You are right, but I’m not sure how sensative the autocomplete is. I attached Struts 1.1 source to a nighlty build that was a month newer, and all of the autocomplete/javadoc/var name lookup completely broke… so I don’t know what Eclipse wants or how it knows, but it seems VERY picky 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: attach servlet source

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