• Post Reply Bookmark Topic Watch Topic
  • New Topic

XDB password

 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to create rest webservice using jersey in eclipse+tomcat7,

Here I am facing two problems 1. It is always giving com.spi.jersey.container.servletcontainer class not found exception though I added jerseyserver.jar and jersey-servlet.jar and all other jars of jersey and the class is pressent already,this is happening on tomcat startup so I wanted to know what I did is correct or not I added javabuild path in depolyment assembley and all jersey jars in tomcat classpath,
and the error gone,is this correct approach?

2.when I am running the project as run on sever it is asking me to enter some XDB username and password,I tried to change the port of tomcat to 8082 but still its is asking,

Kindly help how I should run my first Rest webservice,

Thanks,
UJ
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is always giving com.spi.jersey.container.servletcontainer class not found

Capitalization matters in Java, so a class of that name does indeed not exist. Or is that just a copy/paste error in this post here? If so, in which of the jar files you added is that class?
 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply,Acually I added correct versions og jersey jars and it is not asking now,

Couldn't understand what has happened but now the code works fine,

Thanks,
Uj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!