build alfresco from source

cancel
Showing results for 
Search instead for 
Did you mean: 
thiru_sps
Member II

build alfresco from source

I am new to alfresco.

i have download the source using the below link

https://svn.alfresco.com/repos/alfresco-open-mirror/web-apps/Share/

i follow the below procedure.

Step1: Import the project in eclipse

Step2: Build the project using the maven command "mvn clean install"

Step3: The "target" folders are created in this project.

Step4: I copied the "share\target\share.war" and "alfresco\target\alfresco.war" files in tomcat webapps folder.

Step5: Then i run the alfresco using the URL -- http://localhost:8080/share/page

Step6: the login page is displayed successfully

but i am login with username "admin" and password "admin" it will throw the error "Your authentication details have not been recognized or Alfresco may not be available at this time."

please help me how to proceed further.

5 Replies
rupeshsawaliya
Established Member

Re: build alfresco from source

Hi,
Probably your alfresco application is not up. please share alfresco logs.

Regards,

Rupesh Sawaliya

EnProwess Technologies.

thiru_sps
Member II

Re: build alfresco from source

hi,

This is the alfresco log details.

2017-04-24 18:59:48,860 WARN  [org.hibernate.cfg.SettingsFactory] [localhost-startStop-1] Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
    at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
    at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:83)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2079)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1304)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:863)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:782)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
    at

Please help me to solve.Thanks in advance.

rupeshsawaliya
Established Member

Re: build alfresco from source

Hi,
Did you configure database properties in alfresco-global.properties file?

Regards,

Rupesh Sawaliya

EnProwess Technologies

thiru_sps
Member II

Re: build alfresco from source

hi,

I am configure the database properties in the below mentioned path "alfresco-global.properties"

C:\Temp\Alfresco\alfresco\target\alfresco\WEB-INF\classes\alfresco\module\alfresco-share-services\alfresco-global.properties

the details are,

dir.root=C:/Temp/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=org.gjt.mm.mysql.Driver
db.username=alfresco
db.password=alfresco
db.name=alfresco
db.url=jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
# Note: your database must also be able to accept at least this many connections.  Please see your database documentation for instructions on how to configure this.
db.pool.max=275
db.pool.validate.query=SELECT 1

and run the command "mvn install" from root directory "C:\Temp\Alfresco"

then copy the alfresco.war to "tomcat\webapps" folder

and run the "http://localhost:8080/share/page". it's not working. the same problem occurred.

share.log details

2017-04-26 15:05:50,422 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2017-04-26 15:05:50,438 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2017-04-26 15:05:50,438 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2017-04-26 15:05:50,438 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2017-04-26 15:05:57,325 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 392 Web Scripts (+0 failed), 410 URLs
2017-04-26 15:05:57,325 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
2017-04-26 15:05:57,325 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
2017-04-26 15:05:57,391 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Surf Container Web Script Container (in 6933.5386ms)
2017-04-26 15:05:57,393 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2017-04-26 15:05:57,401 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2017-04-26 15:09:49,110 INFO  [org.alfresco.web.site.EditionInterceptor] [http-bio-8080-exec-1] Unable to retrieve License information from Alfresco: 404

please refer the source folder stucture

 Alfresco check out source

Do I miss anything (or) the procedure which I follow is right?

thiru_sps
Member II

Re: build alfresco from source

could you please suggest me?

thanks in advance.

Regards,

Thiruppathi M