cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable openoffice connection ?

nis
Champ in-the-making
Champ in-the-making
Hi,
How to disable openoffice connection at Alfresco startup ?

I don't use OO features for my tests and so I would like a faster startup :wink:


2 févr. 2006 10:18:12 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
2 févr. 2006 10:18:13 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
2 févr. 2006 10:18:20 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
2 févr. 2006 10:18:21 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
10:18:23,539 INFO  [service.descriptor.DescriptorService] Alfresco started (Open Source) - v1.1.2; repository v1.1.2

13 REPLIES 13

jzulu2000
Champ in-the-making
Champ in-the-making
No, it is not running, in fact, when I installed Alfresco (using the .exe), I choose not to install open office neither java.

Anyway, I don't know why, but after a lot of workarrounds trying to solve this problem, I just moved java to a different folder, and then I changed the java_home and jre_home enviroment variables… then, I changed the path enviroment variable to have the java bin directory at first, and it's all working fine again.

The original path had alfresco bin directory at first, and then java bin directory… I just changed and seems to be the solution..

Old Classpath
E:\Arkimia\dev\Alfresco\alfresco-community-tomcat-2.1.0\bin;%java_home%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Lenovo;C:\Program Files\Lenovo\Client Security Solution;%ant_home%\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Common Files\Teleca Shared

New Classpath
%java_home%\bin;E:\Arkimia\dev\Alfresco\alfresco-community-tomcat-2.1.0\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Lenovo;C:\Program Files\Lenovo\Client Security Solution;%ant_home%\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Common Files\Teleca Shared


I think this is maybe a bug from the .exe installer when we don't want to install open office nor java.

jzulu2000
Champ in-the-making
Champ in-the-making
Now I know it wasn't because of the path order… I think this is a problem with the firewall, and I'm gonna explain why…

Initially, when the problem started (after installing alfresco), I had java in the following folder (java_home and jre_home pointing to those directories):
JDK: C:\Program Files\Java\jdk1.5.0_12
JRE: C:\Program Files\Java\jre1.5.0_12

If I just rename the "Java" folder to something like "Java.x", the new paths are (I changed java_home and jre_home too):
JDK: C:\Program Files\Java.x\jdk1.5.0_12
JRE: C:\Program Files\Java.x\jre1.5.0_12

After renaming them, when I start Alfresco, windows firewall alerts me to allow access to java, and starts normally…

If I just rename back "Java.x" to "Java" (and change the java_home and jre_home), the open office error occurs again… the jdk and jre folders are
JDK: C:\Program Files\Java\jdk1.5.0_12
JRE: C:\Program Files\Java\jre1.5.0_12

So, that's why I think it is a problem related to the windows firewall; at the moment I installed alfresco (without installing oo neither java) something could had happen that made the Alfresco installer to cause a problem when using java in the original path…

When I rename again to "Java.x", alfresco starts normally again!!!

I haven't tried to solve this to make alfresco running with the original java location… I just moved java to another location, changed the java_home and jre_home env variables, and it's working fine.

I'll let you know If I can solve the problem with java running in the original path.

bye

helium3
Champ in-the-making
Champ in-the-making
Hello,

I have installed Alfresco 3.2 r2 on Ubuntu 9.10 (Karnic) and seem to have troubles with OpenOffice. I want to deactivate it but there is no "custom-repository-context.xml" file to add the changes mentioned above. Also http://wiki.alfresco.com/wiki/Upgrading_to_Alfresco_Community_Edition_3.2 says that custom-repository.properties contents should be moved into the alfresco-global.properties file. But in which file shall I add the changes supposed to got into the associated "custom-repository-context.xml"? How can I switch off openoffice in Aldfresco 3.2 r2?

Thanks!
–Aron

lboschi
Champ in-the-making
Champ in-the-making
Hello,

I have installed Alfresco 3.2 r2 on Ubuntu 9.10 (Karnic) and seem to have troubles with OpenOffice. I want to deactivate it but there is no "custom-repository-context.xml" file to add the changes mentioned above. Also http://wiki.alfresco.com/wiki/Upgrading_to_Alfresco_Community_Edition_3.2 says that custom-repository.properties contents should be moved into the alfresco-global.properties file. But in which file shall I add the changes supposed to got into the associated "custom-repository-context.xml"? How can I switch off openoffice in Aldfresco 3.2 r2?

Thanks!
–Aron

Hi,

I've solved the problem creating the file "shared/alfresco/extension/subsystems/thirdparty/default/default/custom-openoffice-transform-context.xml" (based on alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/openoffice-transform-context.xml), with the following contents:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>

   <bean id="openOfficeStartupBootstrap" class="org.alfresco.util.exec.RuntimeExecBootstrapBean">
      <property name="startupCommands">
         <list>
         </list>
      </property>
      <property name="failOnError">
         <value>false</value>
      </property>
   </bean>

    <bean id="openOfficeConnectionTester" class="java.util.ArrayList" />
    <bean id="openOfficeConnectionTesterTrigger" class="java.util.ArrayList" />
    <bean id="openOfficeConnectionTesterJobDetail" class="java.util.ArrayList" />

</beans>

The first bean avoid the openoffice executable to be started.
The other beans inhibits the Tester to check the openoffice connection at start time.

It seems to work. Smiley Happy

Bye