It's all about the answers!

Ask a question

Eclipse client connection to Jetty Server throws error


Prakash Behrani (28910) | asked Aug 18 '14, 8:07 p.m.
edited Aug 19 '14, 4:37 p.m. by Stephanie Taylor (24115)
When trying to connect Eclipse client to Jetty Server throws the following error:

JIT  - 20091016_1845ifx7_r8
GC   - 20091026_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product com.ibm.team.concert.product
Command-line arguments:  -product com.ibm.team.concert.product -data C:\RTC301Dev\workspaces\DEV\WS1/../WS2 -dev file:C:/RTC301Dev/workspaces/DEV/WS1/.metadata/.plugins/org.eclipse.pde.core/RTC Eclipse Client/dev.properties -os win32 -ws win32 -arch x86


Error
Mon Aug 18 19:21:36 EDT 2014
CRJAZ0106I The request for the URL "/jazz/service/com.ibm.team.scm.common.internal.IScmQueryService" was denied.  The status is Not Available".

Any thoughts on what might not be configured correctly on the Jetty Server.

Any feedback is highly appreciated.

Thanks.

One answer



permanent link
Eric Jodet (6.3k5111120) | answered Aug 19 '14, 2:17 a.m.
JAZZ DEVELOPER
 Hello,
are you running your Jetty server in debug mode (from and Eclipse workspace)?
Also check your server's admin page, and run diagnostics, so as to ensure all services are up and running.

Eric

Comments
Prakash Behrani commented Aug 19 '14, 11:03 a.m.

Yes, Jetty Server was started using Debug Configuration from Eclipse.
I have checked the Summary Status page and Component Status page on Server Administration page but do not see any errors.  Everything seems to be running normally.


Eric Jodet commented Aug 19 '14, 11:06 a.m.
JAZZ DEVELOPER

 So you should see a bunch of errors in server's Eclipse console


Prakash Behrani commented Aug 19 '14, 11:17 a.m.

I see one error related to log4j.properties not found as shown below.
Removed the java stack in the error message below.

og4j:ERROR Could not read configuration file from URL [file:/C:/RTC301Dev/workspaces/DEV/WS1/com.ibm.team.common.tests.utils/log4j.properties].
java.io.FileNotFoundException: C:\RTC301Dev\workspaces\DEV\WS1\com.ibm.team.common.tests.utils\log4j.properties (The system cannot find the file specified.)

log4j:ERROR Ignoring configuration file [file:/C:/RTC301Dev/workspaces/DEV/WS1/com.ibm.team.common.tests.utils/log4j.properties].
log4j:WARN No appenders could be found for logger (net.jazz.ajax/AjaxFramework).
log4j:WARN Please initialize the log4j system properly.
2014-08-19 11:14:31.699::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2014-08-19 11:14:40.525::INFO:  jetty-6.1.x
2014-08-19 11:14:43.493::INFO:  Started SocketConnector@0.0.0.0:9081
2014-08-19 11:14:44.587::INFO:  Started SslSocketConnector@0.0.0.0:7443


Eric Jodet commented Aug 19 '14, 11:33 a.m.
JAZZ DEVELOPER

 right - so you're missing com.ibm.team.common.tests.utils

in your Eclipse wks.

you have to load it


Prakash Behrani commented Aug 19 '14, 12:18 p.m.

Actually, com.ibm.team.common.tests.utils is already loaded.  The only thing missing was the log4j.properties file. 
I copied it from server/conf/jts loaction to under tests.utils and the error disappeared at startup.
Now it starts clean as shown below.  However, problem of connecting from eclipse client still persists.

2014-08-19 12:04:05.343::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2014-08-19 12:04:10.935::INFO:  jetty-6.1.x
2014-08-19 12:04:13.685::INFO:  Started SocketConnector@0.0.0.0:9081
2014-08-19 12:04:14.450::INFO:  Started SslSocketConnector@0.0.0.0:7443


Eric Jodet commented Aug 20 '14, 1:21 a.m.
JAZZ DEVELOPER

 Hello,

possibly, your dev wks is not correctly set-up.
Please refer to https://jazz.net/wiki/bin/view/Main/TAPDevEnvironment
and give it a go.

Thanks,
Eric


Prakash Behrani commented Aug 20 '14, 11:05 a.m.

Thanks Eric.  I reviewed the technote.
I did not see any substantial difference on how the Eclipse client needs to be set-up, except for one JVM setting.
I had been following Ralph Scoon's extension workshop to set up development environment. 
I also launched client from launch configuration in Eclipse and had no problem connecting to the Jazz Team server, however connecting the Jetty Server is a problem with ISCMQueryService denied message.

showing 5 of 7 show 2 more comments

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.