Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Exception while deploying web services

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

I have deployed a POJO style webservice in JBoss 5.0.0GA. I am trying to call this webservice from a servlet.
When the .ear file is deployed i get this exception:

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you packaging any jar files which contain the org.apache.xerces.* package or other xml parsing package? If yes, then try removing those jars from your application and deploy it again.
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jaikiran Pai:
Are you packaging any jar files which contain the org.apache.xerces.* package or other xml parsing package? If yes, then try removing those jars from your application and deploy it again.



I'll give it a try!
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jaikiran Pai:
Are you packaging any jar files which contain the org.apache.xerces.* package or other xml parsing package? If yes, then try removing those jars from your application and deploy it again.



I removed the packages and got rid of the error i was getting.

I am using JBoss 5.0.0GA and trying to inject @PersitenceContext in my POJO style web service. Is POJO style web service a managed object? If no how to inject @PersistenceContext?

Thanks,
Srikanth.
[ December 09, 2008: Message edited by: Srikanth Reddy ]
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could anyone please help me out!
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having never worked with POJO webservices, i am not quite sure whether they will be scanned for injection.
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic