cancel
Showing results for 
Search instead for 
Did you mean: 

Install Alfresco on BEA Weblogic and Oracle failed

vladv
Champ in-the-making
Champ in-the-making
I am using Alfresco 2.1 + Alfresco WCM, BEA Weblogic as webserver, Oracle as database server on Windows XP.

Alfresco comes indeed bundled with a trial license, but it seems only to work with the tomcat webserver from inside the downloaded bundle. Following the steps described in the installation document(http://wiki.alfresco.com/wiki/Install_Weblogic_10_WAR), we have hit this problem with the license. The .WAR file after doing the modifications is copied in the autodeploy dir of the Weblogic domain. Upon deployment it should then create the repository, Lucene indexes, database and the trial license which should be stored in the repository folder. The problem is that it works on tomcat and it doesn't on Weblogic, it keeps saying "Invalid license". We have tried:

    * clean indexes, repository, database and install everything from the top
    * generating the indexes, repository and database using Tomcat and then switching to Weblogic by using the generated files and database.

Below you can find sample outputs from Tomcat and Weblogic. You may notice that in Weblogic it fails right from the start after generating repository, indexes, database and licence. The main problem is that after deployment the Web Content Management module is missing from the web application, and this is a result of the failed license because the WCM is installed as a patch, and if the license is missing then the repository is considered as read-only.

Is there a solution to the problem? Am I doing something wrong? Do I need a license to install Alfresco on Weblogic?(I downloaded the trial version). Any comments/suggestions are welcome. Thank you!

—–Tomcat output(first start)—–
14:56:13,906 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
14:56:17,578 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.Oracle9Dialect.
14:56:18,625 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchemaCreate-org.hibernate.dialect.Oracle9Dialect-5296.sql (Generated).
14:56:22,843 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.Oracle9Dialect-5297.sql (Copied from classpath:alfresco/dbscripts/create/2.1/org.hibernate.dialect.Oracle9Dialect/AlfrescoPostCreate-2.1-FKIndexes.sql).
14:56:23,125 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.Oracle9Dialect-5298.sql (Copied from classpath:alfresco/dbscripts/create/1.4/org.hibernate.dialect.Oracle9Dialect/post-create-indexes-02.sql).
14:56:23,156 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file C:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-All_Statements-5299.sql.
14:57:38,265 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
os: Windows XP
command: "C:/Alfresco/openoffice/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///C:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
succeeded: false
exit code: 2
out:
err: CreateProcess: "C:\Alfresco\openoffice\program\soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///C:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore error=3
14:57:38,343 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Creating time limited trial license
14:57:38,875 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Alfresco\alf_data
14:57:38,921 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
14:57:39,328 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Applying patch 'patch.wcmFolders' (patch.wcmFolders.description).
14:57:39,562 INFO [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch ===
ID: patch.wcmFolders
RESULT:
The Web Projects folder was successfully created: workspace://SpacesStore/e2257a7d-f9a1-11dc-b0db-a5178797d7d9
The Web Forms folder was successfully created: workspace://SpacesStore/e2257a7d-f9a1-11dc-b0db-a5178797d7d9
=====================================
14:57:39,562 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
14:57:40,859 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
14:57:40,859 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 493.063MB
14:57:40,859 WARN [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
14:57:41,031 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Enterprise Network granted to Trial User limited to 30 days expiring Wed Apr 23 00:00:00 EEST 2008 (30 days remaining)
14:57:41,031 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.1.1 (193) schema 77 - Installed version 2.1.1 (193) schema 77

—–Weblogic output(first start)—–
14:50:10,343 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
14:50:15,781 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.OracleDialect.
14:50:16,375 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\DOCUME~1\vladv\LOCALS~1\Temp\Alfresco\AlfrescoSchemaCreate-org.hibernate.dialect.OracleDialect-3774.sql (Generated).
14:50:19,718 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\DOCUME~1\vladv\LOCALS~1\Temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.OracleDialect-3775.sql (Copied from classpath:alfresco/dbscripts/create/2.1/org.hibernate.dialect.OracleDialect/AlfrescoPostCreate-2.1-FKIndexes.sql).
14:50:20,015 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\DOCUME~1\vladv\LOCALS~1\Temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.OracleDialect-3776.sql (Copied from classpath:alfresco/dbscripts/create/1.4/org.hibernate.dialect.OracleDialect/post-create-indexes-02.sql).
14:50:20,031 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file C:\DOCUME~1\vladv\LOCALS~1\Temp\Alfresco\AlfrescoSchemaUpdate-All_Statements-3777.sql.
14:52:04,453 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Creating time limited trial license
14:52:04,750 WARN [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
14:52:04,750 WARN [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability
14:52:04,937 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\alf_data
14:52:04,968 WARN [org.alfresco.repo.admin.patch.PatchExecuter] Patches cannot be applied to a read-only system. Possible incompatibilities may exist between the application code and the existing data.
14:52:04,984 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
14:52:06,062 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
14:52:06,062 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_11-b03; maximum heap size 508.063MB
14:52:06,062 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.1.1 (193) schema 77 - Installed version 2.1.1 (193) schema 77
6 REPLIES 6

mikeh
Star Contributor
Star Contributor

vladv
Champ in-the-making
Champ in-the-making
Thank you for your reply!
I am using the trial version.
Does this version have a .lic file included ? Because if it has, I cannot find it.

mikeh
Star Contributor
Star Contributor
Yes, you should have obtained a license separately as part of the trial. Please contact support if yours hasn't arrived.

Thanks,
Mike

vladv
Champ in-the-making
Champ in-the-making
I have e-mailed support and this was their answer:
–start quote–
This is not a license issue. It's a Weblogic 10 issue.
Alfresco works perfectly fine on Weblogic 9 (license installs fine, etc). But we are having some problems regarding licenses on Weblogic 10. Thanks for point it out.
Our engineering team is aware of this issue, but we don't have a fix yet.
–end quote–

I must point out that I have not purchased a license, and I am using the downloaded trial version.
I am using
    - Alfresco 2.1 + Web Content Management module
    - BEA Weblogic 10
    - Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    - Microsoft Windows XP SP2
The .WAR file was modified according to the documentation on this page http://wiki.alfresco.com/wiki/Install_Weblogic_10_WAR

Now, I have moved the .WAR file to BEA Weblogic 9.2  /alf_domain/autodeploy directory and it has the same behavior. The license verification fails and I cannot access the Web Content Management module.

Any hint is welcomed! Thank you!

amitoj
Champ in-the-making
Champ in-the-making
Hi,

I have deployed the alfresco.war package to Weblogic 10.3 using instructions from
http://wiki.alfresco.com/wiki/Install_Weblogic_10_WAR

Weblogic throws following error and goes into read-only mode.

14:02:58,240 WARN  [service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
14:02:58,242 WARN  [service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capility


Now I have used the alfresco community version,
Q1: Is there a licence file (.lic) for the alfresco community version?

Q2: If yes, where can I find it? Can I request a new one from Alfresco?
Q3: If no, what is the solution for deployment of community alfresco on Weblogic 10.3?


Regards,

Amitoj.

assaez
Champ in-the-making
Champ in-the-making
Hello

I am experiencing the same problem you posted about in november

14:02:58,240 WARN [service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
14:02:58,242 WARN [service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capility

when trying to run a community version. Could you tell me if you managed to solve it and how?

Thanks a lot!