This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Restfull webservice with weblogic portal  RSS feed

 
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

 
Ranch Hand
Posts: 1512
  • 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: 1512
  • 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
Boost this thread!