Steal The Fish

...e gli ruba il pesce.

Andrea Dessì  //  Andrea, Man, about 20, (x)html operator, web lover.
I'm a Entando Developer!

Feb 5 / 1:18pm

jAPS 2.0 micro how-to: Setup Development Environment

In order to run/develop jAPS 2.0 (actually 2.0.8) you need:

Sun Java JDK 1.6
1) Pay attention: you need Sun Java JDK. So you need the Sun version. Don't worry too much you can download it from Sun website
2) Setup a environment variable like this: JAVA_HOME=/path/to/jdk1.6/  

Tomcat 6 (6.0.14 or later)
1) download Tomcat
2) unpack it in a directory (avoid directories with spaces, avoid C:\program files\apache tomcat\...)
3) open conf/server.xml and add URIEncoding="UTF-8" attribute to <Connector> tags  
4) enable trimSpaces for jsp servlet, open conf/web.xml find <servlet-name>jsp</servlet-name> and write something like this:

<servlet>
    <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
        <param-name>fork</param-name>
        <param-value>false</param-value>
    </init-param>
    <init-param>
        <param-name>xpoweredBy</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
        <param-name>trimSpaces</param-name>
        <param-value>true</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
</servlet>

5) Download jdbc driver for PostgreSQL and copy it to Tomcat lib/ directory

PostgreSQL  >= 8.3
1) If you have Windows download PostgreSQL from its website, if you're running debian (or derived) try searching in your repository
2) Create a NOT superuser account, you need it for development, we usually call it “agile”. You can create it quickly just with this query: CREATE 3) USER agile WITH PASSWORD 'agile' LOGIN NOSUPERUSER NOINHERIT CREATEDB NOCREATEROLE;

Eclipse EE
1) I suggest you always to use the latest Eclipse EE version!
2) Download It from Eclipse website, the filenames is something like eclipse-jee-galileo-SR1-xxxxx.zip
3) Unpack it into a directory (again avoid spaces)
4) Run Eclipse and setup utf-8 encoding for you workspace
5) Also set UTF-8 encoding for all filetypes except for java properties (*.properties and derived) files
6) Create a new Apache Tomcat v6 server (file → new → other → server → ….), when asked choose Tomcat directory of point 2.2

Now You're ready!
1) Yeah I'm ready but... What to do now??????
2) You're now ready to download jAPS 2.0 sources from SourceForge and import the project into Eclipse.

Filed under  //  Micro How-To   jAPS 2.0  

Comments (2)