Questions tagged [eclipse-wtp]

1

votes
2

answer
302

Views

Eclipse: How can I have gradle dependencies deployed to Tomcat

I'm creating a web project using Gradle (buildship) in Eclipse (WTP). I've put the libraries I need as 'implementation' dependencies in my build.gradle, however they are not copied to Tomcat when I try to run the project from within Eclipse. When I build the WAR file (with gradle war), however, all...
niqueco
1

votes
1

answer
119

Views

How to copy a resource from one maven project to another

i have a maven project consisting of a parent project with child projects. the children consist of many war projects and a single jar project (external). i want to copy a json file (keycloak.json) into the WEB-INF on all the war projects from a folder in the jar project. so far i have it working...
MitchBroadhead
1

votes
0

answer
41

Views

STS- Add Server - Next Button is disabled when I try to add oracle weblogic server

I am facing issue in adding oracle weblogic sever in sts. when I go to Windows -> Preferences -> Server Runtime and try to add oracle weblogic server the next button is disabled. what is the resolution of this problem? Edit:- Error logs are as follows Unhandled event loop exception java.lang.Illegal...
Pawan Patil
1

votes
2

answer
9.7k

Views

How do I get eclipse's web page editor to work?

I installed the eclipse web page editor from the help->updates->Ganymede Update Side-> Web and Java EE Development. - version 2.1.0 Whenever I try to open an html page though, I get the error: java.lang.NoSuchMethodError An error has occurred. See error log for more details. org.eclipse.wst.sse.ui.S...
UsAaR33
1

votes
1

answer
2.1k

Views

Eclipse WTP publishing configuration

I have a web project that is built with maven. I have the project in eclipse as a WTP project (generated using mvn eclipse:eclipse), and it is associated with a glassfish server, also configured in eclipse. I can publish to the server. The problem is, we use maven to do some filtering in one of t...
digitaljoel
1

votes
2

answer
989

Views

Is there a way to make WTP + M2Eclipse work together with a “war:inplace like” configuration?

I try to work with M2Eclipse, WTP and a Tomcat 5.5 server configuration. Publication of classes + web resources in wtp.deploy directory seams very time consuming if your webapp contains many files. Furthermore publishing operation can be prone to error as I have many maven modules as dependencies. I...
lpa
1

votes
2

answer
1.4k

Views

How to see JSP errors in the Problem view in Eclipse + WTP

I have installed WTP into Eclipse Galileo. When I open up my JSPs, I get red markers indicating syntax or compile errors. However, I do not see these markers in the Navigator, Package Explorer or the Problems views. Is there a way to see which JSPs have problems in any/ all of these views?
Sualeh Fatehi
1

votes
1

answer
641

Views

WTP Eclipse JavaScript editor - how to add context menu items?

I've been unable to discover how to add right-click popup context menu items to the WTP 3.2.x (JS) JavaScript editor for my plug-in. In the past I've extended this type of functionality via an editor ID. In the manifest using the extension org.eclipse.ui.editorActions I am able to add menu-bar item...
user735387
1

votes
1

answer
1.4k

Views

Apache Tomcat Startup WARNING (ExceptionInInitializerError)

I have an error starting webtop 6.5 sp3 in eclipse with tomcat. DFC jars are added to classpath and buildpath already. Accessing the webapplication goes to a blank page Any ideas on how to resolve this? Warning: WDK application could not be started, error msg= null, error type=java.lang.ExceptionInI...
Ayrad
1

votes
1

answer
291

Views

Adding XML Catalog contributions programmatically

How can I add new entries to Eclipse's XML Catalog programmatically (instead of using org.eclipse.wst.xml.core.catalogContributions extension point)?
Alexey Romanov
1

votes
1

answer
507

Views

Eclipse WTP Tutorial Error

I am following WTP Tutorials Building and Running a Web Application And when i run WebContent on the server(Tomcat 7) i get an error: type Status report message /WTP-Tutorial-I/ description The requested resource (/WTP-Tutorial-I/) is not available. Now on the tutorial it says it should direct me to...
YK-47
1

votes
1

answer
965

Views

Deploying META-INF directory of a project listed in a Deployment Assembly

I have a project that has some data in the META-INF folder that it needs for proper functioning. Specifically, it has a services sub-directory, with a service file in it. When I add that project to the Web Deployment Assembly list and publish the application, resulting jar file has no META-INF direc...
alh84001
1

votes
1

answer
70

Views

Tomcat6 Server Keeps On Getting Detached From Eclipse IDE

I am using Eclipse Tomcat6 integration to test my webapp. I start and stop my Tomcat instance from the 'Servers' view in Eclipse. However, quite often, a running instance of tomcat seems to detach itself from the integration where the 'Servers' tab says that its stopped. However, once you try to sta...
Danish
1

votes
2

answer
555

Views

Run maven:install will copy more jars to WEB-INF/lib than i expect

Eclipse Indigo; m2e 1.1.0; Maven integration for WTP 0.15.3; Maven 3.0.4 My web project has some dependency projects in the same workspace. All projects are installed. When i run maven install, except to see all dependencies in WEB-INF/lib. When i run maven install plugin or maven war plugin, the WE...
Mike
1

votes
1

answer
304

Views

ClassNotFoundException when I try to deploy to Tomcat / tc Server in Eclipse / STS

I'm new to Eclipse/STS, and I am having deploying to Tomcat / tcServer. My project builds just fine and deploys to Tomcat fine both in Netbeans and directly to Tomcat, but it will not deploy to Tomcat or tc Server in Eclipse. I get a ClassNotFoundException for org.hibernate.HibernateException, whic...
10GritSandpaper
1

votes
1

answer
256

Views

m2e wtp deploying test dependencies

I have a multi-project Maven web project and I am using Eclipse June with M2E and WTP. My test project defines a hibernate.properties file (in /src/main/resources) with connection parameters to my test database. If I add test as a normal compile-scope Maven dependency to the main project, its hibern...
bcody
1

votes
2

answer
3.2k

Views

Unable to add JSP files into Project

Here is a picture of my environment and I am unable to create JSP files, I am not sure what I am missing let me know what I can answer to get a resolution. Thanks.
Charles
1

votes
1

answer
1.5k

Views

Error in installing WTP plugin to ADT eclipse

I am trying to install WTP plugins but getting error while installing.Can somebody please have a look on it,not able to find its solution Your original request has been modified. 'Eclipse XML Editors and Tools' is already present because other installed software requires it. It will be added...
Himanshu Verma
1

votes
1

answer
4.4k

Views

Tomcat output not appearing in console view

Have recently upgraded eclipse from Juno to Kepler, and now when I start a tomcat 7 server using WTP (by selecting the server in the 'Servers' view and pressing the run button in the view's button bar) the console view pops up to the front like before, but instead of displaying tomcat's output like...
Jules
1

votes
1

answer
92

Views

WTP Server set to WebLogic Server instead of Tomcat

i've created a Maven project, after doing mvn eclipse:eclipse, sets the WTP Server to WebLogic instead of Tomcat, tried to search how to change this! but i couldn't find a solution as of yet! Installed the Oracle WebLogic few hours ago and Tomcat, don't know why is setting that WTP. Do you know how...
user3078876
1

votes
1

answer
890

Views

This project needs to migrate WTP metadata error in Eclipse

I imported a project and in the problems tab This project needs to migrate WTP metadata error in Eclipse error appear. Anyone can explain it?
Semih Eker
1

votes
1

answer
84

Views

How to customize m2e-wtp deployment?

In my project, I have some aar dependencies. I don't want deploy these aar files into the WEB-INF/lib folder. I want to deploy them in some other folders. But I can't find where to set the m2e-wtp plugin do this. My pom file is like: my.group my-soap aar 1.0.0
Chris
1

votes
1

answer
101

Views

How do I enter HTML tags in a TLD description of a tag?

Here's an excerpt from one of my TLD's: Possible values: 1 - just < a>; 2 - structured with < ul> < li> e < a>; type true true When editing JSP's in Eclipse, if I look at the attribute description, the line 1 - just < a>; is correctly rendered like this: 1 - just < a>;. But as soon as I remove the s...
watery
1

votes
1

answer
203

Views

Migrating from Tomcat 7 to 8 in Eclipse WTP: The absolute uri: http://java.sun.com/jstl/core cannot be resolved

Everything worked fine in Eclipse with Tomcat 7 + Java 8. JSTL is in place: javax.servlet jstl 1.2 Taglib is used in JSP: web.xml is standard 3.0. Using Eclipse WST, module auto reloading off, serve modules without publishing on. Now the only thing changed - migrated to Tomcat 8, and getting this: o...
rustyx
1

votes
2

answer
0

Views

How to integrate maven the right way into Eclipse and into the software development process?

I am new to maven. The main feature I benefit from, yet, is the automatic dependency management. The standardized directory structure seems also to be nice, but Eclipse has a standard directory structure, too. The directory structure is now independent from Eclipse, but now it is dependent from mave...
1

votes
3

answer
0

Views

Using Tomcat within Eclipse for a Maven project

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 tim...
Rakesh Sinha
1

votes
2

answer
736

Views

Tomcat libraries to include in Eclipse with Maven

I'm building a web application with Eclipse using Maven. The server is going to be Apache Tomcat. Eclipse already has tomcat 6 libraries which you can include in your build path and Web Application Module facet to be chosen. That's the way I work without Maven. However, Maven is able to include the...
Xtreme Biker
1

votes
2

answer
400

Views

Export war from headless Eclipse

How do I export a WAR file from an Eclipse .web project programmatically with Java? I have big problems with war ant task due to complex project structure( ProjectX.web has a dependency from ProjectX.java) and i'm very confused by the WebComponentExportWizard implementation. Is there any WTP API to...
1

votes
1

answer
1.6k

Views

Deploying libraries in Web Fragment projects in Eclipse

Using Eclipse 4.2 I am trying to deploy a web application that consists in a main Dynamic Web project and a Web Fragment project. The Web Fragment needs some jar libraries (lib1.jar and lib2.jar) that are not needed at compile time by the main project. To add these libraries I have two options: Put...
Josep M Beleta
1

votes
3

answer
2.5k

Views

NoClassDefFoundError org.eclipse.m2e.wtp.WTPProjectsUtil upon Maven build Eclipse

I've installed the Websphere Development tools in STS 3.3.0 (Juno 3.8.2 version) as well as the m2e wtp connectors. I'm now having issues with building in Maven. I'm getting the following exception when updating the Project using maven. java.lang.NoClassDefFoundError: org.eclipse.m2e.wtp.WTPProjects...
user1369430
1

votes
2

answer
1.2k

Views

“New Web Application Project” vs. “Dynamic Web Project”

How does the 'New Web Application Project' option from Google Plugin for Eclipse (https://developers.google.com/eclipse/docs/creating_new_webapp) differ from the 'Dynamic Web Project' option from Web Tools Platform (https://developers.google.com/appengine/docs/java/webtoolsplatform#dynamic_web_proje...
Michael Osofsky
1

votes
3

answer
4.5k

Views

quirks using maven eclipse plugin with WTP

I'm using the maven eclipse plugin to generate wtp projects. It mostly works, but there are some strange quirks that I'd like to get rid of: I must specify -Dwtpversion=2.0 each time I run mvn eclipse:eclipse. Otherwise, facet information is not generated. The java facet level is set to version 1.4...
ykaganovich
1

votes
2

answer
4.4k

Views

java.lang.NoSuchFieldError exception while the field is defined

I'm working on a web application for Apache Tomcat. I'm using a class called Location in which i defined a field called ipAddresses. Here it is: package com.maxmind.geoip; import java.util.HashSet; import java.util.Set; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.com...
Hagay Myr
1

votes
2

answer
794

Views

what's the “correct” way to build an eclipse project for a web app using maven?

I'm trying to build a new web app using Eclipse, I want to use Spring web services and Hibernate, so I thought I'd try using Maven instead of Ant so I don't have to track down all the JAR files manually. This is what I did ... I have a new eclipse workspace, I used Eclipse Marketplace to install th...
Robert Hume
1

votes
2

answer
860

Views

Eclipse XML editor: refresh content assist

I'm using eclipse WTP plugin to create an XML grammar. I wrote a set of XML Schema and I'm using an XML file to test if the grammar works correctly. The Eclipse content assist works like a charm but every time that I change something in the grammar, the autocomplete feature of the xml editor is not...
hara
1

votes
2

answer
982

Views

How do I reference a JSP in a Servlet

I have a jsp file that contains all the html and javascript that I want for my website. Is it possible for me to create a servlet and then have the servlet reference the jsp file (instead of putting all the html into the servlet)? Maybe something along the lines of: protected void doGet(HttpServletR...
AllieCat
1

votes
3

answer
1.2k

Views

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

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...
Chris Hinshaw
1

votes
1

answer
525

Views

Sharing resources between multiple Eclipse WTP projects with Gradle

I'm attempting a modular Eclipse (Mars) setup where there are core resources in one project used by different child projects. core/ src main/ webapp/ js/ subfolder another-core.js core.js css/ default.css child/ src/ main/ webapp/ js/ project.js WEB-INF/ project.html .settings/org.eclipse.wst.common...
Adam
2

votes
1

answer
2.7k

Views

Using gradle to generate eclipse projects for EJB Module

I want to generate project and settings for a EAR project, a EJB client jar and a EJB module but i was not able to insert new facets to the eclipseWtp task, tried many combinations based on the documentation on gradle website. tried things like the following and always got Premature end of file erro...
Marcello Milhomem
2

votes
3

answer
2.5k

Views

Multiple WebContent directories in a single eclipse dymanic web project

I have an existing project that I'm trying to convert correctly into an Eclipse Dynamic Web Project. I've mostly got it working, however there is on issue that I'm not sure how to fix. The project has something like 2 modules that share the same Java classes, but need to be deployed as separate weba...
Java Drinker

View additional questions