sts-springsourcetoolsuite

STS Spring MVC: How to include a JS file in a JSP

亡梦爱人 提交于 2019-12-14 04:18:11
问题 I installed SpringSource Tool Suite 2.8.0. I'm trying to include a JS file in a JSP, using the Spring MVC template as a starting point. My JSP looks like this: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page session="false" %> <html> <head> <title>Home</title> <script type="text/javascript" src="/a.js"></script> </head> <body> Hello world! </body> </html> a.js is under src\main\resources and looks like this: window.alert("A"); The result is that "Hello world!" gets

Why is Target Unreachable, identifier resolved to null on weblogic [duplicate]

我怕爱的太早我们不能终老 提交于 2019-12-14 03:29:31
问题 This question already has answers here : Identifying and solving javax.el.PropertyNotFoundException: Target Unreachable (14 answers) Spring JSF integration: how to inject a Spring component/service in JSF managed bean? (3 answers) Closed 2 years ago . People are marking this a duplicate, but if you look at my answer below, you will see why it is different. I am using STS, weblogic, and primefaces 5.3 and I keep getting the error "Target Unreachable, identifier 'dtObservationsView' resolved to

Spring STS does not work with Gradle

こ雲淡風輕ζ 提交于 2019-12-13 14:07:01
问题 I have downloaded Spring STS. I created a project (new spring starter project) and selected gradle buildship. It said I didn't have it and needed it from the marketplace. I went to the marketplace, got it, restarted, created a sample gradle java project and compiled it to test. I then selected to create a new spring starter project again and selected gradle. It still says 'can not import using Gradle (Buildship) because Buildshiop Gradle Tooling is not installed.... Any ideas. Not having

STS is failing to start on my machine

依然范特西╮ 提交于 2019-12-13 12:27:14
问题 I was trying to setup Spring mvc projects on eclipse. Basic projects were working fine. But using restful services, jersey etc started giving so many errors related to dependencies. So I am planning to move on to STS. I am using STS 2.9.2. It was giving me "failed to create java virtual machine". So I added -vm C:\Program Files\Java\jdk1.7.0\bin\javaw.exe to STS.ini. But now it is giving me following fatal error Below is STS.ini -vm C:\Program Files\Java\jdk1.7.0\bin\javaw.exe -startup

SocketTimeoutException while opening New Spring Starter Project wizard on STS running with Java 7

*爱你&永不变心* 提交于 2019-12-13 07:26:58
问题 I'm using the ZIP distribution of STS 3.5.1 for win32. I start STS with this cmd script: set JAVA_HOME=d:\jdk\jdk1.7.0_21 set PATH=%JAVA_HOME%\bin;%PATH%; start .\sts-3.5.1.RELEASE\sts.exe Then, when I do "New > Spring Starter Project", I get this error: If I replace Java 7 with Java 6 by changing the first line of my cmd script, everything works fine: the wizard starts. set JAVA_HOME=d:\jdk\jdk1.6.0_31 Is there something special to do if I want to use Java 7 ? 回答1: You probably want to get a

Griffon dont create Eclipse .project and .classpath files

老子叫甜甜 提交于 2019-12-12 08:59:41
问题 Griffon 0.9.2-beta-3 after exec "griffon create-app DemoConsole" cant find the .project, so cant import it into eclipse(sts). but the docs say that "Griffon automatically creates Eclipse .project and .classpath files for you", did i miss some step? solved by : griffon integrate-with --eclipse griffon install-plugin eclipse-support griffon eclipse-update eclipse --> import existing project 回答1: In STS 2.6 (& probably other Eclipse versions) also need to add a classpath variable. If you get

STS 3.0.0 with Spring Roo 1.2.2 cannot deploy to CloudFoundry with MongoDB service

点点圈 提交于 2019-12-11 09:45:19
问题 I downloaded STS 3.0.0 and have been trying to get a simple spring app onto CloudFoundry using Roo. STEP 1: This is my roo script // Spring Roo 1.2.2.RELEASE [rev 7d75659] log opened at 2012-08-26 22:36:52 project --topLevelPackage com.nroots.tracker mongo setup --cloudFoundry true entity mongo --class ~.domain.Trackable --testAutomatically field string --fieldName name --notNull --sizeMin 3 field date --fieldName datetime --type java.util.Date --dateTimeFormatPattern yyyyMMddHHmmssSSS

Testing @RooJavaBean class in Eclipse IDE with JUnit

六月ゝ 毕业季﹏ 提交于 2019-12-11 07:16:29
问题 I use Spring Roo to generate getters/setters. When I update my class under test and then run JUnit tests from Eclipse IDE (STS), it does't see changes I have made. For example: java.lang.NoSuchMethodError: com.example.web.forms.UserRegistrationForm_Roo_JavaBean.ajc$interMethodDispatch1$com_datefitting_web_forms_UserRegistrationForm_Roo_JavaBean$com_example_web_forms_UserRegistrationForm$setName(Lcom/datefitting/web/forms/UserRegistrationForm;Ljava/lang/String;)V` After running roo>perform

Upgrading webxml 1.4 to 1.4.1

十年热恋 提交于 2019-12-11 06:57:17
问题 I have an irritating problem with webxml plugin. I need version 1.4.1. I have webxml 1.4 and when I try to upgrade it from STS 2.8.1 it gets upgraded but it's like it rolls back the changes immediately. I also tried upgrading it from Grails console and from command prompt. When I upgrade webxml from command promt it gets upgraded but then in STS I lose dependencies. And when I refresh dependencies from Grails tools STS downgrades webxml to 1.4. Please help. Grails 1.3.7 STS 2.8.1 Plugins:

Grails Warnings/Errors during run-app

放肆的年华 提交于 2019-12-11 02:16:26
问题 I'm currently seeing the warnings below when trying to run my Google App Engine/Grails test app in Eclipse. Warning, target causing name overwriting of name startLogging Warning: C:\Users\Some Person.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf\spring not found. Warning: C:\Users\Some Person.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf not found. Warning: C:\Users\Some Person.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8