Issue Details (XML | Word | Printable)

Key: JSONP-4
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Mohamed Taman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jsonp

Exception "Provider org.glassfish.json.JsonProviderImpl not found" when changing dependency groupId from "org.glassfish" to "javax.json".

Created: 12/Apr/13 11:02 PM   Updated: 12/Apr/13 11:13 PM   Resolved: 12/Apr/13 11:10 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags: fishcat dependencies
Participants: jitu and Mohamed Taman


 Description  « Hide

When I do a change to the dependency in my project pom.xml from

<dependency>  
   <groupId>org.glassfish</groupId> 
   <artifactId>javax.json</artifactId> 
   <version>1.0-SNAPSHOT</version> 
   <type>jar</type>
   <scope>test</scope>
</dependency>

To

<dependency> 
    <groupId>javax.json</groupId> 
    <artifactId>javax.json-api</artifactId> 
    <version>1.0-SNAPSHOT</version> 
</dependency>

And this is what is recommended by many users in the JSR-353 group mailing list and also listed at Java EE 7 Maven Coordinates

I got the following error in my JUnit testing environment:

"Provider org.glassfish.json.JsonProviderImpl not found"



Mohamed Taman added a comment - 12/Apr/13 11:03 PM

Note: it works with the following dependency

<dependency>  
   <groupId>org.glassfish</groupId> 
   <artifactId>javax.json</artifactId> 
   <version>1.0-SNAPSHOT</version> 
   <type>jar</type>
   <scope>test</scope>
</dependency>

jitu added a comment - 12/Apr/13 11:10 PM

org.glassfish:javax.json is RI jar which contains both api+impl.

javax.json:javax.json-api contains only API which is there for compile time dependency. But if you want to run your app, you need a provider/impl. RI bundle provides them.


Mohamed Taman added a comment - 12/Apr/13 11:13 PM

Thanks