Madsonic doens't start anymore after upgrading on OSX
- Madsonic
- Administrator
- Posts: 986
- Joined: 07 Dec 2012, 03:58
- Has thanked: 1204 times
- Been thanked: 470 times
Re: Madsonic doens't start anymore after upgrading
Hi there,
Please provide more Infos:
it is very difficult to make diagnoses without any clues.
Support guide: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Best regards
Please provide more Infos:
- used operating system
- used CPU architecture
- used server memory
- used Java version
- Madsonic Build before
- Madsonic Build upgrade to
- Error messages
- Log entries
it is very difficult to make diagnoses without any clues.
Support guide: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Best regards
Re: Madsonic doens't start anymore after upgrading
- used operating system: OSX 10.10.1
- used CPU architecture: i5 sandybridge x64
- used server memory: old one 64.4 MB / 81.1 MB
- used Java version: Java 7. update 71
- Madsonic Build before: 5.0.3830
- Madsonic Build upgrade to: 5.2 Beta2
- Error messages: N/A just doens't start. no process
- Log entries: How to find on osx?
- Madsonic
- Administrator
- Posts: 986
- Joined: 07 Dec 2012, 03:58
- Has thanked: 1204 times
- Been thanked: 470 times
Re: Madsonic doens't start anymore after upgrading
I wish also such a Mac for testing, but need to test it all even virtually.skopo wrote:
- used operating system: OSX 10.10.1
- used CPU architecture: i5 sandybridge x64
- used server memory: old one 64.4 MB / 81.1 MB
- used Java version: Java 7. update 71
- Madsonic Build before: 5.0.3830
- Madsonic Build upgrade to: 5.2 Beta2
- Error messages: N/A just doens't start. no process
- Log entries: How to find on osx?
Maybe the new Madsonic starter script doesn't work right on Yosemite.
Infos about the OSX installer can found here: http://beta.madsonic.org/installation.jsp#mac
best regards
Re: Madsonic doens't start anymore after upgrading
I think that might cause the problem.Maybe the new Madsonic starter script doesn't work right on Yosemite.
But problem remains with my older mac on work that runs 10.9.4. (test bench for everything. Should be re-installed from very beginning)
I have tried to get standalone running but problem remains the same (even with older builds) it just won't start.
- Madsonic
- Administrator
- Posts: 986
- Joined: 07 Dec 2012, 03:58
- Has thanked: 1204 times
- Been thanked: 470 times
Re: Madsonic doens't start anymore after upgrading
Did you use the new OSX installer?skopo wrote:I think that might cause the problem.Maybe the new Madsonic starter script doesn't work right on Yosemite.
But problem remains with my older mac on work that runs 10.9.4. (test bench for everything. Should be re-installed from very beginning)
I have tried to get standalone running but problem remains the same (even with older builds) it just won't start.
Please try the following:
open Terminal.app
Code: Select all
cd /Applications/Madsonic.app/Contents/Resources/Java/
java -cp madsonic-booter.jar org.madsonic.booter.Main -mac
Code: Select all
Dez 15, 2014 7:47:04 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@67abaab: display name [org.springframework.context.support.ClassPathXmlApplicationContext@67abaab]; startup date [Mon Dec 15 19:47:04 CET 2014]; root of context hierarchy
Dez 15, 2014 7:47:04 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext-mac.xml]
Dez 15, 2014 7:47:04 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@67abaab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4a8acc0c
Dez 15, 2014 7:47:04 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4a8acc0c: defining beans [deployer,frame,controller]; root of factory hierarchy
Using WAR file: /Applications/Madsonic.app/Contents/Resources/Java/madsonic.war
Extracting webapp to /Library/Application Support/Madsonic/jetty/5420
Using WAR file: /Applications/Madsonic.app/Contents/Resources/Java/madsonic.war
Using GZIP-compression for REST
2014-12-15 19:47:04.651:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2014-12-15 19:47:07.831:INFO:/:Initializing Spring root WebApplicationContext
Dez 15, 2014 7:47:07 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Dez 15, 2014 7:47:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Mon Dec 15 19:47:07 CET 2014]; root of context hierarchy
Dez 15, 2014 7:47:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
Dez 15, 2014 7:47:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
Dez 15, 2014 7:47:08 PM org.springframework.security.config.SecurityNamespaceHandler <init>
INFO: Spring Security 'config' module version is 3.2.5.RELEASE
Dez 15, 2014 7:47:08 PM org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser parseInterceptUrlsForFilterInvocationRequestMap
INFO: Creating access control expression attribute 'permitAll' for /**
...
...
Not all error/warnings will be logged into the file, maybe some strange errors can only found on the debug console.
Madsonic logfile can be found here: /Library/Application Support/Madsonic/madsonic.log
Best regards
Re: Madsonic doens't start anymore after upgrading on OSX
Test server gives this when running terminal command.
Code: Select all
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/madsonic/booter/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
- Madsonic
- Administrator
- Posts: 986
- Joined: 07 Dec 2012, 03:58
- Has thanked: 1204 times
- Been thanked: 470 times
Re: Madsonic doens't start anymore after upgrading on OSX
This error mean, your system use the internal Apple JAVA6 engine as default. But Madsonic need to run the installed Java7.
You can override this with the environment setting JAVA_HOME
Literally all you have to do is:
and restart your shell and try it again.
Now this comand should return the right path
or
You can override this with the environment setting JAVA_HOME
Literally all you have to do is:
Code: Select all
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile
Now this comand should return the right path
Code: Select all
echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home
Code: Select all
java -version
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
Re: Madsonic doens't start anymore after upgrading on OSX
if only v6 is installed, install v7 additionally.
then list your java versions again in the terminal.
if there is still v6 listed,
then you have to alter the default engine.
in linux there is a way like "update-alternatives --config java"
then you can select the new default ...
but as we all know apple wants it the hardway ...
this is a way to switch it in osx
http://superuser.com/questions/490425/h ... s-x-10-8-2
then list your java versions again in the terminal.
if there is still v6 listed,
then you have to alter the default engine.
in linux there is a way like "update-alternatives --config java"
then you can select the new default ...
but as we all know apple wants it the hardway ...
this is a way to switch it in osx
http://superuser.com/questions/490425/h ... s-x-10-8-2
Re: Madsonic doens't start anymore after upgrading on OSX
That did the trick!
I had installed Java 1.6 after 1.7 for some applications.
I thought 1.7 should stay as default.
Now running like dream. (Had to rebuild DB but that was expected anyway)
I had installed Java 1.6 after 1.7 for some applications.
I thought 1.7 should stay as default.
Now running like dream. (Had to rebuild DB but that was expected anyway)