cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat failure after patch

kruger
Champ in-the-making
Champ in-the-making
Hello. I had problems with google.docs when working in /share. So i found this topic
https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/integration-other-...
As it was mentioned in it, I downloaded from here:
http://wiki.alfresco.com/wiki/Community_file_list_4.2.c#GoogleDocs_integration

]GoogleDocs integration
File   Description
alfresco-googledocs-repo-2.0.3-23.amp   Repository AMP for GoogleDocs integration
alfresco-googledocs-share-2.0.3-23.amp   Share AMP for GoogleDocs integration

I copied first file to \Alfresco-4.2c\amps
second to \Alfresco-4.2c\amps_share

then I ran the apply_amps.bat script

So now I cant enter alfresco ;(

First tomcat was saing there was an error and thats it, but then it opened the login page (but somehow with older graphics, from v. 3.x I belliev and non of my users can enter including admin.

Please help. I didnt performed a backup for a while now =(

I run Alfresco comunity on win server 2003 enterprise edition
26 REPLIES 26

kruger
Champ in-the-making
Champ in-the-making
I tried to copy those files back and run this script again. So now Tocat is dead (it works on the server but not online):

HTTP Status 404 - /share/

type Status report

message /share/

description The requested resource is not available.

Apache Tomcat/7.0.30

kruger
Champ in-the-making
Champ in-the-making
These are my log files that might help https://dl.dropboxusercontent.com/u/64522711/logs.rar

kruger
Champ in-the-making
Champ in-the-making
This script deleted some folders. It seems that they were important)

kruger
Champ in-the-making
Champ in-the-making
So I installed a clean alfresco and ran this script again - same result. it deletes some folders wich are not made afterwords

here is the script:

@echo off
rem ——-
rem Script for apply AMPs to installed WAR
rem ——-

set ALF_AMP_PARAMS=
set ALF_AMP_NOWAIT=

:ParamsLoop
if "%~1"=="" goto ParamsLoopContinue
if "%~1"=="nowait" shift & set ALF_AMP_NOWAIT=yes& goto ParamsLoop
set ALF_AMP_PARAMS=%ALF_AMP_PARAMS% %1
shift
goto :ParamsLoop

:ParamsLoopContinue
set ALF_HOME=D:\Alfresco
set JAVA_HOME="D:\Alfresco\java"
set CATALINA_HOME=%ALF_HOME%\tomcat

:start
echo This script will apply all the AMPs in %ALF_HOME%\amps to the alfresco.war and all the AMPs in %ALF_HOME%\amps_share to the share.war in %CATALINA_HOME%\webapps
if "%ALF_AMP_NOWAIT%" == "yes" goto nowait1
echo Press control-c to stop this script . . .
pause
:nowait1
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%\bin\alfresco-mmt.jar" install "%ALF_HOME%\amps" "%CATALINA_HOME%\webapps\alfresco.war" -directory%ALF_AMP_PARAMS%
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%\bin\alfresco-mmt.jar" list "%CATALINA_HOME%\webapps\alfresco.war"
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%\bin\alfresco-mmt.jar" install "%ALF_HOME%\amps_share" "%CATALINA_HOME%\webapps\share.war" -directory%ALF_AMP_PARAMS%
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%\bin\alfresco-mmt.jar" list "%CATALINA_HOME%\webapps\share.war"
echo .
echo About to clean out %ALF_HOME%/tomcat/webapps/alfresco directory and temporary files…
if "%ALF_AMP_NOWAIT%" == "yes" goto nowait2
pause
:nowait2
set ALF_AMP_PARAMS=
set ALF_AMP_NOWAIT=
rmdir /S /Q "%CATALINA_HOME%\webapps\alfresco"
rmdir /S /Q "%CATALINA_HOME%\webapps\share"
call "%ALF_HOME%\bin\clean_tomcat.bat"


It also trigers clean_tomcat script:
<code>
rem @echo off
rem ———————————
rem Script to clean Tomcat temp files
rem ———————————

set ALF_HOME=D:\Alfresco
set CATALINA_HOME=%ALF_HOME%\tomcat

echo Cleaning temporary Alfresco files from Tomcat…
rmdir /S /Q "%CATALINA_HOME%\temp\Alfresco" "%CATALINA_HOME%\work\Catalina\localhost\alfresco"
rmdir /S /Q "%CATALINA_HOME%\work\Catalina\localhost\share"
rmdir /S /Q "%CATALINA_HOME%\work\Catalina\localhost\awe"
rmdir /S /Q "%CATALINA_HOME%\work\Catalina\localhost\wcmqs"
<\code>

kruger
Champ in-the-making
Champ in-the-making
I see that I sould have stoped tomcat before executin apply_amps.

But how to restore ut now?

kruger
Champ in-the-making
Champ in-the-making
I stoped the base ones more and tried this apply_amps again. So now localhost:8080/share/ starts but with old interface pre 4.0 but localhost:8080/alfresco/ gives 404 error

My passwords are not working. non of my users or admin can enter. I tried the password I used when installed alfresco but none of them works.

I cant even perform a backup script =(



I tried search. I saw many people with this problem but no one helped them. Alfresco reinstall could help but thats not an option for me due to database not backed up for 3 months=(

It seems that no one reads this forums anymore? =(

kruger
Champ in-the-making
Champ in-the-making
The only thing I can do is to connect to postgre via cmd but that doesnt helps me to make a back up (((

kaynezhang
World-Class Innovator
World-Class Innovator
There is nothing wrong with this script .
Below is how amp works in alfresco:
1.There must be a  alfresco.war in your tomcat webapps directory.
2.apply_amps script will installs the given AMP(s) file into a the alfresco WAR file.
3.remvoe directory "%CATALINA_HOME%\webapps\alfresco ,make sure the patch will work
4.when tomcat restart ,it will unpack the alfresco war file.

So before you run apply_amps script ,you must first stop your tomcat server.after running apply_amps script ,restart tomcat .
It will work fine.

mrogers
Star Contributor
Star Contributor
Your log file is showing an error loading java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory from one of your custom libraries moldavia-rem.jar.    That's very strange.

And the apply amps script backs up the war file before applying changes so you should be able to simply revert to the saved amp.

Your posts above are very vague.   What files and folders have you been changing?