Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Jetty distribution does not work if 'lib' is in the path #6

Open
pogo19 opened this issue Aug 13, 2014 · 12 comments
Open

External Jetty distribution does not work if 'lib' is in the path #6

pogo19 opened this issue Aug 13, 2014 · 12 comments

Comments

@pogo19
Copy link

pogo19 commented Aug 13, 2014

Hello, since update to 3.8.0 I have following problem in either Eclipse Kepler or Luna:

Failed to resolve Jetty dependencies: [.*/servlet-api-.*\.jar, .*/jndi/.*\.jar, .*/annotations/.*\.jar]

For applications without JNDI it fails only on servlet-api-.*.jar

When it first appeared it helped to create fresh new run/debug configuration but it doesn't help anymore.

@pogo19
Copy link
Author

pogo19 commented Sep 3, 2014

It seems to be related to using custom Jetty instalation. Plugin recognizes the version but then it doesn't work. Also switching back to built-in jetty instalation (jetty 8.x) doesn't help as it seems that the switch doesn't always happen - switched in UI and saved but not effectively.

@derkoe
Copy link
Contributor

derkoe commented Oct 23, 2014

Just tried it with Jetty 9.0.7, 9.1.0 and 9.2.1 and the embedded version and all worked. What version are you using? Have you unzipped the whole Jetty package?

@pogo19
Copy link
Author

pogo19 commented Oct 23, 2014

I have jetty-distribution-9.2.2.v20140723 fully unzipped, all the files/jars are there.

With switching versions (custom to embedded), it does happen in UI but not if I launch the debug configuration. The switch happens if I change also something else, e.g. adding system scope.

@derkoe
Copy link
Contributor

derkoe commented Oct 23, 2014

I created #8 for the dialog issue.

@derkoe
Copy link
Contributor

derkoe commented Oct 23, 2014

Just tried Jetty jetty-9.2.3.v20140905 and it works. Are you sure all libs are there? Especially $JETTY_HOME/lib/servlet-api-3.1.jar and $JETTY_HOME/lib/jetty-annotations-*

@pogo19
Copy link
Author

pogo19 commented Oct 23, 2014

I just checked it once again, both files are there. Even checked those 2 jars with jar tvf to confirm files are not corrupted.

@derkoe
Copy link
Contributor

derkoe commented Oct 23, 2014

Which OS are you using? We heard of some problems in MacOS

@pogo19
Copy link
Author

pogo19 commented Oct 23, 2014

I am using Ubuntu 14.04 with GNOME 3.12 as a desktop of my choice.

@pogo19
Copy link
Author

pogo19 commented Jan 22, 2016

I still have the same problem "Failed to resolve ..." in 3.9.0. Now using Ubuntu 15.10 with GNOME 3.16, Eclipse Luna SR 2 (4.4.2).

@tsg21
Copy link

tsg21 commented Mar 8, 2017

I just had exactly this issue on Windows. After some investigation, I realised I had the exploded Jetty in a "lib" directory: "C:\lib\jetty-distribution-9.4.2.v20170220"

Jetty, of course, has a lib directory itself. I suspect the double lib structure is confusing the plugin.

I don't know whether that is the issue affecting pogo19, but was moving it into a different folder solved the problem for me.

@pogo19
Copy link
Author

pogo19 commented Mar 8, 2017

Bingo, @tsg21 !!!

My jetty dirs:
/home/pogo/lib/jetty-distribution-9.1.5.v20140505
/home/pogo/lib/jetty-distribution-9.2.14.v20151106
/home/pogo/lib/jetty-distribution-9.2.2.v20140723

@pogo19
Copy link
Author

pogo19 commented Mar 10, 2017

When I created symlink to my 'lib' directory with different name (and no 'lib' in path), it has started to work. Thanks, @tsg21 :)

@pogo19 pogo19 changed the title Jetty dependencies External Jetty distribution does not work if 'lib' is in the path Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants