aspose file tools*
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
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: 9327
    
110

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: 9327
    
110

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
 
subject: Exception while deploying web services
 
Similar Threads
Getting Error while deploying drools-jbrms.war file in JBoss AS
cannot deploy to jboss 5.0.1 server
Error while started JBOSS Server
Jboss not deploying my projects
Failed to create a new SAX parser