eclipse-wtp

Using Tomcat within Eclipse for a Maven project

若如初见. 提交于 2020-03-23 08:17:05
问题 I have a multi-module Maven project. Here is how it is structured: cca-workflow (parent project) cca-commons (jar) cca-models (jar) cca-wsclient (jar) cca-business (jar) cca-web (war) The war project depends on the jar projects. In my parent project, I have a Maven properties file which at build time replaces some of my Spring properties e.g. web_service_url, port, wsdl etc. The project builds correctly with all the properties getting resolved. The problem is when I try using Tomcat from

How to view design of JSP In eclipse

十年热恋 提交于 2020-02-17 06:11:06
问题 I have configured a J2EE project into Eclipse. The source code is consisting of JSP as well as Java Files. Is there any way so that we can view the design of the JSP? I am using Eclipse 3.1. 回答1: goto window - preferences - general - editors - file associations choose *.jsp and in associated editors choose "web page editor" as the first default 回答2: You right click on the jsp file and then highlight "Open With" .You will get options like JSP Editor, Text editor, Web Page Editor. Please Select

servers tab not visible in eclipse v3.7.2

做~自己de王妃 提交于 2020-02-02 03:40:08
问题 Hi i have developed a app which accesses the mysql database for login verification but my problem is that to include tomcat 7 server. In the path Windows>Show view>Other i am not able to see the servers tab. I am also not able to update the web tools platform. 回答1: Windows ->Customize Perspective ->Command Group Visibility -> check Server if it is unchecked. make sure you have added tomcat to eclipse if you don not have then add it.below steps will help you. Window > Preferences > Server >

Eclipse problem: project references itself

无人久伴 提交于 2020-01-03 09:20:18
问题 I have small project consisting of one maven project and two maven modules. One of the modules is a webapp, and I'm using WTP to run all my web applications. Everything has been fine, until today when when the webapp started refusing to compile, citing: Project 'sdx.client' cannot reference itself If I remove the following line from the .classpath : <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> my project compiles again. From googling, I believe this is a WTP

WTP - m2e not deploying transitive dependencies

心不动则不痛 提交于 2020-01-01 08:39:29
问题 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

Web resources filtering with Maven war plugin does not work in Eclipse with m2e

你离开我真会死。 提交于 2019-12-31 08:12:14
问题 I'm trying to filter a Spring configuration file using Maven filtering. My POM is configured like this: ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <webResources> <resource> <filtering>true</filtering> <targetPath>WEB-INF/context</targetPath> <directory>src/main/webapp/WEB-INF/context</directory> <includes> <include>applicationContext.xml</include> </includes> </resource> </webResources> <

Deploy GWT maven project with eclipse deploys webapp directory instead of target/project directory

雨燕双飞 提交于 2019-12-30 12:05:08
问题 When I choose to run my gwt project in eclipse it is deploying the src/main/webapp directory but I want it to publish the target/myproject directory. I have verified that it is copying the contents of src/main/webapp to wtpwebapps/myproject. How can I configure Eclipse Kepler to deploy the contents of my target/myproject directory instead. I really don't want to have to redirect my build to output to the src/main/webapp directory as this would pollute my src directory. In the past I have

Deploy GWT maven project with eclipse deploys webapp directory instead of target/project directory

安稳与你 提交于 2019-12-30 12:04:10
问题 When I choose to run my gwt project in eclipse it is deploying the src/main/webapp directory but I want it to publish the target/myproject directory. I have verified that it is copying the contents of src/main/webapp to wtpwebapps/myproject. How can I configure Eclipse Kepler to deploy the contents of my target/myproject directory instead. I really don't want to have to redirect my build to output to the src/main/webapp directory as this would pollute my src directory. In the past I have

How to change default Eclipse WTP “Web Resources” dynamic folder

核能气质少年 提交于 2019-12-29 18:43:40
问题 I need to change the default Eclipse WTP "Web Resources" dynamic folder. Currently it points to WebContent, and I need to point to src\main\webapp. 回答1: I found the solution: Under .settings folder in your project's folder, there is a file named "org.eclipse.wst.common.component", inside it change the line <wb-resource deploy-path="/" source-path="/WebContent"/> with <wb-resource deploy-path="/" source-path="/src/main/webapp"/> . That's all! 回答2: I prefer the following solution, as the

Eclipse WTP plugin no Apache Tomcat adapter

匆匆过客 提交于 2019-12-29 18:20:49
问题 I am using Galileo Eclipse, I downloaded WTP plugin, but no Apache Tomcat plugin when I try to add Tomcat server... any quick idea? 回答1: In WTP you can download plugins for many different web container or Java EE application servers. To do so go to Window => Preferences => Server => Runtime Environments => Add... Select the server(s) you want to work with. However, as Raghuram as pointed out, you'd probably be better off starting from the 'Eclipse for Java EE developers` altogether. This is