Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330523 - Can't find start.jar of existing jetty installation
Summary: Can't find start.jar of existing jetty installation
Status: CLOSED WORKSFORME
Alias: None
Product: Jetty
Classification: RT
Component: wtp (show other bugs)
Version: 7.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.1.x   Edit
Assignee: Thomas Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 16:38 EST by Greg Wilkins CLA
Modified: 2011-01-10 16:08 EST (History)
1 user (show)

See Also:


Attachments
screenshot configuring jetty runtime (46.51 KB, image/png)
2010-11-17 16:38 EST, Greg Wilkins CLA
no flags Details
problem occured dialog (26.99 KB, image/png)
2010-11-17 16:38 EST, Greg Wilkins CLA
no flags Details
classpath tab in eclipse (207.30 KB, image/png)
2010-12-02 11:59 EST, Thomas Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Wilkins CLA 2010-11-17 16:38:08 EST
Created attachment 183355 [details]
screenshot configuring jetty runtime

Jetty WTP Adaptor	1.0.0.201011170957

The jetty runtime is configured with an existing jetty installation.  On start, it cannot find start.jar, but the path given appears to be relative to home directory?

See attached screenshots
Comment 1 Greg Wilkins CLA 2010-11-17 16:38:37 EST
Created attachment 183356 [details]
problem occured dialog
Comment 2 Jesse McConnell CLA 2010-11-17 16:52:41 EST
I'll have to play around with this to see if I can replicate, I do the same thing in normal testing and it works fine
Comment 3 Greg Wilkins CLA 2010-11-17 16:53:53 EST
The JVM args are:

-Djetty.home="/home/gregw/workspace/jetty-7/.metadata/.plugins/org.eclipse.wst.server.core/tmp0" -DSTART="/home/gregw/workspace/jetty-7/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/start.config" -Dinstall.jetty.home="/home/gregw/src/jetty-7/jetty-distribution/target/distribution" -DVERBOSE -DSTOP.PORT=8082 -DSTOP.KEY=secret
Comment 4 Greg Wilkins CLA 2010-12-01 13:35:46 EST
I'll try to get more information
Comment 5 Greg Wilkins CLA 2010-12-02 07:21:00 EST
I update to the latest and still had same problem.

I moved the target/distribution directory to /tmp/jetty-7 and updated the server properties - but it still looked and failed in target/distribution.

I then deleted the server, edited the jetty-7 runtime and tried again with /tmp/jetty-7 and it started fine.

I then moved the directory back to target/distribution and tried the same steps, but it resulted in failure again???
Comment 6 Thomas Becker CLA 2010-12-02 11:18:03 EST
Can't reproduce. Played around with the jvm settings, etc. it always works. 

The default jvm settings are pretty similar to yours:

-Djetty.home="/Users/tbecker/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0" -DSTART="/Users/tbecker/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/start.config" -Dinstall.jetty.home="/Users/tbecker/Documents/workspace/jetty-trunk/jetty-distribution/target/distribution" -DVERBOSE -DSTOP.PORT=8082 -DSTOP.KEY=secret

I will now check the wtp version I use and probably try to get 1.0.0.201011170957 instead.
Comment 7 Thomas Becker CLA 2010-12-02 11:33:46 EST
ok thats the latest stable release which I also used. 

It's a bit weird that the error dialogue states /jetty-distribution/target/distribution/start.jar (with leading slash) and omits /home/gregw/src/jetty-7.
Comment 8 Thomas Becker CLA 2010-12-02 11:59:49 EST
Created attachment 184370 [details]
classpath tab in eclipse

ok it's normal and not weird, see my classpath. The path is relative to the jetty-distribution target.
Comment 9 Jesse McConnell CLA 2010-12-06 10:33:29 EST
Greg, try deleteing the Server and going through the New Server wizard again
Comment 10 Jesse McConnell CLA 2011-01-10 16:08:25 EST
closing as a couple of us have been unable to replicate