Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Building LAMS 2.3.4 on Mac OS X


 
Search: 

6: Re: Re: Re: Building LAMS 2.3.4 on Mac OS X
In response to 5 06/17/10 10:31 AM
[ Reply | Forward ]
Hi Ernie, once again...

Just a follow on from my earlier message. For one thing I think that Mac OS X SnowLeopard is 64 bits, which would explain the JVM message.

I was wondering if the problem is with jboss-4.0.2 so I downloaded jboss-5.1.0.GA, and it behaves a lot better (that is to say without lams installed). It starts and stops perfectly.

However, I when I try to build lams for it I get a compile error because eclipse cannot find javax.servlet classes. I managed to fix this problem and build and deploy lams by copying servlet-api.jar and jsp-api.jar from common/lib to  servlet/default/lib. However, now when I try to start jboss-5.1.0 I get the following error:

17:53:18,170 INFO  [ProfileServiceImpl] Loading profile: default from:
org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@118a770(root=/home/tread/Escritorio/jboss-5.0.1.GA/server,
key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
17:53:18,174 INFO  [ProfileImpl] Using
repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@118a770(root=/home/tread/Escritorio/jboss-5.0.1.GA/server,
key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
17:53:18,175 INFO  [ProfileServiceImpl] Loaded profile:
ProfileImpl@c791f4{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
17:53:20,961 ERROR [AbstractKernelController] Error installing to
Instantiated: name=jboss.management.local:j2eeType=J2EEDomain,name=Manager
state=Described mode=Manual requiredState=Configured
java.lang.ClassNotFoundException:
org.jboss.management.j2ee.LocalJBossServerDomain from
BaseClassLoader@1ee1775{VFSClassLoaderPolicy@462631{name=vfsfile:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/conf/jboss-service.xml
domain=ClassLoaderDomain@1f7708{name=DefaultDomain parentPolicy=BEFORE
parent=org.jboss.system.NoAnnotationURLClassLoader@1d8957f}
roots=[MemoryContextHandler@24470614[path=
context=vfsmemory://3j011-twhkmw-gajrsf24-1-gajrst29-6
real=vfsmemory://3j011-twhkmw-gajrsf24-1-gajrst29-6],
DelegatingHandler@944281[path=lams-valve.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/lams-valve.jar],
DelegatingHandler@32842021[path=jboss-cache.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/jboss-cache.jar],
DelegatingHandler@5452358[path=jboss-serialization.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/jboss-serialization.jar],
DelegatingHandler@641337[path=servlet-api.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/servlet-api.jar],
DelegatingHandler@7988008[path=jsp-api.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/jsp-api.jar],
DelegatingHandler@3177540[path=mail.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/mail.jar],
DelegatingHandler@19821108[path=jgroups.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/jgroups.jar],
DelegatingHandler@4970343[path=lams-session.jar
context=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/
real=file:/home/tread/Escritorio/jboss-5.0.1.GA/server/default/lib/lams-session.jar]]
delegates=null exported=[, org.jboss.serial.util,
org.jgroups.jmx.protocols, org.jgroups.demos, org.jboss.cache.xml,
javax.mail.internet, org.jboss.serial.objectmetamodel,
javax.mail.util, org.jboss.serial.exception, org.jgroups.stack,
org.jgroups.demos.applets, javax.servlet, org.jgroups.tests,
org.jgroups.persistence, org.jboss.cache.lock,
javax.servlet.jsp.tagext, org.jboss.cache.loader.bdbje,
org.jboss.serial.classmetamodel, org.jgroups.demos.wb,
org.jgroups.protocols.pbcast, org.jboss.cache.loader.tcp,
javax.servlet.jsp, org.lamsfoundation.lams.web.session,
org.jgroups.util, org.jboss.serial.references, com.sun.mail.iap,
javax.mail.search, javax.servlet.jsp.el, org.jgroups.blocks,
org.jboss.cache.factories, org.jboss.cache.aop.collection,
org.jgroups.tests.stack, javax.mail, javax.mail.event,
org.jboss.cache.aop.util, org.jgroups, org.jboss.cache.aop.eviction,
org.jgroups.protocols, org.jgroups.jmx.protocols.pbcast,
org.jgroups.tests.perf.transports, org.jboss.serial,
com.sun.mail.imap, org.jgroups.protocols.ring, org.jboss.cache.aop,
org.jboss.cache.aop.interceptors, org.jboss.cache.loader,
org.jboss.cache.aop.references, javax.servlet.resources,
org.jgroups.tests.perf, org.jgroups.jmx, com.sun.mail.pop3,
org.jboss.cache.interceptors, org.jboss.cache.statetransfer,
org.jgroups.auth, com.sun.mail.util, org.jboss.serial.io,
org.jgroups.conf, org.jboss.cache.util, org.jboss.cache.loader.jdbm,
javax.servlet.jsp.resources, com.sun.mail.smtp, org.jboss.cache.rpc,
org.jboss.cache.marshall, org.jboss.serial.finalcontainers,
org.jboss.serial.persister, com.sun.mail.handlers, org.jgroups.debug,
org.jboss.cache.eviction,
org.lamsfoundation.lams.integration.security, org.jgroups.mux,
META-INF, com.sun.mail.imap.protocol, org.jboss.cache.loader.rmi,
org.jboss.cache, org.jboss.serial.objectmetamodel.safecloning,
org.jboss.cache.transaction, org.jboss.cache.optimistic,
org.jboss.cache.buddyreplication, org.jboss.cache.aop.annotation,
org.jboss.cache.config, javax.servlet.http] <IMPORT-ALL>NON_EMPTY}}
    at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:422)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1213)
    at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
    at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
    at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:211)


Is it actually possible to build, deploy and run lams on Mac? I am beginning to wonder...

Thanks,

Tim

Posted by Timothy Read

7: Re: Re: Re: Re: Building LAMS 2.3.4 on Mac OS X
In response to 6 06/18/10 03:47 AM
[ Reply | Forward ]
Hi Ernie,

Just a one liner to say don't worry. I realized that I was complicating life too much. I have downloaded the 2.4 version from the CVS, followed the instructions and it compiles and runs fin on my Mac...

Now lets see if I can actually do something with all this lovely source code.

Thanks anyway,

Tim

Posted by Timothy Read

8: Re: Re: Re: Re: Re: Building LAMS 2.3.4 on Mac OS X
In response to 7 06/18/10 07:35 PM
[ Reply | Forward ]
Great!

Sorry I didn't get to this before you figured it out! :-)

If you need any help, please post here in the forums.

Thanks,

Ernie

Posted by Ernie Ghiglione

9: Re: Re: Re: Re: Re: Re: Building LAMS 2.3.4 on Mac OS X
In response to 8 06/23/10 12:58 AM
[ Reply | Forward ]
Well, since you mentioned help ;-)

When I use the Author and try to drag and drop any tool onto the panel I get a popup message saying:

System Error

A following system error has occurred:

You may need to re-start LAMS Author to continue. Do you want to save the following information about this error to help fix this problem?


And in the jboss console I get the following:


ERROR [LamsCoreToolService] A tool which is defined in the database appears to missing from the classpath. Unable to get the tool output definitions. ToolContentId 3
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'qaService' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at org.lamsfoundation.lams.tool.service.LamsCoreToolService.findToolService(LamsCoreToolService.java:846)
at org.lamsfoundation.lams.tool.service.LamsCoreToolService.getOutputDefinitionsFromTool(LamsCoreToolService.java:381)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

(snip)

2010-06-23 08:52:21,254 ERROR [AuthoringAction] Exception thrown getToolOutputDefinitions
org.lamsfoundation.lams.tool.exception.ToolException: A tool which is defined in the database appears to missing from the classpath. Unable to get the tool output definitions. ToolContentId 3
at org.lamsfoundation.lams.tool.service.LamsCoreToolService.getOutputDefinitionsFromTool(LamsCoreToolService.java:387)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


It sounds like a classpath error. What can I do to fix it?

Thanks,
Tim

Posted by Timothy Read

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum