![]() Next we'll need the Alfresco War file, which you can probably get from here: This testing was done with Alfresco labs 3b, it should work with other versions, but if it doesn't post a comment on my blog entry and I'll look into it. On Windows: For the previous step, find the domains\domain1\lib\classes directory of your Glassfish install and create a directory called alfresco $ pfexec mkdir /var/appserver/domains/domain1/lib/classes/alfresco While you are doing this you may as well create an alfresco directory in the same place, you'll need it later. $ pfexec cp mysql-connector-java-5.1.6-bin.jar /var/appserver/domains/domain1/lib On OpenSolaris and Linux you can do the following, on Windows use Explorer: Unpack this somewhere and copy mysql-connector-java-5.1.6-bin.jar to the Glassfish domain's lib directory. For Windows you'll need to go to the URL in a browser. You might be better off going to and choosing where to get it from. The URL used for the MySQL JDBC driver is just one of many mirrors. On Windows and Linux, the path to asadmin will vary but the rest of the command will be the same $ pfexec /usr/sbin/asadmin create-domain -adminport 4848 domain1 Now use the Glassfish asadmin command to setup a Glassfish domain. Mysql> grant all privileges on alfresco.* to identified by 'alfresco' Use the MySQL command line client to run the following MySQL commands In OpenSolaris and Linux you can just run the command line client as follows (adjust paths accordingly for Linux):įor Windows: You can access the MySQL command line client from the MySQL start menu. Now create a DB and a user to access it with. This will do all of the work required to get MySQL up and running for the first time.įor Windows: MySQL for Windows can be installed as a Windows Service. ![]() $ pfexec svccfg import /var/svc/manifest/application/database/mysql.xml ![]() Currently when you install packages you have to register their services manually, so do the following to register the MySQL Service: OpenSolaris has a Service Management feature called SMF. Unlike with the best tutorials, I won't first remind you to turn your system on or not to install the packages if they are already installed.įor Windows: Download and Install the Java 6 SDK ( jdk1.6), Glassfish v2 and MySQL 5.1.xįor Linux: Install the distro packages for the JDK and for MySQL. If you are running on Linux then replace pfexec with sudo.įirst install Glassfish and MySQL (OpenSolaris only): If you do this as root, just drop the pfexec statement from any commands you issue. I'm going to assume you are doing this as a non-root user. 5 Newer guide tested for Alfresco 3.4+ with GlassFish v3.1.1 on Windows x86.3 The Glassfish specific deployment descriptor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |