cancel
Showing results for 
Search instead for 
Did you mean: 

Problem getting Alfresco Enterprise 2.2.0 to work

srampally
Champ in-the-making
Champ in-the-making
I am trying to evaluate Alfresco Enterprise 2.2.0. The installation went fine. However, after I start the Alfresco Server (by going to "Start -> All Programs -> Alfresco Enterprise Network -> Start Alfresco Server") and go to http://localhost:8080/alfresco in my web browser, I get a "Page Load Error". Is there anything that I need to do to get Alfresco working for me?

Thanks,
Shashi
9 REPLIES 9

pmonks
Star Contributor
Star Contributor
Can you be a bit more specific about the exact error you're seeing in the browser?  Also, can you take a look in the alfresco.log file and post anything suspicious that you see in there (Java stack traces, for example)?

Cheers,
Peter

srampally
Champ in-the-making
Champ in-the-making
Thanks for the reply Peter. alfresco.log does not exist on my system!?
C:\>dir /s alfresco.log
Volume in drive C is Shashi
Volume Serial Number is 8CEF-14B8
File Not Found

When I go to http://localhost:8080/alfresco, I get the following error…
Firefox can't establish a connection to the server at localhost:8080.

C:\Alfresco>alf_start
Starting Tomcat…
Using CATALINA_BASE: C:\Alfresco\tomcat
Using CATALINA_HOME: C:\Alfresco\tomcat
Using CATALINA_TMPDIR: C:\Alfresco\tomcat\temp
Using JRE_HOME: c:\Program Files\Java\jdk1.6.0_06


C:\Alfresco>alf_stop
Shutting down Tomcat…
Using CATALINA_BASE: C:\Alfresco\tomcat
Using CATALINA_HOME: C:\Alfresco\tomcat
Using CATALINA_TMPDIR: C:\Alfresco\tomcat\temp
Using JRE_HOME: c:\Program Files\Java\jdk1.6.0_06
CompilerOracle: exclude org/apache/lucene/index/IndexReader$1.doBody
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeIndexes
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeDeletions
Jun 18, 2008 12:28:58 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:180)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

Thanks,
Shashi

pmonks
Star Contributor
Star Contributor
Those symptoms indicate that Tomcat isn't even starting, let alone getting to the point where it's ready to start Alfresco.  Can you post the contents of the catalina.log or catalina.out file in C:\Alfresco\Tomcat\logs?

My suspicion is that you've got a port conflict (likely port 8080 - the default Tomcat listen port), but better to look in the logs and know for sure than to guess.  :wink:

Cheers,
Peter

srampally
Champ in-the-making
Champ in-the-making
Thanks for the reply Peter. I suspect the same (i.e. Tomcat is not starting and hence when I try to Stop Alfresco, I get a stack trace).

I see the following error message (3 times, each time with a different timestamp) in c:\Alfresco\tomcat\logs\catalina-2008-06-18.log file.

Jun 18, 2008 12:28:58 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
   at java.net.Socket.connect(Socket.java:519)
   at java.net.Socket.connect(Socket.java:469)
   at java.net.Socket.<init>(Socket.java:366)
   at java.net.Socket.<init>(Socket.java:180)
   at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

Here's the output for "netstat -an" AFTER running alf_start.bat.


C:\Alfresco>netstat -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1723           0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1035         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1035         192.168.21.110:1407    ESTABLISHED
  TCP    127.0.0.1:1054         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1055         127.0.0.1:1056         ESTABLISHED
  TCP    127.0.0.1:1056         127.0.0.1:1055         ESTABLISHED
  TCP    127.0.0.1:1057         127.0.0.1:1058         ESTABLISHED
  TCP    127.0.0.1:1058         127.0.0.1:1057         ESTABLISHED
  TCP    127.0.0.1:1339         127.0.0.1:1340         ESTABLISHED
  TCP    127.0.0.1:1340         127.0.0.1:1339         ESTABLISHED
  TCP    127.0.0.1:1341         127.0.0.1:1342         ESTABLISHED
  TCP    127.0.0.1:1342         127.0.0.1:1341         ESTABLISHED
  TCP    192.168.21.110:139     0.0.0.0:0              LISTENING
  TCP    192.168.21.110:1031    192.168.21.3:139       ESTABLISHED
  TCP    192.168.21.110:1033    192.168.21.4:139       ESTABLISHED
  TCP    192.168.21.110:1038    192.168.21.110:80      CLOSE_WAIT
  TCP    192.168.21.110:1059    192.168.21.3:23        ESTABLISHED
  TCP    192.168.21.110:1347    204.14.20.91:143       ESTABLISHED
  TCP    192.168.21.110:1348    204.14.20.91:143       ESTABLISHED
  TCP    192.168.21.110:1364    204.14.20.91:143       ESTABLISHED
  TCP    192.168.21.110:1407    64.14.9.199:21         ESTABLISHED
  TCP    192.168.21.110:1409    64.14.9.199:21         ESTABLISHED
  TCP    192.168.21.110:1411    74.125.19.19:80        TIME_WAIT
  TCP    192.168.21.110:1435    74.125.19.19:80        ESTABLISHED
  TCP    192.168.21.110:1436    192.168.21.103:139     TIME_WAIT
  TCP    192.168.21.110:1438    192.168.21.113:139     TIME_WAIT
  TCP    192.168.21.110:1440    209.167.231.15:80      ESTABLISHED
  TCP    192.168.21.110:1443    74.125.19.19:80        ESTABLISHED
  UDP    0.0.0.0:445            *:*
  UDP    0.0.0.0:500            *:*
  UDP    0.0.0.0:1028           *:*
  UDP    0.0.0.0:1060           *:*
  UDP    0.0.0.0:1081           *:*
  UDP    0.0.0.0:1082           *:*
  UDP    0.0.0.0:1207           *:*
  UDP    0.0.0.0:1701           *:*
  UDP    0.0.0.0:4500           *:*
  UDP    127.0.0.1:123          *:*
  UDP    127.0.0.1:1046         *:*
  UDP    127.0.0.1:1047         *:*
  UDP    127.0.0.1:1900         *:*
  UDP    192.168.21.110:123     *:*
  UDP    192.168.21.110:137     *:*
  UDP    192.168.21.110:138     *:*
  UDP    192.168.21.110:1900    *:*

I appreciate your help in this matter!

Regards,
Shashi

pmonks
Star Contributor
Star Contributor
Those exceptions are just a repeat of the exceptions from the "stop" command.  Can you delete all of the files in C:\Alfresco\Tomcat\logs, try restarting Alfresco, then post the contents of catalina.log?  Don't run the "stop" command though - that's not doing anything useful and is confusing matters.

Cheers,
Peter

srampally
Champ in-the-making
Champ in-the-making
Peter, I deleted all the files in c:\Alfresco\Tomcat\logs. Now when I run alf_start.bat, the logs files do not get created! Am I doing something wrong?

Thanks,
Shashi

pmonks
Star Contributor
Star Contributor
hmmmm…..one thing I just noticed: you've installed Java into a directory that has a space in it.  Can you try again with Java installed in a directory that does not include spaces?

Cheers,
Peter

srampally
Champ in-the-making
Champ in-the-making
Peter,

I copied jdk1.6.0_06 folder to c:\Alfresco and set JAVA_HOME to c:\Alfresco\jdk1.6.0_06 using

"set JAVA_HOME=%ALF_HOME%jdk1.6.0_06"
just above
"set CATALINA_HOME=%ALF_HOME%tomcat"
in alfresco.bat

C:\Alfresco>alf_start.bat
Starting Tomcat…
Using CATALINA_BASE: C:\Alfresco\tomcat
Using CATALINA_HOME: C:\Alfresco\tomcat
Using CATALINA_TMPDIR: C:\Alfresco\tomcat\temp
Using JRE_HOME: C:\Alfresco\jdk1.6.0_06

However I don't believe Tomcat started up (no evidence of Tomcat logs and nothing in "netstat -an" or Task Manager).

I must tell you that while installing Alfresco, I was asked if
1) Download JDK?  I said NO, since I already had JDK on my machine.
and
2) Download OpenOffice extensions? I said YES.

I am afraid I am not making any progress.! Smiley Sad

Thanks,
Shashi

pmonks
Star Contributor
Star Contributor
The symptoms you're describing tend to point to something wrong in the Tomcat startup batch files (C:\Alfresco\tomcat\bin\startup.bat and C:\Alfresco\tomcat\bin\catalina.bat).  Can you edit those files and add:
echo [number]
at strategic points throughout the files (incrementing the number each time)?

That should tell us how far through the batch files it's getting before blowing up.

Cheers,
Peter