| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 08/03/2010 10:32:56
|
cpelissi
Initiate
Joined: 08/03/2010 09:59:23
Messages: 4
Offline
|
Hi all,
i just try to install Mango on Debian Lenny distribution.
i have installed java1.6 using synaptic tool
java -version is giving
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
i have also installed tomcat server V5.5 synaptic tool.
During install debian is creating a user tomcat55 but not tomcat55 group
my directory /var/lib/tomcat5.5 is own by tomcat55:adm
under this directory i have
mangoDB own by tomcat55:adm
webapps own by tomcat55:adm
under webapps i have :
mango own by tomcat55:adm
following some installation i have made some change in different files:
creating 60mango.policy into /etc/tomcat5.5/policy.d
with
grant codeBase "file:${catalina.base}/webapps/mango/-" {
permission java.security.AllPermission;
};
and i have added the
TOMCAT5_SECURITY=no line to etc/default/tomcat5.5 file
using all of this i still am not able to use mango application
the log file is giving such error messages
INFO 2010-03-08 17:09:26,314 (com.serotonin.mango.MangoContextListener.contextDestroyed:101) - Mango context terminating
INFO 2010-03-08 17:09:26,334 (com.serotonin.mango.db.DerbyAccess.terminate:90) - Stopping database
ERROR 2010-03-08 17:09:26,338 (org.apache.catalina.core.StandardContext.listenerStop:3809) - Exception lors de l'envoi de l'évènement contexte détruit (c
ontext destroyed) à l'instance de classe d'écoute com.serotonin.mango.MangoContextListener
java.lang.NoClassDefFoundError: org.apache.derby.jdbc.EmbeddedDriver
thanks for your support!
Regards,
Christophe
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 08/03/2010 11:28:12
|
apl
Initiate
Joined: 08/05/2009 13:22:03
Messages: 175
Offline
|
Hi Christophe,
why not installing tomcat6 ? - synaptic, aptitude, dpkg - should show you this package.
Arne
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 08/03/2010 11:51:14
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1459
Offline
|
Can you ensure that there is a derby.jar file in /WEB-INF/lib, and that it contains - among a lot of other stuff - org/apache/derby/jdbc/EmbeddedDriver?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 08/03/2010 14:29:04
|
cpelissi
Initiate
Joined: 08/03/2010 09:59:23
Messages: 4
Offline
|
Hi again,
For Tomcat, we can say that Debian is very conservative regarding software version. I suppose that Tomcat version 6 is not officially supported by Debian. if i research for tomcat package in synaptic i only get tomcat 5.5.
I can try to find non offocial Tomcat 6 version for Debian Lenny but i am not sure that the problem is located on tomcat side.
I will check tomorrow for the derby.jar file.
Regards,
Christophe
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/03/2010 11:42:37
|
cpelissi
Initiate
Joined: 08/03/2010 09:59:23
Messages: 4
Offline
|
Hi,
After some checks i confirm that org/apache/derby/jdbc/EmbeddedDriver.class is present iin derby.jar
i haven't done any change in mango files so it can't be a missing class or file.
i suspect some right access issues.
i have tried to restart the tomcat server. i have put the log file at the end of this message.
Is there any problem is using Tomcat V5.5 with Mango?
Because there is no package for tomcat V6.0 for Debian Lenny so i have to install it manually.
Regards,
Christophe
==================================================
log file
==================================================
ERROR 2010-03-09 18:00:19,446 (org.apache.catalina.core.StandardContext.listenerStart:376 - Exception lors de l'envoi de l'évènement contexte
initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org.springframework.core.CollectionFactory
at java.lang.Class.initializeClass(libgcj.so.90)
at org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.java:153)
at java.lang.Class.initializeClass(libgcj.so.90)
at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:44
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.CollectionFactory$BackportConcurrentHashMap
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
at java.lang.Class.forName(libgcj.so.90)
at java.lang.Class.initializeClass(libgcj.so.90)
...26 more
INFO 2010-03-09 18:00:19,503 (com.serotonin.mango.MangoContextListener.contextInitialized:73) - Mango context starting
INFO 2010-03-09 18:00:20,568 (com.serotonin.mango.db.DerbyAccess.initializeImpl:69) - Initializing derby connection manager
ERROR 2010-03-09 18:00:23,188 (org.apache.catalina.core.StandardContext.listenerStart:376 - Exception lors de l'envoi de l'évènement contexte
initialisé (context initialized) à l'instance de classe d'écoute (listener) com.serotonin.mango.MangoContextListener
java.lang.InternalError: One of the management beans is not compliant.
at java.lang.management.ManagementFactory.getPlatformMBeanServer(libgcj.so.90)
at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(libgcj.so.90)
at org.apache.derby.impl.services.jmx.JMXManagementService.findServer(Unknown Source)
at org.apache.derby.impl.services.jmx.JMXManagementService.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
at java.lang.Class.initializeClass(libgcj.so.90)
at org.apache.derby.jdbc.EmbeddedDataSource.findDriver(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
at com.serotonin.mango.db.DerbyAccess.initializeImpl(DerbyAccess.java:77)
at com.serotonin.mango.db.DatabaseAccess.initialize(DatabaseAccess.java:82)
at com.serotonin.mango.MangoContextListener.databaseInitialize(MangoContextListener.java:24
at com.serotonin.mango.MangoContextListener.contextInitialized(MangoContextListener.java:85)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:44
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: javax.management.NotCompliantMBeanException: MBean is not compliant
at mx4j.server.MX4JMBeanServer.registerImpl(MX4JMBeanServer.java:81
at mx4j.server.MX4JMBeanServer.registerMBeanImpl(MX4JMBeanServer.java:769)
at mx4j.server.MX4JMBeanServer.registerMBean(MX4JMBeanServer.java:753)
at java.lang.management.ManagementFactory.getPlatformMBeanServer(libgcj.so.90)
...47 more
INFO 2010-03-09 18:00:23,247 (com.serotonin.mango.MangoContextListener.contextDestroyed:101) - Mango context terminating
INFO 2010-03-09 18:00:23,261 (com.serotonin.mango.db.DerbyAccess.terminate:90) - Stopping database
ERROR 2010-03-09 18:00:23,266 (org.apache.catalina.core.StandardContext.listenerStop:3809) - Exception lors de l'envoi de l'évènement contexte d
étruit (context destroyed) à l'instance de classe d'écoute com.serotonin.mango.MangoContextListener
java.lang.NoClassDefFoundError: org.apache.derby.jdbc.EmbeddedDriver
at java.lang.Class.initializeClass(libgcj.so.90)
at org.apache.derby.jdbc.EmbeddedDataSource.findDriver(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
at com.serotonin.mango.db.DerbyAccess.terminate(DerbyAccess.java:95)
at com.serotonin.mango.MangoContextListener.databaseTerminate(MangoContextListener.java:254)
at com.serotonin.mango.MangoContextListener.contextDestroyed(MangoContextListener.java:117)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4246)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:44
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/03/2010 16:58:24
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1459
Offline
|
Oh, there's a bunch of "missing" classes. Yeah, it's probably a permissions problem. I haven't used Tomcat 5 in a while - possibly never with Mango - so i can't say whether that will work or not.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/03/2010 17:11:37
|
apl
Initiate
Joined: 08/05/2009 13:22:03
Messages: 175
Offline
|
Sorry for misleading you in the first place (I used testing and unstable for that reason).
libgcj.so.90
looks like tomcat ist using gcj and not the sun jdk.
the ubuntu /etc/init.d/tomcat6 script containst the following line:
JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.5-ibm"
maybe set this line to the correct jdk first
Arne
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/03/2010 12:50:23
|
cpelissi
Initiate
Joined: 08/03/2010 09:59:23
Messages: 4
Offline
|
Hello,
Yes! you are right Apl the debian tomcat installation is creating a default link to config java-gcj.
in /usr/lib/jvm there is a link default-java-> java-gcj
this link is used in tomcat service starter /etc/init.d/tomcat5.5
JDK_DIRS="/usr/lib/jvm/default-java /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-cacao /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.5-ibm /usr/lib/j2sdk1.4-sun /usr/lib/j2sdk1.4-blackdown /usr/lib/j2se/1.4 /usr/lib/j2sdk1.4-ibm /usr/lib/j2sdk1.3-sun /usr/lib/j2sdk1.3-blackdown /usr/lib/jvm/java-gcj /usr/lib/kaffe"
2 solutions
- re-affect the default link to java-6-sun : default-java-> java-6-sun
or
- change the JDK_DIR variablein /etc/init.d/tomcat5.5 to avoid using default-java path
JDK_DIRS="/usr/lib/jvm/java-6-sun /usr/lib/jvm/java-gcj" for example.
Now i have to play with Mango application to see if it matches my requirements.
Thank all, for your support.
Regards,
Christophe
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/06/2011 15:54:30
|
PCM
Initiate
Joined: 21/10/2010 10:38:12
Messages: 10
Offline
|
Can you confirm that Mango did indeed run under Tomcat5.5 before I find out the hard way that it will not work?
What version of Mango?
Tomcat6 is still not supported under Debian Lenny. Like cpelissi, I'd much rather install a Lenny .DEB Tomcat package than a manual Tomcat install.
I'm running Mango-1.12.4 on Ubuntu 10.04.2 LTS with jvm/java-6-openjdk/jre, but I need to link it to an embedded system that is running Mango on Lenny.
Thanks for your help.
|
|
|
 |
|
|