cancel
Showing results for 
Search instead for 
Did you mean: 

Installation of Alfresco 1.4 on Sun JES2005Q4 Web Server

ewise
Champ in-the-making
Champ in-the-making
I have culled all the various threads in this forum to get a working install of Alfresco on our Sun One Web Server 6.1.

http://forums.alfresco.com/viewtopic.php?t=2985&highlight=sun+web+server
http://forums.alfresco.com/viewtopic.php?t=3008&highlight=
Easiest Reference: search for posts by "tvanover"

Notes:
- this works with MySQL and Oracle
- I am using a remote database, if you are not using a remote database you may skip some steps under here

1. Get Sun One Web Server up and running.
2. Get the plain 1.4 tar.gz
3. expand the tar.gz and install the alfresco.war on your web server via the admin console
4. stop the web server
5. place the MySQL driver in <web server root>/lib (in my case it is in /opt/SUNWwbsvr/https-testserver/lib/mysql.5.0.3.jar) and via the admin web console add the location of the .jar file to the JVM path statement.
6. change directory to the location of the war file (in my case it is in /opt/SUNWwbsrv/https-testserver/webapps/alfresco – <approot>)
7. change directory to <approot>/WEB-INF/classes/alfresco/extension
8. create a new custom-db-connection.properties from the custom-db.connection.properties.sample from the tar.gz file you downloaded (in extensions/extension)
9. create a new custom-hibernate-dialect.properties from the custom-hibernate-dialect.properties.sample from the tar.gz file you downloaded (in extensions/extension)
10. change directory to <approot>/WEB-INF/classes/alfresco
11. ensure that repository.properties has the correct db.url and configuration data
12. change directory to <approot>/
13. remove from every JSP file the lines referring to the JSTL code and the isELIgnored. The JSTL and isELIgnored code prevents startup.

find . -print | grep .jsp | xargs perl -p -i -e "s/^.*jstl.*$/""/gi"
find . -print | grep .jsp | xargs perl -p -i -e "s/^.*isELIgnored.*$/""/gi"

14. create a new .jar file from jsp-api.jar that only contains the javax.servlet.jsp.el package and copy that newly created file (I called it jsp-el.jar) into the <approot>/WEB-INF/lib
15. restart the web server via the admin web console
16. hope it starts!
2 REPLIES 2

paulhh
Champ in-the-making
Champ in-the-making
Hi

Very many thanks for this information - I'm sure others will also be grateful for your efforts!

Cheers
Paul.

ewise
Champ in-the-making
Champ in-the-making
Well, I spoke too soon. There is an issue with Alfresco 1.4 requiring a Servlet 2.4 environment. I commented out the 2.4 call and replaced it with a 2.3 compatible call. I can now download files!

To make this run in 6.1 you need to change the following web-client.jar file as follows:
1 - make a backup copy of web-client.jar
2 - get the source code (or disassemble) for BaseDownloadContentServlet.class in package org.alfresco.web.app.servlet
3 - change the following code at line (or around) line 243

         // set mimetype for the content and the character encoding for the stream
         res.setContentType(mimetype);
         String encoding= req.getContentType() +"; charset=UTF-8";
    res.setContentType(encoding);

//         res.setCharacterEncoding(reader.getEncoding());

4 - recompile the changed class
5 - add the new class file to the web-client.jar (ensure you have replaced the proper file!)
6 - restart the web server

Now you can download files without exception! This may or may not work in your environment, but it "works for me".

E/.