eclipse-wtp

Eclipse WTP not publishing Maven dependencies

时间秒杀一切 提交于 2019-12-02 17:36:17
I'm trying to set up a basic hello world project using Eclipse Indigo and a Tomcat server. I created a dynamic project with a simple servlet. Tested the servlet and that worked fine. Then I enabled Maven support and added logback to my pom. I put a logging statement in the servlet's doGet method. When running the servlet, it complains it cannot find any bindings because the logback jars are not being copied into the Eclipse tomcat instance. I expected to find the jars published somewhere in here: ${workspace}\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\ How do I get Eclipse to work

How to format html files in Eclipse?

﹥>﹥吖頭↗ 提交于 2019-12-02 16:31:39
The XML formatting works perfect but not the html formatting. In fact if I use "cmd-shift-F" for a html file, it just left aligns almost everything. I've attached the before and after pictures. Does anyone know how to fix this? I played around with HTML formatting preferences but had no luck. Note that the same document, if it is saved as xml will format perfectly. I am using eclipse 3.6 with WTP plugin. prasad vsv go to Window --> preferences --> Web --> HTML files --> Editor . In the Inline Elements section, select all the elements that you don't want eclipse to inline(continue with same

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

孤街浪徒 提交于 2019-12-02 15:38:15
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> </configuration> </plugin> ... and <profiles> <profile> <id>desarrollo</id> <activation> <activeByDefault>true<

Unable to “Run on Server” a webapp from Eclipse

寵の児 提交于 2019-12-02 15:13:07
When running my WebApp project from Eclipse most of times it run correctly. But if by mistake to stop server, I kill it in "Console" view on instead of "Stop" Server from "Servers" View. While running clean project I get this java.lang.NullPointerException at org.eclipse.wst.common.componentcore.internal.util.VirtualReferenceUtilities.getDefaultProjectArchiveName(VirtualReferenceUtilities.java:81) at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getJavaClasspathReferences(J2EEModuleVirtualComponent.java:332) at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent

Eclipse webtools project (WTP) and its performance / quality

和自甴很熟 提交于 2019-12-02 14:27:28
Our company is using eclipse since several years now (we are using WTP since release 0.7) I am currently evaluating eclipse 3.6.2 with WTP 3.2.3 which should replace eclipse 3.4.2 with WTP 3.0.4 as being our main IDE. And I have to say that once again I am quite disappointed in concerns of performance: WTP 3.2.3 seems to be much slower than 3.0.4. In fact I am really wondering why WTP gets slower with each release. One of our applications (dynamic web project) contain about 4000 java classes and 700 jsps/jsp fragments . We only need basic WTP functionality for developing jsps, xmls and xsd. We

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

廉价感情. 提交于 2019-12-02 01:12:37
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/classes , but it's not doing that. It could be that I haven't structured my project directories correctly so

intermittent ClassNotFoundException for JSP using eclipse

不羁的心 提交于 2019-12-01 15:55:59
Running Eclipse Indigo, Tomcat 7 on Windows - running the web application on the ROOT context with eclipse wtp plugin I am getting this intermittent problem where eclipse cannot find the compiled JSP. It occurs when first accessing the JSP and cannot be resolved except by stopping the Tomcat server and cleaning the Work directory and the project directory. The compile version is there in the eclipse directory structure: .metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\org\apache\jsp\WEB_002dINF\... but it still produces this error. After some research I found this

intermittent ClassNotFoundException for JSP using eclipse

瘦欲@ 提交于 2019-12-01 14:59:11
问题 Running Eclipse Indigo, Tomcat 7 on Windows - running the web application on the ROOT context with eclipse wtp plugin I am getting this intermittent problem where eclipse cannot find the compiled JSP. It occurs when first accessing the JSP and cannot be resolved except by stopping the Tomcat server and cleaning the Work directory and the project directory. The compile version is there in the eclipse directory structure: .metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina

How to set JVM arguments in tomcat that work both in eclipse and using the startup.bat

孤街浪徒 提交于 2019-11-30 11:02:26
I have an installation of Tomcat 7 on windows to which I am deploying my app. I have a couple of JVM args that I need set for the applications running on the server. In searching around on the web I find two (three if you count the windows service) camps: For those using eclipse: Double click on the server > Open launch configuration > arguments tab For those using tomcat's startup script: Create a setenv.bat (or setenv.sh for Linux) and set either CATALINA_OPTS or JAVA_OPTS However, they seem to be mutually exclusive. Setting the arguments in eclipse (+1 if you can tell where these are stored

How to disable autoopen internal webbrowser after run webapp?

徘徊边缘 提交于 2019-11-30 07:55:23
问题 When I run web app on server in STS internal web browser opens. I want to disable this but I don't know where can I do this. 回答1: Eldelshell already sort of answered this, but I think a little more info might help other people. He's correct about going to Window -> Preferences -> General -> Web Browser and creating a new external external browser configuration. This will only work with an executable, though. Thus, entering /dev/null in the "Location" field won't work. What to put there