cancel
Showing results for 
Search instead for 
Did you mean: 

MAC OS X troubleshooting

mir4ge
Champ in-the-making
Champ in-the-making
I installed    "alfresco community tomcat 2.9.0B"

on my PowerBookG4 (MAC OS X 10.4.11 running)

but when I start alfresco  and 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
        at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
        at sun.rmi.transport.Transport.exportObject(Transport.java:75)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:196)
… etc…


14:14:05,627 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
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
        at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
        at sun.rmi.transport.Transport.exportObject(Transport.java:75)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:196)
…etc…

14:14:05,683 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
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
        at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
        at sun.rmi.transport.Transport.exportObject(Transport.java:75)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:196)
…etc…


Any hints about solving this problem? Help me,please…
I have no idea.. and
I need to run alfresco on my local host! Smiley Sad
6 REPLIES 6

mikeh
Star Contributor
Star Contributor
This seems to be due to hostname resolution issues.

Please see these forum topics:
http://forums.alfresco.com/viewtopic.php?t=5463&postdays=0&postorder=asc&start=30
and
http://forums.alfresco.com/viewtopic.php?t=4718

Thanks,
Mike

mir4ge
Champ in-the-making
Champ in-the-making
I report an "ObjID already in use" as in the thread you linked me to…
but I'm sure there's no other process on port 8080…


Besides, I'm running   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…
and I didn't understand why changing the hostname should carry to a solution…

I'm gonna try by setting the JAVA_OPT as indicated here:

Hi Paul,

Try setting the JAVA_OPTS like this in the 'alfresco.sh' script:


JAVA_OPTS='-Xms128m -Xmx1024m -server'
export JAVA_OPTS

I know that on Solaris for example a single line Export such as you have posted does not work, maybe this is the same for your Linux version.

Steve

(Hoping that  for MAC OS X is the same as for the Linux version…)

THANKS…
And please… stay tuned…
I'm a noob Smiley Sad

                    mir4ge

:cry:  :cry:  :cry:

mikeh
Star Contributor
Star Contributor
and I didn't understand why changing the hostname should carry to a solution…
Because that's what fixed it for other people in those threads I linked you to. Note they're not changing the computer's hostname itself, but changing a configuration file which refers to it.

Mike

mir4ge
Champ in-the-making
Champ in-the-making
Hi Mike!
I did as explained here:
Hi,

in your code:

JAVA_OPTS="-Xms128m -Xmx1024m -server"
#JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions"
JAVA_OPTS="-Djava.rmi.server.hostname=myhostname.mydomainname.net"
export JAVA_OPTS

the line 'JAVA_OPTS="-Djava.rmi.server.hostname=myhostname.mydomainname.net' overwrites any prior JAVA_OPTS settings, so your heap size modifications will not be used.

You need to modify the line to read:

JAVA_OPTS="${JAVA_OPTS} -Djava.rmi.server.hostname=myhostname.mydomainname.net"

A good way to see what your JAVA_OPTS are really set to is to modify the 'catalina.sh' file in tomcat/bin as below:

Find the section that is similar to:

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%

And add:

echo Using JAVA_OPTS: %JAVA_OPTS%

(I don't know why it's not shown by default by Tomcat…)

Hope this helps,

Steve


… But it didn't work…
When I write http://localhost:8080/alfresco/ in my browser,
I still have a 404 NOT FOUND reply… Smiley Sad

Any further insights?
Thanks.
               Mir4ge

mir4ge
Champ in-the-making
Champ in-the-making
PS: I also tried another port instead of the default 8080…

I tried with port 8082… the same as before:it doesn't works…

What more can I try?

steve
Champ in-the-making
Champ in-the-making
mir4ge,

That is not the fix specified in the linked forum posts at the top of this thread.

See this thread for a summary:
http://forums.alfresco.com/viewtopic.php?t=11327&highlight=objid