someone could help me about struct2 in karaf

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

someone could help me about struct2 in karaf

stream
Hi everyone
i wanna make struct2 into the karaf with spring-dm.
but i always failed that show me varies of problem.
i am naive, i hope someone could give me a example...
thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

Achim Nierbeck
Hi stream,

could you give us more details on what your problem is?

Regards, Achim


> Hi everyone
> i wanna make struct2 into the karaf with spring-dm.
> but i always failed that show me varies of problem.
> i am naive, i hope someone could give me a example...
> thanks in advance
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2729806.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

stream
Ok
this is my error, i know i need some packages,but i've add it in my pom.xml


ERROR: Bundle net.iocanel.web-structs [119]: Error starting file:/Users/stream1984/program/apache-karaf-2.2.0/deploy/web-structs-1.0-SNAPSHOT.war (org.osgi.framework.BundleException: Unresolved constraint in bundle net.iocanel.web-structs [119]: Unable to resolve 119.2: missing requirement [119.2] package; (&(package=com.opensymphony.xwork2)(version>=2.1.0)(!(version>=3.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle net.iocanel.web-structs [119]: Unable to resolve 119.2: missing requirement [119.2] package; (&(package=com.opensymphony.xwork2)(version>=2.1.0)(!(version>=3.0.0)))
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:680)

below is part of  my pom.xml

                <import.packages>
                        *,
                        javax.servlet,
                        javax.persistence,
                        javax.transaction,
                        net.iocanel.database.dao,
                        net.iocanel.database.entities,
                        org.springframework.osgi.web.context.support,
                        org.springframework.orm.jpa.support,
                        org.springframework.transaction,
                        org.springframework.aop,
                        org.springframework.web.filter,
                        org.aopalliance.aop,
                        com.opensymphony.xwork2,
                        org.apache.struts2.osgi.interceptor,
                        org.osgi.framework
                </import.packages>

                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                                <extensions>true</extensions>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>manifest</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <supportedProjectTypes>
                                                <supportedProjectType>jar</supportedProjectType>
                                                <supportedProjectType>bundle</supportedProjectType>
                                                <supportedProjectType>war</supportedProjectType>
                                        </supportedProjectTypes>
                                        <instructions>
                                                <Bundle-Version>${project.version}</Bundle-Version>
                                                <Webapp-Context>${project.artifactId}</Webapp-Context>
                                                <Bundle-Classpath>${classpath}</Bundle-Classpath>
                                                <Include-Resource>${include.resources}</Include-Resource>
                                                <Import-Package>${import.packages}</Import-Package>
                                                <Export-Package>${export.packages}</Export-Package>
                                        </instructions>
                                </configuration>
                        </plugin>
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

Charles Moulliard
Administrator
Hi,

The following packages and jar file has not been deployed in a bundle
: com.opensymphony.xwork2
Version>=2.1.0 and not 3.x

Regards,

Charles


On Fri, Mar 25, 2011 at 5:10 PM, stream <[hidden email]> wrote:

> Ok
> this is my error, i know i need some packages,but i've add it in my pom.xml
>
>
> ERROR: Bundle net.iocanel.web-structs [119]: Error starting
> file:/Users/stream1984/program/apache-karaf-2.2.0/deploy/web-structs-1.0-SNAPSHOT.war
> (org.osgi.framework.BundleException: Unresolved constraint in bundle
> net.iocanel.web-structs [119]: Unable to resolve 119.2: missing requirement
> [119.2] package;
> (&(package=com.opensymphony.xwork2)(version>=2.1.0)(!(version>=3.0.0))))
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> net.iocanel.web-structs [119]: Unable to resolve 119.2: missing requirement
> [119.2] package;
> (&(package=com.opensymphony.xwork2)(version>=2.1.0)(!(version>=3.0.0)))
>        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
>        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
>        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
>        at java.lang.Thread.run(Thread.java:680)
>
> below is part of  my pom.xml
>
>
>                        *,
>                        javax.servlet,
>                        javax.persistence,
>                        javax.transaction,
>                        net.iocanel.database.dao,
>                        net.iocanel.database.entities,
>                        org.springframework.osgi.web.context.support,
>                        org.springframework.orm.jpa.support,
>                        org.springframework.transaction,
>                        org.springframework.aop,
>                        org.springframework.web.filter,
>                        org.aopalliance.aop,
>                        com.opensymphony.xwork2,
>                        org.apache.struts2.osgi.interceptor,
>                        org.osgi.framework
>
>
>
>                                org.apache.felix
>                                maven-bundle-plugin
>                                true
>
>
>
>                                                        manifest
>
>
>
>
>
>                                                jar
>                                                bundle
>                                                war
>
>
>                                                ${project.version}
>                                                ${project.artifactId}
>                                                ${classpath}
>                                                ${include.resources}
>                                                ${import.packages}
>                                                ${export.packages}
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2731048.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

mikevan
In reply to this post by stream
stream wrote
Ok
this is my error, i know i need some packages,but i've add it in my pom.xml


ERROR: Bundle net.iocanel.web-structs [119]: Error starting file:/Users/stream1984/program/apache-karaf-2.2.0/deploy/web-structs-1.0-SNAPSHOT.war (org.osgi.framework.BundleException: Unresolved constraint in bundle net.iocanel.web-structs [119]: Unable to resolve 119.2: missing requirement [119.2] package; (&(package=com.opensymphony.xwork2)(version>=2.1.0)(!(version>=3.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle net.iocanel.web-structs [119]: Unable to resolve 119.2: missing requirement [119.2] package; (&(package=com.opensymphony.xwork2)(version>=2.1.0)(!(version>=3.0.0)))
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:680)

below is part of  my pom.xml

                <import.packages>
                        *,
                        javax.servlet,
                        javax.persistence,
                        javax.transaction,
                        net.iocanel.database.dao,
                        net.iocanel.database.entities,
                        org.springframework.osgi.web.context.support,
                        org.springframework.orm.jpa.support,
                        org.springframework.transaction,
                        org.springframework.aop,
                        org.springframework.web.filter,
                        org.aopalliance.aop,
                        com.opensymphony.xwork2,
                        org.apache.struts2.osgi.interceptor,
                        org.osgi.framework
                </import.packages>

                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                                <extensions>true</extensions>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>manifest</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <supportedProjectTypes>
                                                <supportedProjectType>jar</supportedProjectType>
                                                <supportedProjectType>bundle</supportedProjectType>
                                                <supportedProjectType>war</supportedProjectType>
                                        </supportedProjectTypes>
                                        <instructions>
                                                <Bundle-Version>${project.version}</Bundle-Version>
                                                <Webapp-Context>${project.artifactId}</Webapp-Context>
                                                <Bundle-Classpath>${classpath}</Bundle-Classpath>
                                                <Include-Resource>${include.resources}</Include-Resource>
                                                <Import-Package>${import.packages}</Import-Package>
                                                <Export-Package>${export.packages}</Export-Package>
                                        </instructions>
                                </configuration>
                        </plugin>
Stream,

What version of xwork2 are you using in your pom?
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

stream
Hi man.
i used xwork-core-2.2.1.1 as the bundle,  i get it from struct.apache.org.
could you help me . thanks.
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

Charles Moulliard
Administrator
Question : Are you trying to deploy Struts2 frameworks. If this is the
case, I think that I can help you because I have started to create a
feature file a few weeks ago and discovered apackaging error with xwork. ?

On 27/03/11 14:41, stream wrote:
> Hi man.
> i used xwork-core-2.2.1.1 as the bundle,  i get it from struct.apache.org.
> could you help me . thanks.
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2738788.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

stream
Hi Charles Moulliard

i am just wanna deploy structs framework. could you show me your feature?
thanks in advance....
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

Charles Moulliard
Administrator
You don't reply to my question struts2 vs struct ?

On Mon, Mar 28, 2011 at 9:08 AM, stream <[hidden email]> wrote:

> Hi Charles Moulliard
>
> i am just wanna deploy structs framework. could you show me your feature?
> thanks in advance....
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2742187.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

stream
Oh i'm sorry.
is the struts2. yes
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

Charles Moulliard
Administrator
I will perform a new deploy using the bundle servicemix-struts2 &
servicemix-struts-xwork that I'm working on as the Struts2 bundles are
not correct and will be available to provide you this info soon.

On Mon, Mar 28, 2011 at 9:15 AM, stream <[hidden email]> wrote:
> Oh i'm sorry.
> is the struts2. yes
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2742202.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

stream
Yes thanks you...
i'll waiting for you,

在 2011-3-28,下午3:41, Charles Moulliard 写道:

> I will perform a new deploy using the bundle servicemix-struts2 &
> servicemix-struts-xwork that I'm working on as the Struts2 bundles are
> not correct and will be available to provide you this info soon.
>
> On Mon, Mar 28, 2011 at 9:15 AM, stream <[hidden email]> wrote:
>> Oh i'm sorry.
>> is the struts2. yes
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2742202.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>

Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

stream
In reply to this post by Charles Moulliard
Yes thanks you...
i am waiting for you,
Reply | Threaded
Open this post in threaded view
|

Re: someone could help me about struct2 in karaf

Charles Moulliard
Administrator
Here is the list of the bundles deployed. BTW, I will commit the two
ServiceMix bundles for Struts, so you will be able to build and deploy
them. For testng, I have downloaded the jar and move it to deploy
folder of karaf 3.0.0.-SNAPSHOT

[  42] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.struts-core/2.2.1.1_1-SNAPSHOT
[  45] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.struts.xwork/2.2.1.1_1-SNAPSHOT
[  47] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.junit/4.7_2
[  48] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ognl/2.7.3_4
[  49] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javassist/3.9.0.GA_1
[  52] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-io/1.4_1
[  53] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_4
[  54] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_4
[  55] [Active     ] [            ] [   60]
mvn:org.springframework/spring-core/3.0.5.RELEASE
[  56] [Active     ] [            ] [   60]
mvn:org.springframework/spring-asm/3.0.5.RELEASE
[  57] [Active     ] [            ] [   60]
mvn:org.springframework/spring-expression/3.0.5.RELEASE
[  58] [Active     ] [            ] [   60]
mvn:org.springframework/spring-beans/3.0.5.RELEASE
[  59] [Active     ] [            ] [   60]
mvn:org.springframework/spring-aop/3.0.5.RELEASE
[  60] [Active     ] [            ] [   60]
mvn:org.springframework/spring-context/3.0.5.RELEASE
[  61] [Active     ] [            ] [   60]
mvn:org.springframework/spring-context-support/3.0.5.RELEASE
[  74] [Active     ] [            ] [   60]
mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.1.2
[  75] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-util/7.3.1.v20110307
[  76] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-io/7.3.1.v20110307
[  77] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-http/7.3.1.v20110307
[  78] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-client/7.3.1.v20110307
[  79] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-continuation/7.3.1.v20110307
[  80] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-jmx/7.3.1.v20110307
[  81] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-server/7.3.1.v20110307
[  82] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-security/7.3.1.v20110307
[  83] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-servlet/7.3.1.v20110307
[  84] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-servlets/7.3.1.v20110307
[  85] [Active     ] [            ] [   60]
mvn:org.eclipse.jetty/jetty-xml/7.3.1.v20110307
[  86] [Active     ] [            ] [   60]
mvn:org.ops4j.pax.web/pax-web-api/1.1.0-SNAPSHOT
[  87] [Active     ] [            ] [   60]
mvn:org.ops4j.pax.web/pax-web-spi/1.1.0-SNAPSHOT
[  88] [Active     ] [            ] [   60]
mvn:org.ops4j.pax.web/pax-web-runtime/1.1.0-SNAPSHOT
[  89] [Active     ] [            ] [   60]
mvn:org.ops4j.pax.web/pax-web-jetty/1.1.0-SNAPSHOT
[  90] [Active     ] [            ] [   60]
mvn:org.springframework/spring-web/3.0.5.RELEASE
[  91] [Active     ] [            ] [   60]
mvn:org.springframework/spring-webmvc/3.0.5.RELEASE
[  93] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker/2.3.15_4
[ 104] [Active     ] [            ] [   60]
mvn:org.ops4j.pax.web/pax-web-jsp/1.1.0-SNAPSHOT
[ 105] [Active     ] [            ] [   60]
mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/1.1.0-SNAPSHOT
[ 107] [Active     ] [            ] [   60]
mvn:commons-fileupload/commons-fileupload/1.2.2
[ 108] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.7_1
[ 109] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections/3.2.1_1
[ 110] [Active     ] [            ] [   60]
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.oro/2.0.8_4
[ 112] [Active     ] [            ] [   60]
wrap:mvn:velocity-tools/velocity-tools-view/1.3
[ 115] [Active     ] [            ] [   60]
wrap:file:/Users/charlesmoulliard/Apache/karaf/assemblies/apache-karaf/target/apache-karaf-3.0.0-SNAPSHOT/deploy/testng-6.0.1.jar$Bundle-SymbolicName=testng&Bundle-Version=6.0.1



On Mon, Mar 28, 2011 at 9:46 AM, stream <[hidden email]> wrote:
> Yes thanks you...
> i am waiting for you,
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/someone-could-help-me-about-struct2-in-karaf-tp2729806p2742259.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com