This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Exception while deploying web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Exception while deploying web services" Watch "Exception while deploying web services" New topic
Author

Exception while deploying web services

Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
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

Joined: Jul 20, 2005
Posts: 10433
    
176

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.


[My Blog] [JavaRanch Journal]
Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
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

Joined: Jun 03, 2005
Posts: 228
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

Joined: Jun 03, 2005
Posts: 228
could anyone please help me out!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10433
    
176

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.
 
subject: Exception while deploying web services
 
It's not a secret anymore!