不能使用外部库进行google app engine java项目 [英] Cannot use external libraries for google app engine java project

查看:160
本文介绍了不能使用外部库进行google app engine java项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Google App Engine插件和安装了Google App Engine SDK 1.3.0的Eclipse。
我已经通过Google App Engine SDK 1.3.0创建了一个新的Web项目。
现在,我想在jsp文件中添加一些高级JSTL语法的库,它是EL-functors( http://el-functors.sourceforge.net )。
为了使EL函子在jsp文件中获取高级语法并将其编译为标准的jsp语法,我必须在web.xml中添加一些监听器:

 <听者GT; 
< listener-class> beanface.el.functor.InstallFunctorListener< / listener-class>
< / listener>

此外,我添加了standar.jar,jstl.jar,el-functors-1.0.3。 jar到我的构建路径。
但是,当我启动Web服务器(使用Debug As> Web Project)时,在控制台日志中,我看到这个错误消息:

 初始化AppEngine服务器
2010年2月5日上午7:22:45 com.google.apphosting.utils.jetty.JettyLogger警告
警告:无法实例化侦听器beanface.el.functor .InstallFunctorListener
java.lang.ClassNotFoundException:beanface.el.functor.InstallFunctorListener
在java.net.URLClassLoader $ 1.run(URLClassLoader.java:200)
在java.security.AccessController。 doPrivileged(Native Method)
在java.net.URLClassLoader.findClass(URLClassLoader.java:188)
在java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at .. ......
com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java: 1035)
在com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
在com.google.gwt.dev.DevMode.main(DevMode.java:275)

我猜应该有一些原因导致库没有加载。
当我来到war / WEB-INF / lib时,我看不到standard.jar,jstl.jar和el-functors.1.0.3.jar,



有什么问题,我该如何解决?

解决方案

您需要手动将所需的jar复制到/ WEB-INF / lib文件夹。



在开始使用应用引擎构建时遇到类似的问题。经过一番研究,我得出结论,这是唯一的办法让它工作。

想知道我是否错了:)


I have an Eclipse with Google App Engine Plugin and Google App Engine SDK 1.3.0 installed on. I have created a new web project with Google App Engine SDK 1.3.0. Now, I want to add a library for some advanced JSTL syntax in jsp file, it's is EL-functors (http://el-functors.sourceforge.net). In order for EL-functors to pickup its advanced syntax in jsp file and compile them to standard jsp syntax, I must add some listener to the web.xml:

<listener>
  <listener-class>beanface.el.functor.InstallFunctorListener</listener-class>
</listener>

Also, I have added standar.jar, jstl.jar, el-functors-1.0.3.jar to my build path. However, when I kick off web server (using Debug As>Web Project), in the console log, I see this error message:

Initializing AppEngine server
Feb 5, 2010 7:22:45 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Could not instantiate listener beanface.el.functor.InstallFunctorListener
java.lang.ClassNotFoundException: beanface.el.functor.InstallFunctorListener
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at ........
    at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
    at com.google.gwt.dev.DevMode.main(DevMode.java:275)

I guess there should be some causes lead to the library is not loaded. When I come to war/WEB-INF/lib, I cannot see standard.jar, jstl.jar and el-functors.1.0.3.jar overthere; only google app engine jars being deployed.

What is the problem there, how can I fix that?

解决方案

You need to copy the required jar(s) to the /WEB-INF/lib folder manually.

I faced a similar issue while starting to build with app-engine. After some research, I came to the conclusion that it is the only way to get it working.

Would love to know if I am wrong :)

这篇关于不能使用外部库进行google app engine java项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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