Download older version of java from the following address:
Month: May 2019
- Open the Services application and look for SQL Server (SQLEXPRESS).
- Stop the SQL Server (SQLExpress) service.
- Right-click the SQL Server (SQLExpress) service and select Properties.
- At the Start parameters field type in -m.
- Click the Start button.
- Close the Services application.
- Open a Command Prompt in elevated mode.
- Execute the following command:
osql -S <LOCAL_PC_NAME>\SQLEXPRESS -E
Note: The <LOCAL_PC_NAME> must be changed appropriately.
- At the prompt generated by the previous command invoke the following commands in sequence:
sp_password NULL,'<NEW_PASSWORD>','sa'
Note: Change <NEW_PASSWORD> to your desired password.
go
quit
- Close the elevated Command Prompt.
- Repeat steps 1 to 6, but on step 4 remove -m from the Start parameters field, if it exists.
- Install Tomcat 7 package in Diskstation
- Download archiva war file from the following address:
https://archiva.apache.org/index.cgi
- Place the downloaded war file (e.g. apache-archiva-2.2.3.war) into the following directory:
/volume1/@appstore/Tomcat7/src/webapps/
- In MariaDB, add the following user with appropriate password.
archivauser
and the following database
archiva
- Download the following jar files:
mail-1.4.jar mariadb-java-client-1.5.x.jar
- Place the download jar files in the following directory:
/volume1/@appstore/Tomcat7/src/lib
- Create archiva.xml file in the following location:
/volume1/@appstore/Tomcat7/src/conf/Catalina/localhost
Add the following entries:
<?xml version="1.0" encoding="UTF-8"?> <Context path="/archiva" docBase="/volume1/@appstore/Tomcat7/src/webapps/<ARCHIVA_WAR_FILENAME>"> <Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource" username="archivauser" password="<PASSWORD_HERE>" driverClassName="org.mariadb.jdbc.Driver" url="jdbc:mariadb://<MARIADB_HOST_IP>:<MARIADB_HOST_PORT /archiva?autoReconnect=true" /> <Resource name="mail/Session" auth="Container" type="javax.mail.Session" mail.smtp.host="localhost"/> </Context>
Note: The <ARCHIVA_WAR_FILENAME>, <PASSWORD_HERE> <MARIADB_HOST_IP> and <MARIADB_HOST_PORT tokens must be replaced by the downloaded war file from step 2, password used from step 4, IP address of MariaDB and port used by MariaDB repectively.
- Access archiva using the following address:
http://<DISKSTATION_HOST_IP>:7070/archiva
Note: Update the token <DISKSTATION_HOST_IP> with the IP of your Synology Diskstation.
Recent Comments