Jersey将支持与Google App Engine问题链接起来 [英] Jersey linking support with Google App Engine issue

查看:152
本文介绍了Jersey将支持与Google App Engine问题链接起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有设法将Jersey链接支持与Google App Engine结合使用,我在尝试访问应用程序时遇到了这些异常情况:

 原因:javax.el.E​​LException:找不到表达式工厂类
...
引起:java.lang.ClassNotFoundException:de.odysseus.el.E​​xpressionFactoryImpl

正如文档中所述,我将它放在web.xml的Jersey servlet部分:

 < init-param> 
< param-name> com.sun.jersey.spi.container.ContainerResponseFilters< / param-name>
< param-value> com.sun.jersey.server.linking.LinkFilter< / param-value>
< / init-param>

我还将jersey-server-linking-1.13.jar添加到WEB-INF / lib目录我尝试添加el-api.jar,然后将juel-2.1.0.jar添加到WEB-INF / lib目录中,但是我是仍然收到这些错误。



我想知道是否有人可以给我一些关于如何处理这个问题的提示。当我不使用泽西链接jar时,一切都按预期工作。

解决方案

我的GAE有类似的问题应用程序。它与el-api和el-impl一起工作良好,但随着开发的进展,开始寻求de.odysseus.el.E​​xpressionFactoryImpl。我做了开关,但是当我将JUEL添加到我的pom.xml时,我得到了与John Prince(java.security.AccessControlException)相同的错误。



GAE用户将使用JUEL 2.2.7。



在写这篇文章时,2.2.7在maven central中不可用。但是,您可以在

 < repository> 
< id> repo-id< / id>
< name> repo-name< / name>
< url> https://oss.sonatype.org/content/repositories/snapshots/< / url>
< / repository>

并与您需要的任何相关链接

 <依赖性> 
< groupId> de.odysseus.juel< / groupId>
< artifactId> juel-api< / artifactId>
< version> 2.2.7-SNAPSHOT< / version>
< /依赖关系>

< dependency>
< groupId> de.odysseus.juel< / groupId>
< artifactId> juel-impl< / artifactId>
< version> 2.2.7-SNAPSHOT< / version>
< /依赖关系>

< dependency>
< groupId> de.odysseus.juel< / groupId>
< artifactId> juel-spi< / artifactId>
< version> 2.2.7-SNAPSHOT< / version>

来源: https://github.com/beckchr/juel/issues/73


I didn't manage to use the Jersey linking support with Google App Engine, I'm getting these exceptions when trying to access the application :

Caused by: javax.el.ELException: Could not find expression factory class
...
Caused by: java.lang.ClassNotFoundException: de.odysseus.el.ExpressionFactoryImpl

As specified in the documentation, I put this in the Jersey servlet section of the web.xml :

<init-param>
 <param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name>
 <param-value>com.sun.jersey.server.linking.LinkFilter</param-value>
</init-param>

I also add the jersey-server-linking-1.13.jar to the WEB-INF/lib directory of my project.

I tried to add el-api.jar first, then juel-2.1.0.jar to the WEB-INF/lib directory but I'm still getting these errors.

I'd like to know if someone could give me some hints about the way to deal with this. When I don't use the Jersey linking jar, everything is working as expected.

解决方案

I had a similar problem with my GAE app. It was working fine with el-api and el-impl but started asking for de.odysseus.el.ExpressionFactoryImpl as development progressed. I made the switch but when I added JUEL to my pom.xml, I got the same error as John Prince (java.security.AccessControlException).

The solution for GAE users is to use JUEL 2.2.7.

At the time of this writing, 2.2.7 is not available in maven central. However, you can find it on

<repository>
    <id>repo-id</id>
    <name>repo-name</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>

and link with whatever you need from

<dependency>
    <groupId>de.odysseus.juel</groupId>
    <artifactId>juel-api</artifactId>
    <version>2.2.7-SNAPSHOT</version>
</dependency>

<dependency>
    <groupId>de.odysseus.juel</groupId>
    <artifactId>juel-impl</artifactId>
    <version>2.2.7-SNAPSHOT</version>
</dependency>

<dependency>
    <groupId>de.odysseus.juel</groupId>
    <artifactId>juel-spi</artifactId>
    <version>2.2.7-SNAPSHOT</version>
</dependen

Source: https://github.com/beckchr/juel/issues/73

这篇关于Jersey将支持与Google App Engine问题链接起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆