cancel
Showing results for 
Search instead for 
Did you mean: 

Where to place license file when deploying WAR WebLogic 9.2

jdbrown
Champ in-the-making
Champ in-the-making
Followed the directions for installation on WebLogic 9.2 at wiki: http://wiki.alfresco.com/wiki/Install_BEA_Weblogic

Question - where do I install the .lic file for the enterpise version of Alfresco?
7 REPLIES 7

steve
Champ in-the-making
Champ in-the-making
Hi,
If you navigate to the directory listed in step 5, and create a folder called 'license' in there, you should be able to place your license file into that directory.

Please let us know if this works or not.

Thanks,

Steve

jdbrown
Champ in-the-making
Champ in-the-making
No dice.  I also tried to create an extensions/license and place in there and that also did not work.

I still get the following when I try to start the application. From alfesco.log:

[size=75]07:25:50,894 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert "c:\temp\Alfresco\ImageMagickContentTransformer_init_source_8879.gif"  "c:\temp\Alfresco\ImageMagickContentTransformer_init_target_8880.png"
07:25:59,055 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
07:26:05,174 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
07:26:18,523 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
07:26:18,523 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability
07:26:20,236 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: c:\alf_data
07:26:20,576 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
07:26:20,576 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
07:26:20,586 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:313)[/size]


Additional info - I am using the WAR 2.0.1 enterprise version on WebLogic 9.2. on Windows XP SP2.  Using Sun's JVM.  Brand new Weblogic domain created as a plain WLS server (no BEA extensions).

As you can see from logging messages above, I also get an ERROR on the data directory.  I am hoping that is caused because of the license issue setting the repository to read-only.

derek
Star Contributor
Star Contributor
Hi,

Regardless of where you choose to put it, you'll need your license file in a location on the classpath thus: alfresco/extension/license.  Check that your directory name is extension and not extensions.

Are there any classpath locations available to the classloader other than the WAR internals?

Regards

jdbrown
Champ in-the-making
Champ in-the-making
That was it.  It has to go in WEB-INF/classes/alfresco/extension/license folder. 

I had tried alfresco/license and the typo on alfresco/extensions/license, neither of which worked.

I still have some other issues/errors with the directory I had hoped the license issue was causing, but I will start another thread with those. 

Thank you!

pcuvecle
Champ in-the-making
Champ in-the-making
Hi,

In the same area, is there a way to configure the entire extension directory outside of the alfresco war directory (the same way it is done with tomcat in the shared folder) ?

I tried to put the extension folder in :
- the lib folder of the WL domain
- the lib folder of the config folder of the WL domain
- I tried to modify the startup script to append the extension path to the classpath

It does not load my extension config  (and obviously the licence key is not loaded as well) Smiley Sad

derek
Star Contributor
Star Contributor
Hi,

The classpath* lookup should be good for anything available on the classpath of the application.  So, you would have to be sure that alfresco/extension is available on the classpath.  The application classpath should not be affected by the classpath for the app server itself.  What happens if you jar your config up so that the alfresco root of your config appears in a jar file?

There may be special issues there in the interaction between Spring's lookup mechanism and the app server.

Regards

pcuvecle
Champ in-the-making
Champ in-the-making
What happens if you jar your config up so that the alfresco root of your config appears in a jar file?

it's not working better. I've created a jar file containing /alfresso/extension/<all my extension stuff>, put it in
- domain lib
- application lib

The only thing that works is the copy of the extensions in :
/<alfresco war folder>/WEB-INF/classes/alfresco/extension