Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restfull webservice with weblogic portal

 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done the below configuration but i'm getting an error accessing webservice url


in web.xml




TestWS class



from the log file, i see that jersey servlet initialized successfully

but i'm getting the below error


URL: http://localhost:7001/DCA-web/rest/testRest/Amr

Invalid command: [/testRest/Amr] -- Check syntax


any help is appreciated ..

thanks in advance

 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you have looks fine to me. Verify that DCA-web is your application context. Also, how are you testing this, just from the browser, or you are using a rest client for your browser?
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure that DCA-web is my application context, and i'm testing it from the browser
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured out the problem, when using jersey with weblogic portal servlet url pattern should start with /appmanager/dcaportal/


<servlet-mapping>
<servlet-name>jersey-serlvet</servlet-name>
<url-pattern>/appmanager/dcaportal/rest/*</url-pattern>
</servlet-mapping>

 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Good to know. I thought it maybe something related to your environment, because what you had looked okay to me.
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bosun for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic