标签: sts-springsourcetoolsuite

GWT + JSTL处于开发模式 - 是否可能?

我有一个GWT应用程序(由roo生成),我决定用Spring Security保护它.Roo生成一个login.jspx页面作为安全设置的一部分,这个jspx使用一些基本的JSTL标记库.

在开发模式下运行时,基础Jetty服务器显然不喜欢这样.具有以下Maven依赖项

    <dependency>
        <groupId>javax.servlet.jsp.jstl</groupId>
        <artifactId>jstl-api</artifactId>
        <version>1.2</version>
        <classifier/>
    </dependency>
    <dependency>
        <groupId>org.glassfish.web</groupId>
        <artifactId>jstl-impl</artifactId>
        <version>1.2</version>
        <classifier/>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

我明白了

java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
Run Code Online (Sandbox Code Playgroud)

我的猜测是jstl-impl依赖与Web容器已经提供的相互冲突,但当我将其范围更改为提供时,我得到:

org.apache.jasper.JasperException: /WEB-INF/views/login.jspx(22,69) The attribute prefix fn does not correspond to any imported tag library
Run Code Online (Sandbox Code Playgroud)

有人让这个成功地工作了吗?

PS我听说有传言你可以将应用程序导出到Tomcat,它运行正常,但GWT编译可能是一个耗时的操作,所以在开发模式下工作会很棒.

gwt jetty spring-roo sts-springsourcetoolsuite

3
推荐指数
1
解决办法
1048
查看次数

显示和表达式视图出错

我使用的是SpringSource Tool Suite 2.9.2和Grails 2.0.3.我正在尝试使用表达式和显示窗口,但两者都给我错误.

表达式窗口说:

org.eclipse.debug.core.DebugException:com.sun.jdi.ObjectCollectedException发生检索类型

这条消息有时会有所不同,并说它无法获得正确的类型,就像我没有包含包一样.

显示窗口显示:

"评估失败.原因:评估期间发生异常."

任何人都知道发生了什么事吗?

编辑:安德鲁,除了"在所有项目上启用额外的Groovy调试支持(不仅仅是Groovy项目)" 之外,还检查了首选项中的所有项目." 我检查过.

我仍然得到错误,并且由于某种原因,日志中没有显示任何内容,但是Expressions打开了一个子窗口,其中显示:

请参阅错误日志:启动失败: _ _Eval.groovy:7:无法解析类mydomain.User @ line 7,第23列.import mydomain.User; ^

1错误

可能相关的东西:此导入是页面上的第三个域导入.看起来像他们正在工作的另外两个是在我的"grails-app"文件夹中的"domain"文件夹中,但是那个不起作用的是"src/groovy",因为项目正在使用Hibernate.xml文件.我希望表达式能够工作,但也许这就是问题所在?

eclipse grails sts-springsourcetoolsuite

3
推荐指数
1
解决办法
2397
查看次数

Eclipse:项目由于错误而未构建

每当我在Eclipse STS中创建新的Spring MVC项目时,我都会收到此错误消息.

The project was not built due to "Error deleting resource '/ProjectName/target/classes/log4j.xml' from the workspace tree." Fix the problem, then try refreshing this project and building it since it may be inconsistent.

为什么会这样?我没有更改任何classes\log4j.xml文件系统上存在的文件.当我尝试导入文件时,Eclipse告诉我,我不能,因为源已经存在于项目中(即使它告诉我它已被删除).

eclipse sts-springsourcetoolsuite

3
推荐指数
1
解决办法
1万
查看次数

Groovy/Grails工具套件(基于Eclipse的IDE)在死锁方面存在很大问题

我正在使用GGTS在Grails中创建一些项目,但这个IDE非常慢.

我有(有时两者运行)在我的IDE两个项目后的微小变化GGTS开始建立工作区这需要大量的时间,有时它永远不会结束,只是死机,有时候这让我必须重新启动我的电脑这么难的僵局.

我的环境:赢得7位64位,Intel i5-2500 3,30GHz,8GB RAM,GGTS v.3.1.0,java 1.6.0_30,grails 2.2.0.

我已经读到有可能做类似这样的事情:Window - > Preferences - > General - > Workspace - > Linked Resource - 禁用链接资源,但我不确定我是否可以这样做,导致Grails项目已连接在这个地方,我相信:C:\ Users\username.grails\2.2.0\projects

我能做什么?解决这个问题的唯一方法是购买IntelliJ或使用一些文本编辑器和控制台吗?如何修复这个臭虫的Eclipse?

java eclipse grails spring sts-springsourcetoolsuite

3
推荐指数
1
解决办法
4559
查看次数

如何将源文件夹添加到grails应用程序

我使用STS开发Grails应用程序,我需要在那里使用wsimport实用程序生成的一堆类.为了不将我的源与自动生成的源混合,我想添加单独的目录并将生成的类放在那里,如下所示:

grails-project  
 |  
 |-- .classpath  
 |-- .groovy  
 |-- .project  
 |-- .settings  
 |-- application.properties  
 |-- grails-app  
 |-- lib  
 |-- scripts  
 |-- src
 |   |-- groovy
 |   |-- java
 |   `-- wsimport     <- where I want to make additional source folder
 |-- target  
 |-- target-eclipse  
 |-- test  
 `-- web-app
Run Code Online (Sandbox Code Playgroud)

我可以在.classpath文件中添加新的类路径条目,STS会识别源代码,但我该如何处理Grails?我是否需要在某个配置文件中指定它?

grails sts-springsourcetoolsuite

3
推荐指数
1
解决办法
2119
查看次数

JSONstring到Java Object而不使用任何外部库

我使用GWT并希望将jsonString转换为java POJO对象而不使用任何类型的外部库.可以任何人帮助我..任何帮助将不胜感激..谢谢..

sts-springsourcetoolsuite

3
推荐指数
1
解决办法
1280
查看次数

类'org.springframework.web.servlet.view.InternalResourceViewResolver'找不到错误

我使用Spring STS Eclipse插件在Spring MVC示例应用程序中遇到此错误:

未找到类'org.springframework.web.servlet.view.InternalResourceViewResolver'[config set:webninar-hello/web-context] servlet-context.xml

任何人都知道如何解决这个问题?

eclipse spring sts-springsourcetoolsuite

2
推荐指数
2
解决办法
3万
查看次数

对于commons-fileupload和commons-io的Maven依赖

我想通过STS将commons-fileupload和commons-io库添加到我的项目中.当我试图在我的pom.xml中添加依赖项并更新它时,我继续收到以下所有版本的错误

Maven dependency problem
    ArtifactDescriptorException: Failed to read artifact descriptor for commons-fileupload:commons-fileupload:jar:1.1: 
    ArtifactResolutionException: Failure to transfer commons-fileupload:commons-fileupload:pom:1.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. 

    Original error: Could not transfer artifact commons-fileupload:commons-fileupload:pom:1.1 from/to central (http://repo1.maven.org/maven2): Connect times out
Run Code Online (Sandbox Code Playgroud)

我试图从mvn查找

http://mvnrepository.com/artifact/commons-io/commons-io/2.4
http://mvnrepository.com/artifact/commons-fileupload/commons-fileupload/1.2.2
Run Code Online (Sandbox Code Playgroud)

我没有其他库的问题,特别是commons-logging Im使用SpringSource Tool Suite版本:2.9.2.RELEASE用于我的Spring项目

感谢所有的答复

maven sts-springsourcetoolsuite apache-commons-fileupload

2
推荐指数
1
解决办法
1万
查看次数

sts 3.6.1:默认服务器未添加到工作区; 无法为Pivotal 3.0选择tomcat7

当我使用STS 3.6.0默认的'Servers'文件夹时(Vmware vFabric v2.5 - v.2.9),总是会添加到我创建的任何新工作区中.自安装以来,STS 3.6.1我不再看到默认的"服务器"附加到工作区.现在似乎STS 3.6.1是捆绑Pivotal tc Server v3.0,这似乎有利于Tomcat 8的默认底层二进制文件(这需要Java SE 7,但我需要使用Java SE 6(这是我的工作区默认))所以我最好猜测为什么自动我没有添加'Servers'文件夹,因为我没有将Java SE7设置为我的工作区默认设置,但我有点惊讶Tomcat 8被认为是tc Server的默认二进制文件;

我也有问题为我的工作区手动添加服务器

(e.g. New->Server->Pivotal tcServer v3.0) 
Run Code Online (Sandbox Code Playgroud)

在我选择了'Pivotal tcServer v3.0'所选的默认Tomcat版本的位置后Tomcat 8.0.9.B.RELEASE.选择后我收到以下警告:

"Tomcat 8 requires Java SE7 or later. Change the JRE to one that meets this requirement"
Run Code Online (Sandbox Code Playgroud)

明白了,但......

当我选择Tomcat 7.0.55.A.RELEASE作为版本时,我仍然看到相同的消息,我无法继续添加服务器.(我的理解是Java SE6支持Tomcat 7.x).这是我认为的意外行为,因为我的工作区默认JRE支持Tomcat 7.是否存在此问题?

sts-springsourcetoolsuite spring-tool-suite tcserver

2
推荐指数
1
解决办法
2万
查看次数

如何下载旧版STS?

我想下载3.6.0 sts-bundle但我找不到在https://spring.io/tools/sts/all上执行此操作的地方.我只看到3.6.1的下载.有谁知道可以做到这一点?谢谢.

sts-springsourcetoolsuite spring-tool-suite

2
推荐指数
1
解决办法
4476
查看次数