cancel
Showing results for 
Search instead for 
Did you mean: 

MAC OS X still troubleshooting

mir4ge
Champ in-the-making
Champ in-the-making
John Newton himself switched on MAC…
http://digg.com/apple/John_Newton_Alfresco_CEO_Made_the_Move_to_Mac

But I'm still not able to run Alfresco on my machine:

I'm trying to  run Alfresco 2.9.0 B
and my environnement is:
Mac OS X 10.4.11(PowerPC)/MySQL/Java SDK 1.5/Tomcat

No firewalls running, no spaces in the directory name…

I don't know what I should try…

Here's the link to my first post where I reported the error log:

http://forums.alfresco.com/viewtopic.php?t=10146&highlight=

Any Hints please???

mir4ge
4 REPLIES 4

janv
Employee
Employee
Alfresco will run on a Mac. Does the following help ?

http://forums.alfresco.com/viewtopic.php?t=11327&highlight=objid

Thanks,
Jan

mir4ge
Champ in-the-making
Champ in-the-making
Alfresco will run on a Mac. Does the following help ?
http://forums.alfresco.com/viewtopic.ph … ight=objid
Thanks,
Jan

Unluckily it didn't work…

Note that DNS problems can be very subtle.
For example, if you try to run on a machine that is served by DHCP
that hard-codes an IP address in an /etc/hosts file, and that hard-coded
IP address happens to not match the one given to you by DHCP,
then Spring's RmiServiceExporter will end up trying to bind to
an IP address that may not correspond to a network device.
If that happens, then the bind will get refused, a registry at the
*default* RMI will get created because Spring's RmiServiceExporter
makes a "best faith effort" by failing over to localhost but it won't
get any of the other settings that prevent conflicts downstream.
When those conflicts occur, you'll get "ObjID already in use".
Whew!


When in doubt, check your network interface's ip address
using something like ifconfig on unix, then ping your hostname
and see if the addresses match. Also, remember to inspect
your process list for lingering Tomcat instances. Another useful
tool on unix if some other process is causing trouble is 'lsof'.

I edited my original /etc/host file
to read my actual IP address in the localhost

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
10.50.10.21   localhost
255.255.255.255   broadcasthost
#::1             localhost

           while the original file was:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255   broadcasthost
::1             localhost


It didn't change anything… I can start TOMCAT, but when  I go on

http://localhost:8080/alfresco/

I can't see the directory /alfresco though it has been created,

report the following HTTP Status 404:

HTTP Status 404 - /alfresco/

type Status report
message /alfresco/
description The requested resource (/alfresco/) is not available.

From Terminal, beside the known error message:

ERROR [AbstractImageMagickContentTransformer] JMagickContentTransformer not available:
ERROR [AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available:
Failed to execute command: convert …
reporting that various external document transformation engines are not available for use by the server,
I see the following errors on server startup:

14:14:05,600 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter' defined in class path resource [alfresco/emailserver/email-service-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: internal error: ObjID already in use
Caused by: java.rmi.server.ExportException: internal error: ObjID already in use



Please… help me…  need to fix this

mir4ge
Champ in-the-making
Champ in-the-making
It worked! I had just to reload the  etc/hosts file!

I edited my original /etc/host file
to read my actual IP address in the localhost field

Note that DNS problems can be very subtle.
For example, if you try to run on a machine that is served by DHCP
that hard-codes an IP address in an /etc/hosts file, and that hard-coded
IP address happens to not match the one given to you by DHCP,
then Spring's RmiServiceExporter will end up trying to bind to
an IP address that may not correspond to a network device.
If that happens, then the bind will get refused, a registry at the
*default* RMI will get created because Spring's RmiServiceExporter
makes a "best faith effort" by failing over to localhost but it won't
get any of the other settings that prevent conflicts downstream.
When those conflicts occur, you'll get "ObjID already in use".

When I change IP (connecting from Home or from work)
I have to edit the etc/hosts file, then I write
sudo lookupd -flushcache
to refresh it

Wow… I should have known it before! Smiley Wink

There's only one thing I still wonder about…
what if I want to run Alfresco only on localhost without any internet connection,
just to test the customizations??

I read in a FAQ that on windows a loopback software is needed…
Is it the same for MAC OS X??

Thank you very much for solving my issue!! Smiley Very Happy

jottley
Confirmed Champ
Confirmed Champ
Add your actual host name after localhost.

ie

<ip address> localhost <host name>