Forum Problems Installing LAMS: Problem starting LAMS with DSpace on the same server


 
You may request notification for Problem starting LAMS with DSpace on the same server.
Search: 

1: Problem starting LAMS with DSpace on the same server
02/15/06 12:56 AM
[ Reply | Forward ]
Hi

I'm trying to get both DSpace and LAMS to work on the same server.

I already have DSpace running, can get both copies of Tomcat running, but am having problems with starting JBOSS and LAMS.

I already have LAMS running successfully on a separate test server, but wanted to get it running on our "main" server alongside DSpace.

I know this is the LAMS mailing list, but I wondered if anyone has experience of getting both apps to run on the same server or has seen the error message below before.

Thanks very much

Clive


I'm not an expert in Java :-( ansd just in case anyone can help the JBOSS startup error message is given below:

[1] Done ./run.sh
[root@vle bin]#
================================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /usr/local/lams/jboss

JAVA: /usr/java/jdk/bin/java

JAVA_OPTS: -server -Xms256m -Xmx256m -Dprogram.name=run.sh

CLASSPATH: /usr/local/lams/jboss/bin/run.jar:/usr/java/jdk/lib/tools.jar

================================================================================

06:30:53,332 INFO [Server] JBoss Release: JBoss-3.0.8 CVSTag=JBoss_3_0_8
06:30:53,339 INFO [Server] Home Dir: /usr/local/lams/jboss
06:30:53,339 INFO [Server] Home URL: file:/usr/local/lams/jboss/
06:30:53,339 INFO [Server] Library URL: file:/usr/local/lams/jboss/lib/
06:30:53,340 INFO [Server] Patch URL: null
06:30:53,340 INFO [Server] Server Name: default
06:30:53,340 INFO [Server] Server Home Dir:
/usr/local/lams/jboss/server/default
06:30:53,341 INFO [Server] Server Home URL:
file:/usr/local/lams/jboss/server/default/
06:30:53,341 INFO [Server] Server Data Dir:
/usr/local/lams/jboss/server/default/db
06:30:53,341 INFO [Server] Server Temp Dir:
/usr/local/lams/jboss/server/default/tmp
06:30:53,341 INFO [Server] Server Config URL:
file:/usr/local/lams/jboss/server/default/conf/
06:30:53,342 INFO [Server] Server Library URL:
file:/usr/local/lams/jboss/server/default/lib/
06:30:53,342 INFO [Server] Root Deployemnt Filename: jboss-service.xml
06:30:53,344 INFO [Server] Starting General Purpose Architecture (GPA)...
06:30:53,363 ERROR [Server] start failed
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:440)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:261)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
at org.jboss.Main.boot(Main.java:148)
at org.jboss.Main$1.run(Main.java:381)
at java.lang.Thread.run(Thread.java:595)
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:440)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:261)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
at org.jboss.Main.boot(Main.java:148)
at org.jboss.Main$1.run(Main.java:381)
at java.lang.Thread.run(Thread.java:595)

Posted by Clive Gould

2: Re: Problem starting LAMS with DSpace on the same server
In response to 1 02/15/06 04:49 PM
[ Reply | Forward ]
Hi Clive,

I haven't used DSpace myself, but in theory to run more than one Tomcat server on the same machine, all you have to do is change their ports: 8080, 8009, 8005. Or, to get them to serve on the one port, install Apache and connect them using the mod_jk module (there's a guide here http://www.lamsinternational.com/documentation/installation.php on integrating LAMS with mod_jk).

I think the log error you posted above means it is trying to use Java SDK 1.5 - LAMS 1.0 isn't compatible with 1.5. You can have both Java's installed, just need to set JAVA_HOME in run.sh or, if using the init.d script, lams.conf, to the 1.4.2_x version.

Posted by Jun-Dir Liew

3: Re: Problem starting LAMS with DSpace on the same server
In response to 1 02/16/06 01:07 AM
[ Reply | Forward ]
Thanks you were absolutely right about the jdk. Ive installed 1.4 and modified run.sh and jboss starts fine :-)

Thanks again

Posted by Clive Gould

Reply to first post on this page
Back to Problems Installing LAMS