cancel
Showing results for 
Search instead for 
Did you mean: 

Classloader in virtual tomcat

mvlach
Champ in-the-making
Champ in-the-making
Hi,

I have problem with classloader - It cannot load log4j.properties from the standard webapp. It cannot read our language properties.

log4j:ERROR Could not read configuration file from URL [file:/V:/www/VERSION/v-1/DATA/www/avm_webapps/ROOT/WEB-INF/classes/log4j.properties].
java.io.FileNotFoundException: V:\www\VERSION\v-1\DATA\www\avm_webapps\ROOT\WEB-INF\classes\log4j.properties


Thanks for reply.

Mila
8 REPLIES 8

pmonks
Star Contributor
Star Contributor
Have you mapped or mounted the CIFS projection of the repository, as described at http://wiki.alfresco.com/wiki/Virtualization_Server_FAQ#What_is_the_difference_between_a_native_file...?

It sounds like your webapp (or Log4J) is trying to perform direct file I/O to read the log4j.properties file, which is an activity that cannot be intercepted by the Alfresco code that runs within the virtualisation server.

Cheers,
Peter

mvlach
Champ in-the-making
Champ in-the-making
Thanks you, I know this: but how to solve this ?

Mila

pmonks
Star Contributor
Star Contributor
If the virtualisation server is running on Windows, you need to map the Alfresco repository as the "V:" drive, using Windows Explorer or the "net use" command or wotnot.  If the virtualisation server is running on Linux / Solaris / Mac OSX, you need to mount the Alfresco repository at "/media/alfresco/cifs/v" using the "mount" command.

This is explained in more detail at http://wiki.alfresco.com/wiki/Virtualization_Server_FAQ#What_is_the_difference_between_a_native_file... - I'd encourage you to read that section of the virtualisation server FAQ a few times just to get a feel for what this is doing and why it's required.

Cheers,
Peter

mvlach
Champ in-the-making
Champ in-the-making
Thanks you for heplp,

i have worked  whole night and I am very slow Smiley Sad

Mila

fjunior87
Champ in-the-making
Champ in-the-making
I'm facing the same problem.

What is the default Alfresco repository location on Windows and Linux Systems?

I couldn't find them.

Best Regards,
Junior

pmonks
Star Contributor
Star Contributor
The location of the repository isn't what's relevant here - what's required is to mount the Alfresco WCM (AVM) repository via CIFS to one of the mount locations described at http://wiki.alfresco.com/wiki/Virtualization_Server_FAQ#What_is_the_difference_between_a_native_file...; ie.:

/media/alfresco/cifs/v
on Unix

or

v:
on Windows.

The "share" that should be mounted to one of these locations is "AVM", so the full UNC is "\\alfrescohostnameA\AVM" (where "alfrescohostnameA" is the fully qualified hostname of the machine Alfresco is running on, with the letter 'A' appended to the end).

Stepping back for a minute, I should also point out that the virtualisation server isn't the only (or even the best) way to achieve in-context preview with Alfresco WCM managed content.  The other options, along with a comparison of each, is described at http://wiki.alfresco.com/wiki/WCM_Preview.

Cheers,
Peter

mt44555
Champ in-the-making
Champ in-the-making
Hi,


After digging into alfresco and windows a lot with unsucessful output gave up this task  Smiley Surprised  :twisted:
Requesting you to give one example. The documentation given is in brief but unable to do understand it properly.

ansyeow
Champ in-the-making
Champ in-the-making
Hi all,

Just thought of posting the list of information sources that helped give me a solution:
Notes:
–Both server and client are on Windows 7
–The step to edit host file (Windows\System32\drivers\etc\hosts) is important (from resource #3 above):
 
13.13.13.13 workstationA
–Replacing "workstationA" with "your computer name" + "A", I needed to type the command like below:
 
net use V: \\workstationA\AVM /user:admin admin /persistent:yes

Links with related information:
http://wiki.alfresco.com/wiki/File_Server_Subsystem
http://andoylang.wordpress.com/2010/07/20/alfresco-with-cifs/

Andrew