Hi again,

I had some errors with the WAR file from CVS (I actually managed to get it by a SSH tunnel and build it), after having found out which jar files I needed to add, so Aaron's example app was a great thing.

Sadly, I got the same error with this one. I get "Error creating bean with name 'jbi'...", see *below* for a long exception dump. I haven't changed anything in the setup except for:

* using servicemix-1.0.1.jar instead of servicemix-1.0.jar (but I renamed it to 1.0 for maven to work)
* adding commons-beanutils-1.7.0.jar since the app woulnd't start otherwise

Do you have any ideas why this happens?

And thanks for all the help!

/CH


####<2005-sep-21 kl 16:00 CEST> <Warning> <HTTP> <EGIMI004JPDSK9J> <examplesServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1127311210936> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbi' defined in ServletContext resource [/WEB-INF/applicationContext-servicemix.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: null source. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbi' defined in ServletContext resource [/WEB-INF/applicationContext-servicemix.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: null source at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:365) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:336) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:79) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1549) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2565) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:859)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:321)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:257) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:461) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:130) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:101) at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:130) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:250) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:785) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1174) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:410)
java.lang.IllegalArgumentException: null source
        at java.util.EventObject.<init>(EventObject.java:38)
        at javax.management.Notification.<init>(Notification.java:220)
at javax.management.AttributeChangeNotification.<init>(AttributeChangeNotification.java:84) at org.servicemix.jbi.management.BaseStandardMBean.sendAttributeChangeNotification(BaseStandardMBean.java:438) at org.servicemix.jbi.management.BaseStandardMBean.updateAttribute(BaseStandardMBean.java:221) at org.servicemix.jbi.management.BaseStandardMBean.propertyChange(BaseStandardMBean.java:238) at org.servicemix.jbi.management.BaseLifeCycle.firePropertyChanged(BaseLifeCycle.java:147) at org.servicemix.jbi.management.BaseLifeCycle.setCurrentState(BaseLifeCycle.java:95)
        at 
org.servicemix.jbi.management.BaseLifeCycle.start(BaseLifeCycle.java:57)
        at org.servicemix.jbi.framework.Registry.start(Registry.java:98)
        at 
org.servicemix.jbi.container.JBIContainer.start(JBIContainer.java:356)
at org.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:966) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:336) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:79) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1549) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2565) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:859)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:321)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)



From: Aaron Oathout <[EMAIL PROTECTED]>
Reply-To: Aaron Oathout <[EMAIL PROTECTED]>
To: James Strachan <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [servicemix-user] Deploying ServiceMix in BEA
Date: Wed, 21 Sep 2005 07:57:48 -0500

James,

When deploying the servicemix-web-1.1-SNAPSHOT.war on weblogic 9.0 I get a
NoClassDefFound exception on org.apache.commons.pool.impl.GenericObjectPool.
I put together a VERY simple example that I sent to Keith last night that
has the bare minimal configuration for servicemix/spring inside weblogic.
I've attached the zip so hopefully it will help somebody else as well. The
example does not include the required jar files but there is a
libraries.txtthat details what jars to copy from a servicemix binary
release. Once the
jars are copied simply use maven to build the war and deploy.

Aaron

On 9/21/05, James Strachan <[EMAIL PROTECTED]> wrote:
>
>
> On 21 Sep 2005, at 09:15, Cyan Hamster wrote:
> >> I would be interested in the issues you are having with deployment to
> >> weblogic. Are you deploying on 8.1 or 9.0? Are you having issues
> >> wiring your
> >> services in spring or with deploying your JBI components in the
> >> install /
> >> deploy directories?
> >
> >
> >> > What kind of difficulties are you experiencing? I wonder, have you
> >> > tried the WAR in servicemix/tooling/servicemix-web as a possible
> >> > deployment unit?
> >
> > Hi Aaron and James,
> >
> > Frankly speaking, what I was trying to hide behind my phrasing is
> > that I don't know what to do. :)
> >
> > First of all I do not know how to deploy Spring in weblogic.
> >
> > And if I managed to do that, I wouldn't know how to make ServiceMix
> > run in Spring. I think I have understood that the servicemix.xml
> > configuration file is in the same format as the Spring
> > applicationContext.xml, but I have no idea where to put it.
> >
> > Currently I am trying to get the WAR, as James suggested, but since
> > I am behind a firewall, I haven't been succesful there yet.
>
> BTW I've made a current WAR available
>
> http://dist.codehaus.org/servicemix-web/wars/
>
> which you should be able to just download (assuming you can surf the
> web from behind your firewall :). I've not as yet tested it in BEA
> but it should work (fingers crossed)
>
>
> > Sorry for being such a loser, but I really would like to make
> > ServiceMix work in BEA! :)
>
> :) No need to be sorry - we're sorry things aren't a little easier
> for you. Once we've verified that things definitely do work in BEA we
> can add instructions for others on the wiki
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>


<< weblogic-example.zip >>

_________________________________________________________________
Nyhet! Hotmail direkt i din Mobil! http://mobile.msn.com/

Reply via email to