You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/10/29 11:07:00 UTC

[jira] Created: (CAMEL-3292) camel-web - Its preconfigured for OSGi environment but it should detect this instead

camel-web - Its preconfigured for OSGi environment but it should detect this instead
------------------------------------------------------------------------------------

                 Key: CAMEL-3292
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3292
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-web
    Affects Versions: 2.4.0
            Reporter: Claus Ibsen
            Priority: Minor
             Fix For: 2.6.0


camel-web in ActiveMQ throws an error due CAMEL-2366 causing camel-web to pre configured for OSGi.
{code}
Oct 29, 2010 12:33:07 AM com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
SEVERE: The provider class, class org.apache.camel.web.util.JAXBContextResolverOSGI, could not be instantiated. Processing will continue but the class will not be utilized
java.lang.RuntimeException: NATURAL JSON notation configured, but JAXB RI 2.1.10 not found. For the recent builds to get this working correctly, you need even at least JAXB version 2.1.12. Please add it to your classpath!
	at com.sun.jersey.api.json.JSONConfiguration.natural(JSONConfiguration.java:378)
	at org.apache.camel.web.util.JAXBContextResolverOSGI.<init>(JAXBContextResolverOSGI.java:39)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
	at java.lang.Class.newInstance0(Class.java:372)
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3292) camel-web - Its preconfigured for OSGi environment but it should detect this instead

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62917#action_62917 ] 

Claus Ibsen commented on CAMEL-3292:
------------------------------------

At ApacheMQ they could maybe override the web.xml in their assembly when packing camel web in AMQ.
This would work as a workaround until we got this fixed

> camel-web - Its preconfigured for OSGi environment but it should detect this instead
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3292
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3292
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-web
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> camel-web in ActiveMQ throws an error due CAMEL-2366 causing camel-web to pre configured for OSGi.
> {code}
> Oct 29, 2010 12:33:07 AM com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
> SEVERE: The provider class, class org.apache.camel.web.util.JAXBContextResolverOSGI, could not be instantiated. Processing will continue but the class will not be utilized
> java.lang.RuntimeException: NATURAL JSON notation configured, but JAXB RI 2.1.10 not found. For the recent builds to get this working correctly, you need even at least JAXB version 2.1.12. Please add it to your classpath!
> 	at com.sun.jersey.api.json.JSONConfiguration.natural(JSONConfiguration.java:378)
> 	at org.apache.camel.web.util.JAXBContextResolverOSGI.<init>(JAXBContextResolverOSGI.java:39)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> 	at java.lang.Class.newInstance0(Class.java:372)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3292) camel-web - Its preconfigured for OSGi environment but it should detect this instead

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62915#action_62915 ] 

Claus Ibsen commented on CAMEL-3292:
------------------------------------

In web.xml its set to osgi like this
{code:xml}

    <init-param>
      <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
      <!-- com.sun.jersey.api.core.PackagesResourceConfig does not work with OSGI -->
      <param-value>org.apache.camel.web.util.CamelOSGIResourceConfig</param-value>
    </init-param>

{code}

> camel-web - Its preconfigured for OSGi environment but it should detect this instead
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3292
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3292
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-web
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> camel-web in ActiveMQ throws an error due CAMEL-2366 causing camel-web to pre configured for OSGi.
> {code}
> Oct 29, 2010 12:33:07 AM com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
> SEVERE: The provider class, class org.apache.camel.web.util.JAXBContextResolverOSGI, could not be instantiated. Processing will continue but the class will not be utilized
> java.lang.RuntimeException: NATURAL JSON notation configured, but JAXB RI 2.1.10 not found. For the recent builds to get this working correctly, you need even at least JAXB version 2.1.12. Please add it to your classpath!
> 	at com.sun.jersey.api.json.JSONConfiguration.natural(JSONConfiguration.java:378)
> 	at org.apache.camel.web.util.JAXBContextResolverOSGI.<init>(JAXBContextResolverOSGI.java:39)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> 	at java.lang.Class.newInstance0(Class.java:372)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-3292) camel-web - Its preconfigured for OSGi environment but it should detect this instead

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-3292:
----------------------------------

    Assignee: Claus Ibsen

> camel-web - Its preconfigured for OSGi environment but it should detect this instead
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3292
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3292
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-web
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> camel-web in ActiveMQ throws an error due CAMEL-2366 causing camel-web to pre configured for OSGi.
> {code}
> Oct 29, 2010 12:33:07 AM com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
> SEVERE: The provider class, class org.apache.camel.web.util.JAXBContextResolverOSGI, could not be instantiated. Processing will continue but the class will not be utilized
> java.lang.RuntimeException: NATURAL JSON notation configured, but JAXB RI 2.1.10 not found. For the recent builds to get this working correctly, you need even at least JAXB version 2.1.12. Please add it to your classpath!
> 	at com.sun.jersey.api.json.JSONConfiguration.natural(JSONConfiguration.java:378)
> 	at org.apache.camel.web.util.JAXBContextResolverOSGI.<init>(JAXBContextResolverOSGI.java:39)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> 	at java.lang.Class.newInstance0(Class.java:372)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.