This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while deploying web services

 
Saathvik Reddy
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:

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
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
Marshal
Pie
Posts: 10447
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic