File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while deploying web services

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • 0
  • 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: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could anyone please help me out!
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • 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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic