You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2010/01/15 11:28:43 UTC

[jira] Created: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
----------------------------------------------------------------------------------------

                 Key: CAMEL-2366
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
             Project: Apache Camel
          Issue Type: New Feature
          Components: camel-web
    Affects Versions: 2.2.0
            Reporter: Charles Moulliard




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


[jira] Commented: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56926#action_56926 ] 

Charles Moulliard commented on CAMEL-2366:
------------------------------------------

TODO :

- Some unrequired jars are still added in WEB-INF/lib like jaxb, stax, activation, jdom, ... during WAR file generattion
- When jstl, standards bundles will be ready, we can remove them from lib folder and install their corresponding bundles
- Idem but for jersey when improved about classloading for osgi

> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>


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


[jira] Resolved: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

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

Charles Moulliard resolved CAMEL-2366.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0

> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>             Fix For: 2.2.0
>
>


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


[jira] Commented: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56922#action_56922 ] 

Charles Moulliard commented on CAMEL-2366:
------------------------------------------

1) Build 

To build the WAR OSGI file, the following maven command including profiles -Posgi and -Penable-schemagen must be use :

mvn clean package -Dtest=false -Posgi -Penable-schemagen

2) Before to deploy it on SMX4/Karaf, verify that the following bundles/features are installed :

Features
- Spring
- Spring-DM,
- Camel 2.x 
features are required

Bundles
a) WEB environment
osgi:install -s mvn:org.ops4j.pax.web/pax-web-api/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-spi/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-runtime/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jetty/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jsp/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-war/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/0.7.1

b) Spring OSGI Web
osgi:install -s mvn:org.springframework/spring-web/2.5.6.SEC01
osgi:install -s mvn:org.springframework.osgi/spring-osgi-web/1.2.0

c)  Jetty Web server
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.19_2

d) Camel-web console
osgi:install -s war:mvn:org.apache.camel/camel-web/2.2-SNAPSHOT/war

> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>


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


[jira] Issue Comment Edited: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56922#action_56922 ] 

Charles Moulliard edited comment on CAMEL-2366 at 1/15/10 10:41 AM:
--------------------------------------------------------------------

1) Build 

To build the WAR OSGI file, the following maven command including profiles -Posgi and -Penable-schemagen must be use :

mvn clean package -Dtest=false -Posgi -Penable-schemagen

2) Before to deploy it on SMX4/Karaf, verify that the following bundles/features are installed :

Features
- Spring
- Spring-DM,
- Camel 2.x 
features are required

Bundles
a) WEB environment
osgi:install -s mvn:org.ops4j.pax.web/pax-web-api/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-spi/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-runtime/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jetty/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jsp/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-war/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/0.7.1

b) Spring OSGI Web
osgi:install -s mvn:org.springframework/spring-web/2.5.6.SEC01
osgi:install -s mvn:org.springframework.osgi/spring-osgi-web/1.2.0

c)  Jetty Web server
osgi:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.19_2

d) Camel-web console (including in its WEB-INF/lib jersey jars, jstl, rome, sitemesh, ...)
osgi:install -s mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.0/1.3.0
osgi:install -s war:mvn:org.apache.camel/camel-web/2.2-SNAPSHOT/war

      was (Author: cmoulliard):
    1) Build 

To build the WAR OSGI file, the following maven command including profiles -Posgi and -Penable-schemagen must be use :

mvn clean package -Dtest=false -Posgi -Penable-schemagen

2) Before to deploy it on SMX4/Karaf, verify that the following bundles/features are installed :

Features
- Spring
- Spring-DM,
- Camel 2.x 
features are required

Bundles
a) WEB environment
osgi:install -s mvn:org.ops4j.pax.web/pax-web-api/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-spi/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-runtime/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jetty/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jsp/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-war/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/0.7.1

b) Spring OSGI Web
osgi:install -s mvn:org.springframework/spring-web/2.5.6.SEC01
osgi:install -s mvn:org.springframework.osgi/spring-osgi-web/1.2.0

c)  Jetty Web server
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.19_2

d) Camel-web console
osgi:install -s war:mvn:org.apache.camel/camel-web/2.2-SNAPSHOT/war
  
> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>


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


[jira] Commented: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

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

Claus Ibsen commented on CAMEL-2366:
------------------------------------

For example
{code}
karaf@root> osgi:install war:mvn:org.apache.camel/camel-web/2.5.0/war?Webapp-Context=camel-web
Bundle ID: 180
{code}

But unfortunately OSGi plays another tricks on us
{code}
2010-11-03 10:19:17,288 [ Console Thread] ERROR ContextLoader                  - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
...
{code}

> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>             Fix For: 2.2.0
>
>


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


[jira] Commented: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

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

Claus Ibsen commented on CAMEL-2366:
------------------------------------

Apache Karaf can install a WAR file out of the box and it should be the preferred way to install camel-web.
http://fusesource.com/docs/esb/4.3/esb_deploy_osgi/UrlHandlers-War.html

> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>             Fix For: 2.2.0
>
>


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


[jira] Issue Comment Edited: (CAMEL-2366) Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56922#action_56922 ] 

Charles Moulliard edited comment on CAMEL-2366 at 1/15/10 1:53 PM:
-------------------------------------------------------------------

1) Build 

To build the WAR OSGI file, the following maven command including profiles -Posgi and -Penable-schemagen must be use :

mvn clean package -Dtest=false -Posgi -Penable-schemagen

2) Before to deploy it on SMX4/Karaf, verify that the following bundles/features are installed :

Features
- Spring
- Spring-DM,
- Camel 2.x 
features are required

Bundles
a) WEB environment
osgi:install -s mvn:org.ops4j.pax.web/pax-web-api/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-spi/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-runtime/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jetty/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jsp/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-war/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/0.7.1

b) Spring OSGI Web
osgi:install -s mvn:org.springframework/spring-web/2.5.6.SEC01
osgi:install -s mvn:org.springframework.osgi/spring-osgi-web/1.2.0

c)  Jetty Web server
osgi:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.19_2

d) Camel-web console (including in its WEB-INF/lib jersey jars, jstl, rome, sitemesh, ...)
osgi:install -s mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.0/1.3.0
osgi:install -s war:mvn:org.apache.camel/camel-web/2.2-SNAPSHOT/war

e) Access web site 
http://localhost:8181/camelweb/

      was (Author: cmoulliard):
    1) Build 

To build the WAR OSGI file, the following maven command including profiles -Posgi and -Penable-schemagen must be use :

mvn clean package -Dtest=false -Posgi -Penable-schemagen

2) Before to deploy it on SMX4/Karaf, verify that the following bundles/features are installed :

Features
- Spring
- Spring-DM,
- Camel 2.x 
features are required

Bundles
a) WEB environment
osgi:install -s mvn:org.ops4j.pax.web/pax-web-api/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-spi/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-runtime/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jetty/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jsp/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-war/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/0.7.1

b) Spring OSGI Web
osgi:install -s mvn:org.springframework/spring-web/2.5.6.SEC01
osgi:install -s mvn:org.springframework.osgi/spring-osgi-web/1.2.0

c)  Jetty Web server
osgi:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.19_2

d) Camel-web console (including in its WEB-INF/lib jersey jars, jstl, rome, sitemesh, ...)
osgi:install -s mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.0/1.3.0
osgi:install -s war:mvn:org.apache.camel/camel-web/2.2-SNAPSHOT/war
  
> Add a profile in camel-web project to generate WAR file for OSGI plateform (SMX4, Karaf)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2366
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2366
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-web
>    Affects Versions: 2.2.0
>            Reporter: Charles Moulliard
>             Fix For: 2.2.0
>
>


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