cancel
Showing results for 
Search instead for 
Did you mean: 

Running Alfresco 1.4 on SuSe Linux 9

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

As I am new to both Alfresco and SusE linux, I would appreciate some assistance/help with why I can't connect to my installation of Alfresco 1.4 using the Alfresco Web Client.

Each time I run the Alfresco Web Client, I get the following message:

Could not connect to host localhost (port 8080)

This is probably a very basic error. I feel that I've covered all the steps required to successfully run Alfresco but I must be missing something. I have converted Alfresco to use MySQL instead of HSQL. I have tested that MySQL is running fine on my system. I have also created the Alfresco database and user "alfresco@localhost" and have granted full permissions to that user account.

I have downloaded and installed JDK 5.0 Update 9 and also have Apache 2.0 and PHP all running fine. That is why I am at a lost as to why Alfresco itself is not running. I know for a fact that there are no other apps running and listening on port 8080 so, in theory, it should run fine. I do not get any errors when I start or stop the Alfresco server either.

I even have JBOSS running as well, by the way…any help/suggestions would be very appreciated.

Thanks all.

Rgds,
Charles M.
6 REPLIES 6

derek
Star Contributor
Star Contributor
Hi,

Please post the startup log messages when you start the server.

Regards

cmathieu
Champ in-the-making
Champ in-the-making
Hi Derek,

My apologies for not replying sooner. Due to the time constraints, I had to resort to running Alfresco on Windows XP which proved far easier. However, now that I have got that running, I am still required to get Alfresco running on SLES 9 at some point in time. As such, I have re-visited the painful task of trying to get Alfresco 1.4 Community Edition running on SLES 9. I started from scratch again and built myself a brand new server running SLES 9. I then proceeded to download and install Alfresco 1.4 Community. Without making any changes, I started Alfresco up and this is what I got on the startup screen:

SYD:/usr/local/alfresco # ./alf_start.sh
Using CATALINA_BASE:   /usr/local/alfresco/tomcat
Using CATALINA_HOME:   /usr/local/alfresco/tomcat
Using CATALINA_TMPDIR: /usr/local/alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/java/jre
Using JAVA_OPTS:       -Xms128m -Xmx512m -server -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/alfresco/tomcat/conf/logging.properties
Starting OpenOffice service…
SYD:/usr/local/alfresco #

To me this doesn't quite look correct in comparison with what happens in the Windows environment when I start Alfresco…for starters, it doesn't indicate that the alfresco.war file is being deployed, secondly it doesn't confirm that the Tomcat server is up and running and whatever schema has been installed successfully.

Why is this?? In the Windows environment, Alfresco will run out of the box…isn't it supposed to be the same for the Linux version?

Thanks Derek.

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

There is a slight difference in how the startup scripts run Alfresco on Linux vs Windows. The messages you are getting are correct. To see more details though try checking

<tomcat-home>/logs/catalina.out.

To check whether or not Tomcat is running you could also use the netstat command to see if port 8080 (the default) is bound. The command is:

netstat -anl | grep 8080

You also mentioned that you're running JBoss on the same server. Is it using a port other than 8080 for the web container?

Hope this helps,

–Aladdin

cmathieu
Champ in-the-making
Champ in-the-making
Hi Aladdin,

Thanks for the info.

I am not running any instances of JBOSS so there wouldn't be a conflict there. Interestingly enough, I decided to try Alfresco 1.4 on SLES 10 and surprise, surprise! It worked fine out of the box!!

You are absolutely correct; the startup screen is the same as SLES 9 but this time, I got the login screen and could login fine. Its currently using the default HSQL database. I will definitely try using a MySQL database as soon as I am able to figure out what the default password for MySQL is in SLES 10 since it did not ask me for one during the installation.

Thanks for all the info and tips..it is appreciated!

Regards,
Charles

cmathieu
Champ in-the-making
Champ in-the-making
Hi Aladdin,

I still can't seem to get Alfresco running under SuSe Linux Enterprise Server 9. The output below is from the "catalina.out" log file under /usr/local/alfresco/tomcat/logs/. Unfortunately, I am not familiar with Java at all to understand the implications of what is occurring below so any help or tips would be very much appreciated:

The JVM option is invalid: -server
Could not create the Java virtual machine.

Usage: java [-options] class [args…]
           (to execute a class)
   or  java [-jar] [-options] jarfile [args…]
           (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by Smiley Embarassed
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verbose[:class|gc|jni]
              enable verbose output
    -version  print product version
    -showversion  print product version and continue
    -? -help  print this help message
    -X        print help on non-standard options
    -assert   print help on assert options

The JVM option is invalid: -server
Could not create the Java virtual machine.

Usage: java [-options] class [args…]
           (to execute a class)
   or  java [-jar] [-options] jarfile [args…]
           (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by Smiley Embarassed
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verbose[:class|gc|jni]
              enable verbose output
    -version  print product version
    -showversion  print product version and continue
    -? -help  print this help message
    -X        print help on non-standard options
    -assert   print help on assert options

The JVM option is invalid: -server
Could not create the Java virtual machine.

Usage: java [-options] class [args…]
           (to execute a class)
   or  java [-jar] [-options] jarfile [args…]
           (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by Smiley Embarassed
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verbose[:class|gc|jni]
              enable verbose output
    -version  print product version
    -showversion  print product version and continue
    -? -help  print this help message
    -X        print help on non-standard options
    -assert   print help on assert options

The JVM option is invalid: -server
Could not create the Java virtual machine.

Usage: java [-options] class [args…]
           (to execute a class)
   or  java [-jar] [-options] jarfile [args…]
           (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by Smiley Embarassed
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verbose[:class|gc|jni]
              enable verbose output
    -version  print product version
    -showversion  print product version and continue
    -? -help  print this help message
    -X        print help on non-standard options
    -assert   print help on assert options

The JVM option is invalid: -server
Could not create the Java virtual machine.

Usage: java [-options] class [args…]
           (to execute a class)
   or  java [-jar] [-options] jarfile [args…]
           (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by Smiley Embarassed
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verbose[:class|gc|jni]
              enable verbose output
    -version  print product version
    -showversion  print product version and continue
    -? -help  print this help message
    -X        print help on non-standard options
    -assert   print help on assert options


Thanks Alladin

Regards,
Charles Mathieu
Systems Engineer
NEHTA - National E-Health Transition Authority

steve
Champ in-the-making
Champ in-the-making
It would appear that Alfresco is not using the JDK you downloaded, but is still picking up the JRE that would have come as standard on your Linux install.

The JRE does not have the option to run in '-server' mode, which is what your catalina.out shows.

Hope this helps,

Steve