You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Kevin Schmidt <kt...@gmail.com> on 2014/06/17 18:13:13 UTC

Using JSP EL 2.2 with Karaf 3.0.1

I have a JSF application I'm porting to Karaf/Jetty that uses EL 2.2 and
seems to have issues due to that.

I have OPS4J Pax Web - Jsp Support 3.1.0 installed and it says it supports
Servlet 3.0 (https://ops4j1.jira.com/wiki/display/paxweb/Pax+Web) that as I
understand it should include EL 2.2, but from what I see on the Pax Web
site it is only including javax.el and com.sun.el version 2.1 (
https://ops4j1.jira.com/wiki/display/paxweb/JSP+Usage).

So what is the correct way to get JSP EL 2.2 support in Karaf 3.0.1?

Thanks,

Kevin

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Achim Nierbeck <bc...@googlemail.com>.
well, the http, http-whiteboard and war features are only wrappers for the
pax web features, because Karaf also provides some extra commands on top
and other projects like camel depend on those.
You'd need to get rid of those dependencies and replace them with the
pax-web ones.

regards, Achim



2014-06-19 20:00 GMT+02:00 Kevin Schmidt <kt...@gmail.com>:

> I have gotten farther.  I can now install the various pax features that
> were failing yesterday.
>
> However, to really test this, my full application needs a bunch of other
> features and bundles.  So I've attempted to just replace Pax Web 3.1.0 with
> 4.0.0-SNAPSHOT in all the various features and dependencies we have, but
> all of that ends up installing and trying to
> start org.apache.karaf.http.core which appears to specifically preclude
> using 4.0.0 as I get this error:
>
> Could not start bundle
> mvn:org.apache.karaf.http/org.apache.karaf.http.core/3.0.1 in feature(s)
> http-3.0.1: Unresolved constraint in bundle org.apache.karaf.http.core
> [99]: Unable to resolve 99.0: missing requirement [99.0]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.ops4j.pax.web.service.spi)(version>=3.1.0)(!(version>=4.0.0)))
>
> I can try to build up what I need from a vanilla Karaf instead of trying
> to replace Pax Web in our full install, but not sure if that will be
> successful or not.
>
> Kevin
>
>
> On Wed, Jun 18, 2014 at 11:11 AM, Kevin Schmidt <kt...@gmail.com>
> wrote:
>
>> Achim,
>>
>> Yes, I'm using the released 3.0.1.  I'll try again later today.
>>
>> Kevin
>>
>>
>> On Wed, Jun 18, 2014 at 10:58 AM, Achim Nierbeck <bcanhome@googlemail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> ok, you're using the last 3.0.1 Karaf right, we had a issue with the
>>> feature installer that looks for the Manifest file which usually is the
>>> first entry in a jar, but looks like that particular one is missing it,
>>> I'll try to re-animate the wrap for that bundle again.
>>>
>>> Besides this flaw you're installing it in the right way ;)
>>>
>>> I just fixed that wrap issue, should be through in about half an hour.
>>> Might want to give it another try then.
>>>
>>> regards, Achim
>>>
>>>
>>>
>>>
>>> 2014-06-18 18:06 GMT+02:00 Kevin Schmidt <kt...@gmail.com>:
>>>
>>> I'm not sure if this is completely right or not, but I figured out I can
>>>> do:
>>>>
>>>> feature:install pax-jetty
>>>> feature:install pax-http
>>>> feature:install pax-war
>>>>
>>>> Although the last one results in this error:
>>>>
>>>> Error executing command: Manifest not present in the first entry of the
>>>> zip mvn:org.eclipse.jdt.core.compiler/ecj/4.2.2
>>>>
>>>> And if I try to install the pax-http-whiteboard feature I get the same
>>>> error.
>>>>
>>>> Ignoring the last error, is this correct?  I need to install the
>>>> individual features, not one top-level feature for pax-web?
>>>>
>>>> And what about the error?  It doesn't look like the full set of Pax Web
>>>> bundles have been installed at this point.
>>>>
>>>>
>>>> On Wed, Jun 18, 2014 at 8:43 AM, Kevin Schmidt <kt...@gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks.
>>>>>
>>>>> What is the repo and feature URL for the 4.0.0-SNAPSHOT feature?
>>>>>
>>>>> I added
>>>>> https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.snapshot
>>>>> to my repositories and then I can do:
>>>>>
>>>>> repo-add
>>>>> mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features
>>>>>
>>>>> This works fine.  But then I can't figure out what feature to install.
>>>>>  What should the feature:install parameter be?  Everything I try fails.
>>>>>  And if I look at
>>>>> https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/features/
>>>>> the 4.0.0-SNAPSHOT directory is missing.  So is 4.0.0-SNAPSHOT not fully
>>>>> there?
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Jun 18, 2014 at 5:01 AM, Achim Nierbeck <
>>>>> bcanhome@googlemail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> could you try with the latest 4.0.0-SNAPSHOT?
>>>>>> For this you'd need to have a "vanilla" karaf first, or at least no
>>>>>> Pax Web 3.1.x bundles installed,
>>>>>> add the 4.0.0-SNAPSHOT feature url to your repository and install the
>>>>>> Pax Web 4.0 features.
>>>>>> You'd gonna miss the web and http commands but I'd think that's OK
>>>>>> for testing with the latest snapshot ;)
>>>>>>
>>>>>> If that works fine, if not, open a issue at the Pax Web issue tracker
>>>>>> [1], best with a simple test-case so I can take a deeper look at it :)
>>>>>>
>>>>>> regards, Achim
>>>>>>
>>>>>> [1] - https://ops4j1.jira.com/browse/PAXWEB/
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:
>>>>>>
>>>>>> I should add that doing a bundle:capabilities on the Pax Web bundle
>>>>>>> shows:
>>>>>>>
>>>>>>> osgi.wiring.package; javax.el 2.2.0 required by:
>>>>>>>    org.apache.myfaces.core.impl [266]
>>>>>>>    org.apache.myfaces.core.api [267]
>>>>>>>
>>>>>>> which is encouraging, but then shows this:
>>>>>>>
>>>>>>> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>>>>>>>    org.ops4j.pax.web.pax-web-jetty [79]
>>>>>>>    org.ops4j.pax.web.pax-web-runtime [78]
>>>>>>>
>>>>>>> which is not.
>>>>>>>
>>>>>>> And the exception I get which points to EL 2.2 missing is:
>>>>>>>
>>>>>>> javax.servlet.ServletException: Error Parsing:
>>>>>>> #{codesBean.genders.keySet()}
>>>>>>>         at
>>>>>>>
>>>>>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
>>>>>>> ...
>>>>>>> Caused by: javax.el.ELException: Error Parsing:
>>>>>>> #{codesBean.genders.keySet()}
>>>>>>>         at
>>>>>>>
>>>>>>> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>>         at
>>>>>>>
>>>>>>> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>>         at
>>>>>>>
>>>>>>> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>>         at
>>>>>>>
>>>>>>> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>>         at
>>>>>>>
>>>>>>> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>>>>>>>
>>>>>>> Other EL expressions that just refer to getters work fine.  But
>>>>>>> calling
>>>>>>> methods which was added in EL 2.2 fails.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
>>>>>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Apache Member
>>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>> Committer & Project Lead
>>>>>> blog <http://notizblog.nierbeck.de/>
>>>>>>
>>>>>> Software Architect / Project Manager / Scrum Master
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> & Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>>
>>> Software Architect / Project Manager / Scrum Master
>>>
>>>
>>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Kevin Schmidt <kt...@gmail.com>.
I have gotten farther.  I can now install the various pax features that
were failing yesterday.

However, to really test this, my full application needs a bunch of other
features and bundles.  So I've attempted to just replace Pax Web 3.1.0 with
4.0.0-SNAPSHOT in all the various features and dependencies we have, but
all of that ends up installing and trying to
start org.apache.karaf.http.core which appears to specifically preclude
using 4.0.0 as I get this error:

Could not start bundle
mvn:org.apache.karaf.http/org.apache.karaf.http.core/3.0.1 in feature(s)
http-3.0.1: Unresolved constraint in bundle org.apache.karaf.http.core
[99]: Unable to resolve 99.0: missing requirement [99.0]
osgi.wiring.package;
(&(osgi.wiring.package=org.ops4j.pax.web.service.spi)(version>=3.1.0)(!(version>=4.0.0)))

I can try to build up what I need from a vanilla Karaf instead of trying to
replace Pax Web in our full install, but not sure if that will be
successful or not.

Kevin


On Wed, Jun 18, 2014 at 11:11 AM, Kevin Schmidt <kt...@gmail.com> wrote:

> Achim,
>
> Yes, I'm using the released 3.0.1.  I'll try again later today.
>
> Kevin
>
>
> On Wed, Jun 18, 2014 at 10:58 AM, Achim Nierbeck <bc...@googlemail.com>
> wrote:
>
>> Hi,
>>
>> ok, you're using the last 3.0.1 Karaf right, we had a issue with the
>> feature installer that looks for the Manifest file which usually is the
>> first entry in a jar, but looks like that particular one is missing it,
>> I'll try to re-animate the wrap for that bundle again.
>>
>> Besides this flaw you're installing it in the right way ;)
>>
>> I just fixed that wrap issue, should be through in about half an hour.
>> Might want to give it another try then.
>>
>> regards, Achim
>>
>>
>>
>>
>> 2014-06-18 18:06 GMT+02:00 Kevin Schmidt <kt...@gmail.com>:
>>
>> I'm not sure if this is completely right or not, but I figured out I can
>>> do:
>>>
>>> feature:install pax-jetty
>>> feature:install pax-http
>>> feature:install pax-war
>>>
>>> Although the last one results in this error:
>>>
>>> Error executing command: Manifest not present in the first entry of the
>>> zip mvn:org.eclipse.jdt.core.compiler/ecj/4.2.2
>>>
>>> And if I try to install the pax-http-whiteboard feature I get the same
>>> error.
>>>
>>> Ignoring the last error, is this correct?  I need to install the
>>> individual features, not one top-level feature for pax-web?
>>>
>>> And what about the error?  It doesn't look like the full set of Pax Web
>>> bundles have been installed at this point.
>>>
>>>
>>> On Wed, Jun 18, 2014 at 8:43 AM, Kevin Schmidt <kt...@gmail.com>
>>> wrote:
>>>
>>>> Thanks.
>>>>
>>>> What is the repo and feature URL for the 4.0.0-SNAPSHOT feature?
>>>>
>>>> I added
>>>> https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.snapshot
>>>> to my repositories and then I can do:
>>>>
>>>> repo-add
>>>> mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features
>>>>
>>>> This works fine.  But then I can't figure out what feature to install.
>>>>  What should the feature:install parameter be?  Everything I try fails.
>>>>  And if I look at
>>>> https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/features/
>>>> the 4.0.0-SNAPSHOT directory is missing.  So is 4.0.0-SNAPSHOT not fully
>>>> there?
>>>>
>>>>
>>>>
>>>> On Wed, Jun 18, 2014 at 5:01 AM, Achim Nierbeck <
>>>> bcanhome@googlemail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> could you try with the latest 4.0.0-SNAPSHOT?
>>>>> For this you'd need to have a "vanilla" karaf first, or at least no
>>>>> Pax Web 3.1.x bundles installed,
>>>>> add the 4.0.0-SNAPSHOT feature url to your repository and install the
>>>>> Pax Web 4.0 features.
>>>>> You'd gonna miss the web and http commands but I'd think that's OK for
>>>>> testing with the latest snapshot ;)
>>>>>
>>>>> If that works fine, if not, open a issue at the Pax Web issue tracker
>>>>> [1], best with a simple test-case so I can take a deeper look at it :)
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> [1] - https://ops4j1.jira.com/browse/PAXWEB/
>>>>>
>>>>>
>>>>>
>>>>> 2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:
>>>>>
>>>>> I should add that doing a bundle:capabilities on the Pax Web bundle
>>>>>> shows:
>>>>>>
>>>>>> osgi.wiring.package; javax.el 2.2.0 required by:
>>>>>>    org.apache.myfaces.core.impl [266]
>>>>>>    org.apache.myfaces.core.api [267]
>>>>>>
>>>>>> which is encouraging, but then shows this:
>>>>>>
>>>>>> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>>>>>>    org.ops4j.pax.web.pax-web-jetty [79]
>>>>>>    org.ops4j.pax.web.pax-web-runtime [78]
>>>>>>
>>>>>> which is not.
>>>>>>
>>>>>> And the exception I get which points to EL 2.2 missing is:
>>>>>>
>>>>>> javax.servlet.ServletException: Error Parsing:
>>>>>> #{codesBean.genders.keySet()}
>>>>>>         at
>>>>>>
>>>>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
>>>>>> ...
>>>>>> Caused by: javax.el.ELException: Error Parsing:
>>>>>> #{codesBean.genders.keySet()}
>>>>>>         at
>>>>>>
>>>>>> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>         at
>>>>>>
>>>>>> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>         at
>>>>>>
>>>>>> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>         at
>>>>>>
>>>>>> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>>         at
>>>>>>
>>>>>> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>>>>>>
>>>>>> Other EL expressions that just refer to getters work fine.  But
>>>>>> calling
>>>>>> methods which was added in EL 2.2 fails.
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
>>>>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Apache Member
>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>> Committer & Project Lead
>>>>> blog <http://notizblog.nierbeck.de/>
>>>>>
>>>>> Software Architect / Project Manager / Scrum Master
>>>>>
>>>>>
>>>>
>>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Kevin Schmidt <kt...@gmail.com>.
Achim,

Yes, I'm using the released 3.0.1.  I'll try again later today.

Kevin


On Wed, Jun 18, 2014 at 10:58 AM, Achim Nierbeck <bc...@googlemail.com>
wrote:

> Hi,
>
> ok, you're using the last 3.0.1 Karaf right, we had a issue with the
> feature installer that looks for the Manifest file which usually is the
> first entry in a jar, but looks like that particular one is missing it,
> I'll try to re-animate the wrap for that bundle again.
>
> Besides this flaw you're installing it in the right way ;)
>
> I just fixed that wrap issue, should be through in about half an hour.
> Might want to give it another try then.
>
> regards, Achim
>
>
>
>
> 2014-06-18 18:06 GMT+02:00 Kevin Schmidt <kt...@gmail.com>:
>
> I'm not sure if this is completely right or not, but I figured out I can
>> do:
>>
>> feature:install pax-jetty
>> feature:install pax-http
>> feature:install pax-war
>>
>> Although the last one results in this error:
>>
>> Error executing command: Manifest not present in the first entry of the
>> zip mvn:org.eclipse.jdt.core.compiler/ecj/4.2.2
>>
>> And if I try to install the pax-http-whiteboard feature I get the same
>> error.
>>
>> Ignoring the last error, is this correct?  I need to install the
>> individual features, not one top-level feature for pax-web?
>>
>> And what about the error?  It doesn't look like the full set of Pax Web
>> bundles have been installed at this point.
>>
>>
>> On Wed, Jun 18, 2014 at 8:43 AM, Kevin Schmidt <kt...@gmail.com>
>> wrote:
>>
>>> Thanks.
>>>
>>> What is the repo and feature URL for the 4.0.0-SNAPSHOT feature?
>>>
>>> I added
>>> https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.snapshot
>>> to my repositories and then I can do:
>>>
>>> repo-add
>>> mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features
>>>
>>> This works fine.  But then I can't figure out what feature to install.
>>>  What should the feature:install parameter be?  Everything I try fails.
>>>  And if I look at
>>> https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/features/
>>> the 4.0.0-SNAPSHOT directory is missing.  So is 4.0.0-SNAPSHOT not fully
>>> there?
>>>
>>>
>>>
>>> On Wed, Jun 18, 2014 at 5:01 AM, Achim Nierbeck <bcanhome@googlemail.com
>>> > wrote:
>>>
>>>> Hi,
>>>>
>>>> could you try with the latest 4.0.0-SNAPSHOT?
>>>> For this you'd need to have a "vanilla" karaf first, or at least no Pax
>>>> Web 3.1.x bundles installed,
>>>> add the 4.0.0-SNAPSHOT feature url to your repository and install the
>>>> Pax Web 4.0 features.
>>>> You'd gonna miss the web and http commands but I'd think that's OK for
>>>> testing with the latest snapshot ;)
>>>>
>>>> If that works fine, if not, open a issue at the Pax Web issue tracker
>>>> [1], best with a simple test-case so I can take a deeper look at it :)
>>>>
>>>> regards, Achim
>>>>
>>>> [1] - https://ops4j1.jira.com/browse/PAXWEB/
>>>>
>>>>
>>>>
>>>> 2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:
>>>>
>>>> I should add that doing a bundle:capabilities on the Pax Web bundle
>>>>> shows:
>>>>>
>>>>> osgi.wiring.package; javax.el 2.2.0 required by:
>>>>>    org.apache.myfaces.core.impl [266]
>>>>>    org.apache.myfaces.core.api [267]
>>>>>
>>>>> which is encouraging, but then shows this:
>>>>>
>>>>> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>>>>>    org.ops4j.pax.web.pax-web-jetty [79]
>>>>>    org.ops4j.pax.web.pax-web-runtime [78]
>>>>>
>>>>> which is not.
>>>>>
>>>>> And the exception I get which points to EL 2.2 missing is:
>>>>>
>>>>> javax.servlet.ServletException: Error Parsing:
>>>>> #{codesBean.genders.keySet()}
>>>>>         at
>>>>>
>>>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
>>>>> ...
>>>>> Caused by: javax.el.ELException: Error Parsing:
>>>>> #{codesBean.genders.keySet()}
>>>>>         at
>>>>>
>>>>> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>         at
>>>>>
>>>>> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>         at
>>>>>
>>>>> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>         at
>>>>>
>>>>> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>>         at
>>>>>
>>>>> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>>>>>
>>>>> Other EL expressions that just refer to getters work fine.  But calling
>>>>> methods which was added in EL 2.2 fails.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
>>>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Apache Member
>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> Committer & Project Lead
>>>> blog <http://notizblog.nierbeck.de/>
>>>>
>>>> Software Architect / Project Manager / Scrum Master
>>>>
>>>>
>>>
>>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

ok, you're using the last 3.0.1 Karaf right, we had a issue with the
feature installer that looks for the Manifest file which usually is the
first entry in a jar, but looks like that particular one is missing it,
I'll try to re-animate the wrap for that bundle again.

Besides this flaw you're installing it in the right way ;)

I just fixed that wrap issue, should be through in about half an hour.
Might want to give it another try then.

regards, Achim




2014-06-18 18:06 GMT+02:00 Kevin Schmidt <kt...@gmail.com>:

> I'm not sure if this is completely right or not, but I figured out I can
> do:
>
> feature:install pax-jetty
> feature:install pax-http
> feature:install pax-war
>
> Although the last one results in this error:
>
> Error executing command: Manifest not present in the first entry of the
> zip mvn:org.eclipse.jdt.core.compiler/ecj/4.2.2
>
> And if I try to install the pax-http-whiteboard feature I get the same
> error.
>
> Ignoring the last error, is this correct?  I need to install the
> individual features, not one top-level feature for pax-web?
>
> And what about the error?  It doesn't look like the full set of Pax Web
> bundles have been installed at this point.
>
>
> On Wed, Jun 18, 2014 at 8:43 AM, Kevin Schmidt <kt...@gmail.com>
> wrote:
>
>> Thanks.
>>
>> What is the repo and feature URL for the 4.0.0-SNAPSHOT feature?
>>
>> I added
>> https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.snapshot
>> to my repositories and then I can do:
>>
>> repo-add
>> mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features
>>
>> This works fine.  But then I can't figure out what feature to install.
>>  What should the feature:install parameter be?  Everything I try fails.
>>  And if I look at
>> https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/features/
>> the 4.0.0-SNAPSHOT directory is missing.  So is 4.0.0-SNAPSHOT not fully
>> there?
>>
>>
>>
>> On Wed, Jun 18, 2014 at 5:01 AM, Achim Nierbeck <bc...@googlemail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> could you try with the latest 4.0.0-SNAPSHOT?
>>> For this you'd need to have a "vanilla" karaf first, or at least no Pax
>>> Web 3.1.x bundles installed,
>>> add the 4.0.0-SNAPSHOT feature url to your repository and install the
>>> Pax Web 4.0 features.
>>> You'd gonna miss the web and http commands but I'd think that's OK for
>>> testing with the latest snapshot ;)
>>>
>>> If that works fine, if not, open a issue at the Pax Web issue tracker
>>> [1], best with a simple test-case so I can take a deeper look at it :)
>>>
>>> regards, Achim
>>>
>>> [1] - https://ops4j1.jira.com/browse/PAXWEB/
>>>
>>>
>>>
>>> 2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:
>>>
>>> I should add that doing a bundle:capabilities on the Pax Web bundle
>>>> shows:
>>>>
>>>> osgi.wiring.package; javax.el 2.2.0 required by:
>>>>    org.apache.myfaces.core.impl [266]
>>>>    org.apache.myfaces.core.api [267]
>>>>
>>>> which is encouraging, but then shows this:
>>>>
>>>> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>>>>    org.ops4j.pax.web.pax-web-jetty [79]
>>>>    org.ops4j.pax.web.pax-web-runtime [78]
>>>>
>>>> which is not.
>>>>
>>>> And the exception I get which points to EL 2.2 missing is:
>>>>
>>>> javax.servlet.ServletException: Error Parsing:
>>>> #{codesBean.genders.keySet()}
>>>>         at
>>>>
>>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
>>>> ...
>>>> Caused by: javax.el.ELException: Error Parsing:
>>>> #{codesBean.genders.keySet()}
>>>>         at
>>>>
>>>> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>         at
>>>>
>>>> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>         at
>>>>
>>>> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>         at
>>>>
>>>> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>>         at
>>>>
>>>> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>>>>
>>>> Other EL expressions that just refer to getters work fine.  But calling
>>>> methods which was added in EL 2.2 fails.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
>>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> & Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>>
>>> Software Architect / Project Manager / Scrum Master
>>>
>>>
>>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Kevin Schmidt <kt...@gmail.com>.
I'm not sure if this is completely right or not, but I figured out I can do:

feature:install pax-jetty
feature:install pax-http
feature:install pax-war

Although the last one results in this error:

Error executing command: Manifest not present in the first entry of the zip
mvn:org.eclipse.jdt.core.compiler/ecj/4.2.2

And if I try to install the pax-http-whiteboard feature I get the same
error.

Ignoring the last error, is this correct?  I need to install the individual
features, not one top-level feature for pax-web?

And what about the error?  It doesn't look like the full set of Pax Web
bundles have been installed at this point.


On Wed, Jun 18, 2014 at 8:43 AM, Kevin Schmidt <kt...@gmail.com> wrote:

> Thanks.
>
> What is the repo and feature URL for the 4.0.0-SNAPSHOT feature?
>
> I added
> https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.snapshot
> to my repositories and then I can do:
>
> repo-add mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features
>
> This works fine.  But then I can't figure out what feature to install.
>  What should the feature:install parameter be?  Everything I try fails.
>  And if I look at
> https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/features/
> the 4.0.0-SNAPSHOT directory is missing.  So is 4.0.0-SNAPSHOT not fully
> there?
>
>
>
> On Wed, Jun 18, 2014 at 5:01 AM, Achim Nierbeck <bc...@googlemail.com>
> wrote:
>
>> Hi,
>>
>> could you try with the latest 4.0.0-SNAPSHOT?
>> For this you'd need to have a "vanilla" karaf first, or at least no Pax
>> Web 3.1.x bundles installed,
>> add the 4.0.0-SNAPSHOT feature url to your repository and install the Pax
>> Web 4.0 features.
>> You'd gonna miss the web and http commands but I'd think that's OK for
>> testing with the latest snapshot ;)
>>
>> If that works fine, if not, open a issue at the Pax Web issue tracker
>> [1], best with a simple test-case so I can take a deeper look at it :)
>>
>> regards, Achim
>>
>> [1] - https://ops4j1.jira.com/browse/PAXWEB/
>>
>>
>>
>> 2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:
>>
>> I should add that doing a bundle:capabilities on the Pax Web bundle shows:
>>>
>>> osgi.wiring.package; javax.el 2.2.0 required by:
>>>    org.apache.myfaces.core.impl [266]
>>>    org.apache.myfaces.core.api [267]
>>>
>>> which is encouraging, but then shows this:
>>>
>>> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>>>    org.ops4j.pax.web.pax-web-jetty [79]
>>>    org.ops4j.pax.web.pax-web-runtime [78]
>>>
>>> which is not.
>>>
>>> And the exception I get which points to EL 2.2 missing is:
>>>
>>> javax.servlet.ServletException: Error Parsing:
>>> #{codesBean.genders.keySet()}
>>>         at
>>>
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
>>> ...
>>> Caused by: javax.el.ELException: Error Parsing:
>>> #{codesBean.genders.keySet()}
>>>         at
>>>
>>> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>         at
>>>
>>> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>         at
>>>
>>> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>         at
>>>
>>> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>>         at
>>>
>>> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>>>
>>> Other EL expressions that just refer to getters work fine.  But calling
>>> methods which was added in EL 2.2 fails.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Kevin Schmidt <kt...@gmail.com>.
Thanks.

What is the repo and feature URL for the 4.0.0-SNAPSHOT feature?

I added
https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.snapshot
to my repositories and then I can do:

repo-add mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features

This works fine.  But then I can't figure out what feature to install.
 What should the feature:install parameter be?  Everything I try fails.
 And if I look at
https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/features/
the 4.0.0-SNAPSHOT directory is missing.  So is 4.0.0-SNAPSHOT not fully
there?



On Wed, Jun 18, 2014 at 5:01 AM, Achim Nierbeck <bc...@googlemail.com>
wrote:

> Hi,
>
> could you try with the latest 4.0.0-SNAPSHOT?
> For this you'd need to have a "vanilla" karaf first, or at least no Pax
> Web 3.1.x bundles installed,
> add the 4.0.0-SNAPSHOT feature url to your repository and install the Pax
> Web 4.0 features.
> You'd gonna miss the web and http commands but I'd think that's OK for
> testing with the latest snapshot ;)
>
> If that works fine, if not, open a issue at the Pax Web issue tracker [1],
> best with a simple test-case so I can take a deeper look at it :)
>
> regards, Achim
>
> [1] - https://ops4j1.jira.com/browse/PAXWEB/
>
>
>
> 2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:
>
> I should add that doing a bundle:capabilities on the Pax Web bundle shows:
>>
>> osgi.wiring.package; javax.el 2.2.0 required by:
>>    org.apache.myfaces.core.impl [266]
>>    org.apache.myfaces.core.api [267]
>>
>> which is encouraging, but then shows this:
>>
>> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>>    org.ops4j.pax.web.pax-web-jetty [79]
>>    org.ops4j.pax.web.pax-web-runtime [78]
>>
>> which is not.
>>
>> And the exception I get which points to EL 2.2 missing is:
>>
>> javax.servlet.ServletException: Error Parsing:
>> #{codesBean.genders.keySet()}
>>         at
>>
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
>> ...
>> Caused by: javax.el.ELException: Error Parsing:
>> #{codesBean.genders.keySet()}
>>         at
>>
>> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>         at
>>
>> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>         at
>>
>> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>         at
>>
>> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>>         at
>>
>> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>>
>> Other EL expressions that just refer to getters work fine.  But calling
>> methods which was added in EL 2.2 fails.
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

could you try with the latest 4.0.0-SNAPSHOT?
For this you'd need to have a "vanilla" karaf first, or at least no Pax Web
3.1.x bundles installed,
add the 4.0.0-SNAPSHOT feature url to your repository and install the Pax
Web 4.0 features.
You'd gonna miss the web and http commands but I'd think that's OK for
testing with the latest snapshot ;)

If that works fine, if not, open a issue at the Pax Web issue tracker [1],
best with a simple test-case so I can take a deeper look at it :)

regards, Achim

[1] - https://ops4j1.jira.com/browse/PAXWEB/



2014-06-17 18:22 GMT+02:00 schmke <kt...@gmail.com>:

> I should add that doing a bundle:capabilities on the Pax Web bundle shows:
>
> osgi.wiring.package; javax.el 2.2.0 required by:
>    org.apache.myfaces.core.impl [266]
>    org.apache.myfaces.core.api [267]
>
> which is encouraging, but then shows this:
>
> osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
>    org.ops4j.pax.web.pax-web-jetty [79]
>    org.ops4j.pax.web.pax-web-runtime [78]
>
> which is not.
>
> And the exception I get which points to EL 2.2 missing is:
>
> javax.servlet.ServletException: Error Parsing:
> #{codesBean.genders.keySet()}
>         at
>
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
> ...
> Caused by: javax.el.ELException: Error Parsing:
> #{codesBean.genders.keySet()}
>         at
>
> com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>         at
>
> com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>         at
>
> com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>         at
>
> com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
>         at
>
> org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]
>
> Other EL expressions that just refer to getters work fine.  But calling
> methods which was added in EL 2.2 fails.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Using JSP EL 2.2 with Karaf 3.0.1

Posted by schmke <kt...@gmail.com>.
I should add that doing a bundle:capabilities on the Pax Web bundle shows:

osgi.wiring.package; javax.el 2.2.0 required by:
   org.apache.myfaces.core.impl [266]
   org.apache.myfaces.core.api [267]

which is encouraging, but then shows this:

osgi.wiring.package; com.sun.el 2.1.0.v20091210 required by:
   org.ops4j.pax.web.pax-web-jetty [79]
   org.ops4j.pax.web.pax-web-runtime [78]

which is not.

And the exception I get which points to EL 2.2 missing is:

javax.servlet.ServletException: Error Parsing: #{codesBean.genders.keySet()}
        at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)[267:org.apache.myfaces.core.api:2.1.0]
...
Caused by: javax.el.ELException: Error Parsing:
#{codesBean.genders.keySet()}
        at
com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:171)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
        at
com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:188)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
        at
com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:232)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
        at
com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:92)[136:org.ops4j.pax.web.pax-web-jsp:3.1.0]
        at
org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:366)[266:org.apache.myfaces.core.impl:2.1.0]

Other EL expressions that just refer to getters work fine.  But calling
methods which was added in EL 2.2 fails.



--
View this message in context: http://karaf.922171.n3.nabble.com/Using-JSP-EL-2-2-with-Karaf-3-0-1-tp4033584p4033585.html
Sent from the Karaf - User mailing list archive at Nabble.com.