eclipse-wtp

Does the Eclipse Web Tools Project handle refactoring inside JSPs?

泄露秘密 提交于 2019-12-04 05:57:07
I've installed the Web Tools Project for Eclipse version 3.4. I've been trying to get refactoring working the way I think it should and have had no success. I have one Java project that contains the Java classes for the jar that is put into the /WEB-INF/lib for a web site. Another project (a Dynamic Web project) has the JSP files for the same site. The Dynamic Web project is set up with the Java project as a required project in the build path. I have also set the Project References option for the Dynamic Web project to refer to the Java Project. If I use refactoring to change a method name in

Eclipse + Java 8 + Dynamic Web Module

一个人想着一个人 提交于 2019-12-04 04:57:14
I'm starting a new project and considering moving to Java 8 already, since newest Spring Framework 4.0 supports it, and it's not so long until final release this march. Currently we are using STS 3.4 (Eclipse 4.3.1 based) and I have installed latest JDK8 and Java 8 (BETA) support. Simple projects seems to find themselves at home with Java 8, but not UI project (Dynamic Web Module 3.0, the one deployed on server). I'm getting error that compiler version (1.8 BETA) doesn't match installed project facet "Java" (1.7). And there is no such option "1.8" in "Java" project facet... Have anybody

Eclipse WTP: “The import ___ cannot be resolved for” error in a JSP file for a class defined in project

杀马特。学长 韩版系。学妹 提交于 2019-12-04 04:54:02
问题 A Visual Studio user struggling w/ Eclipse... I imported a set of servlets/JSPs into a project in Oracle Workshop for Weblogic. /page.jsp has the following import statement: import="com.foo.bar.*" Eclipse is displaying an error: The import com cannot be resolved. The class that implements the above import is in /WEB-INF/src but I don't know how to build the class in Eclipse to resolve that error. I assumed Eclipse would automagically build the .java file and place the output in /WEB-INF

Decreasing log level in Eclipse WTP with Tomcat 7

Deadly 提交于 2019-12-04 04:33:56
I am running Tomcat 7 from within Eclipse WTP (Juno) and I cannot seem to tune down the logging level. It logs everything from debug which is too verbose to be of any use (I want it log from INFO). The logging.properties file is as follows: handlers = java.util.logging.ConsoleHandler .handlers = java.util.logging.ConsoleHandler .level=INFO ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ java.util.logging.ConsoleHandler.level = INFO java

Autocomplete von available CSS classes in HTML JavaScript jQuery in Eclipse

試著忘記壹切 提交于 2019-12-04 04:28:23
I am using the latest Eclipse version. Right now I am coding with Javascript, jQuery, HTML, and CSS. How do I get autocomplete (show all available classes defined in CSS) for classes, which I have defined in CSS, displayed in HTML? I have a class called "display" in my CSS file. file.css: .display { background:green; } How to get the display class suggested with autocompletion ? HTML: What kind of plug-in/addon would I need? The default WTP plugin bundled with the Eclipse installation doesn't support this. You will have to install an extension plugin ( WTP Web resources ). Go to Help ->

Where to put context.xml with Eclipse WTP?

ⅰ亾dé卋堺 提交于 2019-12-04 03:15:19
问题 I'm using Eclipse Indigo 3.7 + WTP + m2e (including m2e-wtp) . I've configured my Tomcat 7.0 server on Eclipse. I have a web application that I'm trying to run on Tomcat through Eclipse, but when I run it, the context.xml file is not copied to the conf/Catalina/localhost directory and this causes some issues to my app. Where the context.xml should be put in order to be copied to this directory? Thanks 回答1: If you need to specify a context.xml file when deploying a WAR file to Tomcat, then it

WTP - m2e not deploying transitive dependencies

陌路散爱 提交于 2019-12-04 02:26:22
I have a web application which is structured in this way: A.jar -> B.war -> C.war I'm using Eclipse Juno and the WTP version is 1.1 . The A.jar is a workspace utility project which is being included by B.war. B.war is a war project that is included by C.war as an overlay. That's the way I'm doing that: <dependency> <groupId>com.projects</groupId> <artifactId>B</artifactId> <version>1.0-SNAPSHOT</version> <type>war</type> <scope>runtime</scope> </dependency> After that, I deploy the C project to the Tomcat server. That works like a charm if I manually deploy the Maven generated war to the

Why does the WTP plugin deploy one Maven dependency as a folder, instead of a jar?

不想你离开。 提交于 2019-12-03 16:58:21
问题 I have a very strange problem with Maven and the Eclipse WTP. I have a multi-module project, let's call it project . It consists of two modules project-base and project-web . I have the workspace resolution enabled (and it works fine with several other very similar Maven projects). project-base is a dependency of project-web and it's normally deployed as a jar file. But for several days, it keeps being deployed as a class folder in my local Tomcat, as you can see here: Therefore, my Tomcat

Eclipse Juno + WTP +EGit dead slow

会有一股神秘感。 提交于 2019-12-03 16:46:09
问题 I'm trying to use Eclipse Juno (Version: 4.2.0 Build id: I20120608-1400) with WTP for JavaScript/Node.js development on MacOSX Lion, on my 4GB RAM MacBook Pro. Sometimes it gets dead slow, and unusable. I've tried tweaking both through preferences (disabled all validators) and initialization variables, and also upgraded to 1.7 VM as recommended. Here's the contents of my eclipse.ini file: -startup ../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library ../../

Eclipse Maven web application - can not run on server anymore

房东的猫 提交于 2019-12-03 12:27:37
问题 I have an maven eclipse webapp project that I was able to right click and 'Run on server' and it would deploy on tomcat. I recently did a 'maven -> Update project conifgurations' and I now can NOT deploy and run the project as a webapp. Has anyone seen this before? The only output from tomcat is as follows - it doesnt even look like its trying to deploy the application. Apr 14, 2010 3:58:54 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library