Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

TCP/IP Monitor

Posted on by Kim

For testing call in Eclipse I use TCP/IP Monitor

Removing Trailing Spaces from JavaDoc in Eclipse

Posted on by Kim

In the project I working on we wanted to add some code formatting. Therefore I installed the following Eclipse plugin: eclipse-cs

But that gave at lot of warnings. Some could be removed by the formatter and some manually. But the I got a warning in almost all JavaDoc saying Line has trailing spaces. Could not get Eclips' formatter to removed them so I googled a bit a found this nice plugin: AnyEdit tools.

That did the job :-)

How to remove JSP EL error

Posted on by Kim

If getting this error:

com.sun.faces.config.ConfigurationException: It appears the JSP version of the container is older than 2.1 and unable to locate the EL RI expression factory, com.sun.el.ExpressionFactoryImpl. If not using JSP or the EL RI, make sure the context initialization parameter, com.sun.faces.expressionFactory, is properly set.

Running eclipse and a server:
just go to 'Java EE Module Dependencies' and remove:

Building ear or war file:
make sure the following does not come with:

- servlet-api-??.jar
- jsp-api-??.jar

and let it be up to the server to provide the rigth versions.

Create new web project for eclipse with maven (archetype)

Posted on by Kim

E.g.

mvn archetype:create -DgroupId=as.moes.mmsinbox -DartifactId=mmsinbox -DarchetypeArtifactId=maven-archetype-webapp
mvn eclipse:eclipse

XSL Warning in Eclipse

Posted on by Kim

To make folling error

No grammar constraints (DTD or XML schema) detected for the document.

go away, add folling:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY bullet "•"> <!ENTITY nbsp " ">]>

Change • to & #x2022;
and space to & #xa0; with no space between & and #

TestNG

Posted on by Kim

JUnit's Substitute....

TestNG