• RELEVANCY SCORE 4.50

    DB:4.50:Exception While Running Spring War File In Osgi Container a1






    Exception : Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface.....

    Description : I was trying to running spring application war file in fuse esb osgi container i got the above mentioned exception.

    Actually my spring application will give the output message as "Hello World". Normally this application is running in Tomcat server.

    after that I am creating this spring application as war file by using eclipse navigations steps (file --- Export ------ create war ----) .after that i am trying to executing this war file by deploying in osgi container i got the above mention exception...

    Please give any suggestions how to execute spring war file in osgi container (or) is their any additional configuration i need to execute this spring war file..

    i attached my spring war file.. please look into and give any suggestions.

    DB:4.50:Exception While Running Spring War File In Osgi Container a1


    Hi Sir,

    Thanks for your reply... but i am new to osgi. i don't know how to create a war file that contains OSGi manifest ( MANIFEST.MF) file in that bundle information. I read all the content in the link which your reply and i understood that if you run a war file in osgi container we need bundle information contains manifest file. but i am unable to create OSGi manifest file that contains bundle related information.

    And also please note that i want to run spring web application related war file. Not simple war file. for your clarity please check spring war file which I upload.

    If you don't mine please give any sample pom.xml that contains how to create a war file, in that war file contains how the bundle information will be created in manifest file after war file created by using pom.xml.

    Please give any sample pom.xml file for my understanding.

  • RELEVANCY SCORE 4.13

    DB:4.13:Exception While Running Spring War File In Osgi Container jj






    Exception : Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface.....

    Description : I was trying to running spring application war file in fuse esb osgi container i got the above mentioned exception.

    I am new to osgi. i don't know how to create a war file that contains OSGi manifest ( MANIFEST.MF) file in that how to configure bundle information. I know that if you run a war file in osgi container we need bundle information related manifest file in our war file. but i don't know to create OSGi manifest file that contains bundle related information war file..

    .

    If you don't mine please give any sample pom.xml, which create a war file including osgi manifest file that contains complete bundle information after creating war file using pom.xml.

    And also please give any sample spring xml file for clearing this namespace exceptions..

    Please give any sample pom.xml and spring xml files for my understanding... or else its better to give any simple spring war file for my understanding.

    And also please note that i want to run spring web application related war file. Not simple war file.

    DB:4.13:Exception While Running Spring War File In Osgi Container jj


    Exception : Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface.....

    Description : I was trying to running spring application war file in fuse esb osgi container i got the above mentioned exception.

    I am new to osgi. i don't know how to create a war file that contains OSGi manifest ( MANIFEST.MF) file in that how to configure bundle information. I know that if you run a war file in osgi container we need bundle information related manifest file in our war file. but i don't know to create OSGi manifest file that contains bundle related information war file..

    .

    If you don't mine please give any sample pom.xml, which create a war file including osgi manifest file that contains complete bundle information after creating war file using pom.xml.

    And also please give any sample spring xml file for clearing this namespace exceptions..

    Please give any sample pom.xml and spring xml files for my understanding... or else its better to give any simple spring war file for my understanding.

    And also please note that i want to run spring web application related war file. Not simple war file.

  • RELEVANCY SCORE 3.21

    DB:3.21:Error: Invalid Configuration For The Jms Adapter jp





    Hi!

    I'm doing a test with CEP to get messages from a JMS WebLogic queue but I'm getting the following error:

    BEA-2045010 The application context "Teste" could not be initialized: org.springframework.beans.FatalBeanException: Error in initialization context lifecycle; nested exception is java.lang.IllegalArgumentException: Invalid configuration for the JMS adapter, you must Bean or specify a converter or a type of event.

    Teste.context.xml:

    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd"

    wlevs:event-type-repository
    wlevs:event-type type-name="Pet"
    wlevs:classtestewithprotobuf.MyPet$Pet/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    wlevs:adapter id="pet_messageAdapter" provider="jms-inbound"
    wlevs:listener ref="pet_inputChannel" /
    wlevs:instance-property name="converterBean"
    ref="PetMessageConverter" /
    /wlevs:adapter

    wlevs:channel id="pet_inputChannel" event-type="Pet"
    wlevs:listener ref="pet_messageProcessor" /
    /wlevs:channel

    bean id="PetMessageConverter" class="testewithprotobuf.PetMessageConverter" /
    bean id="PetBean" class="testewithprotobuf.PetBean" /

    wlevs:processor id="pet_messageProcessor"
    wlevs:listener ref="pet_outputChannel" /
    /wlevs:processor

    wlevs:channel id="pet_outputChannel" event-type="Pet"
    wlevs:listener ref="PetBean" /
    /wlevs:channel
    /beans

    My converter class:

    import java.util.Collections;
    import java.util.List;

    import javax.jms.BytesMessage;
    import javax.jms.JMSException;
    import javax.jms.Message;

    import testewithprotobuf.MyPet.Pet;

    import com.bea.wlevs.adapters.jms.api.InboundMessageConverter;
    import com.bea.wlevs.adapters.jms.api.MessageConverterException;
    import com.google.protobuf.InvalidProtocolBufferException;

    public class PetMessageConverter implements InboundMessageConverter {

    @SuppressWarnings("rawtypes")
    @Override
    public List convert(Message message) throws MessageConverterException,
    JMSException {

    BytesMessage bytesMessage = (BytesMessage) message;

    long bodyLen = bytesMessage.getBodyLength();
    byte[] buffer = new byte[(int) bodyLen];

    bytesMessage.readBytes(buffer);

    try {
    Pet pet = Pet.parseFrom(buffer);

    return Collections.singletonList(pet);

    } catch (InvalidProtocolBufferException e) {
    throw new MessageConverterException(e);
    }
    }
    }

    Please, what's wrong?
    Thanks!

    DB:3.21:Error: Invalid Configuration For The Jms Adapter jp

    Hello Manju James!

    You're right! I was using the event-type tag in the adapter setup. I removed this and it worked!

    Thank you!

  • RELEVANCY SCORE 3.21

    DB:3.21:Difference On Webservice Invocations za



    Good day

    Sorry if this is too basic, i'm still learning Fuse ESB and Osgi :-P

    I have a question that honestly i havent been able to answer. I have a client app that invoques a webservice succesfully doing this

    SOAPService ss = new SOAPService();

    Greeter greeter = ss.getSoapPort();

    System.out.println(greeter.sayHi("Calling success!!"));

    *My client spring file has this code:*

    And my server spring file has this code

    Everything works great (thanks to mr. Freeman and Willem by the way ), but I would like to add a property on the client app side using spring, so I uncomment the next line from the spring file on the client :

    And I add this property on my client POJO (I don't even use it, I just declare it)

    private Greeter servidorWsdl;

    public Greeter getServidorWsdl() {

    return servidorWsdl;

    }

    public void setServidorWsdl(Greeter servidorWsdl) {

    this.servidorWsdl = servidorWsdl;

    }

    The moment I update my client bundle with the spring line uncommented on the fuse esb, the fuse esb throws this exception

    Exception in thread "SpringOsgiExtenderThread-20" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clienteWsdl' defined in URL bundleentry://222.fwk7318012/META-INF/spring/beans.xml: Cannot resolve reference to bean 'servidorProxy' while setting bean property 'servidorWsdl'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servidorProxy': FactoryBean threw exception on object creation; nested exception is org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service {mycompany.osgi_wsdl_first}GreeterService

    Am I missing something else???

    DB:3.21:Difference On Webservice Invocations za


    It's good to see you finally find a way out. It's important to make sure the client and server share the same configuration information

  • RELEVANCY SCORE 3.16

    DB:3.16:An Exception Using Spring Framework j8


    Hi all

    I'm deploying an application that contains an EJB module which uses spring framework, and the bean class extends AbstractStatelessSessionBean; when I call a method in the EJB, an exception (shown below) occurs. I'm deploying on Sun Java System Application Server 8.1 using JDK 1.4.2 and spring 1.7

    Can anyone give me a sugestion? I've not found any information about it.

    Thanks a lot

    DB:3.16:An Exception Using Spring Framework j8

    Sorry guys, I forgot including the log showing the exception and stacktrace. It's here:

    org.springframework.beans.factory.access.BootstrapException: Define an environment variable [java:comp/env/ejb/BeanFactoryPath] containing the class path locations of XML bean definition files; nested exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/BeanFactoryPath
    javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/BeanFactoryPath
    at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:668)
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:132)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:288)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
    at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:86)
    at org.springframework.context.access.ContextJndiBeanFactoryLocator.useBeanFactory(ContextJndiBeanFactoryLocator.java:67)
    at org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactory(AbstractEnterpriseBean.java:117)
    at org.springframework.ejb.support.AbstractStatelessSessionBean.ejbCreate(AbstractStatelessSessionBean.java:64)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    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:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)

    Thanks again

  • RELEVANCY SCORE 3.07

    DB:3.07:Cxfbc Consumer Secure 11



    Using Fuse ESB 4.3. Trying to configure my WSS4j Interceptor in a cxfbc consumer bean.xml:

    When I install de bundle:

    19:01:21,220 | INFO | Thread-38 | ultOsgiApplicationContextCreator | ultOsgiApplicationContextCreator 67 | 76 - org.springframework.osgi.extender - 1.2.0 | Discovered configurations in bundle

    19:01:21,236 | INFO | tenderThread-109 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 456 | 65 - org.springframework.context - 3.0.3.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=PielStreetDirectory-Secure-Consumer-1.0.0, config=osgibundle:/META-INF/spring/*.xml): startup date ; root of context hierarchy

    19:01:21,236 | INFO | tenderThread-109 | OsgiBundleXmlApplicationContext | ractOsgiBundleApplicationContext 359 | 65 - org.springframework.context - 3.0.3.RELEASE | Unpublishing application context OSGi service for bundle PielStreetDirectory-Secure-Consumer-1.0.0 (PielStreetDirectory-Secure-Consumer-1.0.0)

    19:01:21,236 | INFO | tenderThread-109 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 315 | 63 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from URL bundleentry://365.fwk927449563/META-INF/spring/beans.xml

    19:01:21,308 | INFO | tenderThread-109 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 315 | 63 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=365|bnd.sym=PielStreetDirectory-Secure-Consumer-1.0.0]

    19:01:21,348 | INFO | tenderThread-109 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 315 | 63 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf-extension-soap.xml|bnd.id=365|bnd.sym=PielStreetDirectory-Secure-Consumer-1.0.0]

    19:01:21,372 | INFO | tenderThread-109 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 315 | 63 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf-extension-http.xml|bnd.id=365|bnd.sym=PielStreetDirectory-Secure-Consumer-1.0.0]

    19:01:21,396 | INFO | tenderThread-109 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 315 | 63 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml|bnd.id=365|bnd.sym=PielStreetDirectory-Secure-Consumer-1.0.0]

    19:01:21,452 | INFO | tenderThread-109 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 252 | 76 - org.springframework.osgi.extender - 1.2.0 | No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=PielStreetDirectory-Secure-Consumer-1.0.0, config=osgibundle:/META-INF/spring/*.xml)

    19:01:21,468 | INFO | tenderThread-110 | DefaultListableBeanFactory | pport.DefaultListableBeanFactory 549 | 63 - org.springframework.beans - 3.0.3.RELEASE | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@203f85c7: defining beans ; root of factory hierarchy

    19:01:21,500 | INFO | tenderThread-110 | OsgiServiceProxyFactoryBean | al.aop.ServiceDynamicInterceptor 470 | 75 - org.springframework.osgi.core - 1.2.0 | Looking for mandatory OSGi service dependency for bean matching filter (objectClass=org.apache.cxf.transport.http_osgi.OsgiDestinationRegistryIntf)

    19:01:21,504 | INFO | tenderThread-110 | OsgiServiceProxyFactoryBean | al.aop.ServiceDynamicInterceptor 476 | 75 - org.springframework.osgi.core - 1.2.0 | Found mandatory OSGi service for bean

    19:01:21,596 | ERROR | tenderThread-110 | tServiceReferenceRecipe$Listener | tServiceReferenceRecipe$Listener 556 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception

    java.lang.reflect.InvocationTargetException

    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_20]

    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_20]

    at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]

    at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:756)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:711)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:206)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:507)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:525)[osgi-3.6.0.v20100517.jar:]

    at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[94:servicemix-common:2010.02.0.fuse-02-00]

    at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:174)[94:servicemix-common:2010.02.0.fuse-02-00]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)[63:org.springframework.beans:3.0.3.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[65:org.springframework.context:3.0.3.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[75:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[75:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[75:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[76:org.springframework.osgi.extender:1.2.0]

    at java.lang.Thread.run(Thread.java:619)[:1.6.0_20]

    Caused by: javax.jbi.management.DeploymentException: java.io.IOException: Protocol mismatch for port 9091: engine's protocol is http, the url protocol is https

    at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:561)

    at org.apache.servicemix.common.osgi.EndpointTracker$OsgiServiceUnit.(ServerImpl.java:60)

    at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:556)

    ... 40 more

    19:01:21,644 | INFO | tenderThread-110 | EndpointExporter | mix.common.osgi.EndpointExporter 125 | 94 - servicemix-common - 2010.02.0.fuse-02-00 | Waiting for all endpoints to be deployed before registering service assembly

    19:01:21,644 | INFO | tenderThread-110 | OsgiBundleXmlApplicationContext | ractOsgiBundleApplicationContext 327 | 65 - org.springframework.context - 3.0.3.RELEASE | Publishing application context as OSGi service with properties {org.springframework.context.service.name=PielStreetDirectory-Secure-Consumer-1.0.0, Bundle-SymbolicName=PielStreetDirectory-Secure-Consumer-1.0.0, Bundle-Version=1.0.0}

    19:01:21,644 | INFO | tenderThread-110 | ContextLoaderListener | BundleApplicationContextListener 45 | 76 - org.springframework.osgi.extender - 1.2.0 | Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=PielStreetDirectory-Secure-Consumer-1.0.0, config=osgibundle:/META-INF/spring/*.xml))

    Any help would be very appreciated.

    Thx.

    Edited by: fsalceda on May 5, 2011 6:58 PM

    DB:3.07:Cxfbc Consumer Secure 11


    Hi,

    Using fragment bundle as described in ESB-1245[1] is general solution for now, put the properties file into etc folder doesn't work.

    http://fusesource.com/issues/browse/ESB-1245

    Freeman

  • RELEVANCY SCORE 3.06

    DB:3.06:How To Resolve The Error While Using User Defined Function. zm


    EPN Assembly file
    --------------------------------------------------------------------------------
    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd"

    wlevs:event-type-repository
    wlevs:event-type type-name="TestEvent"
    wlevs:classcom.bea.wlevs.event.example.FunctionCEP.TestEvent/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    wlevs:adapter id="InputAdapter"
    class="com.bea.wlevs.adapter.example.FunctionCEP.InputAdapter"
    wlevs:listener ref="inputStream" /
    /wlevs:adapter

    wlevs:channel id="inputStream" event-type="TestEvent"
    wlevs:listener ref="processor" /
    /wlevs:channel

    wlevs:processor id="processor"
    wlevs:listener ref="outputStream" /
    wlevs:function function-name="sum_fxn" exec-method="execute"
    beancom.bea.wlevs.example.FunctionCEP.TestFunction/bean
    /wlevs:function
    /wlevs:processor

    wlevs:channel id="outputStream" event-type="TestEvent"
    wlevs:listener ref="bean" /
    /wlevs:channel

    bean id="bean" class="com.bea.wlevs.example.FunctionCEP.OutputBean"
    /bean
    /beans

    Event class
    --------------------------------------------------------------------------------
    package com.bea.wlevs.event.example.FunctionCEP;

    public class TestEvent {

    private int num_1;
    private int num_2;
    private int sum_num;

    public int getSum_num() {
    return sum_num;
    }
    public void setSum_num(int sumNum) {
    sum_num = sumNum;
    }
    public int getNum_1() {
    return num_1;
    }
    public void setNum_1(int num_1) {
    this.num_1 = num_1;
    }
    public int getNum_2() {
    return num_2;
    }
    public void setNum_2(int num_2) {
    this.num_2 = num_2;
    }

    }

    Adapter class
    --------------------------------------------------------------------------------
    package com.bea.wlevs.adapter.example.FunctionCEP;

    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;

    public class InputAdapter implements RunnableBean, StreamSource {

    private StreamSender eventSender;

    public InputAdapter() {
    super();
    }

    public void run() {

    generateMessage();
    }

    private void generateMessage() {

    TestEvent event = new TestEvent();
    event.setNum_1(10);
    event.setNum_2(20);

    eventSender.sendInsertEvent(event);
    }

    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    }

    public synchronized void suspend() {
    }
    }

    Output Bean class
    --------------------------------------------------------------------------------
    package com.bea.wlevs.example.FunctionCEP;

    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    import com.bea.wlevs.util.Service;

    public class OutputBean implements StreamSink {

    public void onInsertEvent(Object event) {

    System.out.println("In Output Bean");
    TestEvent event1 = new TestEvent();
    System.out.println("Num_1 is :: " + event1.getNum_1());
    System.out.println("Num_2 is :: " +event1.getNum_2());
    System.out.println("Sum of the numbers is :: " +event1.getSum_num());

    }
    }

    Function Class
    -----------------------------------------------------------------------------------
    package com.bea.wlevs.example.FunctionCEP;

    public class TestFunction {

    public Object execute(int num_1, int num_2)
    {
    return (num_1 + num_2);
    }
    }

    config.xml file
    --------------------------------------------------------------------------------
    ?xml version="1.0" encoding="UTF-8"?
    wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc"
    processor
    nameprocessor/name
    rules

    view id="v1" schema="num_1 num_2"
    ![CDATA[
    select num_1, num_2 from inputStream
    ]]
    /view

    view id="v2" schema="num_1 num_2"
    ![CDATA[

    select sum_fxn(num_1,num_2), num_2 from inputStream // I am getting error when i am trying to call this function

    ]]
    /view

    query id="q1"
    ![CDATA[
    select from v2[now] as num_2*// Showing error while accessing the view also]]
    /query
    /rules
    /processor
    /wlevs:config

    Error I am getting is :
    ----------------------------------------------------------------------------------------------------------------------------------------------
    Invalid statement: "select sum_fxn(num_1,num_2),age from inputStream"
    Description: Invalid call to function or constructor: sum_fxn
    Cause: Probable causes are: Function name sum_fxn(int,int) provided is invalid, or arguments are of
    the wrong type., or Error while handling member access to complex type. Constructor sum_fxn of type
    sum_fxn not found. or Probable causes are: Function name sum_fxn(int,int) provided is invalid, or
    arguments are of the wrong type., or Error while handling member access to complex type.
    Constructor sum_fxn of type sum_fxn not found.
    Action: Verify function or constructor for complex type exists, is not ambiguous, and has the correct
    number of parameters.

    I have made a user defined function in a java class and configured this function in the EPN assembly file under the processor tag.
    But when i am trying to access the function in the config.xml file , it is giving me an error in the query.
    Please provide urgent help that how to write the exact query.

    DB:3.06:How To Resolve The Error While Using User Defined Function. zm

    Hi,

    In the EPN Assembly file use
    bean class="com.bea.wlevs.example.FunctionCEP.TestFunction"/
    instead of
    beancom.bea.wlevs.example.FunctionCEP.TestFunction/bean

    Best Regards,
    Sandeep

  • RELEVANCY SCORE 3.04

    DB:3.04:Fuse Servicemix 4.4 -Jta px



    Hi ,

    Curretly I am using jpa,spring and hibernate in my webservice project now I want to add distributed transaction support to it . Kindly let me know how I can do this.

    Deploying the application as OSGi bundle in servicemix.

    DB:3.04:Fuse Servicemix 4.4 -Jta px


    The OsgiTransactionManagerLookup is throwing :

    Caused by: java.lang.ClassCastException: org.apache.felix.framework.ModuleImpl$ModuleClassLoaderJava5 cannot be cast to org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader

    at com.luthresearch.surveysavvy.interim.business.service.util.OsgiTransactionManagerLookup.getTransactionManager(OsgiTransactionManagerLookup.java:19)

    at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:367)

    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)

    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)

    at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)

    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)

    ... 29 more

  • RELEVANCY SCORE 3.03

    DB:3.03:Arquillian Osgi How To Start Bundle Automatically f8



    Hello,

    I use the arquillian-container-osgi-embedded-1.0.3.Final for testing with Junit. It works fine even within the eclipse workspace.

    But the bundle object I get injected is in state resolved, so I need to start it manually in a @Before method which also works.

    But BundleContext and Osgi service injection always fails du to the not started bundle while injection time.

    Is there a way to let the Arquillian embedded osgi container start the bundle automatically before running any test method. And is it anyhow possible to let

    inject Osgi services as Pax Exam does like so:

    @ArquillianResource

    private Bundle bundle;

    @ArquillianResource

    private MyOsgiService service;

    Thanks,

    David

    DB:3.03:Arquillian Osgi How To Start Bundle Automatically f8


    Hello,

    I use the arquillian-container-osgi-embedded-1.0.3.Final for testing with Junit. It works fine even within the eclipse workspace.

    But the bundle object I get injected is in state resolved, so I need to start it manually in a @Before method which also works.

    But BundleContext and Osgi service injection always fails du to the not started bundle while injection time.

    Is there a way to let the Arquillian embedded osgi container start the bundle automatically before running any test method. And is it anyhow possible to let

    inject Osgi services as Pax Exam does like so:

    @ArquillianResource

    private Bundle bundle;

    @ArquillianResource

    private MyOsgiService service;

    Thanks,

    David

  • RELEVANCY SCORE 3.00

    DB:3.00:Problems Deploying Osgi Bundle From The Cxf-Webinal cd



    Hi,

    I'm trying to deploy the osgi bundle to fuse esb 4.3.1 as shown in the webinar demo:How to Deploy a Web Service into ServiceMix using CXF

    but getting NoClassDefFoundError: org/eclipse/jetty/server/Connector when starting the bundle.

    I've already install the cxf feature, do I need to install additional features/bundles?

    Here is the log entry:

    11:43:01,352 | ERROR | ExtenderThread-8 | ContextLoaderListener | 73 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.fusesource.customer-ws-osgi-bundle, config=osgibundle:/META-INF/spring/*.xml))

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerService': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[62:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[73:org.springframework.osgi.extender:1.2.0]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

    Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

    at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:234)

    at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:113)

    at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:148)

    at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTPTransportFactory.java:106)

    at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTransportFactory.java:86)

    at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:132)

    at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92)

    at org.apache.cxf.endpoint.ServerImpl.(ServerImpl.java:71)

    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:149)

    at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)

    at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:415)

    at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:315)

    at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)

    at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:489)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]

    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[60:org.springframework.beans:3.0.5.RELEASE]

    ... 14 more

    Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.6.0.v20100517.jar:]

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_26]

    ... 35 more

    DB:3.00:Problems Deploying Osgi Bundle From The Cxf-Webinal cd


    Hi,

    I'm trying to deploy the osgi bundle to fuse esb 4.3.1 as shown in the webinar demo:How to Deploy a Web Service into ServiceMix using CXF

    but getting NoClassDefFoundError: org/eclipse/jetty/server/Connector when starting the bundle.

    I've already install the cxf feature, do I need to install additional features/bundles?

    Here is the log entry:

    11:43:01,352 | ERROR | ExtenderThread-8 | ContextLoaderListener | 73 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.fusesource.customer-ws-osgi-bundle, config=osgibundle:/META-INF/spring/*.xml))

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerService': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[62:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[72:org.springframework.osgi.core:1.2.0]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[73:org.springframework.osgi.extender:1.2.0]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

    Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

    at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:234)

    at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:113)

    at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:148)

    at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTPTransportFactory.java:106)

    at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTransportFactory.java:86)

    at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:132)

    at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92)

    at org.apache.cxf.endpoint.ServerImpl.(ServerImpl.java:71)

    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:149)

    at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)

    at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:415)

    at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:315)

    at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)

    at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:489)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]

    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)[60:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[60:org.springframework.beans:3.0.5.RELEASE]

    ... 14 more

    Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)[osgi-3.6.0.v20100517.jar:]

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.6.0.v20100517.jar:]

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_26]

    ... 35 more

  • RELEVANCY SCORE 2.91

    DB:2.91:Is Webcenter Site 11g Osgi Ready? 39


    Hi there,

    We are running WCS 11g on top of WebLogic 11g R2 and we would like to have different versions of the same library running together, one for WCS itself and other to some Java code we are developing (which will be part of the new website).

    Is that possible?

    The real question is: How can we have a current version of a library (for isntance, Spring MVC) running side by side with a (much) older version of that library which is required by OWCS? Some people said we could wrap the application (running on top of a current version of Spring) into an EJB, but that sounds a lot of overhead.

    Cheers

    DB:2.91:Is Webcenter Site 11g Osgi Ready? 39

    I guess this is more a Weblogic Server question - see this forum WebLogic Server - Upgrade / Install / Environment / Migration

  • RELEVANCY SCORE 2.87

    DB:2.87:Can Not Debug Osgi Bundles Deployed In Jboss Eap 6.1 With Jbosstools 4.0.1/ Jboss Developer Studio 67 f1



    Hello All,

    while migrating from JBoss 7.1.1 to JBoss EAP 6.1 Alpha1, i've evaluated JBoss Tools 4.0.1, JBoss Developer Studio 6 7 Alpha1 with following issue.

    Our application consist of some osgi bundles and an osgi WAR which i can successfully publish and start with all named tools above. The only trick is, i've always to clean the data and tmp subdirectory in JBoss before start.

    After that i tried to start the JBoss in debug mode with the named tools and deploying/starting the bundles fails with the following exception:

    [0m [31m14:33:49,853 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."de.xxx.yyy.data.services.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."de.xxx.yyy.data.services.jar".PARSE: JBAS018733: Failed to process phase PARSE of deployment "de.xxx.yyy.data.services.jar"

    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]

    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]

    Caused by: java.lang.NullPointerException

    at org.jboss.as.osgi.service.FrameworkActivator.activate(FrameworkActivator.java:76)

    at org.jboss.as.osgi.deployment.FrameworkActivateProcessor.deploy(FrameworkActivateProcessor.java:72)

    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

    ... 5 more

    The same exception occurs for the other bundles.

    With all tools i've tried the jboss eap runtime 6.1 (tech preview) adapter, and also jboss eap runtime 6.0 adapter with the known work around to symlink the jboss-modules. I've got always the same exception.

    Can anybody give me a hint how to debug our application with jboss tools !? Or is it more a jboss eap 6.1 / jboss osgi issue !? But starting the jboss eap with standalone.sh and jboss tools "start" works fine with the deployed bundles.

    Please let me know if you need further information.

    Kind regards, Thomas

    DB:2.87:Can Not Debug Osgi Bundles Deployed In Jboss Eap 6.1 With Jbosstools 4.0.1/ Jboss Developer Studio 67 f1


    For all which are interested in a workaround for this issue.

    In my case starting the jboss in debug mode works if i start the jboss with empty deployments and hot delpoy my artifacts one after the other.

    After this experience, i decided to write a little wrapper class, which wraps the start of jboss with

    org.jboss.modules.Main

    Before the start i clean subdirectories data and tmp of jboss, and move all artifacts from deployments to a temporay directory. After the start and waiting a few seconds, i move the artifacts from the temporary folder back to the deployments directory in the required order.

    The wrapper class must be copied in the jboss-modules.jar, because changing the classpath of the launch configuration didn't work too. In the launch configuration in the main tab now change the class to your wrapper class.

    Hope, this helps to analyze the issue.

    Kind regards

  • RELEVANCY SCORE 2.84

    DB:2.84:Problem Using Webrowsetimpl Within Osgi Bundle. 3s


    Hallo to everyone,

    I used to use standard WebRowSetImpl in my Java programs to pass data between application layers without problem. Now, I'm facing an issue using WebRowSetImpl in an OSGI module: I get a ClassNotFound Exception while trying to instantiate it. That sounds really strange because if I just run my bundle using java interpreter (as if it were a normal executable jar), I get no errors.

    May you help me, please ?

    Thanks you in advance.

    DB:2.84:Problem Using Webrowsetimpl Within Osgi Bundle. 3s

    Hallo to everyone,

    I used to use standard WebRowSetImpl in my Java programs to pass data between application layers without problem. Now, I'm facing an issue using WebRowSetImpl in an OSGI module: I get a ClassNotFound Exception while trying to instantiate it. That sounds really strange because if I just run my bundle using java interpreter (as if it were a normal executable jar), I get no errors.

    May you help me, please ?

    Thanks you in advance.

  • RELEVANCY SCORE 2.84

    DB:2.84:Missing Constraint: Import-Package: Org.Springframework.Beans... 8k



    Hi,

    I have created a project using the "servicemix-osgi-cxf-code-first-archetype" archetype. The install runs successfully and I can see the following in the console:

    * A CXF Code First OSGi Project (1.0.0)*

    However, while attempting to start the bundle it fails with the following error (in red):

    *The bundle "cxf-code-first-bundle_1.0.0 " could not be resolved. Reason: Missing Constraint: Import-Package: org.springframework.beans.factory.config; version="[2.5.0,3.0.0)"*

    Here is an excerpt from my pom.xml, I see no references to this version of spring anywhere. I'm running Fuse ESB (4.3.0). Any ideas on how to resolve this issue? I'm pretty much just deploying a skeleton project into a clean installation of Fuse ESB.

    DB:2.84:Missing Constraint: Import-Package: Org.Springframework.Beans... 8k


    See ffang's response. You may be using an older archetype as well that either omits or specifies a version of spring that is too old. As he points out, there are are still some issues with the archetype he's recommending, so you will need to update the dependency versions as he describes.

    Interestingly, I just discovered the issue by running my bundle in the newly release version 4.3.0 on apache.org. The servicemix console displayed the same error in slightly different way, that made it clear to me that the spring version was too old.

    Edited by: jadexter on Mar 11, 2011 7:54 PM

  • RELEVANCY SCORE 2.83

    DB:2.83:Oc4j 10.1.3.1 Exception Creating Entitymanagerfactory Using Persistenceprov pf


    I am getting the attached exception while deploying simple Spring MVC , JPA application in OC4J 10.1.3.1 This is a simple Phonebook application from the Spring Source having Spring MVC and JPA Implementation.br On deploying the application i do get the EntityManager creat Persistence Error . Error details are br
    Exception creating EntityManagerFactory using PersistenceProvider class org.eclipse.persistence.jpa.PersistenceProvider for persistence unit br

    As per the existing forum solutions , I have tried making the following changes and try deploying but still face the error

    ul
    li
    Removed the oracle-toplink library (could not find toplink-persistence.jar) from the deployment plan and deployed , Error exists
    /li
    li
    Added the top link libraries in shared Libraries and try redploying again, Error Exists
    /li
    li
    Was suggested to set the disable-default-persistent-unit = true in orion-ejb-jar.xml , I could see multiple orion-ejb-jars.xml , i believe these files are autogenerated by the application upon startup and couldn't edit the property. Is there anyway i can try changing the property from the Application Server Console page configurations
    /li
    ul

    Please advise. My environment details

    1. Oracle 10.1.3.1 OC4J
    2. Spring MVC 3.0.3
    3. JPA 2.0
    4. JDK 1.6.0.25
    5. MySQL 5.1

    Edited by: 862265 on 29 May, 2011 11:05 PM

    DB:2.83:Oc4j 10.1.3.1 Exception Creating Entitymanagerfactory Using Persistenceprov pf

    I got the answer on my own. We cannot have persistence.xml file in our project if we are using the default persistence conf with Oc4J. We need to either disable-Persistence property = true in orion-ejb-jar.xml to accept the customized persistence. Else OC4J uses it own.

    Please let me know if anyone have updated the above property file. I deleted my project persistence.xml and deployed

  • RELEVANCY SCORE 2.83

    DB:2.83:Session Customizer As A Spring Bean? zm


    I'm running into a cyclic dependency between Toplink and Spring in a web application.

    On startup, the application uses classes managed by Spring to bootstrap the application by making database calls using TopLink. For example, I load some static data from the database once on startup and store it in application context for the remainder of the application.

    I also have to do some work in the session customizer where I have to access spring beans

    public class ToplinkSessionCustomizer implements SessionCustomizer {
    public void customize(Session session) throws Exception {
    // get something from the spring context and do stuff to it
    }
    }

    The problem is that since the ToplinkSessionCustomizer class is not managed by Spring, it is not guaranteed to be created and used properly by Spring and thats why I get a NullPointerException. The other (larger) problem is that Toplink depends on Spring (because of the session customizer) and Spring depends on Toplink (because of the bootstrapping). How do I go about resolving this issue?

    Is there a way that instead of the toplink.session.customizer property, I could specify a reference to an object instead? Toplink uses reflection to instantiate this class but I want it to be managed by Spring.

    Is this possible? If not, are there any workarounds?

    Thanks.

    Message was edited by:
    user556103

    DB:2.83:Session Customizer As A Spring Bean? zm

    I'm running into a cyclic dependency between Toplink and Spring in a web application.

    On startup, the application uses classes managed by Spring to bootstrap the application by making database calls using TopLink. For example, I load some static data from the database once on startup and store it in application context for the remainder of the application.

    I also have to do some work in the session customizer where I have to access spring beans

    public class ToplinkSessionCustomizer implements SessionCustomizer {
    public void customize(Session session) throws Exception {
    // get something from the spring context and do stuff to it
    }
    }

    The problem is that since the ToplinkSessionCustomizer class is not managed by Spring, it is not guaranteed to be created and used properly by Spring and thats why I get a NullPointerException. The other (larger) problem is that Toplink depends on Spring (because of the session customizer) and Spring depends on Toplink (because of the bootstrapping). How do I go about resolving this issue?

    Is there a way that instead of the toplink.session.customizer property, I could specify a reference to an object instead? Toplink uses reflection to instantiate this class but I want it to be managed by Spring.

    Is this possible? If not, are there any workarounds?

    Thanks.

    Message was edited by:
    user556103

  • RELEVANCY SCORE 2.83

    DB:2.83:Spring Web Service In Weblogic 10.0 a3


    Hi,

    I have developed a spring webservice and it is running in tomcat 6.X but now I am trying to deploy that war file in weblogic 10.0 running on jdk5 and I end up with the error

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'payloadMapping' defined in ServletContext resource [WEB-INF/spring-ws-servlet.xml]: Cannot resolve reference to bean 'validatingInterceptor' while setting bean property 'interceptors' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validatingInterceptor' defined in ServletContext resource [WEB-INF/spring-ws-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'xsdSchema' threw exception; nested exception is org.springframework.xml.validation.XmlValidationException: Could not create Schema: SAX2 driver class weblogic.apache.xerces.parsers.SAXParser does not implement XMLReader; nested exception is java.lang.ClassCastException: weblogic.apache.xerces.parsers.SAXParser incompatible with org.xml.sax.XMLReader

    So since some jars in weblogic is not supporting my application.
    I added wls:prefer-web-inf-classestrue/wls:prefer-web-inf-classes in weblogic.xml and I have all the jars in web-inf/lib folder.

    Still It was not working, and according to a suggestion in Spring forum I added this argument in domain environment
    JAVA_OPTIONS="-Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"
    But still I get the same error.

    please help me to over come this issue.

    thanks

    DB:2.83:Spring Web Service In Weblogic 10.0 a3

    Hi,

    I just don't understand, when the framework claims that it requires JDK5 and if the server claims JDK5 compliant, then why it is not working.

    Any how now I need to look for an alternate framework or use tomcat.

    Thanks for your help

    bye

  • RELEVANCY SCORE 2.80

    DB:2.80:Problem Running Sample Payment-Service-Se m1



    I did not see any cxf.xml file in the sample for payment-service-se

    Here is the error I see in Karaf console

    karaf@rootgt; Exception in thread "SpringOsgiExtenderThread-59" java.lang.IllegalS

    tateException: BeanFactory not initialized or already closed - call 'refresh' be

    fore accessing beans via the ApplicationContext

    at org.springframework.context.support.AbstractRefreshableApplicationCon

    text.getBeanFactory(AbstractRefreshableApplicationContext.java:153)

    at org.springframework.osgi.extender.internal.dependencies.startup.Depen

    dencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextEx

    ecutor.java:345)

    at org.springframework.osgi.extender.internal.dependencies.startup.Depen

    dencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExe

    cutor.java:401)

    at org.springframework.osgi.extender.internal.dependencies.startup.Depen

    dencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex

    tExecutor.java:287)

    at org.springframework.osgi.extender.internal.dependencies.startup.Depen

    dencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext

    Executor.java:175)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp

    plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)

    at org.springframework.osgi.extender.internal.activator.ContextLoaderLis

    tener$2.run(ContextLoaderListener.java:718)

    at java.lang.Thread.run(Thread.java:619)

    Here is what I see in Karaf.log file:

    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location classpath:META-INF/cxf/cxf.xml

    Offending resource: URL bundleentry://191.fwk13671123/META-INF/spring/beans.xml; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:META-INF/cxf/cxf.xml|http://bnd.id=191/|bnd.sym=null]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|http://bnd.id=191/|bnd.sym=null] cannot be resolved to URL because it does not exist

    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)

    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:182)

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

    at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)

    at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)

    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)

    at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)

    at java.lang.Thread.run(Thread.java:619)

    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:META-INF/cxf/cxf.xml|http://bnd.id=191/|bnd.sym=null]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|http://bnd.id=191/|bnd.sym=null] cannot be resolved to URL because it does not exist

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174)

    ... 23 more

    Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|http://bnd.id=191/|bnd.sym=null] cannot be resolved to URL because it does not exist

    at org.springframework.osgi.io.OsgiBundleResource.getURL(OsgiBundleResource.java:228)

    at org.springframework.osgi.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:180)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)

    ... 27 more

    DB:2.80:Problem Running Sample Payment-Service-Se m1


    Did you manage to fix the problem I have had the same issue for the last few hours running ServiceMix 4.3

    I have also noticed that my OSGi headers also do not contain any imports

    karaf@root

    karaf@root osgi:headers 192

    Bundle 192

    -

    Manifest-Version = 1.0

    Archiver-Version = Plexus Archiver

    Created-By = Apache Maven

    Built-By = steinerc

    Build-Jdk = 1.6.0_20

    The Exception I am getting is

    Exception

    -

    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=192|bnd.sym=null]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=192|bnd.sym=null] cannot be resolved to URL because it does not exist

    pom.xml (pluggin)

    META-INF.cxf,

    javax.jws,

    javax.wsdl,

    org.apache.cxf.bus,

    org.apache.cxf.bus.resource,

    org.apache.cxf.bus.spring,

    org.apache.cxf.configuration.spring,

    org.apache.cxf.resource,

    org.springframework.beans.factory.config,

    My bundle-context.xml

    -

    Any help by anyone would be greatly appreciated!!

    Running ESB 4.3 have install the latest maven-bundle-plugin just not sure else I can do?

    Regards

  • RELEVANCY SCORE 2.79

    DB:2.79:Services Which Failed To Start: Service Jboss.Naming.Context.Java.Jboss.Datasources/Datasource s9



    guys,

    Can anyone help to solve this problem.

    I have an application(spring+jbpm+hibernate) to deploy on JBoss AS 7.0 final. but there is an error while deploying.

    20:47:17,838 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "jbpm-spring-quickstart.war" was rolled back with failure message
    {"Failed services" = {"jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit.\"jbpm-spring-quickstart.war\".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0" =
    "org.jboss.msc.service.StartException in service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit.\"jbpm-spring-quickstart.war\".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0:
    Failed to start service"}}
    20:47:17,839 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report
    Services which failed to start:
    service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit."jbpm-spring-quickstart.war".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0: org.jboss.msc.service.
    StartException in service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit."jbpm-spring-quickstart.war".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0: Failed to start service

    DB:2.79:Services Which Failed To Start: Service Jboss.Naming.Context.Java.Jboss.Datasources/Datasource s9


    guys,

    Can anyone help to solve this problem.

    I have an application(spring+jbpm+hibernate) to deploy on JBoss AS 7.0 final. but there is an error while deploying.

    20:47:17,838 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "jbpm-spring-quickstart.war" was rolled back with failure message
    {"Failed services" = {"jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit.\"jbpm-spring-quickstart.war\".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0" =
    "org.jboss.msc.service.StartException in service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit.\"jbpm-spring-quickstart.war\".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0:
    Failed to start service"}}
    20:47:17,839 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report
    Services which failed to start:
    service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit."jbpm-spring-quickstart.war".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0: org.jboss.msc.service.
    StartException in service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit."jbpm-spring-quickstart.war".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0: Failed to start service

  • RELEVANCY SCORE 2.78

    DB:2.78:Deploying A War Bundle To Osgi Embedded Container mp



    Does arquillian embedded container for OSGi support deploying web bundles packaged as war? while deploying a OSGi web bundle to arquillian embedded container (that is deployed successfully to other osgi containers) following error occurs:

    org.osgi.framework.BundleException: Cannot create deployment from: "/D:/sample/arquillian-osgi-embedded1/helloworld.war"

    at org.jboss.osgi.framework.plugin.internal.BundleDeploymentPluginImpl.createDeployment(BundleDeploymentPluginImpl.java:333)

    at org.jboss.osgi.framework.plugin.internal.BundleDeploymentPluginImpl.createDeployment(BundleDeploymentPluginImpl.java:78)

    at org.jboss.osgi.framework.bundle.AbstractBundleContext.installBundleInternal(AbstractBundleContext.java:228)

    at org.jboss.osgi.framework.bundle.AbstractBundleContext.installBundle(AbstractBundleContext.java:143)

    at org.jboss.osgi.framework.bundle.BundleContextWrapper.installBundle(BundleContextWrapper.java:79)

    at org.jboss.arquillian.container.osgi.embedded.OSGiEmbeddedFrameworkTestCase.testBundleContextInjection(OSGiEmbeddedFrameworkTestCase.java:78)

    DB:2.78:Deploying A War Bundle To Osgi Embedded Container mp


    Is war deployment supported with OSGi embedded container?

    It would be helpful if someone has pointers to deploying a war to local/remote osgi+app server container through arquillian.

    One more question, is only JBOSS AS is supported for remote OSGi container or could the deployments work for another container such as Virgo?

  • RELEVANCY SCORE 2.78

    DB:2.78:Module Dependecy Clashing 8p



    Hi,

    We are trying to deploy an OSGi aplication in JBoss AS 7 which is working perfectly in an Equinox installation. We would like to leverage the capabilities of jboss-modules and jboss-osgi integration but it is indeed this kind of interaction what makes our aplication undeployable in JBoss AS 7.

    Our application uses JPA with hibernate for database persistence and has both, hibernate ( and hibernate-annotations ) and javax.persistence present as OSGi bundles. Our application expects javax.persistence API classes to be loaded by the OSGi container classloader to work properly, but what we think is happenning in JBoss AS 7 is that javax.persistence is being loaded by a jboss-module's ModuleClassLoader that it's outside of the OSGi container classloader. We could confirm this point debugging the javax.persistence interactions and found that its thread's classloader is the same classloader as the Jboss Modular Service Container ( org.jboss.msc ) ... Does this makes sense?

    Is there any way of avoiding sharing at least certain jboss-modules' modules with jboss-osgi running applications? How can one priorize OSGi bundles over jboss-modules in a given installation?

    Greets,

    DB:2.78:Module Dependecy Clashing 8p


    Hi,

    In the last example that I have send you, if you set the contextClassLoader to the bundles' classLoader in the bundle: telvent-tp-jboss-persistence, the example works properly but the provider has to be in the same bundle (telvent-tp-jboss-persistence) because if you use a fragment, for instace, Jboss doesn't find the provider.

  • RELEVANCY SCORE 2.78

    DB:2.78:Java.Sql.Sqlexception: Connection Handle Is Not Currently As d9



    Hi,I am getting the following error when i access my application using Transaction using Spring Jdbcorg.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Connection handle is not currently associated with a ManagedConnectionjava.sql.SQLException: Connection handle is not currently associated with a ManagedConnectionWe are trying to migrate an application from weblogic to jboss and it works fine on weblogic but getting the above error in jbossMy Spring applicationcontext-jdbc.xml entryPlease helpThanks

    DB:2.78:Java.Sql.Sqlexception: Connection Handle Is Not Currently As d9


    and my-ds.xml is

    datasources
    local-tx-datasource
    jndi-namejdbc/myDS/jndi-name
    connection-urljdbc:oracle:thin:@abcd:1565:abcd/connection-url
    driver-classoracle.jdbc.driver.OracleDriver/driver-class
    user-nameuser/user-name
    passwordpassword/password
    exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name

    /local-tx-datasource
    /datasources

  • RELEVANCY SCORE 2.78

    DB:2.78:Technology Exchange Developer Day - Java Application Development/Debugging With Eclipse, The Spring Framework And Vmware Workstation px



    Hello,

    We are happy to announce about our demo at Technology Exchange Developer Day 2009, Java Application Development/Debugging with Eclipse, the Spring framework and VMware Workstation

    Presenter: Justin Murray

    Demo ID: DS-18

    Time: 9:45 - 10:45 AM

    Abstract:

    This demo shows an Eclipse plug-in with the Spring Tools Suite (STS) that allows remote launching

    and debugging of server-side Java applications in a virtual machine running within VMware Workstation.

    The demo will also show the use of an OSGi server (using new bundling methods) launched in the virtual machine's guest operating system.

    DB:2.78:Technology Exchange Developer Day - Java Application Development/Debugging With Eclipse, The Spring Framework And Vmware Workstation px


    Hello,

    We are happy to announce about our demo at Technology Exchange Developer Day 2009, Java Application Development/Debugging with Eclipse, the Spring framework and VMware Workstation

    Presenter: Justin Murray

    Demo ID: DS-18

    Time: 9:45 - 10:45 AM

    Abstract:

    This demo shows an Eclipse plug-in with the Spring Tools Suite (STS) that allows remote launching

    and debugging of server-side Java applications in a virtual machine running within VMware Workstation.

    The demo will also show the use of an OSGi server (using new bundling methods) launched in the virtual machine's guest operating system.

  • RELEVANCY SCORE 2.76

    DB:2.76:Seam And Spring dd


    I have just started working with an application that is Spring based. I don't much about Spring but will be ramping up. I have noticed several posts regarding Spring integration with an EE Application Server and was curious why I would want to do this. I asked this since there appears to be much overlap possibly from JEE taking many of the useful concepts of Spring in its creation.
    Looking on these forums I see people integrating Spring with Seam. So as I had asked previously, why would I integrate Spring with an EE Application Server? I will now ask why would I want to integrate Spring with Seam especially if I am using Seam within a EE environment?
    The last project I was working on was based on Seam running within GlassFish. I'm curious what additional benefits adding Spring into the mix would give me that the Seam/EE App. Server combo would not?

    DB:2.76:Seam And Spring dd

    Thanks, I am ramping up on Spring but naturally I was curious about any form of coexistence that may exist between it and some of the other technologies I have experience with. It's interesting that three work together fine but I would really like to avoid throwing another framework into the mix and introducing a framework hell sort of speak. We here are not making use of Spring 2.5 yet so are stuck in the XML configuration mess I hated with J2EE and so loved when I didn't have to have in JEE.

  • RELEVANCY SCORE 2.75

    DB:2.75:Encounter An Issue Vmware-Vcd-Cell Is Dead, But Pidfile Exsits, When Try To Visit Vcloud Web Portal jx



    Hi there,

    I've met some problem when running the vCloud director 1.5. When I was trying to visit the https://10.4.55.223, and then the vmware-vcd-cell was dead, but pidfile exsits.

    Here I found the log in cell.log. Please anyone gives me some help. Thanks.

    Application startup begins: 7/6/12 5:05 PMSuccessfully bound network port: 80 on host address: 10.4.55.223Successfully bound network port: 443 on host address: 10.4.55.223Application Initialization: 9% complete. Subsystem 'com.vmware.vcloud.common.core' startedSuccessfully connected to database: jdbc:jtds:sqlserver://10.4.55.249:1433/vcloud;socketTimeout=90Current locale "en" verified successfully.Successfully bound network port: 443 on host address: 10.4.55.250Successfully bound network port: 61616 on host address: 10.4.55.223Successfully bound network port: 61613 on host address: 10.4.55.223Application Initialization: 18% complete. Subsystem 'com.vmware.vcloud.vlsi-core' startedUncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-8,5,spring-osgi-extender[2dabcea]-threads]. Message: Error creating bean with name 'hibernateCacheRegions': Cannot create inner bean 'abstractReplicatedCache$child#282f0e07' of type [com.vmware.vcloud.common.ehcache.ReplicatedEhCacheFactoryBean] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'abstractReplicatedCache$child#282f0e07' defined in URL [bundleentry://169.fwk1118421150/META-INF/spring/common-persist-context-cache.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL [bundleentry://169.fwk1118421150/META-INF/spring/common-persist-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.Application shutdown event: BeginningApplication shutdown event: Application stop requested. Shutting down.

    DB:2.75:Encounter An Issue Vmware-Vcd-Cell Is Dead, But Pidfile Exsits, When Try To Visit Vcloud Web Portal jx


    Make sure you have you vCD proxy nic connected and communication. If not vCD service will keep dying.

  • RELEVANCY SCORE 2.75

    DB:2.75:Is It Possible To Run Spring Mvc Application War File In Fuse Esb Osgi Container sm



    Hi Sir,

    I just want to know weather is it possible to run spring MVC WAR file in fuse esb osgi container..

    Because i try to run the spring MVC application war file in osgi container i got 404 error.

    Please give any idea regarding this issue..

    Thanks

    Srini

    DB:2.75:Is It Possible To Run Spring Mvc Application War File In Fuse Esb Osgi Container sm


    JBoss Fuse and the older Fuse ESB uses Pax-Web for WAR applications. And AFAIR there could be a bug / issue in pax-web with Spring MVC WAR applications.

    So its really what pax-web supports / bugs it has etc.

  • RELEVANCY SCORE 2.75

    DB:2.75:Filenotfound With Jboss Osgi 1f



    Hi,I have deployed OSGI plugins developed based on equinox into jboss5.1.0GA/all/server/deploy directory. I integrated jboss-osgi-1.0.0.Beta3 into JBoss 5.1.0GA.Also updated jboss-osgi-jboss-beans.xml to autoStart these plugins. One of my plugins has Spring api inside it that loads some configuration files inside this plugin. For plugin to start it needs to read those config files. This plugin works on standalone client application. But when I deploy it in JBoss I get the following exception:Caused by: java.lang.IllegalStateException: Clustering could not be initialized. ClassPathXmlApplicationContext=[clustering.xml], CLUSTERING_PROCESSOR_FACTORY_BEAN=[clustering.cluster-processor-factory] at com.entity.EntityClusterProcessorLocator.validate(EntityClusterProcessorLocator.java:98) at com.entity.EntityClusterProcessorLocator.getDefaultClusterProcessorId(EntityClusterProcessorLocator.java:92) at com.osgi.PluginActivator.start(PluginActivator.java:43) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) ... 64 moreCaused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [clustering.xml]; nested exception is java.io.FileNotFoundException: class path resource [clustering.xml] cannot be opened because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83) at com.entity.EntityClusterProcessorLocator.(EntityClusterProcessorLocator.java:49) ... 68 moreCaused by: java.io.FileNotFoundException: class path resource [clustering.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)Is this a classloader issue? Where can I find good documentation on JBoss OSGI classloaders. Appreciate your time....thank you

    DB:2.75:Filenotfound With Jboss Osgi 1f


    Could be caused by this: http://jira.springframework.org/browse/SPR-5120

  • RELEVANCY SCORE 2.75

    DB:2.75:Jboss Osgi And Spring Dynamic Modules 38



    Hi,

    I've been checking out jboss osgi and spring dynamic modules docs as well,however couldn't find some concrete example of how to achieve that one osgi bundlebecome "spring aware".

    To be more specific... I am talking about scenario where one bundle (let's call it app bundle) contains spring context config (app context if you want)and maybe some annotated beans and then (assuming spring DMs are available within osgi container) to do requiredcontext start within given bundle...

    I assume that main bundle should import spring dm packages or something... but still need some help/info on what additional steps are required to achieve this...

    Thanks in advance and regards,

    DB:2.75:Jboss Osgi And Spring Dynamic Modules 38


    I suggest you read this JBoss OSGi provided examples:

    https://docs.jboss.org/author/display/JBOSGI/Provided+Examples#ProvidedExamples-BuildandRuntheExamples.jboss.org/author/display/JBOSGI/Provided+Examples%23ProvidedExamples-BuildandRuntheExamples

    It doesn't explicity address the Spring + OSGI issue, but it does have a section about the Blueprint Container and how to activate it. See: https://docs.jboss.org/author/display/JBOSGI/Provided+Examples#ProvidedExamples-BlueprintContainer and http://static.springsource.org/osgi/docs/2.0.0.M1/reference/html/blueprint.html

    In my tests, I could only make the JBoss AS7 "spring aware" by deploying the Spring DM jars, just like I explained. When I activated the Blueprint support in AS7, the spring contexts were ignored.

  • RELEVANCY SCORE 2.73

    DB:2.73:Event Type Named '$Variable' Has Already Been Declared xs


    Hi folks,

    I have interesting problem again. I have one CEP application that reads line from different types of files and then insert them to JMS queue. So far there is no problem.

    There will be lots of CEP applications that consumes text messages in JMS queue then convert this text message to an Object type. But as I said, there will be lots of consumers. These consumers are similar to each other. A little pieces of code will be different. For example, an event type I defined it as GSMEvent type in consumer CEP application. It's class is org.company.jmsexample.GSMEvent. I can deploy this CEP jar file in CEP Visualizer.

    However, if I want to deploy one more consumer I was getting error.

    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Looking for mandatory OSGi service dependency for bean [] matching filter (objectClass=org.osgi.service.startlevel.StartLevel)
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Found mandatory OSGi service for bean []
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.bundle.BundleFactoryBean BEA-000000 Loading bundle from [file:/D:/CEP_HOME/user_projects/domains/ocep_domain/defaultserver/applications/JMSGSMConsumer2/JMSGSMConsumer2.jar]
    Aug 5, 2010 1:42:45 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[290] JMSGSMConsumer2, Message (BundleEvent INSTALLED), Exception (null), Time (1281004965809)
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator BEA-000000 Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [JMSGSMConsumer2 (JMSGSMConsumer2)]
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@2a20952: display name [OsgiBundleXmlApplicationContext(bundle=JMSGSMConsumer2, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Aug 05 13:42:45 EEST 2010]; root of context hierarchy
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Unpublishing application context OSGi service for bundle JMSGSMConsumer2 (JMSGSMConsumer2)
    Aug 5, 2010 1:42:45 PM EEST Notice Deployment BEA-2045000 The application bundle "JMSGSMConsumer2" was deployed successfully to file:/D:/CEP_HOME/user_projects/domains/ocep_domain/defaultserver/applications/JMSGSMConsumer2/JMSGSMConsumer2.jar with version 1281004965668
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.beans.factory.xml.XmlBeanDefinitionReader BEA-000000 Loading XML bean definitions from URL [bundleentry://290.fwk36719251/META-INF/spring/JMSFuatDeneme.context.xml]
    Aug 5, 2010 1:42:45 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[290] JMSGSMConsumer2, Message (BundleEvent RESOLVED), Exception (null), Time (1281004965824)
    Aug 5, 2010 1:42:45 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[290] JMSGSMConsumer2, Message (BundleEvent STARTED), Exception (null), Time (1281004965825)
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@2a20952]: org.springframework.beans.factory.support.DefaultListableBeanFactory@28f72e4
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor BEA-000000 No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=JMSGSMConsumer2, config=osgibundle:/META-INF/spring/*.xml)
    Aug 5, 2010 1:42:45 PM EEST Info org.springframework.beans.factory.support.DefaultListableBeanFactory BEA-000000 Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@28f72e4: defining beans [CacheBeanFactoryPostProcessor,ServiceDependencyBeanFactoryPostProcessor,ContextLifecycleControlBean,com.bea.wlevs.spring.BeanPostProcessorServiceProcessor,com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0,com.bea.wlevs.ede.api.Factory#jms-inbound_provider#0,jmsInAdapter,com.bea.wlevs.ede.api.Factory#oracle.channel_provider#0,channel1,bean,myConverter,com.bea.wlevs.spring.support.ServiceInjectionBeanPostProcessor,org.springframework.osgi.extensions.annotation.ServiceReferenceInjectionBeanPostProcessor,com.bea.wlevs.spring.ApplicationIdentityAwareProcessor,com.bea.wlevs.spring.MBeanRegistrationBeanPostProcessor,com.bea.wlevs.spring.WorkManagerPostProcessor,com.bea.wlevs.spring.CacheBeanPostProcessor,com.bea.wlevs.spring.ActivationBeanPostProcessor,com.bea.wlevs.spring.BlockingSenderBeanPostProcessor,com.bea.wlevs.spring.RunnableBeanPostProcessor,com.bea.wlevs.spring.DisposableBeanPostProcessor,com.bea.wlevs.spring.ResourceInjectionBeanPostProcessor]; root of factory hierarchy
    Aug 5, 2010 1:42:46 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Looking for mandatory OSGi service dependency for bean [] matching filter ((objectClass=com.bea.wlevs.ede.spi.BundleAwareEventTypeRepository)(id=wlrt:eventtyperepo))
    Aug 5, 2010 1:42:46 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Found mandatory OSGi service for bean []
    Aug 5, 2010 1:42:46 PM EEST Info org.springframework.beans.factory.support.DefaultListableBeanFactory BEA-000000 Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@28f72e4: defining beans [CacheBeanFactoryPostProcessor,ServiceDependencyBeanFactoryPostProcessor,ContextLifecycleControlBean,com.bea.wlevs.spring.BeanPostProcessorServiceProcessor,com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0,com.bea.wlevs.ede.api.Factory#jms-inbound_provider#0,jmsInAdapter,com.bea.wlevs.ede.api.Factory#oracle.channel_provider#0,channel1,bean,myConverter,com.bea.wlevs.spring.support.ServiceInjectionBeanPostProcessor,org.springframework.osgi.extensions.annotation.ServiceReferenceInjectionBeanPostProcessor,com.bea.wlevs.spring.ApplicationIdentityAwareProcessor,com.bea.wlevs.spring.MBeanRegistrationBeanPostProcessor,com.bea.wlevs.spring.WorkManagerPostProcessor,com.bea.wlevs.spring.CacheBeanPostProcessor,com.bea.wlevs.spring.ActivationBeanPostProcessor,com.bea.wlevs.spring.BlockingSenderBeanPostProcessor,com.bea.wlevs.spring.RunnableBeanPostProcessor,com.bea.wlevs.spring.DisposableBeanPostProcessor,com.bea.wlevs.spring.ResourceInjectionBeanPostProcessor]; root of factory hierarchy
    Aug 5, 2010 1:42:46 PM EEST Error Deployment BEA-2045016 The application context "JMSGSMConsumer2" could not be started. Could not initialize component "com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0": *Event type named 'GSMEvent2' has already been declared with different type information*
    Aug 5, 2010 1:42:46 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[290] JMSGSMConsumer2, Message (BundleEvent STOPPED), Exception (null), Time (1281004966027)
    Aug 5, 2010 1:42:46 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[290] JMSGSMConsumer2, Message (BundleEvent UNRESOLVED), Exception (null), Time (1281004966059)
    Aug 5, 2010 1:42:46 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[290] JMSGSMConsumer2, Message (BundleEvent UNINSTALLED), Exception (null), Time (1281004966060)
    Aug 5, 2010 1:42:46 PM EEST Notice Deployment BEA-2045001 The application bundle "JMSGSMConsumer2" was undeployed successfully There is a conflict because there are two event types GSMEvent2. In two consumer applications, in EPN assembly file I defined name of event type as "GSMEvent2". So, I decided to change it to GSMEvent3, but this time I was getting different error :

    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Looking for mandatory OSGi service dependency for bean [] matching filter (objectClass=org.osgi.service.startlevel.StartLevel)
    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Found mandatory OSGi service for bean []
    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.osgi.bundle.BundleFactoryBean BEA-000000 Loading bundle from [file:/D:/CEP_HOME/user_projects/domains/ocep_domain/defaultserver/applications/JMSGSMConsumer2/JMSGSMConsumer2.jar]
    Aug 5, 2010 1:46:13 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[291] JMSGSMConsumer2, Message (BundleEvent INSTALLED), Exception (null), Time (1281005173984)
    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator BEA-000000 Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [JMSGSMConsumer2 (JMSGSMConsumer2)]
    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@294cfae: display name [OsgiBundleXmlApplicationContext(bundle=JMSGSMConsumer2, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Aug 05 13:46:13 EEST 2010]; root of context hierarchy
    Aug 5, 2010 1:46:13 PM EEST Notice Deployment BEA-2045000 The application bundle "JMSGSMConsumer2" was deployed successfully to file:/D:/CEP_HOME/user_projects/domains/ocep_domain/defaultserver/applications/JMSGSMConsumer2/JMSGSMConsumer2.jar with version 1281005173922
    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Unpublishing application context OSGi service for bundle JMSGSMConsumer2 (JMSGSMConsumer2)
    Aug 5, 2010 1:46:13 PM EEST Info org.springframework.beans.factory.xml.XmlBeanDefinitionReader BEA-000000 Loading XML bean definitions from URL [bundleentry://291.fwk36719251/META-INF/spring/JMSFuatDeneme.context.xml]
    Aug 5, 2010 1:46:13 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[291] JMSGSMConsumer2, Message (BundleEvent RESOLVED), Exception (null), Time (1281005174000)
    Aug 5, 2010 1:46:13 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[291] JMSGSMConsumer2, Message (BundleEvent STARTED), Exception (null), Time (1281005174001)
    Aug 5, 2010 1:46:14 PM EEST Info org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@294cfae]: org.springframework.beans.factory.support.DefaultListableBeanFactory@28f2db4
    Aug 5, 2010 1:46:14 PM EEST Info org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor BEA-000000 No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=JMSGSMConsumer2, config=osgibundle:/META-INF/spring/*.xml)
    Aug 5, 2010 1:46:14 PM EEST Info org.springframework.beans.factory.support.DefaultListableBeanFactory BEA-000000 Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@28f2db4: defining beans [CacheBeanFactoryPostProcessor,ServiceDependencyBeanFactoryPostProcessor,ContextLifecycleControlBean,com.bea.wlevs.spring.BeanPostProcessorServiceProcessor,com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0,com.bea.wlevs.ede.api.Factory#jms-inbound_provider#0,jmsInAdapter,com.bea.wlevs.ede.api.Factory#oracle.channel_provider#0,channel1,bean,myConverter,com.bea.wlevs.spring.support.ServiceInjectionBeanPostProcessor,org.springframework.osgi.extensions.annotation.ServiceReferenceInjectionBeanPostProcessor,com.bea.wlevs.spring.ApplicationIdentityAwareProcessor,com.bea.wlevs.spring.MBeanRegistrationBeanPostProcessor,com.bea.wlevs.spring.WorkManagerPostProcessor,com.bea.wlevs.spring.CacheBeanPostProcessor,com.bea.wlevs.spring.ActivationBeanPostProcessor,com.bea.wlevs.spring.BlockingSenderBeanPostProcessor,com.bea.wlevs.spring.RunnableBeanPostProcessor,com.bea.wlevs.spring.DisposableBeanPostProcessor,com.bea.wlevs.spring.ResourceInjectionBeanPostProcessor]; root of factory hierarchy
    Aug 5, 2010 1:46:14 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Looking for mandatory OSGi service dependency for bean [] matching filter ((objectClass=com.bea.wlevs.ede.spi.BundleAwareEventTypeRepository)(id=wlrt:eventtyperepo))
    Aug 5, 2010 1:46:14 PM EEST Info org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean BEA-000000 Found mandatory OSGi service for bean []
    Aug 5, 2010 1:46:14 PM EEST Info org.springframework.beans.factory.support.DefaultListableBeanFactory BEA-000000 Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@28f2db4: defining beans [CacheBeanFactoryPostProcessor,ServiceDependencyBeanFactoryPostProcessor,ContextLifecycleControlBean,com.bea.wlevs.spring.BeanPostProcessorServiceProcessor,com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0,com.bea.wlevs.ede.api.Factory#jms-inbound_provider#0,jmsInAdapter,com.bea.wlevs.ede.api.Factory#oracle.channel_provider#0,channel1,bean,myConverter,com.bea.wlevs.spring.support.ServiceInjectionBeanPostProcessor,org.springframework.osgi.extensions.annotation.ServiceReferenceInjectionBeanPostProcessor,com.bea.wlevs.spring.ApplicationIdentityAwareProcessor,com.bea.wlevs.spring.MBeanRegistrationBeanPostProcessor,com.bea.wlevs.spring.WorkManagerPostProcessor,com.bea.wlevs.spring.CacheBeanPostProcessor,com.bea.wlevs.spring.ActivationBeanPostProcessor,com.bea.wlevs.spring.BlockingSenderBeanPostProcessor,com.bea.wlevs.spring.RunnableBeanPostProcessor,com.bea.wlevs.spring.DisposableBeanPostProcessor,com.bea.wlevs.spring.ResourceInjectionBeanPostProcessor]; root of factory hierarchy
    Aug 5, 2010 1:46:14 PM EEST Error Deployment BEA-2045016 The application context "JMSGSMConsumer2" could not be started. Could not initialize component "com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0": *Event type using class 'com.turkcelltech.jmsexample.event.GSMEvent2' has already been declared with an alias of 'GSMEvent2'. The underlying class for an event type may only be registed with one alias name*.
    Aug 5, 2010 1:46:14 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[291] JMSGSMConsumer2, Message (BundleEvent STOPPED), Exception (null), Time (1281005174188)
    Aug 5, 2010 1:46:14 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[291] JMSGSMConsumer2, Message (BundleEvent UNRESOLVED), Exception (null), Time (1281005174234)
    Aug 5, 2010 1:46:14 PM EEST Info OSGiLogReaderAdapter BEA-000000 Bundle[291] JMSGSMConsumer2, Message (BundleEvent UNINSTALLED), Exception (null), Time (1281005174235)
    Aug 5, 2010 1:46:14 PM EEST Notice Deployment BEA-2045001 The application bundle "JMSGSMConsumer2" was undeployed successfully Oracle CEP Server understand there are two same class at same hierarchy. What is your suggestion? Is there any solution to prevent this without changing class name or hierarchy?

    DB:2.73:Event Type Named '$Variable' Has Already Been Declared xs

    You are getting these errors because event type definitions are global to the CEP server. In cases where you want to share event definitions between multiple applications running on the same CEP server, you should package the events in a separate bundle and make sure you deploy them before other applications that use them on the server.

    Check out this section of the docs for instructions on how to do that:
    http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14301/adapters.htm#CIHJEEEG

    Also, check out these section of the docs to see how to set-up Eclipse to handle the fact that your events are in a different bundle.
    http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14301/ide_proj.htm#CHDGGBFD
    3.5.2 How to Add an Oracle CEP Project Library as an OSGi Bundle

  • RELEVANCY SCORE 2.73

    DB:2.73:Xuggle In Spring Running On Jboss ck



    I wanted to know if anyone had used xuggle (xuggler) in a Spring application running on JBoss.

    If so, what problems have you encountered and how did you resolved them.

    I encounter the following exception :

    java.lang.UnsatisfiedLinkError: no-xuggle xuggler in java.library.path

    regards

    DB:2.73:Xuggle In Spring Running On Jboss ck


    I wanted to know if anyone had used xuggle (xuggler) in a Spring application running on JBoss.

    If so, what problems have you encountered and how did you resolved them.

    I encounter the following exception :

    java.lang.UnsatisfiedLinkError: no-xuggle xuggler in java.library.path

    regards

  • RELEVANCY SCORE 2.73

    DB:2.73:Servicemix 4.4.1 - Java.Lang.Noclassdeffounderror: Org/Apache/Log4j/Layout km



    Hi,

    The mentioned exception appears while trying to integrate a third-party application to run into Karaf 2.2.2 runtime on ServiceMix 4.4.1-fuse-03-06. The application relies of log4j being available in the runtime. Looking in the karaf documentation, it seems that this is the case, based on the following:

    In addition to being a standard OSGi Log service, it supports the following APIs:

    Apache Commons Logging

    SLF4J

    Apache Log4j

    Java Util Logging

    What could be the problem here ?

    Many thanks in adavance.

    Nicolas

    DB:2.73:Servicemix 4.4.1 - Java.Lang.Noclassdeffounderror: Org/Apache/Log4j/Layout km


    I'm using serviceMix 4.4.1 too, and i have a warnimg which look like this problem.

    when i launch my bundle, fuse answer that:

    Failed to initalize plugin: org.jboss.logging.Log4jLoggerPlugin@1f2182c, cause: org/apache/log4j/LogManager

    but the bundle is correctly launch.

    how i could do for resolve this warnimg.

    thank you

  • RELEVANCY SCORE 2.73

    DB:2.73:Classpath Resource Issue Usiing Spring 9x



    Hi,

    I'm new to OSGi and trying to deploy a spring based application in fuse esb. In spring context, I'm referring to a db4o file which is under resources folder. As per my understanding, a maven project will make sure that any file available under resources folder will be available in project classpath. I've kept the file under resources/repo/test.db4o.

    Here's the entry in spring context.

    When I'm starting the bundle, its throwing the following exception:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectContainer' defined in URL : Invocation of init method failed; nested exception is java.io.FileNotFoundException: OSGi resource[repo/taxonomy.db4o|bnd.id=255|bnd.sym=taxonomydaoimplbundle] cannot be resolved to absolute file path

    Any pointers will be highly appreciated.

    -Thanks

    DB:2.73:Classpath Resource Issue Usiing Spring 9x


    Freeman, thanks for your reply. I did confirm that taxonomy.db4o is in the same bundle.

    Also,I've tried using the classpath:repo/taxonomy./db4o. I still keep getting the same exception.

  • RELEVANCY SCORE 2.73

    DB:2.73:Spring And Ejb Classnotfound Errors zd


    Hi,
    We are migrating our application from Oracle AS 10.1.3.3 to Weblogic Server 11g. I was unable to run business layer neither via JDeveloper nor by direct deployment to server (EJB 2.1+Spring 2.5+Hibernate3) .

    Spring fails to load classes although jars are there. I can use any class outside Spring but Spring just can't find any. I tried putting jars in META-INF/lib, domain/lib, even put jars in startup script of weblogic.

    I am working on it for days and really need help on this. Thanks in advance.
    Burak

    Here is the error I get.
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseManager' defined in class path resource [applicationContext.xml]: Cannot create inner bean 'com.arcelik.absi.bl.base.BaseManager#c3d2e5' of type [com.arcelik.absi.bl.base.BaseManager] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.arcelik.absi.bl.base.BaseManager#c3d2e5' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'methodCache' while setting bean property 'cache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'methodCache' defined in class path resource [cacheRules.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.cache.ehcache.EhCacheFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/store/MemoryStoreEvictionPolicy

    java.lang.NoClassDefFoundError: net/sf/ehcache/store/MemoryStoreEvictionPolicy

  • RELEVANCY SCORE 2.73

    DB:2.73:Some Problems With Vcd Setup 13


    when I proceed with vCD installation (on centos 5.5 x64) with ssl certificates placed in /tmp folder I encounter following errors (I hope someone can help with that).

    # cat cell.log.last

    DEBUG Scheduling task ManagedService Update: pid=org.ops4j.pax.url.mvn

    DEBUG Scheduling task ManagedService Update: pid=org.ops4j.pax.url.wrap

    DEBUG Scheduling task ManagedServiceFactory Update: factoryPid=org.apache.servicemix.kernel.filemonitor.FileMonitor

    DEBUG Running task ManagedService Update: pid=org.ops4j.pax.url.mvn

    DEBUG Running task ManagedService Update: pid=org.ops4j.pax.url.wrap

    DEBUG Running task ManagedServiceFactory Update: factoryPid=org.apache.servicemix.kernel.filemonitor.FileMonitor

    DEBUG Scheduling task Update: pid=org.apache.servicemix.shell

    DEBUG Running task Update: pid=org.apache.servicemix.shell

    DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.shell

    DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.shell

    DEBUG Scheduling task Update: pid=org.apache.servicemix.transaction

    DEBUG Running task Update: pid=org.apache.servicemix.transaction

    DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.transaction

    DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.transaction

    DEBUG Scheduling task Update: pid=org.apache.servicemix.management

    DEBUG Running task Update: pid=org.apache.servicemix.management

    DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.management

    DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.management

    DEBUG Scheduling task Update: pid=org.apache.servicemix.features

    DEBUG Running task Update: pid=org.apache.servicemix.features

    DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.features

    DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.features

    DEBUG Scheduling task Update: pid=org.ops4j.pax.url.mvn

    DEBUG Running task Update: pid=org.ops4j.pax.url.mvn

    DEBUG Scheduling task Fire ConfigurationEvent: pid=org.ops4j.pax.url.mvn

    DEBUG Running task Fire ConfigurationEvent: pid=org.ops4j.pax.url.mvn

    Application startup begins: 10/18/10 11:11 AM

    Successfully bound network port: 80 on host address: PublicIP

    Successfully bound network port: 443 on host address: PublicIP

    Application Initialization: 9% complete. Subsystem 'com.vmware.vcloud.common.core' started

    Successfully connected to database: jdbc:oracle:thin:@vcenter:1521/cloud

    Successfully bound network port: 443 on host address: PublicIP

    Successfully bound network port: 61616 on host address: PublicIP

    Successfully bound network port: 61613 on host address: PublicIP

    Uncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-11,5,spring-osgi-extender[6273305c]-threads]. Message: Error creating bean with name 'hibernateCacheRegions': Cannot create inner bean 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' of type http://org.springframework.cache.ehcache.EhCacheFactoryBean while setting bean property 'sourceList' with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' defined in URL : Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.

    Application shutdown event: Beginning

    DEBUG Scheduling task Thread[Configuration Updater,5,main]

    Application shutdown event: Application stop requested. Shutting down.

    #

    Part of vcloud-container-debug.log file:

    2010-10-18 11:11:23,465 | FATAL | SpringOsgiExtenderThread-11 | AbstractCellApplication | Uncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-11,5,spring-osgi-extender[6273305c]-threads]. Message: Error creating bean with name hibernateCacheRegions: Cannot create inner bean org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6 of type http://org.springframework.cache.ehcache.EhCacheFactoryBean while setting bean property sourceList with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6 defined in URL : Cannot resolve reference to bean cacheManager while setting bean property cacheManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name cacheManager defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data. |

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateCacheRegions': Cannot create inner bean 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' of type http://org.springframework.cache.ehcache.EhCacheFactoryBean while setting bean property 'sourceList' with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' defined in URL : Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)+

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)+

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)+

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)+

    + at java.security.AccessController.doPrivileged(Native Method)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)+

    + at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)+

    + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)+

    + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)+

    + 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.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)+

    + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)+

    + at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68)+

    + at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343)+

    + at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)+

    + at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308)+

    + at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)+

    + at java.lang.Thread.run(Thread.java:619)+

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' defined in URL : Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)+

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)+

    + at java.security.AccessController.doPrivileged(Native Method)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)+

    + at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)+

    + ... 22 more+

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)+

    + at java.security.AccessController.doPrivileged(Native Method)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)+

    + at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)+

    + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)+

    + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)+

    + 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.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)+

    + ... 30 more+

    Caused by: net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.

    + at com.vmware.vcloud.common.ehcache.ActiveMqCacheManagerPeerProviderFactory.createCachePeerProvider(ActiveMqCacheManagerPeerProviderFactory.java:77)+

    + at net.sf.ehcache.config.ConfigurationHelper.createCachePeerProviders(ConfigurationHelper.java:282)+

    + at net.sf.ehcache.CacheManager.configure(CacheManager.java:319)+

    + at net.sf.ehcache.CacheManager.init(CacheManager.java:237)+

    + at net.sf.ehcache.CacheManager.lt;initgt;(CacheManager.java:210)+

    + at net.sf.ehcache.CacheManager.create(CacheManager.java:517)+

    + at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:104)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)+

    + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)+

    + ... 40 more+

    Caused by: javax.jms.JMSException: Error decrypting data.

    + at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)+

    + at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1255)+

    + at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1350)+

    + at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:300)+

    + at org.apache.activemq.pool.SessionPool.createSession(SessionPool.java:108)+

    + at org.apache.activemq.pool.SessionPool.makeObject(SessionPool.java:76)+

    + at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)+

    + at org.apache.activemq.pool.SessionPool.borrowSession(SessionPool.java:54)+

    + at org.apache.activemq.pool.ConnectionPool.createSession(ConnectionPool.java:108)+

    + at org.apache.activemq.pool.XaConnectionPool.createSession(XaConnectionPool.java:52)+

    + at org.apache.activemq.pool.PooledConnection.createSession(PooledConnection.java:141)+

    + at org.apache.activemq.pool.PooledConnection.createTopicSession(PooledConnection.java:137)+

    + at com.vmware.vcloud.common.ehcache.ActiveMqCacheManagerPeerProviderFactory.createCachePeerProvider(ActiveMqCacheManagerPeerProviderFactory.java:69)+

    + ... 48 more+

    Caused by: com.vmware.ssdc.util.crypto.CryptoException: Error decrypting data.

    + at com.vmware.ssdc.util.AesEncryption.Decrypt(AesEncryption.java:136)+

    + at com.vmware.ssdc.util.AesEncryption.Decrypt(AesEncryption.java:149)+

    + at com.vmware.vcloud.jms.activemq.impl.SystemUserCellBrokerAuthenticator.getBrokerSystemUserPassword(SystemUserCellBrokerAuthenticator.java:57)+

    + at com.vmware.vcloud.jms.activemq.impl.SystemUserCellBrokerAuthenticator.doAuthentication(SystemUserCellBrokerAuthenticator.java:75)+

    + at com.vmware.vcloud.jms.activemq.impl.CellAuthenticatedBrokerFactory.doAddConnection(CellAuthenticatedBrokerFactory.java:182)+

    + at com.vmware.vcloud.jms.activemq.impl.CellAuthenticatedBrokerFactory.access$100(CellAuthenticatedBrokerFactory.java:43)+

    + at com.vmware.vcloud.jms.activemq.impl.CellAuthenticatedBrokerFactory$1.addConnection(CellAuthenticatedBrokerFactory.java:101)+

    + at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89)+

    + at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:686)+

    + at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:134)+

    + at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:308)+

    + at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:182)+

    + at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:109)+

    + at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)+

    + at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:204)+

    + at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)+

    + at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)+

    + at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)+

    + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)+

    + ... 1 more+

    Caused by: javax.crypto.BadPaddingException: Given final block not properly padded

    + at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)+

    + at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)+

    + at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)+

    + at javax.crypto.Cipher.doFinal(DashoA13*..)+

    + at com.vmware.ssdc.util.AesEncryption.v2Decrypt(AesEncryption.java:171)+

    + at com.vmware.ssdc.util.AesEncryption.Decrypt(AesEncryption.java:130)+

    + ... 19 more+

    2010-10-18 11:11:23,467 | INFO | SpringOsgiExtenderThread-11 | AbstractCellApplication | Application shutdown event: Beginning |

    2010-10-18 11:11:25,474 | INFO | SpringOsgiExtenderThread-11 | AbstractCellApplication | Application shutdown event: Application stop requested. Shutting down. |

    2010-10-18 11:11:28,236 | INFO | Cell shutdown hook | AbstractCellApplication | Application shutdown event: Received stop signal. Shutting down. |

    2010-10-18 11:11:28,236 | WARN | Cell shutdown hook | AbstractCellApplication | Application shutdown event: Shutdown already in progress. Ignoring request. |

    #

    If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

    DB:2.73:Some Problems With Vcd Setup 13


    I managed to solve this problem. Problem in my case was, that after I setup Oracle DB on windows server, then after a while I renamed a server and this was the issue. I had to reinstall Oracle DB, then re-configure it as previously, and then vCD worked again like a charm

    If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

  • RELEVANCY SCORE 2.71

    DB:2.71:Re: Exception While Launching Oracle Adf 11.1.2.3 With Spring Web Flow 2.3.1 71


    ADF uses it's own controller for the adf work flow. Chance is that one or both are configured in a wrong way. I'm not sure they can work together.
    I wonder what you try to get out of the application using two flow controllers.

    Timo

    DB:2.71:Re: Exception While Launching Oracle Adf 11.1.2.3 With Spring Web Flow 2.3.1 71

    I have done that. I get this error even if there is no Tiles in application.

    - Sujay

  • RELEVANCY SCORE 2.70

    DB:2.70:Jboss 7.2.0.Final + Osgi: Spring 3.X Hibernate 3.X Jpa Migration 3x



    Hello there!

    I have an application based on Spring Framework. Due to modularity and system management concerns, I am now migrating this application to JBoss OSGi.

    The version of Spring I use is 3.2.3.Final and the version of Hibernate is 3.6.1.Final. My application uses JPA annotations (@Transactional, @PersistenceContext) and lets Spring handle the implementation and wiring. The entity managers are injected by the org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean, which gets the data source through JNDI. The persistence unit is described in the META-INF/persistence.xml file.

    Hibernate 3 libraries are not OSGi-compatible from what I have heard, so for that reason I first tried to update the Hibernate version to 4.2.0.Final. The later versions appear to require a newer version of OSGi Framework. With that version, the problem was Spring not injecting the entity managers. It just silently failed and then my application crashed on a null pointer exception from an entity manager reference.

    It would make sense to use the JPA provider JBoss comes with, aka the Hibernate 4 system module. It appears that the Spring 3.x framework is not compatible with Hibernate 4.x, so I decided the next course of action is to build a Hibernate 3 JBoss module. I am not sure building the Hibernate 3 module is the right choice of action, though. Even if I build it, I don't appear to get rid of the Hibernate 3 problems on OSGi. It also appears to be tricky to make sure that the Hibernate 3 module is correctly added as a dependence and as a JPA provider for the OSGi bundles. It becomes even more awkward when you need to provide the module for 3rd party bundles also, such as Spring.

    The most beautiful solution on JBoss-OSGi, I guess, would be based on Blueprint. Especially the solutions posted online on various forums based on Aries JPA + Aries Blueprint look very suitable for my needs. I use the Eclipse Gemini Blueprint since it's based on Spring DM and the application is Spring-based. I also need to support both Spring and Blueprint configurations side-by-side due to migration. However, the Gemini JPA provider appears to require an OSGi Core 4.3 compliant environment. Is there a chance to make it work in JBoss 7.2.0.Final? As far as I know, the OSGi subsystem included in JBoss AS 7.2.0.Final is only OSGi Core 4.2 -compliant.

    My data objects are POJO's and located in another OSGi bundle. I would like to keep it that way and have tried to manage the concern by listing the persistent object classes in the persistence.xml and then adding an OSGi import-package from the DAO bundle to the POJO bundle. Does this arrangement cause a problem?

    Which JPA provider should I use on JBoss AS 7.2.0.Final OSGi environment, when my application is coming from Spring3+Hibernate3 background?

    Has anyone migrated a similar JPA setup successfully on JBoss AS 7 and if so, how?

    I will deeply appreciate any comments, help and ideas about the subject.

    Best regards,

    Jaakko Rautiainen

    DB:2.70:Jboss 7.2.0.Final + Osgi: Spring 3.X Hibernate 3.X Jpa Migration 3x


    Hello there!

    I have an application based on Spring Framework. Due to modularity and system management concerns, I am now migrating this application to JBoss OSGi.

    The version of Spring I use is 3.2.3.Final and the version of Hibernate is 3.6.1.Final. My application uses JPA annotations (@Transactional, @PersistenceContext) and lets Spring handle the implementation and wiring. The entity managers are injected by the org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean, which gets the data source through JNDI. The persistence unit is described in the META-INF/persistence.xml file.

    Hibernate 3 libraries are not OSGi-compatible from what I have heard, so for that reason I first tried to update the Hibernate version to 4.2.0.Final. The later versions appear to require a newer version of OSGi Framework. With that version, the problem was Spring not injecting the entity managers. It just silently failed and then my application crashed on a null pointer exception from an entity manager reference.

    It would make sense to use the JPA provider JBoss comes with, aka the Hibernate 4 system module. It appears that the Spring 3.x framework is not compatible with Hibernate 4.x, so I decided the next course of action is to build a Hibernate 3 JBoss module. I am not sure building the Hibernate 3 module is the right choice of action, though. Even if I build it, I don't appear to get rid of the Hibernate 3 problems on OSGi. It also appears to be tricky to make sure that the Hibernate 3 module is correctly added as a dependence and as a JPA provider for the OSGi bundles. It becomes even more awkward when you need to provide the module for 3rd party bundles also, such as Spring.

    The most beautiful solution on JBoss-OSGi, I guess, would be based on Blueprint. Especially the solutions posted online on various forums based on Aries JPA + Aries Blueprint look very suitable for my needs. I use the Eclipse Gemini Blueprint since it's based on Spring DM and the application is Spring-based. I also need to support both Spring and Blueprint configurations side-by-side due to migration. However, the Gemini JPA provider appears to require an OSGi Core 4.3 compliant environment. Is there a chance to make it work in JBoss 7.2.0.Final? As far as I know, the OSGi subsystem included in JBoss AS 7.2.0.Final is only OSGi Core 4.2 -compliant.

    My data objects are POJO's and located in another OSGi bundle. I would like to keep it that way and have tried to manage the concern by listing the persistent object classes in the persistence.xml and then adding an OSGi import-package from the DAO bundle to the POJO bundle. Does this arrangement cause a problem?

    Which JPA provider should I use on JBoss AS 7.2.0.Final OSGi environment, when my application is coming from Spring3+Hibernate3 background?

    Has anyone migrated a similar JPA setup successfully on JBoss AS 7 and if so, how?

    I will deeply appreciate any comments, help and ideas about the subject.

    Best regards,

    Jaakko Rautiainen

  • RELEVANCY SCORE 2.68

    DB:2.68:Error In Deployment xd


    I have developed a project in cep, which have a cache system with Coherence. This project works correctly with version 11.1.1.3.
    After migrate to version 11.1.1.4, could not perform the application deployment.
    gives the error is as follows

    13/10/2011 16h'44 GMT-03:00 Error Despliegue BEA-2045010 No se ha podido iniciar el contexto de aplicacin "Cache": org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wlevs_stage_proxy_forcachePersonas': Cannot resolve reference to bean 'cachePersonas' while setting bean property 'cacheFactoryBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cachePersonas': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cluster names are limited to 32 characters in length.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wlevs_stage_proxy_forcachePersonas': Cannot resolve reference to bean 'cachePersonas' while setting bean property 'cacheFactoryBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cachePersonas': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cluster names are limited to 32 characters in length.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

    source

    EPN

    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd"

    wlevs:event-type-repository
    wlevs:event-type type-name="persona"
    wlevs:classar.com.cache.modelo.Persona/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    !-- definicion del cache --
    wlevs:caching-system id="cacheSystemPersonas" provider="coherence" advertise="true"
    /wlevs:caching-system

    wlevs:cache id="cachePersonas" caching-system="cacheSystemPersonas"
    value-type="persona" key-properties="dni"
    wlevs:cache-listener ref="bean1" /
    /wlevs:cache

    wlevs:processor id="cachePersona"
    wlevs:listener ref="channelPersonasApro" /
    wlevs:listener ref="cannelPersonasRep" /
    /wlevs:processor

    wlevs:channel id="channelPersonasApro" event-type="persona"
    wlevs:listener ref="cachePersonas" /
    /wlevs:channel

    wlevs:channel id="cannelPersonasRep" event-type="persona"
    wlevs:listener ref="bean" /
    /wlevs:channel
    bean id="bean" class="ar.com.cache.bean.Monitor"
    /bean

    wlevs:channel id="channelPersonas" event-type="persona"
    wlevs:listener ref="cachePersona" /
    /wlevs:channel

    wlevs:adapter id="generadorPersonas" class="ar.com.cache.adapter.GeneradorPersonas"
    wlevs:listener ref="channelPersonas" /
    /wlevs:adapter
    bean id="bean1" class="ar.com.cache.listener.CacheListener"
    /bean
    /beans

    coherence-cache-config.xml

    ?xml version="1.0"?
    !DOCTYPE cache-config SYSTEM "cache-config.dtd"

    cache-config
    caching-scheme-mapping
    cache-mapping
    !-- cache-namesmartMeterCache/cache-name --
    cache-namecachePersonas/cache-name
    scheme-namesmartMeterScheme/scheme-name
    /cache-mapping
    /caching-scheme-mapping

    caching-schemes
    replicated-scheme
    scheme-namesmartMeterScheme/scheme-name
    service-nameReplicatedCache/service-name
    backing-map-scheme
    local-scheme/
    /backing-map-scheme
    /replicated-scheme
    /caching-schemes
    /cache-config

    MANIFEST.MF
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: %project.name
    Bundle-SymbolicName: Cache
    Bundle-Version: 1.0.0
    Bundle-Localization: bundle
    Bundle-Vendor: %project.vendor
    Bundle-RequiredExecutionEnvironment: JavaSE-1.6
    Bundle-ClassPath: .
    Import-Package: com.bea.wlevs.cache.spi;version="11.1.1.1_0",
    com.bea.wlevs.configuration;version="11.1.1.1_0",
    com.bea.wlevs.ede;version="11.1.1.1_0",
    com.bea.wlevs.ede.api;version="11.1.1.1_0",
    com.bea.wlevs.ede.impl;version="11.1.1.1_0",
    com.bea.wlevs.ede.spi;version="11.1.1.1_0",
    com.bea.wlevs.management.spi;version="11.1.1.1_0",
    com.bea.wlevs.spring;version="11.1.1.1_0",
    com.bea.wlevs.spring.support;version="11.1.1.1_0",
    com.bea.wlevs.util;version="11.1.1.1_0",
    com.tangosol.util;version="3.5.3.2",
    org.apache.commons.logging;version="1.1.0",
    org.springframework.beans;version="2.5.6",
    org.springframework.beans.factory;version="2.5.6",
    org.springframework.beans.factory.config;version="2.5.6",
    org.springframework.core.annotation;version="2.5.6",
    org.springframework.osgi.context;version="1.2.0",
    org.springframework.osgi.extensions.annotation;version="1.2.0",
    org.springframework.osgi.service;version="1.2.0",
    org.springframework.util;version="2.5.6"

    DB:2.68:Error In Deployment xd

    Junger He

    Thank you very much.
    The problem was solved, thanks to the first option listed.

  • RELEVANCY SCORE 2.68

    DB:2.68:Osgi Framework As (Windows) Service? (Apache Felix) xa


    We have a Java application running as a Windows service. I played around with the Apache Felix OSGi implementation. OSGi framework is startet as "java -jar bin/felix.jar" and there is a shell for deploying bundles. One of our requirement is, that the application still needs to run as a service, so I wrote a little application that runs as a service and starts the felix framework. I can see in the log file, that the felix framwork has startet. But now, how can I deploy an application? As a service, I don't have a gui or a shell. Is there some kind of plugin for this? Or are there otjer OSGi implementations that can be run as a system service?

  • RELEVANCY SCORE 2.68

    DB:2.68:Jdev 11.1.2 Spring + Hibernate + Prime Faces m1


    Jdev 11.1.2

    Spring + Hibernate + Prime faces

    I have a application developed using myeclipse for spring scaffold spring crud option . having problems deploying the ear to weblogic , so imported the project to jdeveloper 11.1.2 and trying to run in integrated weblogic server and running into below exception

    java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ELContext;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
    at com.sun.el.parser.AstValue.getValue(AstValue.java:111)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)

    to make weblogic use EL 2.2 Version jars included in my project I have added this to my weblogic-application.xml file

    prefer-application-packages
    package-namecom.sun.el.*/package-name
    package-namejavax.el.*/package-name
    /prefer-application-packages

    And now running into this exception

    java.lang.ClassCastException: oracle.adf.share.el.ADFContextELResolver cannot be cast to javax.el.ELResolver

    I am not using ADF in my project , is there any configurations I can change to get this working

    Thank you for your time

    Best regards

    DB:2.68:Jdev 11.1.2 Spring + Hibernate + Prime Faces m1

    Check that your project properties-libraries don't contain ADF, and also check the web.xml file of your project to ensure no ADF enties in there.

  • RELEVANCY SCORE 2.67

    DB:2.67:Fuse Esb With Sonicmq f3



    Has anyone successfully swapped out the ActiveMQ broker for the SonicMQ broker while keeping the FUSE ESB with its OSGI and Spring containers intact? Is it possible?

    DB:2.67:Fuse Esb With Sonicmq f3


    Has anyone successfully swapped out the ActiveMQ broker for the SonicMQ broker while keeping the FUSE ESB with its OSGI and Spring containers intact? Is it possible?

  • RELEVANCY SCORE 2.66

    DB:2.66:Jboss Eap 6.2 And Spring Issues 3c



    Hi,

    I am trying to deploy my war file in jboss eap 6.2. I get the following error while deploying..

    09:54:20,125 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/erdm]] (ServerService Thread Pool -- 75) JBWEB000289: Servlet erdm threw load() exception: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]

    Offending resource: ServletContext resource [/WEB-INF/spring/url-mapping.xml]

    Bean 'urlMapping'

    - Property 'mappings'

    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1335) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1391) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:956) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseKeyElement(BeanDefinitionParserDelegate.java:1289) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseMapElement(BeanDefinitionParserDelegate.java:1214) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]

    at org.springfr

    ----------------------------------------------------------------------------------------------

    These are the spring jars that I use

    resource-root path="spring-aop-3.0.7.RELEASE.jar"/

    resource-root path="spring-asm-3.0.7.RELEASE.jar"/

    resource-root path="spring-beans-3.0.7.RELEASE.jar"/

    resource-root path="spring-core-3.0.7.RELEASE.jar"/

    resource-root path="spring-expression-3.0.7.RELEASE.jar"/

    resource-root path="spring-jdbc-3.0.7.RELEASE.jar"/

    resource-root path="spring-context-support-3.0.7.RELEASE.jar"/

    resource-root path="spring-context-3.0.7.RELEASE.jar"/

    resource-root path="spring-security-core-2.0.4.jar"/

    resource-root path="spring-security-taglibs-3.0.7.RELEASE.jar"/

    resource-root path="spring-security-core-3.0.3.RELEASE.jar"/

    resource-root path="spring-security-core-tiger-2.0.6.RELEASE.jar"/

    resource-root path="spring-tx-3.0.7.RELEASE.jar"/

    ----------------------------------------------------------------------------------------------

    Any idea how to resolve this error

    DB:2.66:Jboss Eap 6.2 And Spring Issues 3c


    Yes, I did try that. But sadly it didnt work.

    Is there any other way to resolve it.

  • RELEVANCY SCORE 2.66

    DB:2.66:Deploying Blueprint Osgi Bundles In Jboss 7.1.2 c1



    Hi All,

    please, has anyone successfully deployed Blueprint powered OSGi bundles in JBOSS 7.1.2.Final? I've experienced a few issues with that:

    1) In JBoss 7.1.2 bundles (any bundles, not just Blueprint ones) are not started automatically when dropped into deployments folder. I have to start them in JBOSS webconsole. Is this intentional in 7.1.2?

    (Bundles are automatically started when deployed during JBOSS startup.)

    2) I cannot fully undeploy bundles deployed during JBOSS startup. *.undeployed file is created, jar is not listed in Server-Manage Deployments but bundle is still listed as active in Runtime Operations-OSGi list

    3) When starting Blueprint powered bundles I get the following warning. Everything seems to work fine, though:
    2012-05-17 16:12:37,232 WARNING [org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$NamespaceBundleLister](HttpManagementService-threads - 1) Got exception while handling event BundleEvent[type=RESOLVED,source=reims-helloworld-spring-client:7.0.0.SNAPSHOT]: org.jboss.msc.service.DuplicateServiceException: Service jboss.module.spec.service."deployment.reims-helloworld-spring-client"."7.0.0.SNAPSHOT" is already registered
    at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
    at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227)
    at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560)
    at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
    at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228)
    at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307)
    at org.jboss.as.osgi.service.ModuleLoaderIntegration.addModule(ModuleLoaderIntegration.java:128)
    at org.jboss.osgi.framework.internal.ModuleManagerPlugin.createHostModule(ModuleManagerPlugin.java:298)
    at org.jboss.osgi.framework.internal.ModuleManagerPlugin.addModule(ModuleManagerPlugin.java:196)
    at org.jboss.osgi.framework.internal.ResolverPlugin.addModules(ResolverPlugin.java:253)
    at org.jboss.osgi.framework.internal.ResolverPlugin.applyResolverResults(ResolverPlugin.java:201)
    at org.jboss.osgi.framework.internal.ResolverPlugin.resolveAndApply(ResolverPlugin.java:121)
    at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551)
    at org.jboss.osgi.framework.internal.HostBundleRevision.findEntries(HostBundleRevision.java:126)
    at org.jboss.osgi.framework.internal.AbstractBundleState.findEntries(AbstractBundleState.java:443)
    at org.eclipse.gemini.blueprint.extender.internal.support.NamespaceManager.maybeAddNamespaceHandlerFor(NamespaceManager.java:130)
    at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener.maybeAddNamespaceHandlerFor(ContextLoaderListener.java:462)
    at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$NamespaceBundleLister.handleEvent(ContextLoaderListener.java:169)
    at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
    at org.jboss.osgi.framework.internal.FrameworkEventsPlugin.fireBundleEvent(FrameworkEventsPlugin.java:372)
    at org.jboss.osgi.framework.internal.AbstractBundleState.fireBundleEvent(AbstractBundleState.java:198)
    at org.jboss.osgi.framework.internal.AbstractBundleState.changeState(AbstractBundleState.java:192)
    at org.jboss.osgi.framework.internal.AbstractBundleState.changeState(AbstractBundleState.java:174)
    at org.jboss.osgi.framework.internal.ResolverPlugin.setBundleToResolved(ResolverPlugin.java:277)
    at org.jboss.osgi.framework.internal.ResolverPlugin.applyResolverResults(ResolverPlugin.java:207)
    at org.jboss.osgi.framework.internal.ResolverPlugin.resolveAndApply(ResolverPlugin.java:121)
    at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551)
    at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:232)
    at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:485)
    at org.jboss.as.osgi.management.BundleResourceHandler.handleOperation(BundleResourceHandler.java:145)
    at org.jboss.as.osgi.management.BundleResourceHandler.executeRuntimeStep(BundleResourceHandler.java:99)
    at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:90)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284)
    at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211)
    at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:473)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284)
    at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211)
    at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:126)
    at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:111)
    at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:316)
    at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:306)
    at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:319)
    at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:225)
    at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:232)
    at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51)
    at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
    at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)
    at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
    at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)
    at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
    at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:54)
    at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
    at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    at org.jboss.threads.JBossThread.run(JBossThread.java:122)

    DB:2.66:Deploying Blueprint Osgi Bundles In Jboss 7.1.2 c1


    1) In JBoss 7.1.2 bundles (any bundles, not just Blueprint ones) are not started automatically when dropped into deployments folder. I have to start them in JBOSS webconsole. Is this intentional in 7.1.2?

    (Bundles are automatically started when deployed during JBOSS startup.)

    Yes, this is by design. An autostart feature would imply bundle ordering, which should not be imposed onm the user. You can script deploy/start in the Command Line Interface (CLI)

    2) I cannot fully undeploy bundles deployed during JBOSS startup. *.undeployed file is created, jar is not listed in Server-Manage Deployments but bundle is still listed as active in Runtime Operations-OSGi list

    This is likely a bug: AS7-4835

    3) When starting Blueprint powered bundles I get the following warning

    This is a framework bug: AS7-4836

    Thanks for reporting this :-)

  • RELEVANCY SCORE 2.65

    DB:2.65:Jms Outbound Configuration Errors js


    I'm conducting some tests on JMS Outbound queues with a CEP server. After following the Developer's Guide manual for setting up a JMS Outbound Queue on a CEP server, I'm receiving the following errors on startup:

    *Oct 6, 2010 4:20:12 PM EDT Error Deployment BEA-2045010 The application context "XMPPMessageEPN" could not be started: org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is java.lang.Exception: Error initializing JMS connection: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused; No available router to destination] javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused; No available router to destination]*

    I assumed this was all I needed to do. Are there some settings missing for configuring a JMS Outbound Queue that are not in the documentation?

    Thanks -- Jim L.

    Spring File:
    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd"

    wlevs:event-type-repository
    wlevs:event-type type-name="XMPPMessageEvent"
    wlevs:classcom.enernoc.cep.message.event.XMPPMessageEvent/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    !-- Password for XMPP Server is encrypted using Enigma --
    wlevs:adapter id="XMPPMessageAdapter" class="com.enernoc.cep.message.adapter.XMPPMessageAdapter"
    wlevs:instance-property name="hostName" value="talk.enernoc.net"/
    wlevs:instance-property name="userName" value="oracep"/
    wlevs:instance-property name="userPwd" value="HKVJqLcX9D4="/
    wlevs:instance-property name="waitTime" value="15"/
    wlevs:instance-property name="diagnostics" value="false"/
    /wlevs:adapter

    wlevs:channel id="XMPPMessageChannel"
    event-type="XMPPMessageEvent"
    max-threads="3"
    max-size="2048"
    wlevs:listener ref="JMSOutboundXMPP"/
    wlevs:source ref="XMPPMessageAdapter"/
    /wlevs:channel

    wlevs:adapter id="JMSOutboundXMPP" provider="jms-outbound"/

    /beans

    Config File:
    ?xml version="1.0" encoding="UTF-8"?
    n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application"
    jms-adapter
    nameJMSOutboundXMPP/name
    event-typeXMPPMessageEvent/event-type
    jndi-provider-urlt3://localhost:7001/jndi-provider-url
    destination-jndi-nameXMPPMessageQueue/destination-jndi-name
    userxmppuser/user
    passwordpassword1/password
    delivery-modenonpersistent/delivery-mode
    /jms-adapter
    /n1:config

    DB:2.65:Jms Outbound Configuration Errors js

    Then that would explain why it doesn't work. The documentation implies otherwise, particularly when discussing HA configurations.

    --Jim L.

  • RELEVANCY SCORE 2.64

    DB:2.64:Connectionwrapper Is Not Visible From Class Loader za



    Hi,

    I am developing restful application using ApacheCXF, spring and hibernate.I handled transaction using AOP. Application works well, if I deploy in any one webserver. But if I deploy on Fuse service mix as an osgi service. Its gives exception for AOP Transaction. So i changed into programmtic transaction. Now i am getting exception like

    " java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader "

    Can any one help to solve this issue?

    DB:2.64:Connectionwrapper Is Not Visible From Class Loader za


    Hi,

    I am developing restful application using ApacheCXF, spring and hibernate.I handled transaction using AOP. Application works well, if I deploy in any one webserver. But if I deploy on Fuse service mix as an osgi service. Its gives exception for AOP Transaction. So i changed into programmtic transaction. Now i am getting exception like

    " java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader "

    Can any one help to solve this issue?

  • RELEVANCY SCORE 2.64

    DB:2.64:Dvfactoryexception During Spring Bean Creation p8



    When my service starts up and Spring tries to create and initialize the bean I get:

    DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

    Any ideas?

    Thanks.

    Barry Hathaway

    --- full stack trace ---

    15:07:53,641 | ERROR | ExtenderThread-5 | ContextLoaderListener | 85 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=sadlserver-osgi-service, config=osgibundle:/META-INF/spring/*.xml))

    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL bundleentry://232.fwk21616774/META-INF/spring/beans.xml; nested exception is org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[70:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[70:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[85:org.springframework.osgi.extender:1.2.1]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[85:org.springframework.osgi.extender:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[82:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[85:org.springframework.osgi.extender:1.2.1]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]

    Caused by: org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

    at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)[:]

    at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:]

    at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:]

    at org.apache.xerces.parsers.DOMParser.(Unknown Source)[:]

    at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(Unknown Source)[:]

    at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:99)

    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)

    ... 18 more

    DB:2.64:Dvfactoryexception During Spring Bean Creation p8


    Freeman,

    Actually I did neglect to send a data file (it is attached). It needs to go in:

    src/main/resources/data.rdf

    Also, please change its path in the java code to data.rdf (get rid of /resources/).

    By using this file you should get "Success" instead of "No Data".

    In any event, even without the file you are not getting any exceptions like I am.

    My changes from the standard Fuse distribution is really only one - I am using

    equinox as the karaf framework (instead of felix).

    The answers to your two question are:

    1.) No changes were made in featuresBoot

    2.) Yes, I did install a number of bundles:

    Apache Felix Web Management Console (3.1.8)

    Common Eclipse Runtime (3.5.0.v20090520-1800)

    Eclipse Jobs Mechanism (3.4.100.v20090429-1800

    )

    Eclipse Preferences Mechanism (3.3.0.v20100503

    )

    Extension Registry Support (3.4.100.v20090520-

    1800)

    Equinox Application Container (1.3.0.v20100512

    )

    Eclipse Content Mechanism (3.4.100.v20100505-1

    235)

    Core Runtime (3.6.0.v20100505)

    Expression Language (3.4.200.v20100505)

    Core File Systems (1.3.0.v20100526-0737)

    Core Resource Management (3.6.0.v20100526-0737

    )

    EMF Common (2.4.0.v200902171115)

    EMF Ecore (2.3.0.v200706262000)

    Apache Commons IO Bundle (1.4)

    wrap_mvn_junit_junit_4.8.2 (0)

  • RELEVANCY SCORE 2.64

    DB:2.64:Adf Application Error fm


    (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.How to remove this exception while running ADF application in Integrated weblogic server?

    DB:2.64:Adf Application Error fm

    Hi,

    while running application in integrated wl server use jdbc url and choose/provide a db connection. use jdbc only when you deploy the app in external wl server.

    ~Abhijit

  • RELEVANCY SCORE 2.63

    DB:2.63:Connection Pooling In Fuse Esb ms



    Fuse ESB Enterprise 7.1.0

    PostgreSQL 9.2

    I use tomcat jdbc pool with spring JdbcTemplate in my fuse esb applications for work with postgresql database. I publish connection pool as datasource service in osgi environment in blueprint and it is reused by several applications.

    When I started testing the application, I found an interesting bug which concerns all data sources in XA mode.

    I digg in sources of next libraries:

    org.apache.aries.transaction/org.apache.aries.transaction.jdbc/1.0.1.fuse-71-047

    org.apache.aries.transaction/org.apache.aries.transaction.manager/1.0.1.fuse-71-047

    spring-jdbc

    tomcat jdbc-pool

    and found, that JdbcTemplate don't close connection if it's the transactional, and aries hasn't any option and code to release connection after global transaction commit or rollback.

    For example I have next simple bean:

    public class TestBean {

    private JdbcTemplate jdbcTemplate;

    public TestBean(JdbcTemplate jdbcTemplate) {

    this.jdbcTemplate = jdbcTemplate;

    }

    @Transacted

    public void test1() {

    jdbcTemplate.update(....);

    }

    @Transacted

    public void test2() {

    jdbcTemplate.update(...);

    }

    @Transacted

    public void test3() {

    jdbcTemplate.update(...);

    }

    }

    I have next situation:

    1) I execute update method on jdbcTemplate in my test1() method. Spring container propagate global transaction context to it and after finishing update not release connection.

    2) I execute next methods test2(), test3(), etc in same global transaction context

    3) Transaction manager execute auto commit after all and also not realese used jdbc connections.

    4) After next N executions getConnection() at tomcat jdbc pool datasource object I catch exception with message:

    Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none availablesize:50; busy:50; idle:0; lastwait:30000

    Pool consider that all connections is busy, but actually all 50 connections simply is not released!

    Workaround for tomcat jdbc-pool: removeAbandoned = true, but it is crutches.

    Whether there are any instructions on use of the connection pooling in fuse esb except use of ancient dbcp or c3p0 libraries?

    Thanks!

    DB:2.63:Connection Pooling In Fuse Esb ms


    I have found similar bugs in bugtracker:

    http://fusesource.com/issues/browse/ENTESB-633

    http://fusesource.com/issues/browse/ENTESB-610

    But there is no workaround in comments and these bugs are still not fixed The problem is in Aries itself.

  • RELEVANCY SCORE 2.63

    DB:2.63:The Matching Wildcard Is Strict But No Declaration Can Be Found For Element mf



    Hey guys!

    Some times, I get an exception which tells me, that my spring osgi configuration is not correct:

    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'osgi:service'.

    My spring osgi configuration looks like:

    I resolved this problem, by changing the schema locations from "http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd" to "http://www.springframework.org/schema/osgi/spring-osgi.xsd" and from "http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium-1.2.xsd" to "http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium-1.2.xsd". But I don't understand why this fixed my problem, because both url's exists and point to the same schema.

    Any idea?

    I wont to use the schema location with the version info to target an explicit version of the schema.

    Regards,

    Christian

    DB:2.63:The Matching Wildcard Is Strict But No Declaration Can Be Found For Element mf


    Hi Joe!

    Thank you for taking time to explain me, how it works.

    Cheers,

    Christian

  • RELEVANCY SCORE 2.63

    DB:2.63:Getting "Java.Lang.Classnotfoundexception" While Creating Jaxbcontext Instance 8k



    Hi I have an osgi bundle which uses JAXB api for marshalling and unmarshalling xml data. While creating the JAXBContext instance i am getting the java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext. These jaxb classes are provided by default in the jdk 1.6.

    I have added the following capability in the standalone.xml osgi subsystem:

    capability name="javax.xml.bind.api" startlevel="1"/

    But again getting the same exception. Do I need to add extra configuration to access these classes. I am using jboss-as-7.1.1.Final.

    Please help me to resolve this issue.

    Thanks in advance.

    DB:2.63:Getting "Java.Lang.Classnotfoundexception" While Creating Jaxbcontext Instance 8k


    Hi Thomas,

    Here i am attacing the bundle and the eclipse project source code for the sample bundle. By deploying the bundle in the server we can see the error we are getting.

    Kindly find the attached files.

  • RELEVANCY SCORE 2.62

    DB:2.62:Osgi Roadmap Ideas And Request For Feedback j3



    Folks,

    with jboss-as-7.1.2 almost out of the door it time to ponder a little what to do next for the AS7/OSGi integration. Here a few ideas in no particular order

    A) Improved Repository

    The repository should provide an API that allows add/remove of atrtefacts [JBOSGI-549]. The repository metadata should be persistent [JBOSGI-525]. There should be a management view for the repository [AS7-4690].

    B) OSGi Cloud Support in OpenShift

    As well as providing the core OSGi functionality in OpenShift, we need to provide management capabilities, documentation and working examples [JBOSGI-550].

    C) Core Framework update to R5

    Provide an R5 compliant core implementation. Among other things, this is needed for Subsystem/Application support [JBOSGI-497]

    D) HttpService/WebApp support on top of JBossWeb

    The is a long standing issue that should replace PaxWeb/Jetty with the JBossWeb implementation that is in AS7 [AS7-351].

    E) Allign deployment lifecycle with OSGi

    OSGi bundles provide a module in the RESOLVED state. If this was happening as part of the normal deployment unit processing (DUP) chain. It'd be possible to use OSGi metadata in any deployment type supported by AS7. We could then have modular EJB3, Web, CDI, etc deployments as well as the general ability to start/stop AS7 deployments. [AS7-4243]

    F) Support for Framework restart in AS7

    It should be possible to modify the framework configuration and restart the framework in AS7. This is especially important for a Framework instance running in OpenShift [AS7-4691].

    G) JPA support on Hibernate

    JPA should be usable from OSGi (in hte standard way) using the JPA provider thgat is available in AS7. [JBOSGI-260]

    H) CDI/OSGi Integration

    There is a project by Mathieu Ancelin that integrates Weld with OSGi. This should be integrated in AS7. [JBOSGI-445]

    I) OSGi for Mobile Platforms

    As part of our 3D strategy, I'd like to investigate in OSGi on mobile platforms [JBOSGI-551].

    I look forward to receiving your feedback and of course generally encourage involvement in this tech.

    cheers

    -thomas

  • RELEVANCY SCORE 2.62

    DB:2.62:Vmware-Vcd-Cell Is Dead, But Pidfile Exists z7



    vCloud director has stopped working after reboot of the cell...this was working fine last week in my lab i have uninstalled the vcloud director and again installed it as well but all in vain...

    Below are the logs for same..

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

    more cell.log

    Application startup begins: 5/3/11 3:17 PMSuccessfully bound network port: 80 on host address: 10.20.30.28Successfully bound network port: 443 on host address: 10.20.30.28Application Initialization: 9% complete. Subsystem 'com.vmware.vcloud.common.core' startedSuccessfully connected to database: jdbc:oracle:thin:@10.20.30.24:1521/vcloudSuccessfully bound network port: 443 on host address: 10.20.30.26Successfully bound network port: 61616 on host address: 10.20.30.28Successfully bound network port: 61613 on host address: 10.20.30.28Uncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-11,5,spring-osgi-extender[722d95b3]-threads]. Message: Error creating bean with name'hibernateCacheRegions': Cannot create inner bean 'org.springframework.cache.ehcache.EhCacheFactoryBean#75636731' of type [org.springframework.cache.ehcache.EhCacheFactoryBean] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#75636731' defined in URL [bundleentry://159/META-INF/spring/common-persist-context-cache.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL [bundleentry://159/META-INF/spring/common-persist-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.Application shutdown event: Beginning*DEBUG* Scheduling task Thread[Configuration Updater,5,main]Application shutdown event: Application stop requested. Shutting down.

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

    more vmware-vcd-watchdog.log2011-05-03 14:54:33 | INFO | vmware-vcd-watchdog started2011-05-03 14:54:35 | INFO | Started vmware-vcd-cell (pid=5667)2011-05-03 14:55:35 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 14:55:37 | INFO | Started vmware-vcd-cell (pid=5833)2011-05-03 14:56:37 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 14:56:40 | INFO | Started vmware-vcd-cell (pid=5996)2011-05-03 14:57:40 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 14:57:42 | INFO | Started vmware-vcd-cell (pid=6158)2011-05-03 14:58:42 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 14:58:44 | INFO | Started vmware-vcd-cell (pid=6313)2011-05-03 14:59:44 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 14:59:47 | INFO | Started vmware-vcd-cell (pid=6463)2011-05-03 15:00:47 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 15:00:49 | INFO | Started vmware-vcd-cell (pid=6614)2011-05-03 15:01:49 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it2011-05-03 15:01:51 | INFO | Started vmware-vcd-cell (pid=6769)2011-05-03 15:02:51 | ALERT | vmware-vcd-cell is dead but /var/run/vmware-vcd-cell.pid exists, attempting to restart it

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

    Any help would be very appreciated.

    DB:2.62:Vmware-Vcd-Cell Is Dead, But Pidfile Exists z7


    Each vCD installation has a unique encryption key that various settings and some data in the DB is encrypted with. If you want a multi-cell set up or to attach a new cell to an existing database you need to use the response file generated from the configuration of the initial cell, which will include the shared encryption key.

  • RELEVANCY SCORE 2.62

    DB:2.62:Problems With Spring Resource Loading In An Osgi Bundle 78



    I have a large Spring application that I am trying to convert to a single OSGi bundle for deployment into JBoss (AS 7.0.2). Initially I am trying to minimize code changes and deploy the application as-is, but I am running into issues with Spring resource loading. I've created a relatively simple application as a reproducer. The application is an OSGi bundle with a few simple Spring beans using ClassPathXmlApplicationContext. I am building the bundle with maven-bundle-plugin and embeding transitive dependencies including Spring 3.0.6 JARs.

    When I use a simple configuration location such as "classpath:spring/applicationContext.xml" everything works fine. However, the real application has several different locations using combinations of "classpath*:" and location patterns such as "classpath:spring/*Context.xml". These locations with patterns are causing problems.

    Despite Spring's support for VFS it is not being used in these cases. Within the OSGi context Spring is getting resource URLs with a "bundle:" protocol and doesn't know what to do with them. So it falls back to assuming they are files, and the resource loading fails:

    22:05:18,264 WARN [org.springframework.core.io.support.PathMatchingResourcePatternResolver] (MSC service thread 1-4) Cannot search for matching files underneath class path resource [spring/] because it does not correspond to a directory in the file system: java.io.FileNotFoundException: class path resource [spring/] cannot be resolved to absolute file path because it does not reside in the file system: bundle://com.tendril.test.spring.osgi-23-0-0/spring/

    DB:2.62:Problems With Spring Resource Loading In An Osgi Bundle 78


    JBossOSGi provides the Core 4.2 Framework. Issue related to this I'd be interested in. Running a different framework in AS7 (e.g. felix, equinox) is not supported.

  • RELEVANCY SCORE 2.62

    DB:2.62:Class Cast Exception When Using Swing/Rcp jf


    Hi
    I am getting class cast exception for classes holding parent child relationship.
    It must be the class loader issue.
    We are using RCP Swing, OSGI framework.

    Application works fine when we use install version. Throws this exception only when used through webstart.

    Application is launced using equinox launcher.

    How does class loading work in webstart?

    thanks

    DB:2.62:Class Cast Exception When Using Swing/Rcp jf

    Hi
    I am getting class cast exception for classes holding parent child relationship.
    It must be the class loader issue.
    We are using RCP Swing, OSGI framework.

    Application works fine when we use install version. Throws this exception only when used through webstart.

    Application is launced using equinox launcher.

    How does class loading work in webstart?

    thanks

  • RELEVANCY SCORE 2.62

    DB:2.62:Required Security Policies To Get J9 Crypto Providers To Work 31


    Hello,

    I'm developing a mobile application on top of a OSGi framework running with J9.

    I'm using Knopflerfish as my osgi fw. My trouble begins when I decide to activate the security manager to knopflerfish, because by doing so I have to specify the policy with every permission needed for every bundle to run and what not.

    The problem i'm facing is what permissions are needed for actually instancing the Ciphers given by the crypto providers. The IBM crypto providers are being found successfully but whenever I try Cipher.getInstance I get this:

    java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding
    at javax.crypto.Cipher.getInstance(Unknown Source)

    If I force a specific provider which I know has that algorithm I get the folowing exception:

    java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object

    If I do not use any Security Manager while starting the osgi framework all is well. So I would like to know what permissions have to be set in the policy for to be able to actually use those providers.

    Can anyone point me in the right direction ?

    Thanks in advance,
    Pedro

    DB:2.62:Required Security Policies To Get J9 Crypto Providers To Work 31

    Hello,

    I'm developing a mobile application on top of a OSGi framework running with J9.

    I'm using Knopflerfish as my osgi fw. My trouble begins when I decide to activate the security manager to knopflerfish, because by doing so I have to specify the policy with every permission needed for every bundle to run and what not.

    The problem i'm facing is what permissions are needed for actually instancing the Ciphers given by the crypto providers. The IBM crypto providers are being found successfully but whenever I try Cipher.getInstance I get this:

    java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding
    at javax.crypto.Cipher.getInstance(Unknown Source)

    If I force a specific provider which I know has that algorithm I get the folowing exception:

    java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object

    If I do not use any Security Manager while starting the osgi framework all is well. So I would like to know what permissions have to be set in the policy for to be able to actually use those providers.

    Can anyone point me in the right direction ?

    Thanks in advance,
    Pedro

  • RELEVANCY SCORE 2.62

    DB:2.62:Integrating Wildfly And Spring Secuirty: Filter Chain Proxy Issue 83


    I'm working in order to integrate Spring Security SAML Extension with Spring Boot.
    I developed a complete sample application, all the source code is published on GitHub: spring-boot-saml-integration on GitHub
    By running the webapp as Spring Boot application (through STS, by using an embedded Application Server) it works fine (with the exception of Single-Logout and Global Logout on IdP). Unfortunately, the auth process doesn't work on WildFly (and I must use it as production AS): the IdP performs the AuthN process and the instructions of my custom UserDetails implementation are correctly executed. Despite that Spring doesn't set up the privileges for the current user.
    By debugging, I checked that the problem starts from FilterChainProxy class. When I run the webapp on WildFly, I can see that the attribute FILTER_APPLIED from ServletRequest is null, thus Spring clears the SecurityContextHolder.
    This is my security configuration: WebSecurityConfig.java (with another conf class: SAMLConfig.java)
    How can I fix this problem?
    Regards, V.
    Also on: http://stackoverflow.com/questions/23559866/integrating-spring-boot-and-saml

    DB:2.62:Integrating Wildfly And Spring Secuirty: Filter Chain Proxy Issue 83


    how does your filter mapping look like?

    as looking at your code i could not find anything that would look like it.

    you are doing programmatic filter / servlet registration?

  • RELEVANCY SCORE 2.62

    DB:2.62:Vcloud Director Could Not Complete Initialization (After Configuration) mf



    Hello guys,

    i have a Problem with vCD. It doesnt work or display the Website/form.

    I installed vCD on the following System.

    System Configuration:

    RHEL 5 Update 6

    java version "1.6.0_31"

    Created Self Signed Certificate (chmod 777 Certificates.ks, placed in /opt/vmware/vcloud-director/ AND /opt/vmware/vcloud-director/data/transfer)

    NFS Share mounted (16.58.89.96:/NFS-Share on /opt/vmware/vcloud-director/data/transfer type nfs (rw,addr=16.58.89.96)

    [root@vcloud-director run]# service vmware-vcd statusvmware-vcd-watchdog is runningvmware-vcd-cell is dead, but pidfile exists

    The Webside of vCloud Director could not be displayed. as you can see in the Cell.log , vCD could not fully initialize. Everytime he breaks off at 18% !!!!!

    Logfile: cell.log

    Application Initialization: 9% complete. Subsystem 'com.vmware.vcloud.common.core' startedSuccessfully connected to database: jdbc:jtds:sqlserver://sql2008r2.rosebud.local:1433/vcloud;socketTimeout=90;instance=Current locale "en" verified successfully.Successfully bound network port: 443 on host address: 16.58.89.85Successfully bound network port: 61616 on host address: 16.58.89.83Successfully bound network port: 61613 on host address: 16.58.89.83Application Initialization: 18% complete. Subsystem 'com.vmware.vcloud.vlsi-core' startedUncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-8,5,spring-osgi-extender[22dca7d0]-threads]. Message: Error creatingbean with name 'hibernateCacheRegions': Cannot create inner bean 'abstractReplicatedCache$child#16dba1f7' of type [com.vmware.vcloud.common.ehcache.ReplicatedEhCacheFactoryBean] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'abstractReplicatedCache$child#16dba1f7' defined in URL [bundleentry://169.fwk197731637/META-INF/spring/common-persist-context-cache.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL [bundleentry://169.fwk197731637/META-INF/spring/common-persist-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.Application shutdown event: BeginningApplication shutdown event: Application stop requested. Shutting down.

    Is this error caused of JAVA ?

    I am a Linux beginner and totally clueless unfortunately....

    Every help is welcome

    DB:2.62:Vcloud Director Could Not Complete Initialization (After Configuration) mf


    The error messages in your logs look similar to those found in the following post: http://communities.vmware.com/message/2116837#2116837

    They indicate that the encryption information stored on your cell's filesystem does not match the information used to encrypt your database. The above post has the full details, but as it doesn't look like your cell has ever started properly (and you therefore haven't generated any data that would be lost in the process), I'd suggest completely wiping your database and starting the configuration process over again.

    nehruchris wrote:

    Created Self Signed Certificate (chmod 777 Certificates.ks, placed in /opt/vmware/vcloud-director/ AND /opt/vmware/vcloud-director/data/transfer)

    This seems odd. I wouldn't expect that your certificates would need to be placed in the data transfer directory.

  • RELEVANCY SCORE 2.61

    DB:2.61:Deploying To Wls 8.1 Sp5 Results In Error: Implicitlyca Not Found 78


    Hi

    pI have a Spring/Hibernate application working fine in Tomcat. When deploying to WLS 8.1 SP5 I get the following error:
    pjava.lang.IllegalArgumentException: ImplicitlyCA not found.
    pI get this error when the Spring framework is trying create a bean for the application's license. When I exclude the license bean and the related code from the application the deployment is fine.
    p Can anybody please help? Thanks.
    p
    pPart of the stacktrace:
    p ERROR ContextLoader:205 - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanfinder' defined in ServletContext resource [WEB-INF/spring/configs/emars-context.xml]: Cannot resolve reference to bean 'userLic' while setting bean property 'userLic'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userLic' defined in ServletContext resource [WEB-INF/spring/configs/emars-context.xml]: Initialization of bean failed; nested exception is java.lang.Exception: com.synapsistech.emars.exceptions.EmarsLicException: License Error: ImplicitlyCA not found.; nested exception is java.lang.IllegalArgumentException: ImplicitlyCA not found.

    DB:2.61:Deploying To Wls 8.1 Sp5 Results In Error: Implicitlyca Not Found 78

    Hi

    pI have a Spring/Hibernate application working fine in Tomcat. When deploying to WLS 8.1 SP5 I get the following error:
    pjava.lang.IllegalArgumentException: ImplicitlyCA not found.
    pI get this error when the Spring framework is trying create a bean for the application's license. When I exclude the license bean and the related code from the application the deployment is fine.
    p Can anybody please help? Thanks.
    p
    pPart of the stacktrace:
    p ERROR ContextLoader:205 - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanfinder' defined in ServletContext resource [WEB-INF/spring/configs/emars-context.xml]: Cannot resolve reference to bean 'userLic' while setting bean property 'userLic'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userLic' defined in ServletContext resource [WEB-INF/spring/configs/emars-context.xml]: Initialization of bean failed; nested exception is java.lang.Exception: com.synapsistech.emars.exceptions.EmarsLicException: License Error: ImplicitlyCA not found.; nested exception is java.lang.IllegalArgumentException: ImplicitlyCA not found.

  • RELEVANCY SCORE 2.61

    DB:2.61:Stackoverflowerror c8



    Got following error while running a JSFUnit test. The environment was using JSF/Spring integration. Putting the spring

    listener-classorg.springframework.web.context.request.RequestContextListener

    in web.xml caused the issue. Following is the stacktrace, full trace is also attached. Right now not using RequestContextListener but looks like this exception should not happen anyways.

    Caused by: java.lang.StackOverflowError

    at org.jboss.jsfunit.context.JSFUnitExternalContext.getRequestCharacterEncoding(JSFUnitExternalContext.java:372)

    at org.jboss.jsfunit.context.JSFUnitHttpServletRequest.getCharacterEncoding(JSFUnitHttpServletRequest.java:221)

    at org.jboss.jsfunit.context.JSFUnitExternalContext.getRequestCharacterEncoding(JSFUnitExternalContext.java:372)

    at org.jboss.jsfunit.context.JSFUnitHttpServletRequest.getCharacterEncoding(JSFUnitHttpServletRequest.java:221)

    at org.jboss.jsfunit.context.JSFUnitExternalContext.getRequestCharacterEncoding(JSFUnitExternalContext.java:372)

    at org.jboss.jsfunit.context.JSFUnitHttpServletRequest.getCharacterEncoding(JSFUnitHttpServletRequest.java:221)

    DB:2.61:Stackoverflowerror c8


    This is the one source file that changed:

    http://anonsvn.jboss.org/repos/jsfunit/trunk/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java

    For reference: https://issues.jboss.org/browse/JSFUNIT-277

    Let me know if that works for you. Thanks for reporting the bug.

    Stan

  • RELEVANCY SCORE 2.61

    DB:2.61:How To Import Osgi Blueprint Xml sj



    I am trying to import an OSGI blueprint xml file in to another OSGi blueprint xml file.

    e.g.: blueprint1.xml:

    This works for spring but not for blueprint.

    Does anybody know a way of doing this in OSGi blueprint xml files?

    Thanks.

  • RELEVANCY SCORE 2.60

    DB:2.60:Getting Java.Lang.Unsupportedoperationexception: Naming Context Is Read-Only 9x



    I am getting exception java.lang.UnsupportedOperationException while creating my own JMX MBean server.

    This is working fine in jboss 4.2.3.

    18:21:09,127 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [ext.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Naming context is read-only

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-2.5.6.jar:]

    at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_11]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) [spring-2.5.6.jar:]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [spring-2.5.6.jar:]

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) [spring-2.5.6.jar:]

    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) [spring-2.5.6.jar:]

    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) [spring-2.5.6.jar:]

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-2.5.6.jar:]

    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_11]

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_11]

    at java.lang.Thread.run(Thread.java:619) [:1.6.0_11]

    Caused by: java.lang.UnsupportedOperationException: Naming context is read-only

    at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:227)

    at javax.naming.InitialContext.rebind(InitialContext.java:408) [:1.6.0_11]

    at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:623) [:1.6.0_11]

    at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412) [:1.6.0_11]

    at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:168) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [spring-2.5.6.jar:]

    ... 24 more

    But as the exception suggests is Creating own JMX MBean server not supported in this version of jboss?

    Attaching the spring xml

    DB:2.60:Getting Java.Lang.Unsupportedoperationexception: Naming Context Is Read-Only 9x


    I believe that this is talking about the component/module/app/global environment naming contexts (as in java:comp/env/...), not JNDI in general.

    After doing a bit of homework I can see that the OP is trying to bind an RMIJRMPServerImpl stub into JNDI with the name:

    rmi://localhost:3309/myrmi

    It would seem to be a bug if this fails.

  • RELEVANCY SCORE 2.60

    DB:2.60:Null Exception When Using Ha-Broadcast Adapter 1s


    Getting a strange error when using the full ha-inbound / ha-broadcast adapter combination:
    *Oct 5, 2010 5:50:12 PM EDT Warning Channel BEA-000000 Exception for 'null' raised by listener = com.oracle.cep.cluster.ha.adapter.BroadcastQueueTrimmingAdapter@f624cfb java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap*

    There are events being processed, but this pops up every 50-100 events or so. When I remove the ha-inbound/ha-broadcast adapters, no errors.

    Not sure if this is a config error or a bug with the product. I've included all of the relevant files below. Any thoughts?

    Thanks -- Jim L.

    Spring File:
    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd"

    wlevs:event-type-repository
    wlevs:event-type type-name="XMPPMessageEvent"
    wlevs:classcom.enernoc.cep.message.event.XMPPMessageEvent/wlevs:class
    /wlevs:event-type
    wlevs:event-type type-name="IntervalReadingEvent"
    wlevs:classcom.enernoc.cep.message.event.IntervalReadingEvent/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    !-- Password for XMPP Server is encrypted using Enigma --
    wlevs:adapter id="XMPPMessageAdapter" class="com.enernoc.cep.message.adapter.XMPPMessageAdapter"
    wlevs:instance-property name="hostName" value="talk.enernoc.net"/
    wlevs:instance-property name="userName" value="oracep"/
    wlevs:instance-property name="userPwd" value="HKVJqLcX9D4="/
    wlevs:instance-property name="waitTime" value="15"/
    wlevs:instance-property name="diagnostics" value="false"/
    wlevs:listener ref="HAInputAdapter"/
    /wlevs:adapter

    wlevs:adapter id="HAInputAdapter" provider="ha-inbound"
    wlevs:instance-property name="keyProperties" value="packetId"/
    wlevs:instance-property name="timeProperty" value="arrivalTime"/
    wlevs:instance-property name="eventType" value="XMPPMessageEvent"/
    /wlevs:adapter

    wlevs:channel id="XMPPMessageChannel"
    event-type="XMPPMessageEvent"
    max-threads="3"
    max-size="2048"
    wlevs:listener ref="MessageParsingAdapter"/
    wlevs:source ref="HAInputAdapter"/
    wlevs:application-timestamped
    wlevs:expressionarrivalTime/wlevs:expression
    /wlevs:application-timestamped
    /wlevs:channel

    wlevs:adapter id="MessageParsingAdapter" class="com.enernoc.cep.message.adapter.MessageParsingAdapter"
    wlevs:instance-property name="messageParsingInterface" ref="MessageParsingBean"/
    /wlevs:adapter

    bean id="MessageParsingBean" class="com.enernoc.cep.message.impl.powertalk.v1.MessageParsingBean"/

    wlevs:channel id="MessageParsingChannel"
    event-type="IntervalReadingEvent"
    max-threads="3"
    max-size="2048"
    wlevs:listener ref="IntervalReadingProcessor" /
    wlevs:source ref="MessageParsingAdapter"/
    /wlevs:channel

    wlevs:processor id="IntervalReadingProcessor"/

    wlevs:channel id="MessageProcessorChannel"
    event-type="IntervalReadingEvent"
    max-threads="3"
    max-size="2048"
    wlevs:listener ref="HABroadcastAdapter"/
    wlevs:source ref="IntervalReadingProcessor"/
    /wlevs:channel

    wlevs:adapter id="HABroadcastAdapter" provider="ha-broadcast"
    wlevs:listener
    bean class="com.enernoc.cep.message.test.MessageTestBean"/
    /wlevs:listener
    wlevs:instance-property name="keyProperties" value="packetId"/
    /wlevs:adapter

    /beans

    HA-Inbound config file:
    ?xml version="1.0" encoding="UTF-8"?
    n1:config
    xmlns:n1="http://www.bea.com/ns/wlevs/config/application"
    xmlns:ha="http://www.oracle.com/ns/cep/config/cluster"
    ha:ha-inbound-adapter
    nameHAInputAdapter/name
    heartbeat units="millis"500/heartbeat
    batch-size2/batch-size
    /ha:ha-inbound-adapter
    /n1:config

    HA-Broadcast config file:
    ?xml version="1.0" encoding="UTF-8"?
    n1:config
    xmlns:n1="http://www.bea.com/ns/wlevs/config/application"
    xmlns:ha="http://www.oracle.com/ns/cep/config/cluster"
    ha:ha-broadcast-adapter
    nameHABroadcastAdapter/name
    trimming-interval units="events"10/trimming-interval
    warm-up-window units="minutes"10/warm-up-window
    /ha:ha-broadcast-adapter
    /n1:config

    Processor Config File:
    ?xml version="1.0" encoding="UTF-8"?
    n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application"
    processor
    nameIntervalReadingProcessor/name
    rules
    query id="TestQuery"
    ![CDATA[select * from MessageParsingChannel]]
    /query
    /rules
    /processor
    /n1:config

    DB:2.60:Null Exception When Using Ha-Broadcast Adapter 1s

    Do you have a fuller stacktrace? I can only find one place in the code where this class is referenced, and it looks like all is in order there.

    andy

  • RELEVANCY SCORE 2.60

    DB:2.60:Package Uniqueness Required For Cxf Web Services? kp



    I am running apache-servicemix-4.3.0-fuse-02-00 and prototyping web service functionality using CXF. I have a couple fairly straightforward questions, but need to provide some background first.

    I have an OSGi bundle (Maven2/Spring JDBC) which connects to a database and is exposed as an OSGi service:

    lt;osgi:service ref="emailDAO" auto-export="all-classes" /gt;

    It deploys correctly and everything looks good.

    I then decided to write two different CXF web service bundles which use the OSGi bundle (above) for database lookups. The first service was a Java-first approach using annotations (CXF/Spring/Maven2/OSGi). The second was a WSDL-first approach (CXF/Spring/Maven2/OSGi). When deployed separately, each web service bundle installs and starts correctly and gets a reference to the database connection bundle; all is good.

    lt;osgi:reference id="emailDAO" bean-name="emailDAO" interface="edu.umn.arch.data.EmailDAO" /gt;

    ...

    lt;import resource="classpath:META-INF/cxf/cxf.xml" /gt;
    lt;import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /gt;
    lt;import resource="classpath:META-INF/cxf/cxf-extension-http.xml" /gt;
    lt;import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" /gt;

    lt;bean name="emailServiceBean" class="edu.umn.arch.service.impl.EmailServiceImpl"gt;
    lt;property name="emailDataAccessor" ref="emailDAO" /gt;
    lt;/beangt;

    lt;jaxws:endpoint id="emailWSDLService"
    implementor="#emailServiceBean"
    address="/EmailService" /gt;...

    The problem comes when I try to install both the Java-first and the WSDL-first CXF services at the same time. Whichever one is installed second automatically spews a screen of ClassNotFoundException stack traces. The one commonality between the two bundles is that they use the same package names (edu.umn.arch.service / edu.umn.arch.service.impl). The bean names and implementation classes are different between the two projects (so the Spring bean definitions and jaxws endpoints are named differently). Because they each work independently, but can't seem to co-exist without class loader issues, I'm guessing this has something to do with a package name collision when resolving the spring bean definitions. So here are my questions:

    (1) Can two bundles use the same package names? (Is this a Spring thing or an OSGi thing?)

    (2) Are there any other reasons I might see the ClassNotFoundException for whichever is installed second? (Remember that each bundle works just fine when deployed by itself).

    (3) Is there a 'fix' that might clean up whatever the classpath issue is? What am I missing?

    THANKS!

    DB:2.60:Package Uniqueness Required For Cxf Web Services? kp


    Thanks! While unexpected, at least now the issue makes sense and I can come up with naming conventions to avoid collisions.

  • RELEVANCY SCORE 2.59

    DB:2.59:Fuse Esb 4.X And Web Application ? f8



    Hi,

    I would like to know if the Fuse strategy is also to provide a Web 'OSGI' Container (jetty, tomcat) to allow (like this is possible with Spring DM Server) to web application (or web application using others osgi bundles where business logic has been defined) to run top of Fuse ESB 4.x ?

    Regards,

    Charles Moulliard

    SOA Architect

    Xpectis

    DB:2.59:Fuse Esb 4.X And Web Application ? f8


    Hi,

    I would like to know if the Fuse strategy is also to provide a Web 'OSGI' Container (jetty, tomcat) to allow (like this is possible with Spring DM Server) to web application (or web application using others osgi bundles where business logic has been defined) to run top of Fuse ESB 4.x ?

    Regards,

    Charles Moulliard

    SOA Architect

    Xpectis

  • RELEVANCY SCORE 2.59

    DB:2.59:Osgi Implementation cz



    Hello,

    I have an application running in Fuse 4.3.1 and I am currently evaluating the impact of migrating to 4.4.1.

    I noticed that in 4.3.1, the default OSGI implementation is Equinox. But in 4.4.1, OSGI implementation is Felix.

    Can anybody tell me why the default implementation changed (I know that Fuse supports both, but I am still curious ...).

    Thanks a lot,

    Best regards

    A.

    DB:2.59:Osgi Implementation cz


    L.S.,

    I guess the main reason is supportability - we already have people that are active in the Apache Felix community, which makes it a lot easier to get bugs fixed or improvements added to the codebase there.

    Regards,

    Gert Vanthienen

  • RELEVANCY SCORE 2.59

    DB:2.59:Noclassdefinition Found Error While Running Spring Appn 8c


    Hi Techies,
    I got th following error while running the Spering application on the browser

    HTTP Status 500 -

    --------------------------------------------------------------------------------

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Servlet.init() for servlet SpringApp1 threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:534)

    root cause

    java.lang.NoClassDefFoundError: org/springframework/context/support/ResourceEntityResolver
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:80)
    org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)
    org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:303)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:250)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:219)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:111)
    javax.servlet.GenericServlet.init(GenericServlet.java:211)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:534)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.

    Specification used by me while running the appn
    Tomcat 5.0.27
    j2sdk1.4.2
    Spring 2.0

    Can anyone tell me the reason behind that plz?Is very urgent for me

    DB:2.59:Noclassdefinition Found Error While Running Spring Appn 8c

    Hi Techies,
    I got th following error while running the Spering application on the browser

    HTTP Status 500 -

    --------------------------------------------------------------------------------

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Servlet.init() for servlet SpringApp1 threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:534)

    root cause

    java.lang.NoClassDefFoundError: org/springframework/context/support/ResourceEntityResolver
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:80)
    org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)
    org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:303)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:250)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:219)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:111)
    javax.servlet.GenericServlet.init(GenericServlet.java:211)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:534)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.

    Specification used by me while running the appn
    Tomcat 5.0.27
    j2sdk1.4.2
    Spring 2.0

    Can anyone tell me the reason behind that plz?Is very urgent for me

  • RELEVANCY SCORE 2.59

    DB:2.59:Osgi Console And List Command. da



    smx@root:osgilist

    ID State Spring Level Name

    ...

    What does the Spring Column mean?

  • RELEVANCY SCORE 2.59

    DB:2.59:Osgi And Cdi/Weld Usage j3



    I have found the weld-osgi project here: https://github.com/mathieuancelin/weld-osgi

    I already tried to use the stuff, but wasn't able to get it running and finally I have no more ideas what to do to make it work.

    I am using Maven to build my OSGi projects and I am trying to implement an OSGi Service like:

    @Published

    public class ServiceImpl implements Service{

    // code

    }

    This service should be useable in a hybrid web application(OSGi enabled EE6 web app) like this:

    public class Bean{

    @Inject @OSGiService private Service service;

    // code

    }

    Where can I find the needed jars/dependencies to make this work?

    DB:2.59:Osgi And Cdi/Weld Usage j3


    I have found the weld-osgi project here: https://github.com/mathieuancelin/weld-osgi

    I already tried to use the stuff, but wasn't able to get it running and finally I have no more ideas what to do to make it work.

    I am using Maven to build my OSGi projects and I am trying to implement an OSGi Service like:

    @Published

    public class ServiceImpl implements Service{

    // code

    }

    This service should be useable in a hybrid web application(OSGi enabled EE6 web app) like this:

    public class Bean{

    @Inject @OSGiService private Service service;

    // code

    }

    Where can I find the needed jars/dependencies to make this work?

  • RELEVANCY SCORE 2.58

    DB:2.58:Unit Testing Osgi Configuration Properties In Spring p8



    Hi,

    I was reading one of the documents for using OSGi configuration properties in Spring (http://fusesource.com/docs/esbent/7.0/esb_deploy_osgi/DeployCamel-OsgiConfigProps.html) and I wanted to know how can I add this to my unit testing? I was able to mock the OSGi configuration properties in blueprint unit testing but I can't seem to find documentation how to do it in Spring unit testing.

    Thanks.

    DB:2.58:Unit Testing Osgi Configuration Properties In Spring p8


    Hi,

    I was reading one of the documents for using OSGi configuration properties in Spring (http://fusesource.com/docs/esbent/7.0/esb_deploy_osgi/DeployCamel-OsgiConfigProps.html) and I wanted to know how can I add this to my unit testing? I was able to mock the OSGi configuration properties in blueprint unit testing but I can't seem to find documentation how to do it in Spring unit testing.

    Thanks.

  • RELEVANCY SCORE 2.58

    DB:2.58:Spring And Jboss As7 1m



    I have been working on migrating an application that utilizes spring 2.5.6 and runs on a Jetty server instance over to JBoss AS 7. This so far has not been an easy task. I started at AS 6 and have jumped to AS 7 with more success. However I am hitting an issue loading my spring context files that has to do with depencies.

    Here is the error:

    Initializing Spring root WebApplicationContext

    16:29:33,246 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/accunurse]] (MSC service thread 1-7

    ) Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoade

    rListener: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resourceQueueService'

    : Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Err

    or creating bean with name 'queueProcessorChain' defined in ServletContext resource [/WEB-INF/spring/context-queue.xml]:

    Cannot resolve reference to bean 'queueSelfHarmService' while setting constructor argument with key [15]; nested except

    ion is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queueSelfHarmService': In

    jection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error c

    reating bean with name 'pageSender': Injection of resource methods failed; nested exception is org.springframework.beans

    .factory.NoSuchBeanDefinitionException: No unique bean of type [com.vocollecthealthcare.yosemite.device.DeviceDatastore]

    is defined: Unsatisfied dependency of type [interface com.vocollecthealthcare.yosemite.device.DeviceDatastore]: expecte

    d at least 1 matching bean

    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnno

    tationBeanPostProcessor.java:305) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap

    ableBeanFactory.java:998) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap

    ableBeanFactory.java:472) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBea

    nFactory.java:409) [spring-2.5.6.jar:]

    at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_25]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab

    leBeanFactory.java:380) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spri

    ng-2.5.6.jar:]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis

    try.java:222) [spring-2.5.6.jar:]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring

    I am not sure why I am getting this in JBoss. The spring context files work fine on the Jetty server why doesn't it work in JBoss. Do I need some additional JBoss specific mappings somewhere? All documentation seems to point at older JBoss versions and I am not sure where to go from here.

    Also, to deploy in JBoss I am using an exploded war directory structure. My war deploys but doesn't start.

    Any guidance on this would be great.

    DB:2.58:Spring And Jboss As7 1m


    Hi,

    I upgraded from Spring 2.5.6 to Spring 3.1.1.RELEASE and that fixed the issue for me.

    In doing so I made sure to update the DTD spec to Spring 3 in the spring-servlet.xml file.

    The dependencies on ironjacamar needed to be in jboss-deployment-structure.xml too.

    Thanks,

    BK

  • RELEVANCY SCORE 2.58

    DB:2.58:Running Apps Outside A Container 1m


    With the advent of all these new frameworks like Spring for dependency injection and hibernate, one has the choice to run inside our outside a container like websphere app server. So if you decide to run your application outside a container using spring application container and spring service abstractions, while for DB interaction you use Hibernate. In such a case what would be the obvious drawbacks in your opinion.

    In short what are the pros and cons of running an application within or outside an application server.

    DB:2.58:Running Apps Outside A Container 1m

    I think the common wisdom - even amongst theSpring
    architects - is that if you have distributed
    transactions going on, EJB is still the best
    solution. there are many ways to use Spring, onlyone
    of which is to replace an applicationserver.
    all the abstractions, such as the JDBC one thatyou
    mentioned, are just ready-built to save you the
    effort of building one yourself. likewise, Spring
    ships with a superset of Struts, support forvarious
    lightweight remoting libraries and various other
    abstractions. I think of Spring like people thinkof
    Struts. it just does some of the more mundane work
    for you. there's nothing to stop you using it witha
    container like JbossIs this based on certain experiences or otherwise?
    The reason I am asking this is since based on my
    understanding, and please correct me if I am wrong,
    there is automatic integration with Spring's
    declarative transaction management abstraction,
    which allows you to switch transaction management
    strategies and/or transaction demarcation policies
    without effecting application code. By using
    Spring's TX management, you gain a good deal of
    power for expressing transactional units of work:
    support for all six standard transaction propagation
    behaviors, standard isolation levels, a declarative
    readOnly optimization capability, support for
    transaction timeouts, and support for transaction
    suspension with local transactions (as well as
    nested transactions with savepoints)--all with a
    non-invasive, PlainOldJavaObject programming model.yep. Spring lets you swap declarative TX strategies transparently. all of these services are delivered via an AOP framework, it's nice and easy to change most of what's being used without much fuss. at the moment, we're not really making much use of Spring, basically the Hibernate abstraction, the IoC container and we use its AOP for logging and arbitrary metrics. I wouldn't like to wax lyrical about how good the TX support is as I haven't really used it, but all the reports are very positive. the good thing is, you can easily give Spring a try, and drop it without any code changes if it's not up to your job

  • RELEVANCY SCORE 2.58

    DB:2.58:Jboss 5 As Plugin/Bundle Inside Another Osgi-Implementatin - d3



    Hello,don't know if it's the right place here - but we have an osgi-problem with jboss 5....Due to the absence of an embeded jboss we are trying to boot the whole jboss 5 as a single plugin inside of an rcp-application (=equinox-osgi implementation). Already fixed follwoing problems:- made vfs urls known to the osgi implementation- made withe-spaces in path working- ugly hacked some classloading issueswe encounter now some (strange) problem of type:

    2009-04-09 13:18:52,170 INFO [STDOUT] (Thread-12) While loading class "com.arjuna.ats.internal.arjuna.recovery.TransactionStatusConnector",
    thread "Thread[Thread-12,5,main]" timed out waiting (5000ms) for thread "Thread[Start Level Event Dispatcher,5,main]" to finish starting bundle initial@reference:file:plugins/com.qualitype.genoproof.rcp.server_1.0.0/ [3]".To avoid deadlock, thread "Thread[Thread-12,5,main]" is proceeding but "com.arjuna.ats.internal.arjuna.recovery.TransactionStatusConnector" may not be fully initialized.

    DB:2.58:Jboss 5 As Plugin/Bundle Inside Another Osgi-Implementatin - d3


    should be possible to boot up jboss inside of another osgi-implementationThis is currently not supported.

  • RELEVANCY SCORE 2.58

    DB:2.58:Osgi Vs Serviceloader (Spi) 97


    Hi all,

    I'm new to OSGi (interested to spring-osgi) but before spending time to test spring-dm-server I would like to be sure to understand OSGi outcome. After reading and comparing Java ServiceLoader (http://java.sun.com/developer/technicalArticles/javase/extensible/) to OSGi, I'm interested to share some of my thought to have feedbacks.

    Context: Build a modular server application (exposing services using RMI). Using OSGi: modules are OSGi bundles (jar). Using ServiceLoader: modules are Service Provider (jar) related to module interface (SPI).

    In both case modules are jar files which are dynamically loaded but with the following difference:
    * OSGi allows bundle to use different version of a single library into different bundles (ClassLoader segmentation) while ServiceLoader are related to a single ClassLoader - the same library version is used along the whole application
    * OSGi handle bundle collaboration (dependencies) and dynamically manage their loading (life cycle management)
    * OSGi provides bundle version checks (dynamically) for compatibility purpose while Service Providers are designed for a specific SPI without any version number requirements

    Is that right and/or is there other big differences ?

    Thanks in advance,

    Joel

    DB:2.58:Osgi Vs Serviceloader (Spi) 97

    Hi all,

    I'm new to OSGi (interested to spring-osgi) but before spending time to test spring-dm-server I would like to be sure to understand OSGi outcome. After reading and comparing Java ServiceLoader (http://java.sun.com/developer/technicalArticles/javase/extensible/) to OSGi, I'm interested to share some of my thought to have feedbacks.

    Context: Build a modular server application (exposing services using RMI). Using OSGi: modules are OSGi bundles (jar). Using ServiceLoader: modules are Service Provider (jar) related to module interface (SPI).

    In both case modules are jar files which are dynamically loaded but with the following difference:
    * OSGi allows bundle to use different version of a single library into different bundles (ClassLoader segmentation) while ServiceLoader are related to a single ClassLoader - the same library version is used along the whole application
    * OSGi handle bundle collaboration (dependencies) and dynamically manage their loading (life cycle management)
    * OSGi provides bundle version checks (dynamically) for compatibility purpose while Service Providers are designed for a specific SPI without any version number requirements

    Is that right and/or is there other big differences ?

    Thanks in advance,

    Joel

  • RELEVANCY SCORE 2.58

    DB:2.58:Spring-Osgi dz



    Hi all,

    I'm using SMX 4.3.1 and i have a WAR deployed in SMX and it work fine!

    For that i need to use OsgiBundleXmlWebApplicationContext class that is in spring-osgi-core (version 1.2.1) to start web.xml configurations.

    spring-osgi and all related jars (spring-osgi-web,spring-osgi-io,spring-osgi-web-extender) use Spring 2.5.6.SEC01 version (referenced in pom.xml) and this forces me to use Spring 2.5.6.SEC01 in all my related bundles i use with the WAR, other way the Flex Servlet inside the WAR doesn't even start.

    spring-osgi is from 2009, it is possible to be updated soon? Maybe for Spring 3.0.5.RELEASE?

    Regards!

    Pedro Arajo

    ---

    twitter: jpedroraraujo

    Edited by: pedroprodigy on Feb 15, 2011 4:57 PM

    DB:2.58:Spring-Osgi dz


    SMX 4.3 can deploy plain WAR files, so you dont need any OsgiBundleXmlWebApplicationContext or the likes. Just develop your WAR files as you would do when deploying that on, eg Apache Tomcat.

    Then you use the war prefix when deploying the war file

    http://fusesource.com/docs/esb/4.3.1/esb_deploy_osgi/UrlHandlers-War.html

    eg

    osgi:install war:file:/pathToMyFile/myfile.war

    And you can use Webapp-Context option to define the web context to be used.

  • RELEVANCY SCORE 2.57

    DB:2.57:Response Already Commited Exception While Displaying Image Outside War File s3


    My application contains a JSF page, which is bound to a Spring bean. The UI components state of the JSF page is provided by the Spring bean properties (This means the Spring bean is the backing bean of the JSF page) . My problem is the JSF page also contains a graphicImage meant to display image stored outside the WAR file.

    I tried using the ImageServlet that streams the image to the HttpServletResponse as suggested in:

    http://balusc.blogspot.com/2007/04/imageservlet.html However, I receive a Response Already commited exception. I guess this is because the Faces servlet has already sent back a response based on the other UI component values and the ImageServlet is then trying to repeat that. Please suggest how to handle this

    DB:2.57:Response Already Commited Exception While Displaying Image Outside War File s3

    jlrocky wrote:
    h:graphicImage value="image?file=#{springDaoRef.imageName}url=#{springDaoRef.imageUrl}" width="100" You're just using a servlet?

    java.lang.NullPointerException
    at net.time2know.classes.ImageServlet.processRequest(ImageServlet.java:106)That's not a 'Response already committed' exception. Some object reference at line 106 of ImageServlet.java is null while your code is trying to access/invoke it.

    I am assuming that the image request is going through the FacesServlet. But now my question is how to inform JSF that the response is complete (via FacesContext.responseComplete()) which will enable the ImageServlet to send the image response?It look like that it is not mapped on the FacesServelt at all. I assumed that you actually got a 'Response already committed' exception. A reasonable cause would be that you're handling the response yourself inside the FacesContext. Which is not the case after all.

  • RELEVANCY SCORE 2.57

    DB:2.57:Why Spring And Osgi In Cep? jm


    Hi,

    I would like to understand the relevance/importance of Spring and OSGi in Oracle CEP. Documentation is helpful to an extent, but I would want someone explain this in simple terms.

    Thanks Regards,
    CC

    DB:2.57:Why Spring And Osgi In Cep? jm

    Hi,

    I can explain this briefly. Spring is the basis for the programming model in Oracle CEP. What this means is that an Oracle CEP application is a Spring application, or more specifically a Spring DM application. So, developers that are familiar with Spring will find that they can use virtually all of their Spring skill set when creating CEP applications.

    OSGi is less visible to CEP developers. OSGi provides modularity for the underlying implementation of the CEP product which helps to make it a lightweight stack and also helps keep the complexity of the product under control overtime as the product evolves.

    Lots more I could say, but I hope that answers your basic question.

    Regards,
    Seth

  • RELEVANCY SCORE 2.56

    DB:2.56:Exception While Integrating Spring And Jboss 5.01 As cs



    I read and followed the instruction outlined by Ales Justin to integrate Jboss and spring. I am using Jboss 5.01 and Spring 2.5.Here is what I did.1) I copied jboss-spring-jdk5.deployer into JBOSS_HOME/server/deploy directory and the directory contains the follwoing:
    jboss-spring-jdk5.deployer/

    jboss-spring-jdk5.jar
    META-INF/
    jboss-service.xml
    spring-aop.jar
    spring-beans.jar
    spring-context.jar
    spring-core.jar

    DB:2.56:Exception While Integrating Spring And Jboss 5.01 As cs


    The source is here: - http://anonsvn.jboss.org/repos/jbossas/trunk/spring-int/src/test/It might be that my example code is a bit outdated,as I think EJB3 naming convention has changed since.

  • RELEVANCY SCORE 2.56

    DB:2.56:Tablesourcenotfoundexception - Possible Cause: No Queries Registered Aga... pj


    Hi people,

    I've installed the CEP 11.1.3 on Windows XP environment and i succesfully deployed HelloWorld application. Then, i decided to develop new HelloWorld application. I created an adapter and a processor, then i linked them with input channel. After that, i created a bean and then linked processor and bean with a output channel.

    Then, i had exported my application as jar file and deployed it from CEP Visualizer in browser, i am getting this error consistently :

    *Jul 27, 2010 1:51:44 PM EEST Warning Ede BEA-000000 Exception for 'com.turkcelltech.cep.event.GSMEvent@2499617' raised by listener = com.oracle.cep.processor.cql.impl.CQLEventReceiver@243cda2*
    *com.bea.wlevs.ede.api.EventProcessingException: Internal error processing event [com.turkcelltech.cep.event.GSMEvent@2499617] = TableSource not found for table: inputChannel. Possible cause: no queries registered against: inputChannel*
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEventReceiver.java:389)
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLEventReceiver.java:248)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventInterceptor.java:160)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:133)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:480)
    at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java:439)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(EventSourceEventSenderImpl.java:86)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventInterceptor.java:160)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:133)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:480)
    at com.turkcelltech.cep.adapter.gsmAdapter.run(gsmAdapter.java:34)
    at com.turkcelltech.cep.adapter.gsmAdapter$$FastClassByCGLIB$$854acabc.invoke(generated)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerAccessorProxy.java:30)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    at com.turkcelltech.cep.adapter.gsmAdapter$$EnhancerByCGLIB$$62c19860.run(generated)
    at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:118)
    at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Caused By: oracle.cep.exceptions.TableSourceNotFoundException: TableSource not found for table: inputChannel. Possible cause: no queries registered against: inputChannel
    at oracle.cep.jdbc.CEPPreparedStatement.executeDML(CEPPreparedStatement.java:932)
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEventReceiver.java:374)
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLEventReceiver.java:249)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventInterceptor.java:160)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:133)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:480)
    at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java:439)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(EventSourceEventSenderImpl.java:86)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventInterceptor.java:160)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:133)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:79)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:480)
    at com.turkcelltech.cep.adapter.gsmAdapter.run(gsmAdapter.java:34)
    at com.turkcelltech.cep.adapter.gsmAdapter$$FastClassByCGLIB$$854acabc.invoke(generated)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerAccessorProxy.java:30)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    at com.turkcelltech.cep.adapter.gsmAdapter$$EnhancerByCGLIB$$62c19860.run(generated)
    at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:118)
    at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    I could have not solved this issue for two days. I think i missed some tiny point.

    My EPN assembly file is :

    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd"




    wlevs:event-type-repository
    wlevs:event-type type-name="GSMEvent"
    wlevs:classcom.turkcelltech.cep.event.GSMEvent/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    wlevs:adapter id="gsmAdapter" class="com.turkcelltech.cep.adapter.gsmAdapter"
    /wlevs:adapter

    wlevs:channel id="inputChannel" event-type="GSMEvent"
    wlevs:listener ref="NetworkEventProcessor" /
    wlevs:source ref="gsmAdapter" /
    /wlevs:channel

    wlevs:processor id="NetworkEventProcessor"/

    wlevs:channel id="outputChannel" event-type="GSMEvent"
    wlevs:listener
    bean class="com.turkcelltech.cep.bean.gsmBean"/
    /wlevs:listener
    wlevs:source ref="NetworkEventProcessor"/
    /wlevs:channel

    /beans And, processor xml is below :

    ?xml version="1.0" encoding="UTF-8"?
    wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    processor
    nameNetworkEventProcessor/name
    rules
    query id="ExampleQuery"
    ![CDATA[ select * from inputChannel where 1=1]]
    /query
    /rules
    /processor
    /wlevs:configThanks for responses.

    DB:2.56:Tablesourcenotfoundexception - Possible Cause: No Queries Registered Aga... pj

    I will be preparing a request for metalink unless i missed some points.

    Edited by: crazy78 on Jul 27, 2010 6:43 AM

  • RELEVANCY SCORE 2.56

    DB:2.56:Module Classloading Problems With Jboss-Deployment-Structure.Xml In .Ear File md


    Hi,

    I am trying to deploy ear which contains single war which depends on resteasy, cxf, spring and IBatis I am trying to use resteasy and cxf dependencies provided by jboss eap module. For spring integration I create another module 'org.springframework.spring' to fix XML schema validation, as suggested in other forum threads. I was able to deploy it succesfully on JBoss EAP 6.0.1 but when I try to call any service I am getting ava.lang.ClassNotFoundException

    Any suggestions?

    The ear structure looks like:
    ------------------------------------------
    META-INF/application.xml
    META-INF/MANIFEST.MF
    META-INF/jboss-deployment-structure.xml
    demo-1.1.21-SNAPSHOT.war

    the war structure looks like:
    ------------------------------------------
    WEB-INF/web.xml
    WEB_INF/lib/ all third party jars and application jars
    WEB_INF/classes/logback.xml
    WEB_INF/classes/cxf-servlet.xml

    --------------------------------------------

    jboss-deployment-strcture.xml
    -----------------------------------------

    jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"

    sub-deployment name="demo-1.1.21-SNAPSHOT.war"

    exclusions

    module name="org.slf4j" /

    module name="org.slf4j.impl" /

    /exclusions

    dependencies

    module name="org.apache.cxf" /

    module name="org.apache.cxf.impl" /

    module name="org.springframework.spring"

    imports

    include path="META-INF**" /

    include path="org**" /

    /imports

    /module

    /dependencies

    local-last value="true" /

    /sub-deployment

    /jboss-deployment-structure

    ExceptionStackTrace:

    ------------------------------------------------------

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionLogDataService' defined in class path resource [DATA_ACCESS_LAYER-data-dao.xml]: Cannot resolve reference to bean 'transactionLogDAOFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionLogDAOFactory' defined in class path resource [DATA_ACCESS_LAYER-data-dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.demo.transaction.logging.dao.impl.oracle.TransactionLogDAOFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/iba

    tis/common/xml/NodeletException

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.context.support.ClassPathXmlApplicationContext.init(ClassPathXmlApplicationContext.java:139) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.context.support.ClassPathXmlApplicationContext.init(ClassPathXmlApplicationContext.java:93) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at com.demo.transaction.logging.DemoTransactionLogging.init(DemoTransactionLogging.java:64) [demo-service-transaction-logging-1.1.21-SNAPSHOT.jar:]

    at com.demo.transaction.logging.DemoTransactionLogging.clinit(DemoTransactionLogging.java:33) [demo-service-transaction-logging-1.1.21-SNAPSHOT.jar:]

    ... 45 more

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionLogDAOFactory' defined in class path resource [DATA_ACCESS_LAYER-data-dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.demo.transaction.logging.dao.impl.oracle.TransactionLogDAOFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/ibatis/common/xml/NodeletException

    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    ... 63 more

    Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.demo.transaction.logging.dao.impl.oracle.TransactionLogDAOFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/ibatis/common/xml/NodeletException

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    ... 72 more

    Caused by: java.lang.NoClassDefFoundError: com/ibatis/common/xml/NodeletException

    at com.demo.transaction.logging.dao.impl.oracle.TransactionLogDAOFactory.init(TransactionLogDAOFactory.java:34) [demo-service-transaction-logging-1.1.21-SNAPSHOT.jar:]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_45]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_45]

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_45]

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_45]

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

    ... 74 more

    Caused by: java.lang.ClassNotFoundException: com.ibatis.common.xml.NodeletException from [Module "org.springframework.spring:main" from local module loader @b0a3f5 (roots: C:\tools\ais-jbosseap6\modules)]

    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

    ... 80 more

    PS: when I exclude all JBoss provided dependencies and use jars from EAR/WAR/WEB-INF/lib every thing works fine. But when I try to use JBoss provided dependencies I am facing the issue.

    DB:2.56:Module Classloading Problems With Jboss-Deployment-Structure.Xml In .Ear File md


    I believe you have missing ibatis module configurations

    I dont know the answer but I can say that new class loader is no better than last one. at least last one had a clear cut strategy put every thing in lib folder and at least one application can work by default with out any conflicts at least in one instance of jboss , not it is kind of nightmare or it may just me not able to understand the class loading model here in the new wild fly .

  • RELEVANCY SCORE 2.56

    DB:2.56:Need Help In Running First Application In Spring mc


    Hi All.

    I need help in running my first small app foloowing spring frame work.....

    I have java 5.0 + eclipse 3.3 spring 2.5 ... i wanna know what i need to set in classpath ....

    how to create run it ... i wanna use eclipse instaed of netbeans.

    Plz help .

    Thanx in advance.

    DB:2.56:Need Help In Running First Application In Spring mc

    In the future, please write proper English and don't use streettalk nor SMS talk.

    Regarding to your question: for the JSF, Eclipse and Tomcat parts you may find this tutorial useful: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html]. For the Spring part, just visit their homepage and read the documents. This one is useful: [http://static.springframework.org/spring/docs/2.0.x/reference/webintegration.html#jsf]. You of course just download the Spring JAR's and put it somewhere in the classpath. The /WEB-INF/lib is usually a good location to put project specific classes in which are to be taken in the classpath.

  • RELEVANCY SCORE 2.56

    DB:2.56:Null Pointer While Installing Drools Spring Jar da



    I am trying to install drools-spring-5.4.0-Final.jar on apache-servicemix-4.4.1-fuse-03-06 .

    It is throwing Null pointer exception.

    Thanks in adv for help.

    DB:2.56:Null Pointer While Installing Drools Spring Jar da


    Hi,

    The default MEM set for FUSE ESB may not be applicable for all cases, you may need adjust it yourself. So edit $FUSE_ESB/bin/servicemix script, change

    JAVA_MAX_PERM_MEM to whatever you need.

    Freeman

  • RELEVANCY SCORE 2.56

    DB:2.56:Spring Roo App Running On Jboss As7 9c



    Hey,

    I have generated a simple web application using spring roo and now i would like to deploy it into Jboss AS7. I've got myself into some troubles, that i don't know how to solve it.

    The application is using spring 3.0.5, spring security 3.0.5 and hibernate 3.6.4. First I have tried to launch that application on Tomcat 7 and even there it wasn't easy.

    I was still reporting an error :

    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]

    Offending resource: file [D:\projekty\diplomka_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\e-library\WEB-INF\classes\META-INF\spring\applicationContext-security.xml]

    I figgured out that for some reason tomcat didn't have spring security libraries, so I had to add them manualy into :

    workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\e-library\WEB-INF\lib\

    Than the application worked, but now i need to run it in JBoss.

    At the first attempt i didn't want to resolve persistence-unit of my META-INF/persistence.xml . So I looked at how to deploy spring app in JBoss and tried to change persistence.xml to look like this:

    persistence xmlns="http://java.sun.com/xml/ns/persistence"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"

    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"

    persistence-unit name="libraryPersistenceUnit"

    transaction-type="JTA"

    providerorg.hibernate.ejb.HibernatePersistence/provider

    jta-data-sourcejava:jboss/datasources/MySQL/jta-data-source

    properties

    property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /

    property name="hibernate.hbm2ddl.auto" value="none" /

    property name="hibernate.connection.charSet" value="UTF-8" /

    property name="jboss.entity.manager.factory.jndi.name"

    value="java:jboss/LibraryEntityManagerFactory" /

    /properties

    /persistence-unit

    /persistence

    and I deleted local datasource from META-INF/spring/applicationContext.xml definition and set it up through jndi on server side ..in standalone.xml.

    datasource jndi-name="java:jboss/datasources/MySQL" pool-name="java:jboss/datasources/MySQL_Pool" enabled="true" jta="true" use-java-context="true" use-ccm="true"

    connection-url

    jdbc:mysql://localhost/e-library

    /connection-url

    driver

    mysql

    /driver

    security

    user-name

    library

    /user-name

    password

    library

    /password

    /security

    /datasource

    drivers

    driver name="mysql" module="com.mysql"/

    driver name="h2" module="com.h2database.h2"

    xa-datasource-class

    org.h2.jdbcx.JdbcDataSource

    /xa-datasource-class

    /driver

    /drivers

    /datasources

    and I also added module com.mysql with mysql driver into modules directory of JBoss AS7.

    and my META-INF/spring/applicationContext.xml looks like this:

    beans xmlns="http://www.springframework.org/schema/beans"

    xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"

    xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"

    context:spring-configured /

    context:component-scan base-package="cz.uhk.library"

    context:exclude-filter expression=".*_Roo_.*"

    type="regex" /

    context:exclude-filter expression="org.springframework.stereotype.Controller"

    type="annotation" /

    /context:component-scan

    tx:jta-transaction-manager /

    jee:jndi-lookup id="entityManagerFactory" jndi-name="LibraryEntityManagerFactory"

    expected-type="javax.persistence.EntityManagerFactory" /

    /beans

    and there is also file META-INF/spring/applicationContext-security.xml which is in attached files.

    Than I runned the app again and got result:

    java.lang.ClassNotFoundException: org.springframework.security.core.userdetails.UserDetails from [Module "deployment.e-library-jboss.war:main" from Service Module Loader]

    I am bit puzzled here, because I thought that maven will provide all defined dependencies in pom.xml, but anyway I have defined moduled for spring security and added jboss-deployment-structure.xml.

    jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"

    deployment

    dependencies

    module name="org.springframework.security.core" slot="3.0.5"

    export="true" /

    module name="org.springframework.security.config" slot="3.0.5"

    export="true" /

    module name="org.springframework.security.web" slot="3.0.5"

    export="true" /

    module name="org.springframework.security.taglibs" slot="3.0.5"

    export="true" /

    /dependencies

    /deployment

    /jboss-deployment-structure

    but, still the app is not running. The lates error is:

    ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/e-library-jboss]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]

    Offending resource: "/D:/installed/jboss-as-7.0.1.Final/standalone/deployments/e-library-jboss.war/WEB-INF/classes/META-INF/spring/applicationContext-security.xml"

    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) [spring-beans-3.0.5.RELEASE.jar:]

    I don't know what I am doing wrong...but it doesn't look like a coincidence that this last error is same as the one I got while deploying it on Tomcat.

    I am sorry if the reason is obvious, I am not any guru in that matter.

    Can anyone help please? If it is necessary I can provide the whole application for testing.

    Thanks in advance!

    DB:2.56:Spring Roo App Running On Jboss As7 9c


    No need to answer that any more. The problem is solved, I was completly wrong. It turned out that I was missing persistence-unit-ref definition in web.xml. I figured that out after I abandoned deploying the app via eclipse and started to do it through CLI. The error message in CLI was more correct that the one in eclipse console.

  • RELEVANCY SCORE 2.56

    DB:2.56:Javacc Files Compile Failure kx



    I (re)moved Scott's initial HeaderValue.jj to another package.And now I get this failure when running root pom.xml -- osgi-int module build:

    C:\projects\microcontainer\osgi-int\src\main\org\jboss\osgi\plugins\metadata\HeaderValueTokenManager.java:[9,7] duplicate class: org.jboss.osgi.plugins.metadata.HeaderValueTokenManager

    C:\projects\microcontainer\osgi-int\target\generated-sources\javacc\org\jboss\vfs\bundle\HeaderValue.java:[19,7] duplicate class: org.jboss.osgi.plugins.metadata.HeaderValue

    C:\projects\microcontainer\osgi-int\target\generated-sources\javacc\org\jboss\vfs\bundle\Token.java:[8,7] duplicate class: org.jboss.osgi.plugins.metadata.Token

    C:\projects\microcontainer\osgi-int\target\generated-sources\javacc\org\jboss\vfs\bundle\HeaderValueConstants.java:[4,7] duplicate class: org.jboss.osgi.plugins.metadata.HeaderValueConstants

    C:\projects\microcontainer\osgi-int\src\main\org\jboss\osgi\plugins\metadata\SimpleCharStream.java:[9,7] duplicate class: org.jboss.osgi.plugins.metadata.SimpleCharStream

    C:\projects\microcontainer\osgi-int\target\generated-sources\javacc\org\jboss\vfs\bundle\ParseException.java:[13,7] duplicate class: org.jboss.osgi.plugins.metadata.ParseException

    C:\projects\microcontainer\osgi-int\target\generated-sources\javacc\org\jboss\vfs\bundle\TokenMgrError.java:[4,7] duplicate class: org.jboss.osgi.plugins.metadata.TokenMgrError

    DB:2.56:Javacc Files Compile Failure kx


    You're right, I added a javacc precompile with IDE external tool which also created .java files, so they were duplicated.Sorry for the trouble. :-(

  • RELEVANCY SCORE 2.55

    DB:2.55:Can Not Log In To The Console Vcloud c7



    I view the current vcloud processes running normally, but see the following error cell.log.How can I solve this problem´╝čthanks everybody

    vcd5.5 redhat6.3

    tail -f cell.log

    uccessfully initialized system cryptography

    Uncaught Exception. Originating thread: Thread[bootstrap-application-1,5,main]. Message: Error creating bean with name 'jobScheduler' defined in URL [bundleentry://137.fwk395702732/META-INF/spring/common-concurrent-bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static org.quartz.Scheduler com.vmware.vcloud.scheduler.impl.QuartzSchedulerFactory.createScheduler(com.vmware.vcloud.common.configuration.ConfigurationService) throws org.quartz.SchedulerException] threw exception; nested exception is java.lang.IllegalStateException: Cannot run without an instance id.

    root@vcd logs]# egrep "\| ERROR" vcloud-container-debug.log

    2013-12-31 13:42:10,284 | ERROR | Spring Context: com.vmware.vcloud.common-util | BrokerService | Failed to resolve localhost |

    2013-12-31 13:42:11,423 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:42:11,539 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:42:11,598 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:43:13,478 | ERROR | Spring Context: com.vmware.vcloud.common-util | BrokerService | Failed to resolve localhost |

    2013-12-31 13:43:14,636 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:43:14,791 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:43:15,030 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:44:15,777 | ERROR | Spring Context: com.vmware.vcloud.common-util | BrokerService | Failed to resolve localhost |

    2013-12-31 13:44:17,141 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:44:17,337 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:44:17,387 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:45:15,353 | ERROR | Spring Context: com.vmware.vcloud.common-util | BrokerService | Failed to resolve localhost |

    2013-12-31 13:45:16,445 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:45:16,552 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:45:16,607 | ERROR | Spring Context: com.vmware.vcloud.common-util | StdSchedulerFactory | Couldn't generate instance Id! |

    2013-12-31 13:46:18,237 | ERROR | Spring Context: com.vmware.vcloud.common-util | BrokerService | Failed to resolve localhost |

    DB:2.55:Can Not Log In To The Console Vcloud c7


    Hi Please have a look at the below article.

    vCloud Startup Issue | VirtualizationExpress

  • RELEVANCY SCORE 2.55

    DB:2.55:How Can I Develop Osgi Web Application Bundle With Struts? kc



    Hello,everyone!

    I can develop simple OSGI WAB in JBoss AS 7.1.1,but when i use struts to build OSGI WAB there were always exceptions in it.

    Kind anyone please tell me how can I develop OSGI WAB with struts?

  • RELEVANCY SCORE 2.55

    DB:2.55:Spring Hibernate Integration Examle.. dz



    Hi,

    I am looking for an example using Spring-Hibernate in OSGI.

    There is an example available using JPA-Hibernate. But my requirement is using

    Spring and Hibernate integration. I am following the annotations. It would be very much helpful if I get any help.

    Any suggestion/link is greatly received.

    Ravi

    DB:2.55:Spring Hibernate Integration Examle.. dz


    Thanks for your reply. I am trying too much to make hibernate work in SMX. Every time facing new issues.

    I will try again. If any issues, I do post again and need your valuable help.

    Ravi

  • RELEVANCY SCORE 2.54

    DB:2.54:Spring Portlet Deployment Problems kk


    I get the following error when trying to deploy a simple spring portlet to Oracle Portal 10.1.4

    Failed to deploy web application Nested exception
    Resolution:

    Base Exception:
    com.evermind.server.rmi.OrionRemoteException
    Class not found: org.springframework.beans.factory.BeanDefinitionStoreException; nested exception is:
    java.lang.ClassNotFoundException: org.springframework.beans.factory.BeanDefinitionStoreException. Class not found: org.springframework.beans.factory.BeanDefinitionStoreException; nested exception is:
    java.lang.ClassNotFoundException: org.springframework.beans.factory.BeanDefinitionStoreException

    Can anyone help?

    DB:2.54:Spring Portlet Deployment Problems kk

    I am using the IDE is JDeveloper 10.1.2 and spring framework 2.5.1 using server is oracle application server10g. so,how can i deploy the jdeveloper with spring framework

  • RELEVANCY SCORE 2.54

    DB:2.54:Error While Incorporating Spring With Flex In Tomcat f8


    Hi i am getting following error while incroporating spring with flex in tomcat5.5

    MessageBroker failed to initialize due to runtime exception

    Exception:flex.management.ManagementException:MBeanServerLocator 'flex.management.webSphereMBeanServerLocator' failed to retrieve MBeanServer,

    DB:2.54:Error While Incorporating Spring With Flex In Tomcat f8

    Hi i am getting following error while incroporating spring with flex in tomcat5.5

    MessageBroker failed to initialize due to runtime exception

    Exception:flex.management.ManagementException:MBeanServerLocator 'flex.management.webSphereMBeanServerLocator' failed to retrieve MBeanServer,

  • RELEVANCY SCORE 2.54

    DB:2.54:Cql Problem x8


    I have made one CEP application.It will read data from 2 source queues.
    1.Queue-source reading market event data
    2.Queueab_target reading testEvent data

    My application has following components:

    1.Two input jms adapters
    2.two input channels
    3.One processor
    4.One output channel
    5.One event bean.

    Code for market event:

    package com.bea.wlevs.example.algotrading.event;
    import javax.xml.bind.annotation.XmlRootElement;

    @XmlRootElement(name = "MarketEvent")
    public class MarketEvent {

    private Long eventTimeStamp;
    private String symbol;
    private Double price;
    private Long volume;
    private Long latencyTimestamp;
    private String text;

    /**
    * @return the latencyTimestamp
    */
    public Long getLatencyTimestamp() {
    return latencyTimestamp;
    }
    /**
    * @param latencyTimestamp the latencyTimestamp to set
    */
    public void setLatencyTimestamp(Long latencyTimestamp) {
    this.latencyTimestamp = latencyTimestamp;
    }
    /**
    * @return the timestamp
    */
    public Long geteventTimeStamp() {
    return eventTimeStamp;
    }
    /**
    * @param timestamp the timestamp to set
    */
    public void seteventTimeStamp(Long eventTimeStamp) {
    this.eventTimeStamp = eventTimeStamp;
    }
    /**
    * @return the symbol
    */
    public String getSymbol() {
    return symbol;
    }
    /**
    * @param symbol the symbol to set
    */
    public void setSymbol(String symbol) {
    this.symbol = symbol;
    }
    /**
    * @return the price
    */
    public Double getPrice() {
    return price;
    }
    /**
    * @param price the price to set
    */
    public void setPrice(Double price) {
    this.price = price;
    }
    /**
    * @return the volume
    */
    public Long getVolume() {
    return volume;
    }
    /**
    * @param volume the volume to set
    */
    public void setVolume(Long volume) {
    this.volume = volume;
    }
    public void setString_1(String text) {
    this.text = text;
    // TODO Auto-generated method stub

    }
    public String getString_1() {
    // TODO Auto-generated method stub
    return text;
    }
    }
    code for testevent:

    package com.bea.wlevs.example.algotrading.event;
    import javax.xml.bind.annotation.XmlRootElement;

    @XmlRootElement(name = "testevent")
    public class testevent {
    private String name;
    private Integer telno;
    private Double price;
    private String text;
    /**
    * @return the price
    */
    public Double getPrice() {
    return price;
    }
    /**
    * @param price the price to set
    */
    public void setPrice(Double price) {
    this.price = price;
    }
    /**
    * @return the name
    */
    public String getName() {
    return name;
    }
    /**
    * @param name the name to set
    */
    public void setName(String name) {
    this.name = name;
    }
    /**
    * @return the telno
    */
    public Integer getTelno() {
    return telno;
    }
    /**
    * @param telno the telno to set
    */
    public void setTelno(Integer telno) {
    this.telno = telno;
    }
    public void setString_1(String text) {
    this.text = text;
    // TODO Auto-generated method stub

    }
    public String getString_1() {
    // TODO Auto-generated method stub
    return text;
    }

    }

    I have also use two converter classes to convert xml messages to event:
    1.testconverter:
    package com.customer;

    import com.bea.wlevs.adapters.jms.api.InboundMessageConverter;
    import com.bea.wlevs.adapters.jms.api.MessageConverterException;
    import com.bea.wlevs.adapters.jms.api.OutboundMessageConverter;
    import com.bea.wlevs.example.algotrading.event.testevent;

    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.Unmarshaller;
    import com.sun.xml.bind.v2.ContextFactory;
    import java.io.StringReader;
    import java.util.ArrayList;
    import java.util.List;

    public class TestConverter implements InboundMessageConverter, OutboundMessageConverter {

    public Listtestevent convert(Message message) throws MessageConverterException, JMSException {
    testevent event = new testevent();
    TextMessage textMessage = (TextMessage) message;
    event.setString_1(textMessage.getText());
    System.out.println("nini");
    testevent obj1=null;
    try {
    System.out.println("tini");
    JAXBContext cxt = JAXBContext.newInstance(testevent.class);
    System.out.println("sini");
    Unmarshaller unmarsh = cxt.createUnmarshaller();
    System.out.println("bini");
    StringReader strReader = new StringReader(event.getString_1());
    System.out.println("aini");
    obj1 = (testevent) unmarsh.unmarshal(strReader);
    System.out.println("telno: " + obj1.getTelno());
    } catch(Exception e) {
    e.printStackTrace();
    }
    Listtestevent events = new ArrayListtestevent(1);
    events.add(obj1);
    return events;
    }

    public ListMessage convert(Session session, Object inputEvent) throws MessageConverterException, JMSException {
    testevent event = (testevent) inputEvent;

    TextMessage message = session.createTextMessage("Text message: " + event.getString_1());

    ListMessage messages = new ArrayListMessage();
    messages.add(message);
    return messages;
    }
    }

    2.marketevent converter:
    package com.customer;

    import com.bea.wlevs.adapters.jms.api.InboundMessageConverter;
    import com.bea.wlevs.adapters.jms.api.MessageConverterException;
    import com.bea.wlevs.adapters.jms.api.OutboundMessageConverter;
    import com.bea.wlevs.example.algotrading.event.MarketEvent;

    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.Unmarshaller;
    import com.sun.xml.bind.v2.ContextFactory;
    import java.io.StringReader;
    import java.util.ArrayList;
    import java.util.List;

    public class MessageConverter implements InboundMessageConverter, OutboundMessageConverter {

    public ListMarketEvent convert(Message message) throws MessageConverterException, JMSException {
    MarketEvent event = new MarketEvent();
    TextMessage textMessage = (TextMessage) message;
    event.setString_1(textMessage.getText());
    System.out.println("nini");
    MarketEvent obj=null;
    try {
    System.out.println("tini");
    JAXBContext cxt = JAXBContext.newInstance(MarketEvent.class);
    System.out.println("sini");
    Unmarshaller unmarsh = cxt.createUnmarshaller();
    StringReader strReader = new StringReader(event.getString_1());
    obj = (MarketEvent) unmarsh.unmarshal(strReader);
    System.out.println("data: " + obj.getSymbol());
    } catch(Exception e) {
    e.printStackTrace();
    }
    ListMarketEvent events = new ArrayListMarketEvent(1);
    events.add(obj);
    return events;
    }

    public ListMessage convert(Session session, Object inputEvent) throws MessageConverterException, JMSException {
    MarketEvent event = (MarketEvent) inputEvent;

    TextMessage message = session.createTextMessage("Text message: " + event.getString_1());

    ListMessage messages = new ArrayListMessage();
    messages.add(message);
    return messages;
    }
    }

    I have use CQL:
    ![CDATA[select m.symbol,t.telno from channel[now] as m, channel2[now] as t where m.symbol=t.name]]

    My EPN assembly file:
    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd"
    wlevs:event-type-repository
    wlevs:event-type type-name="MarketEvent"
    wlevs:class
    com.bea.wlevs.example.algotrading.event.MarketEvent
    /wlevs:class
    /wlevs:event-type
    wlevs:event-type type-name="testevent"
    wlevs:class
    com.bea.wlevs.example.algotrading.event.testevent
    /wlevs:class
    /wlevs:event-type
    wlevs:event-type type-name="selectEvent"
    wlevs:class
    com.bea.wlevs.example.algotrading.event.selectEvent
    /wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository
    bean id="MessageConverter"
    class="com.customer.MessageConverter"/

    bean id="TestConverter"
    class="com.customer.TestConverter"/
    wlevs:processor id="processor"
    wlevs:listener ref="channel1" /
    /wlevs:processor

    wlevs:adapter id="localPublisher" provider="httppub"
    /wlevs:adapter
    wlevs:adapter id="JMSAdapter" provider="jms-inbound"
    wlevs:listener ref="channel2" /
    wlevs:instance-property name="converterBean"
    ref="TestConverter" /
    /wlevs:adapter
    wlevs:channel id="channel2" event-type="testevent"
    wlevs:listener ref="processor" /
    /wlevs:channel
    wlevs:adapter id="Inputadapter" provider="jms-inbound"
    wlevs:instance-property name="converterBean"
    ref="MessageConverter" /
    wlevs:listener ref="channel" /

    /wlevs:adapter
    wlevs:channel id="channel" event-type="MarketEvent"
    wlevs:listener ref="processor" /
    /wlevs:channel

    wlevs:channel id="channel1" event-type="selectEvent"
    wlevs:listener
    bean class="com.bea.wlevs.example.algotrading.MarketEventBean"/
    /wlevs:listener
    /wlevs:channel
    /beans

    code for event bean:
    package com.bea.wlevs.example.algotrading;

    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.example.algotrading.event.MarketEvent;

    public class MarketEventBean implements StreamSink {
    public void onInsertEvent(Object event) {
    if (event instanceof MarketEvent) {
    MarketEvent marketEvent = (MarketEvent) event;

    System.out.println("Mob no is: " + marketEvent.getSymbol());
    }
    }

    }

    But when running the application I cant see any output.It is not giving any error also.
    Please suggest what to do.

  • RELEVANCY SCORE 2.53

    DB:2.53:Hi I Am Getting An Exception Java.Lang.Classnotfoundexceptio ss



    Hi, can anyone help in resolving this issue while deploying my application in jboss. While i am trying to use activemq 4.1.0 on jboss-4.2.0.GAIs this an issue in jboss-spring integration.2007-08-02 11:27:20,562 DEBUG [org.springframework.beans.factory.xml.PluggableSchemaResolver] Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}2007-08-02 11:27:20,562 DEBUG [org.springframework.beans.factory.xml.PluggableSchemaResolver] Loading schema mappings from [META-INF/spring.schemas].2007-08-02 11:27:20,578 DEBUG [org.springframework.beans.factory.xml.PluggableSchemaResolver] Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}2007-08-02 11:27:20,593 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [commonApplicationContext.xml]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.DefaultDocumentLoader] Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] Attempting to resolve DTD [http://www.springframework.org/dtd/spring-beans.dtd] using [org.springframework.beans.factory.xml.BeansDtdResolver]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.BeansDtdResolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.BeansDtdResolver] Trying to locate [spring-beans.dtd] in Spring jar2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.BeansDtdResolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath2007-08-02 11:27:20,734 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] Loaded mappings [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://activemq.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler}]2007-08-02 11:27:20,734 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] Ignoring handler [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler]: class not foundjava.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.xbean.spring.context.v2.XBeanNamespaceHandler at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.springframework.util.ClassUtils.forName(ClassUtils.java:177) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:117) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:96) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:82) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBean

    DB:2.53:Hi I Am Getting An Exception Java.Lang.Classnotfoundexceptio ss


    Hi, can anyone help in resolving this issue while deploying my application in jboss. While i am trying to use activemq 4.1.0 on jboss-4.2.0.GAIs this an issue in jboss-spring integration.2007-08-02 11:27:20,562 DEBUG [org.springframework.beans.factory.xml.PluggableSchemaResolver] Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}2007-08-02 11:27:20,562 DEBUG [org.springframework.beans.factory.xml.PluggableSchemaResolver] Loading schema mappings from [META-INF/spring.schemas].2007-08-02 11:27:20,578 DEBUG [org.springframework.beans.factory.xml.PluggableSchemaResolver] Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}2007-08-02 11:27:20,593 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [commonApplicationContext.xml]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.DefaultDocumentLoader] Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] Attempting to resolve DTD [http://www.springframework.org/dtd/spring-beans.dtd] using [org.springframework.beans.factory.xml.BeansDtdResolver]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.BeansDtdResolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.BeansDtdResolver] Trying to locate [spring-beans.dtd] in Spring jar2007-08-02 11:27:20,593 DEBUG [org.springframework.beans.factory.xml.BeansDtdResolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath2007-08-02 11:27:20,734 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] Loaded mappings [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://activemq.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler}]2007-08-02 11:27:20,734 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] Ignoring handler [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler]: class not foundjava.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.xbean.spring.context.v2.XBeanNamespaceHandler at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.springframework.util.ClassUtils.forName(ClassUtils.java:177) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:117) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:96) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:82) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBean

  • RELEVANCY SCORE 2.53

    DB:2.53:Weblogic 11g R2 And Osgi 98


    Hi there,

    We are running Oracle WebCenter Sites 11g on top of WebLogic 11g R2 and we would like to have different versions of the same library running together, one for OWCS itself and other to some Java code we are developing (which will be part of the new website).

    Is that possible?

    The real question is: How can we have a current version of a library (for isntance, Spring MVC) running side by side with a (much) older version of that library which is required by OWCS? Some people said we could wrap the application (running on top of a current version of Spring) into an EJB, but that sounds like a lot of overhead.

    Cheers

    DB:2.53:Weblogic 11g R2 And Osgi 98

    Hi there,

    We are running Oracle WebCenter Sites 11g on top of WebLogic 11g R2 and we would like to have different versions of the same library running together, one for OWCS itself and other to some Java code we are developing (which will be part of the new website).

    Is that possible?

    The real question is: How can we have a current version of a library (for isntance, Spring MVC) running side by side with a (much) older version of that library which is required by OWCS? Some people said we could wrap the application (running on top of a current version of Spring) into an EJB, but that sounds like a lot of overhead.

    Cheers

  • RELEVANCY SCORE 2.52

    DB:2.52:Coherence 3.5 As Osgi Bundle 7d


    Hi,

    We are starting out on an OSGi project which will use Coherence 3.5 as a data grid for storing and manipulating application data. I see that Coherence (as a separate product) is getting released as a Jar and not as an OSGi bundle. When I looked on the web, I see that Coherence (3.4) is getting packaged along with other Oracle products (CEP 10.3) as OSGi bundle (http://blogs.oracle.com/CEP/2008/10/oracle_complex_event_processin_1.html) and Oracle Fusion Middleware 11g.

    Let us know if we can expect to see Coherence getting released as an OSGi bundle in the near future.

    Till that time, Is there any guidance/recommendation on:

    1) Running Coherence in OSGi environment
    2) Accessing Coherence from an OSGi client application

    Thanks,
    Prakash

    DB:2.52:Coherence 3.5 As Osgi Bundle 7d

    Thanks for the response.
    The current approach we are taking is to have storage nodes run as a cache server outside OSGi container. We will have our application bundles which are clients (non-storage nodes) will be running in OSGi container consuming APIs from bundlized Coherence jars. Will post on this forum if we find any issues running/acessing Coherence from OSGi environment.

    Please read my inline reply below

    Cameron Purdy wrote:
    1. Generally, it's easiest if there is membership in only one Coherence cluster per OSGi container. In other words, one member of one cluster per container.In our application, we don't have the scenario of bundles joining diferent clusters from the same OSGi container. But we might have mutiple bundles joining into the same cluster from a single OSGi container I believe this is supported as per your reply. I

    2. (From Stephen Felts, note that this was pre-3.5) Coherence currently uses the context classloader of the thread to find the default configuration file (coherence-cache-config.xml) and the JMX configuration (reports/report-group.xml). This is generally not the correct thing when running in OSGi. Applications will need to reset the context classloader before getting the class.

    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
    ClassLoader newLoader = com.tangosol.net.CacheFactory.class.getClassLoader();
    Thread.currentThread().setContextClassLoader(newLoader);
    CacheFactory.getCache(cacheName); //Start coherence cache instance
    Thread.currentThread().setContextClassLoader(oldLoader);"
    {code}
    3. (From Hal Hildebrand) There are issues that can come up specifically with respect to serialization with complex dependencies across bundles. Basically, OSGi allows classes to be hidden through the modules, so you have to be really careful as to the class loader you use for the cache. Here's a simple scenario showing the issue: Let's say that we're using the class loader from Bundle A. Bundle A imports the interface FOO from Bundle B. Bundle A uses an implementation of FOO, FooImpl, from Bundle C. However, Bundle C either doesn't import FooImpl (i.e. it's a private class) or Bundle A doesn't import the package from Bundle C. So, if you serialize FooImpl into the cache, what happen in the above scenario is that the cache will not be able to deserialize FooImpl using Bundle A's class loader.We haven't come across a complex scenario you have metioned above.

    4. There are various issues around the use of static fields in Coherence. These are very "non OSGI like". It's generally an issue when you are trying to create a Coherence bundle and decide what APIs to expose. Some of the "builder" work that went into 3.5 was designed to help rectify this and make Coherence easier to use in OSGi.We used [Bundler CLI|http://www.dynamicjava.org/downloads/projects/bundler/1.0.0/bundler-cli-1.0.0.zip] to bundlize Coherence jar. When I look at the manifest generated by bundler CLI and the manifest in Coherence CEP jars, they are very different. Looks like we will have to follow the approach suggest by Spring Source blog [Creating OSGi Bundles|http://blog.springsource.com/2008/02/18/creating-osgi-bundles/]

    5. (From Jeff Trent, in lieu of having a Coherence bundle as part of the Coherence distribution) Bundlizing Coherence jar(s) is a prerequisite for using Coherence w/ OSGi. For this, you can essentially lift the bundles out of (e.g.) CEP. There are tools like BND (http://www.aqute.biz/Code/Bnd) integrated into Maven that really make this quite simple to do.

    The summary I have so far is that using Coherence in OSGi is easy for easy stuff today, but there are a number of things that we're developing to make the more complex use cases simple in the future.I believe it would be really useful to have some OSGi samples using Coherence on your wiki.

    Peace,

    Cameron Purdy | Oracle Coherence
    http://coherence.oracle.com/Thanks for the response.

  • RELEVANCY SCORE 2.52

    DB:2.52:Spring Integration And Embeddable Ejb3 ap



    HI,I'm trying to use the spring integration with the embeddable EJB3. How can I make my spring-context available on the JNDI-tree so that this sentence will return an spring wired object:@Spring(jndiName="myapp", bean="DaoFactory")This injection work fine when running on the application server, but how can I make it work when running from a standalone java app?Anyone has an idea?Regardsjaboj

    DB:2.52:Spring Integration And Embeddable Ejb3 ap


    HI,YES ITS WORKING!. Just the method I needed!Actually both options it working (with or without the SpringLifecycleInterceptor), after I mixed the spring-deployer into the embeddable EJB3.Thank you very much, especially for your very fast answers.RegardsJacob Boje

  • RELEVANCY SCORE 2.52

    DB:2.52:Running Applications In Debug Mode In Jdeveloper 1s


    Hi All,
    I have created a simple spring portlet and have consumed it on a webcenter application. The portlet throws an exception. Now I want to run my portlet in debug mode.

    Both webcenter application and portlet producer are running on the jdeveloper integrated server.

    Can any one help me out mentioning steps to run the portlet and the portal app in debug mode.

    DB:2.52:Running Applications In Debug Mode In Jdeveloper 1s

    Hi jiri machotka , Thanks for your help. It works... :-)

  • RELEVANCY SCORE 2.52

    DB:2.52:Oracle Cep Error d9


    I am using ORalce WebLogic, ORacle CEP on WIndows

    I am also using the Eclipse 3.3.2 (Europa) version for ORacle CEP specifid in the Oracle CEP directions

    I also installe the ORacle CEP plu-in into Eclipse.

    I created a HelloWorld application, and ran it, it worked perfectly

    I then make minor chages to the HellowWOrld.context.xml file and Config.xml file to include JMS output according to the Oracle directions.

    The following is the HelloWorld.context.xml:

    ?xml version="1.0" encoding="UTF-8"?
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs.xsd"

    wlevs:event-type-repository
    wlevs:event-type type-name="HelloWorldEvent"
    wlevs:classcom.bea.wlevs.event.example.helloworld.HelloWorldEvent/wlevs:class
    /wlevs:event-type
    /wlevs:event-type-repository

    wlevs:adapter id="helloworldAdapter" class="com.bea.wlevs.adapter.example.helloworld.HelloWorldAdapter"
    wlevs:instance-property name="message" value="HelloWorld - the current time is:"/
    /wlevs:adapter

    wlevs:adapter id="jmsOutbound" provider="jms-outbound"/

    wlevs:processor id="helloworldProcessor" /

    wlevs:stream id="helloworldInstream"
    wlevs:listener ref="helloworldProcessor" /
    wlevs:source ref="helloworldAdapter" /
    /wlevs:stream

    wlevs:stream id="helloworldOutstream" advertise="true"
    wlevs:listener ref="jmsOutbound" /
    wlevs:source ref="helloworldProcessor" /
    /wlevs:stream

    /beansThe following is the config.xml:

    ?xml version="1.0" encoding="UTF-8"?
    n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    processor
    namehelloworldProcessor/name
    rules
    rule id="helloworldRule"![CDATA[ select * from HelloWorldEvent retain 1 event ]]/rule
    /rules
    /processor
    jms-adapter
    namejmsOutbound/name
    event-typeHelloWorldEvent/event-type
    jndi-provider-url
    t3://127.0.0.1:7001
    /jndi-provider-url
    destination-jndi-nameQueueOut/destination-jndi-name
    userweblogic/user
    passwordpassword/password
    delivery-modenonpersistent/delivery-mode
    /jms-adapter
    stream
    namehelloworldOutstream/name
    max-size10000/max-size
    max-threads2/max-threads
    /stream
    /n1:config

    /n1:configThe following is the resulting error:

    May 15, 2009 4:02:09 AM EDT Notice evs4j BEA-2049007 The cluster protocol is disabled
    May 15, 2009 4:02:12 AM EDT Notice Server BEA-2046000 Server STARTED
    May 15, 2009 4:02:13 AM EDT Notice Server BEA-2045000 The application bundle "HelloWorldJMS" was deployed successfully to file [C:\bea\user_projects\domains\CEP_DOM\defaultserver\applications\HelloWorldJMS\HelloWorldJMS.jar]
    May 15, 2009 4:02:13 AM EDT Notice Server BEA-2045000 The application bundle "HelloWorldJMS" was deployed successfully to file:/C:/bea/user_projects/domains/CEP_DOM/defaultserver/applications/HelloWorldJMS/HelloWorldJMS.jar
    May 15, 2009 4:02:14 AM EDT Error org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext BEA-000000 Post refresh error
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsOutbound': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Error processing service annotation for [jmsOutbound] in bundle [HelloWorldJMS]
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:142)The EPN viewer displays correctly, with the helloworldAdapter, helloworldProcessor, and jmsOutboud objects all display in blue with their proper icons, and are properly connected.

    I changed none of the java code from the helloworkd source. The bean its refering to is the jmsOUtbound, and apparently so is the service annotation.

    Can anyone tell me how to resolve this problem ?

    I don't really see how this sould be a problem, as I was following the instructions explicitly.

    Thanks, Gideon

    Edited by: user10747262 on May 18, 2009 7:58 AM

    DB:2.52:Oracle Cep Error d9

    did you find any solution for this problem?

  • RELEVANCY SCORE 2.52

    DB:2.52:Is Jboss Osgi 2.0 Support Spring f3



    I have a project use spring-dm and spring 3.x in equinox , and I want move it to jboss osgi framwork . Lots of errors when I use spring jars as bundles in Jboss OSGi 1.X . Is there anyone have the same problem like me or has the solutions... Help me,thank you!

    DB:2.52:Is Jboss Osgi 2.0 Support Spring f3


    I have a project use spring-dm and spring 3.x in equinox , and I want move it to jboss osgi framwork . Lots of errors when I use spring jars as bundles in Jboss OSGi 1.X . Is there anyone have the same problem like me or has the solutions... Help me,thank you!

  • RELEVANCY SCORE 2.51

    DB:2.51:Problem W/ Javamail In Osgi cd


    Hello all,

    I am getting the following exception when running a simple application within OSGi:

    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii

    The same code works from within my eclipse environment, but after bundlizing it and deploying to Knopflerfish, I get this error...

    I have mail.jar and activation.jar on the classpath... Here is the code:
    public static void sendInstallationNotification(String recipient) {
    System.out.println("Sending message");
    // Prepare a Mime Message
    Properties props = new Properties();
    props.put("mail.smtp.host", "blah.blah.blaa" );

    Session session = Session.getDefaultInstance(props, null);

    String host = "host";
    int port = 25;
    String from = "from";
    String subject = "Console Installation Notification";
    String address = getAddress();
    String message = "Console has just been installed on Machine: " + address;

    Message msg = new MimeMessage(session);
    try{
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(recipient, false));
    msg.setSubject(subject);
    msg.setDataHandler(new DataHandler(new ByteArrayDataSource(message, "text/plain")));
    msg.setText(message);
    // Send message
    Transport.send(msg);
    }catch(Exception e){e.printStackTrace();}

    }advTHANKSance

    DB:2.51:Problem W/ Javamail In Osgi cd

    To answer my own request, the problem is causes by javax.activation being in a different classloader than javax.mail. javax.activation needs to read META-INF/mailcap from the javamail artifact but can't see it. To fix this, I put javax.activation and javax.mail in the same bundle. With Equinox, you can use Eclipse-BuddyPolicy with Eclipse-RegisterBuddy but that doesn't work in other OSGi containers.

  • RELEVANCY SCORE 2.51

    DB:2.51:Class.Forname() In An Osgi Library Jar - Moduleclassloader Throws Classnotfound dk



    I have spring libraries installed as osgi modules. Spring-security is started up with giving a strategy class name in the initializer, and then it uses Class.forName() to load that, like:

    private static void initialize() {

    if ((strategyName == null) || "".equals(strategyName)) {

    // Set default

    strategyName = MODE_THREADLOCAL;

    }

    if (strategyName.equals(MODE_THREADLOCAL)) {

    strategy = new ThreadLocalSecurityContextHolderStrategy();

    } else if (strategyName.equals(MODE_INHERITABLETHREADLOCAL)) {

    strategy = new InheritableThreadLocalSecurityContextHolderStrategy();

    } else if (strategyName.equals(MODE_GLOBAL)) {

    strategy = new GlobalSecurityContextHolderStrategy();

    } else {

    // Try to load a custom strategy

    try {

    Class? clazz = Class.forName(strategyName);

    Constructor? customStrategy = clazz.getConstructor();

    strategy = (SecurityContextHolderStrategy) customStrategy.newInstance();

    } catch (Exception ex) {

    ReflectionUtils.handleReflectionException(ex);

    }

    }

    initializeCount++;

    }

    so now I get

    Caused by: java.lang.ClassNotFoundException: my.path.to.ServiceSecurityContextHolderStrategy from [Module "deployment.org.springframework.security.core:3.1.3.RELEASE" from Service Module Loader]

    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.3.GA]

    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]

    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]

    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.3.GA]

    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]

    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]

    at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_24]

    at java.lang.Class.forName(Class.java:169) [rt.jar:1.6.0_24]

    at org.springframework.security.core.context.SecurityContextHolder.initialize(SecurityContextHolder.java:105) [SecurityContextHolder.class:]

    ... 35 more

    for my own class, contained in the deployment. It looks like Spring tries to load the class with its own moduleclassloader, which can't see my class. How am I supposed to circumvent this? I cannot just edit the spring libraries to contain a reference to my class. I've went through https://community.jboss.org/wiki/ModuleCompatibleClassloadingGuide, but I can't change Spring code having Class.forName().

    DB:2.51:Class.Forname() In An Osgi Library Jar - Moduleclassloader Throws Classnotfound dk


    Basically spring-security class loading is broken. This same issue occurs if you use either osgi, jboss modules or any other modular classloading.

    In this case, the possible workarounds are:
    patch spring-securitypackage spring-security with the apppackage our custom security context holder strategy together with spring-sec in a separate libraryuse reflection to set custom security context holder strategy to spring-sec

    We went with using reflection, as that gives as more workable upgrade path with spring-sec.

  • RELEVANCY SCORE 2.51

    DB:2.51:Class Loading Issues kd



    I am building an application for TOTEM experiment, which will populate its database with data coming from variety of sources. I am using Fuse ESB 4 as the container and Fuse Mediation Router for implementing Enterprise Integration Patterns.

    Currently I am coding a poller, which will ask for new data coming from the LHC Logging API. I created a piece of code, which runs smoothly being launched standalone (just normal Java invocation from command-line), but I tripped over a problem while deploying it into my OSGi container. I have tried many workarounds, but none of them works. While initializing the bundle I constantly get an

    error saying:

    12:29:07,071 | DEBUG | xtenderThread-53 | LHCApiPollerImpl | op.lhcApiPoller.LHCApiPollerImpl 118 | TOTEM DBPop :: LHC API Poller Initializing ...

    12:29:07,084 | DEBUG | xtenderThread-53 | LHCApiPollerImpl | op.lhcApiPoller.LHCApiPollerImpl 378 | Initializing controller for ch.cern.totem.dbpop.lhcApiPoller.LHCApiPollerImpl with __CLIENT_NAME = TOTEM, __APPLICATION_NAME = DBPOP

    12:29:07,084 | DEBUG | xtenderThread-53 | LHCApiPollerImpl | op.lhcApiPoller.LHCApiPollerImpl 381 | Initializing VariableController

    12:29:07,131 | INFO | xtenderThread-31 | BusApplicationContext | pport.AbstractApplicationContext 426 | Bean factory for application context : org.springframework.beans.factory.support.DefaultListableBeanFactory@39aff012

    12:29:07,207 | DEBUG | xtenderThread-53 | LHCApiPollerImpl | op.lhcApiPoller.LHCApiPollerImpl 385 | Initializing FillDataController

    12:29:07,209 | DEBUG | xtenderThread-53 | LHCApiPollerImpl | op.lhcApiPoller.LHCApiPollerImpl 389 | Initializing HierarchyController

    12:29:07,212 | DEBUG | xtenderThread-53 | LHCApiPollerImpl | op.lhcApiPoller.LHCApiPollerImpl 393 | Initializing TimeSeriesDataController

    12:29:07,267 | INFO | xtenderThread-53 | DefaultListableBeanFactory | ort.DefaultSingletonBeanRegistry 421 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@71cdecf7: defining beans ; root of factory hierarchy

    12:29:07,275 | ERROR | xtenderThread-53 | ContextLoaderListener | BundleApplicationContextListener 50 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=ch.cern.totem.dbpop.lhcApiPoller, config=osgibundle:/META-INF/spring/*.xml))

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lhcApiPoller' defined in URL bundleentry://193.fwk1868864324/META-INF/spring/bundle-context.xml: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/log4j/Layout

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

    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.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)

    at java.lang.Thread.run(Thread.java:619)

    Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout

    at cern.accdm.timeseries.access.client.TimeseriesDataController.(TimeseriesDataController.java:69)

    at ch.cern.totem.dbpop.lhcApiPoller.LHCApiPollerImpl.initializeControllers(LHCApiPollerImpl.java:395)

    at ch.cern.totem.dbpop.lhcApiPoller.LHCApiPollerImpl.afterPropertiesSet(LHCApiPollerImpl.java:119)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)

    ... 17 more

    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Layout

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:448)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    ... 22 more

    It seems like a problem with class-loading. What I have done is I created bundles from all of the Jar's that LHC Logging API is dependent on and deployed them smoothly into OSGi container (this API relies on jars like Spring, Log4j, but also on some packages developed inside CERN, like JMXLogger) Then, when they all were in place, I deploy my bundle and it gets this error... I am struggling with this problem for some time. If you have any suggestions, please don't hesitate to reveal any clues.

    Can I find any article which describes in detail the class-loading in Fuse ESB 4?

    Edited by: pimek123 on Jul 13, 2010 9:55 AM

    DB:2.51:Class Loading Issues kd


    Fuse ESB is using the Pax-logging to provides the logging service, you may need to check if there are some conflict with the Pax-logging and your bundle's log API.

    Willem

  • RELEVANCY SCORE 2.51

    DB:2.51:Exception While Running Spring Mvc Application In Osgi Container sz



    Exception : org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from ServletContext resource [/WEB-INF/spring-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1.a: Cannot find the declaration of element 'beans'.

    Hi Team,

    I am trying to run spring mvc application by creating war file using maven i got the above mentioned Exception.

    Please give any suggestion how to get this. for your clarity i add my pom.xml and spring configuration file.

    Here is Spring-servlet.xml file:

    ?xml version="1.0" encoding="UTF-8"?

    beans xmlns="http://www.springframework.org/schema/beans"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:context="http://www.springframework.org/schema/context"

    xmlns:tx="http://www.springframework.org/schema/tx"

    xmlns:p="http://www.springframework.org/schema/p"

    xsi:schemaLocation="

    http://www.springframework.org/schema/beans

    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

    http://www.springframework.org/schema/tx

    http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

    http://www.springframework.org/schema/context

    http://www.springframework.org/schema/context/spring-context-3.0.xsd"

    context:component-scan base-package="net.viralpatel.spring3.controller" /

    bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"

    !--property name="requestContextAttribute" value="rc"/

    --property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/

    property name="prefix" value="/WEB-INF/jsp/"/

    property name="suffix" value=".jsp"/

    /bean

    /beans

    Here is my Pom.xml

    project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

    modelVersion4.0.0/modelVersion

    groupIdcom.sample.maven/groupId

    artifactIdmavenwebapp/artifactId

    packagingwar/packaging

    version1.0-SNAPSHOT/version

    dependencies

    dependency

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    version4.8.1/version

    /dependency

    dependency

    groupIdjavax.servlet/groupId

    artifactIdservlet-api/artifactId

    version2.5/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-web/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-core/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-tx/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdlog4j/groupId

    artifactIdlog4j/artifactId

    version1.2.14/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-tx/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdjstl/groupId

    artifactIdjstl/artifactId

    version1.1.2/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-webmvc/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-aop/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.apache.tiles/groupId

    artifactIdtiles-core/artifactId

    version2.2.2/version

    /dependency

    dependency

    groupIdorg.apache.tiles/groupId

    artifactIdtiles-template/artifactId

    version2.2.2/version

    /dependency

    dependency

    groupIdorg.apache.tiles/groupId

    artifactIdtiles-jsp/artifactId

    version2.2.2/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-api/artifactId

    version1.5.8/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-log4j12/artifactId

    version1.5.8/version

    typejar/type

    scopecompile/scope

    /dependency

    dependency

    groupIdcommons-beanutils/groupId

    artifactIdcommons-beanutils/artifactId

    version20030211.134440/version

    /dependency

    dependency

    groupIddom4j/groupId

    artifactIddom4j/artifactId

    version1.6.1-jboss/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-asm/artifactId

    version3.2.0.BUILD-20120125.231906-17/version

    typepom/type

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-expression/artifactId

    version3.2.0.BUILD-20121213.004239-476/version

    typepom/type

    /dependency

    dependency

    groupIdtaglibs/groupId

    artifactIdstandard/artifactId

    version1.1.2/version

    /dependency

    /dependencies

    build

    plugins

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-compiler-plugin/artifactId

    version2.3.2/version

    configuration

    source1.6/source

    target1.6/target

    encodingUTF-8/encoding

    /configuration

    /plugin

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-war-plugin/artifactId

    configuration

    archive

    manifestFile${basedir}/target/bnd/MANIFEST.MF/manifestFile

    /archive

    /configuration

    /plugin

    plugin

    groupIdorg.apache.felix/groupId

    artifactIdmaven-bundle-plugin/artifactId

    version2.3.5/version

    executions

    execution

    idbundle-manifest/id

    phaseprocess-classes/phase

    goals

    goalmanifest/goal

    /goals

    /execution

    /executions

    configuration

    supportedProjectTypes

    supportedProjectTypewar/supportedProjectType

    /supportedProjectTypes

    manifestLocationtarget/bnd/manifestLocation

    instructions

    Webapp-Contextspring/Webapp-Context

    Web-ContextPathspring/Web-ContextPath

    !--Export-Package!*/Export-Package

    --Import-Package

    javax.servlet,

    javax.servlet.http,

    javax.servlet.jsp.jstl.core,

    javax.servlet.resources,

    org.springframework.beans.factory.config,

    org.springframework.osgi.web.context.support,

    org.springframework.stereotype,

    org.springframework.web.bind.annotation,

    org.springframework.web.servlet,

    org.springframework.web.servlet.view,

    *

    /Import-Package

    Bundle-ClassPath

    WEB-INF/classes,.

    /Bundle-ClassPath

    /instructions

    /configuration

    /plugin

    /plugins

    /build

    /project

    DB:2.51:Exception While Running Spring Mvc Application In Osgi Container sz


    Exception : org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from ServletContext resource [/WEB-INF/spring-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1.a: Cannot find the declaration of element 'beans'.

    Hi Team,

    I am trying to run spring mvc application by creating war file using maven i got the above mentioned Exception.

    Please give any suggestion how to get this. for your clarity i add my pom.xml and spring configuration file.

    Here is Spring-servlet.xml file:

    ?xml version="1.0" encoding="UTF-8"?

    beans xmlns="http://www.springframework.org/schema/beans"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:context="http://www.springframework.org/schema/context"

    xmlns:tx="http://www.springframework.org/schema/tx"

    xmlns:p="http://www.springframework.org/schema/p"

    xsi:schemaLocation="

    http://www.springframework.org/schema/beans

    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

    http://www.springframework.org/schema/tx

    http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

    http://www.springframework.org/schema/context

    http://www.springframework.org/schema/context/spring-context-3.0.xsd"

    context:component-scan base-package="net.viralpatel.spring3.controller" /

    bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"

    !--property name="requestContextAttribute" value="rc"/

    --property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/

    property name="prefix" value="/WEB-INF/jsp/"/

    property name="suffix" value=".jsp"/

    /bean

    /beans

    Here is my Pom.xml

    project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

    modelVersion4.0.0/modelVersion

    groupIdcom.sample.maven/groupId

    artifactIdmavenwebapp/artifactId

    packagingwar/packaging

    version1.0-SNAPSHOT/version

    dependencies

    dependency

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    version4.8.1/version

    /dependency

    dependency

    groupIdjavax.servlet/groupId

    artifactIdservlet-api/artifactId

    version2.5/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-web/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-core/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-tx/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdlog4j/groupId

    artifactIdlog4j/artifactId

    version1.2.14/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-tx/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdjstl/groupId

    artifactIdjstl/artifactId

    version1.1.2/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-webmvc/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-aop/artifactId

    version3.0.5.RELEASE/version

    /dependency

    dependency

    groupIdorg.apache.tiles/groupId

    artifactIdtiles-core/artifactId

    version2.2.2/version

    /dependency

    dependency

    groupIdorg.apache.tiles/groupId

    artifactIdtiles-template/artifactId

    version2.2.2/version

    /dependency

    dependency

    groupIdorg.apache.tiles/groupId

    artifactIdtiles-jsp/artifactId

    version2.2.2/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-api/artifactId

    version1.5.8/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-log4j12/artifactId

    version1.5.8/version

    typejar/type

    scopecompile/scope

    /dependency

    dependency

    groupIdcommons-beanutils/groupId

    artifactIdcommons-beanutils/artifactId

    version20030211.134440/version

    /dependency

    dependency

    groupIddom4j/groupId

    artifactIddom4j/artifactId

    version1.6.1-jboss/version

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-asm/artifactId

    version3.2.0.BUILD-20120125.231906-17/version

    typepom/type

    /dependency

    dependency

    groupIdorg.springframework/groupId

    artifactIdspring-expression/artifactId

    version3.2.0.BUILD-20121213.004239-476/version

    typepom/type

    /dependency

    dependency

    groupIdtaglibs/groupId

    artifactIdstandard/artifactId

    version1.1.2/version

    /dependency

    /dependencies

    build

    plugins

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-compiler-plugin/artifactId

    version2.3.2/version

    configuration

    source1.6/source

    target1.6/target

    encodingUTF-8/encoding

    /configuration

    /plugin

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-war-plugin/artifactId

    configuration

    archive

    manifestFile${basedir}/target/bnd/MANIFEST.MF/manifestFile

    /archive

    /configuration

    /plugin

    plugin

    groupIdorg.apache.felix/groupId

    artifactIdmaven-bundle-plugin/artifactId

    version2.3.5/version

    executions

    execution

    idbundle-manifest/id

    phaseprocess-classes/phase

    goals

    goalmanifest/goal

    /goals

    /execution

    /executions

    configuration

    supportedProjectTypes

    supportedProjectTypewar/supportedProjectType

    /supportedProjectTypes

    manifestLocationtarget/bnd/manifestLocation

    instructions

    Webapp-Contextspring/Webapp-Context

    Web-ContextPathspring/Web-ContextPath

    !--Export-Package!*/Export-Package

    --Import-Package

    javax.servlet,

    javax.servlet.http,

    javax.servlet.jsp.jstl.core,

    javax.servlet.resources,

    org.springframework.beans.factory.config,

    org.springframework.osgi.web.context.support,

    org.springframework.stereotype,

    org.springframework.web.bind.annotation,

    org.springframework.web.servlet,

    org.springframework.web.servlet.view,

    *

    /Import-Package

    Bundle-ClassPath

    WEB-INF/classes,.

    /Bundle-ClassPath

    /instructions

    /configuration

    /plugin

    /plugins

    /build

    /project

  • RELEVANCY SCORE 2.51

    DB:2.51:Gemfire Server Embedded In Spring Or Standalone (And Having Spring Acting As Client) mp



    What are advantages, drawbacks of running gemfire server as a part of spring application vs standalone?

    Thanks

    Jack

    DB:2.51:Gemfire Server Embedded In Spring Or Standalone (And Having Spring Acting As Client) mp


    Hi Jack,

    I think that you can consider those as the same advantages/drawbacks of having in-process and out-of-process data management strategies.

    Basically, you will be sharing the JVM memory between your own application objects and you cache entries, which may or may not be a good approach, depending on the use case and amount of data.

    For example, running multiple web applications on an application server and having many of them storing a lot of cache entries on the same JVM can lead to out of memory errors if that's not properly sized.

    An alternative for such cases would be to have each web app acting as a client and having them access stand alone cache nodes (each with their own JVM) that can hold only data (being a standalone cache server), letting the client decide if he want's to keep LRU - Least Recently Used - entries, for example.

    Although there is nothing wrong on having embedded servers on such applications or have them working as peers, always take in consideration that, as said, memory will be shared by your own objects and cache entries. An immediate advantage of this approach is that data access in these cases are very fast.

  • RELEVANCY SCORE 2.51

    DB:2.51:Aries Jpa + Hibernate - There Are No Providers Available 7s



    Hello,

    I'm havingproblems trying tostart abundleusingAriesJPABlueprint.

    I'm gettingthe following error.

    13:02:45,711 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence descriptors: in bundle br.teste.dao.aluno_1.0.0

    13:02:45,712 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:45,712 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:45,713 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent INSTALLED

    13:02:45,891 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@14eefbf 10000 ms elapsed since last write check.

    13:02:45,896 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@80387a 10000 ms elapsed since last write check.

    13:02:46,439 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:46,545 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    It seemsthat HibernatePersistenceProviderwas not registeredor is notvisible.

    I amusingfuse4.4.0 with jpa-hibernate feature installed.

    See full log details:

    -

    13:02:45,709 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component blueprintBundleContext

    13:02:45,711 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence descriptors: in bundle br.teste.dao.aluno_1.0.0

    13:02:45,712 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:45,712 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:45,713 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent INSTALLED

    13:02:45,891 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@14eefbf 10000 ms elapsed since last write check.

    13:02:45,896 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@80387a 10000 ms elapsed since last write check.

    13:02:46,439 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:46,545 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    13:02:46,553 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@c155dd 10000 ms elapsed since last write check.

    13:02:46,553 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@ec4789 10000 ms elapsed since last write check.

    13:02:46,664 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@1ae6db3 10000 ms elapsed since last write check.

    13:02:46,664 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@a433d8 10000 ms elapsed since last write check.

    13:02:48,764 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Retrieving service for bundle org.apache.karaf.shell.console and service registration org.apache.felix.framework.ServiceRegistrationImpl@13c5908

    13:02:48,764 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Method entry: getService, args org.apache.karaf.shell.console.commands.BlueprintCommand@1fd682c

    13:02:48,765 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component shell-54

    13:02:48,765 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component blueprintBundleContext

    13:02:48,771 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:48,771 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:48,771 | DEBUG | l Console Thread | Activator | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | checking bundle 323

    13:02:48,772 | DEBUG | l Console Thread | Activator | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | The bundle does not import us: 323

    13:02:48,772 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:48,772 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:48,772 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:48,772 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:48,772 | DEBUG | l Console Thread | BundleWatcher | ? ? | 165 - org.ops4j.pax.web.pax-web-extender-war - 1.0.3 | Scanning bundle

    13:02:48,772 | DEBUG | l Console Thread | Deployer | ? ? | 156 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-61 | Checking bundle: 'BR Teste :: Dao :: Aluno (br.teste.dao.aluno)'

    13:02:48,772 | DEBUG | l Console Thread | Deployer | ? ? | 156 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-61 | Bundle 'BR Teste :: Dao :: Aluno (br.teste.dao.aluno)' does not contain any JBI descriptor.

    13:02:48,772 | DEBUG | l Console Thread | Activator | ? ? | 83 - org.apache.camel.camel-core - 2.7.3.fuse-00-61 | Bundle started: br.teste.dao.aluno

    13:02:48,772 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Scanning bundle for configurations...

    13:02:48,772 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Creating an application context for bundle

    13:02:48,772 | INFO | l Console Thread | ultOsgiApplicationContextCreator | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Discovered configurations in bundle

    13:02:48,773 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Asynchronous context creation for bundle

    13:02:48,773 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Setting globally defined wait-for-dependencies timeout value=300000 ms, for bundle

    13:02:48,773 | DEBUG | l Console Thread | BlueprintExtender | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Scanning bundle br.teste.dao.aluno for blueprint application

    13:02:48,773 | DEBUG | l Console Thread | BlueprintExtender | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Found blueprint application in bundle br.teste.dao.aluno with paths:

    13:02:48,773 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent RESOLVED

    13:02:48,773 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent STARTED

    13:02:48,774 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state Unknown

    13:02:48,774 | DEBUG | rint Extender: 3 | BlueprintEventDispatcher | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Sending blueprint container event BlueprintEvent[type=CREATING] for bundle br.teste.dao.aluno

    13:02:48,774 | DEBUG | nt Dispatcher: 1 | BlueprintListener | ? ? | 14 - org.apache.karaf.shell.osgi - 2.2.0.fuse-00-61 | Blueprint app state changed to Creating for bundle 323

    13:02:48,774 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Starting first stage of refresh for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:48,774 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Calling preRefresh on OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:48,774 | INFO | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml): startup date ; root of context hierarchy

    13:02:48,774 | INFO | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Application Context service already unpublished

    13:02:48,775 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state WaitForNamespaceHandlers

    13:02:48,775 | DEBUG | rint Extender: 3 | aries | ? ? | 307 - org.apache.aries.jpa.blueprint.aries - 0.3.0 | Creating blueprint injection metadata to inject the context pu into bean property entityManager

    13:02:48,775 | DEBUG | rint Extender: 3 | aries | ? ? | 307 - org.apache.aries.jpa.blueprint.aries - 0.3.0 | Creating a managed persistence context definition for injection

    13:02:48,776 | DEBUG | rint Extender: 3 | context | ? ? | 305 - org.apache.aries.jpa.container.context - 0.3.0 | Registering bundle br.teste.dao.aluno_1.0.0 as a client of persistence unit pu with properties {org.apache.aries.jpa.context.type=TRANSACTION}.

    13:02:48,776 | DEBUG | rint Extender: 3 | context | ? ? | 305 - org.apache.aries.jpa.container.context - 0.3.0 | Registering bundle br.teste.dao.aluno_1.0.0 as a client of persistence unit pu with properties {org.apache.aries.jpa.context.type=TRANSACTION}.

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state Populated

    13:02:48,776 | DEBUG | rint Extender: 3 | AbstractServiceReferenceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Found initial references null for OSGi service (((org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=pu))(objectClass=javax.persistence.EntityManagerFactory))

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Tracking service references:

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state WaitForInitialReferences

    13:02:48,776 | INFO | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Bundle br.teste.dao.aluno is waiting for dependencies

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintEventDispatcher | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Sending blueprint container event BlueprintEvent[type=GRACE_PERIOD, dependencies=[(((org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=pu))(objectClass=javax.persistence.EntityManagerFactory))]] for bundle br.teste.dao.aluno

    13:02:48,776 | DEBUG | nt Dispatcher: 1 | BlueprintListener | ? ? | 14 - org.apache.karaf.shell.osgi - 2.2.0.fuse-00-61 | Blueprint app state changed to GracePeriod for bundle 323

    13:02:49,090 | INFO | xtenderThread-64 | XmlBeanDefinitionReader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from URL

    13:02:49,091 | DEBUG | xtenderThread-64 | DefaultDocumentLoader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Using JAXP provider

    13:02:49,092 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loading schema mappings from

    13:02:49,092 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loaded schema mappings: {}

    13:02:49,092 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/beans/spring-beans.xsd

    13:02:49,092 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd

    13:02:49,092 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/beans/spring-beans.xsd found inside Spring Beans (org.springframework.beans)

    13:02:49,097 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/osgi/spring-osgi.xsd

    13:02:49,097 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/osgi/config/spring-osgi-1.2.xsd

    13:02:49,097 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/osgi/spring-osgi.xsd found inside spring-osgi-core (org.springframework.osgi.core)

    13:02:49,100 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

    13:02:49,100 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/transaction/config/spring-tx-3.0.xsd

    13:02:49,100 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/tx/spring-tx-3.0.xsd found inside Spring Transaction (org.springframework.transaction)

    13:02:49,101 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/tool/spring-tool-3.0.xsd

    13:02:49,101 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd

    13:02:49,101 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/tool/spring-tool-3.0.xsd found inside Spring Beans (org.springframework.beans)

    13:02:49,103 | DEBUG | xtenderThread-64 | aultBeanDefinitionDocumentReader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loading bean definitions

    13:02:49,103 | DEBUG | xtenderThread-64 | DefaultNamespaceHandlerResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loaded NamespaceHandler mappings: {}

    13:02:49,103 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving namespace handler for http://www.springframework.org/schema/osgi

    13:02:49,103 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Namespace handler for http://www.springframework.org/schema/osgi found inside spring-osgi-core (org.springframework.osgi.core)

    13:02:49,103 | DEBUG | xtenderThread-64 | StaticLabeledEnumResolver | ? ? | 73 - org.springframework.core - 3.0.5.RELEASE | Not strongly caching class because it is not cache-safe

    13:02:49,103 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving namespace handler for http://www.springframework.org/schema/tx

    13:02:49,104 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Namespace handler for http://www.springframework.org/schema/tx found inside Spring Transaction (org.springframework.transaction)

    13:02:49,104 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving namespace handler for http://www.springframework.org/schema/osgi

    13:02:49,104 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Namespace handler for http://www.springframework.org/schema/osgi found inside spring-osgi-core (org.springframework.osgi.core)

    13:02:49,105 | DEBUG | xtenderThread-64 | XmlBeanDefinitionReader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loaded 9 bean definitions from location pattern

    13:02:49,105 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Bean factory for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml): org.springframework.beans.factory.support.DefaultListableBeanFactory@145cac5: defining beans ; root of factory hierarchy

    13:02:49,105 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Registering BundleContext as a bean named bundleContext

    13:02:49,106 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Pre-refresh completed; determining dependencies...

    13:02:49,106 | DEBUG | xtenderThread-64 | DependencyServiceManager | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Discovered local dependency factories: []

    13:02:49,107 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'txManager'

    13:02:49,107 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'txManager'

    13:02:49,108 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'txManager' to allow for resolving potential circular references

    13:02:49,108 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Invoking afterPropertiesSet() on bean with name 'txManager'

    13:02:49,108 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'txManager'

    13:02:49,110 | DEBUG | xtenderThread-64 | DependencyServiceManager | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | 1 OSGi service dependencies, 0 unsatisfied (for beans []) in OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,110 | INFO | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,110 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Starting stage two for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,110 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Cancelled dependency watchdog...

    13:02:49,120 | DEBUG | xtenderThread-65 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Completing refresh for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,122 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,122 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,122 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.aop.config.internalAutoProxyCreator' to allow for resolving potential circular references

    13:02:49,123 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,123 | DEBUG | xtenderThread-65 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Unable to locate MessageSource with name 'messageSource': using default

    13:02:49,123 | DEBUG | xtenderThread-65 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default

    13:02:49,123 | INFO | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@145cac5: defining beans ; root of factory hierarchy

    13:02:49,123 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'txManager'

    13:02:49,123 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'txManager'

    13:02:49,123 | DEBUG | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Creating a single service proxy ...

    13:02:49,123 | DEBUG | xtenderThread-65 | JdkDynamicAopProxy | ? ? | 74 - org.springframework.aop - 3.0.5.RELEASE | Creating JDK dynamic proxy: target source is EmptyTargetSource: no target class, static

    13:02:49,125 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Adding OSGi mandatoryListeners for services matching

    13:02:49,126 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] bound to proxy

    13:02:49,126 | DEBUG | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] bound to proxy

    13:02:49,126 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Calling bind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,127 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Called bind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,127 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | 1..x cardinality - looking for service at startup...

    13:02:49,127 | INFO | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Looking for mandatory OSGi service dependency for bean matching filter (objectClass=org.springframework.transaction.PlatformTransactionManager)

    13:02:49,127 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service retrieved org.apache.aries.transaction.GeronimoPlatformTransactionManager@1ebc96b

    13:02:49,127 | INFO | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Found mandatory OSGi service for bean

    13:02:49,127 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,127 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,127 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.transaction.config.internalTransactionAdvisor' to allow for resolving potential circular references

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' to allow for resolving potential circular references

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0' to allow for resolving potential circular references

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Invoking afterPropertiesSet() on bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'javaAssistClassLoader'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'javaAssistClassLoader'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'javaAssistClassLoader' to allow for resolving potential circular references

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'javaAssistClassLoader'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'jpaAdapter'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'jpaAdapter'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'jpaAdapter' to allow for resolving potential circular references

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'jpaAdapter'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'alunoDao'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'alunoDao'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'alunoDao' to allow for resolving potential circular references

    13:02:49,131 | INFO | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@145cac5: defining beans ; root of factory hierarchy

    13:02:49,131 | DEBUG | xtenderThread-65 | DisposableBeanAdapter | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Invoking destroy() on bean with name 'txManager'

    13:02:49,131 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Calling unbind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,131 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Called unbind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,131 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] was unregistered and unbound from the service proxy

    13:02:49,131 | DEBUG | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] was unregistered and unbound from the service proxy

    13:02:49,132 | DEBUG | xtenderThread-65 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Post refresh error

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alunoDao' defined in URL : Cannot resolve reference to bean 'jpaTemplate' while setting bean property 'jpaTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[70:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[79:org.springframework.osgi.extender:1.2.1]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]

    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[68:org.springframework.beans:3.0.5.RELEASE]

    ... 17 more

    13:02:49,132 | DEBUG | xtenderThread-65 | BlueprintListener | ? ? | 14 - org.apache.karaf.shell.osgi - 2.2.0.fuse-00-61 | Spring app state changed to Failed for bundle 323

    13:02:49,132 | ERROR | xtenderThread-65 | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml))

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alunoDao' defined in URL : Cannot resolve reference to bean 'jpaTemplate' while setting bean property 'jpaTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[70:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[79:org.springframework.osgi.extender:1.2.1]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]

    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[68:org.springframework.beans:3.0.5.RELEASE]

    ... 17 more

    13:02:51,546 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:51,651 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    13:02:55,890 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@14eefbf 10000 ms elapsed since last write check.

    13:02:55,890 | DEBUG | onitor ReadCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | 30000 ms elapsed since last read check.

    13:02:55,896 | DEBUG | onitor ReadCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | 30000 ms elapsed since last read check.

    13:02:55,897 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@80387a 10001 ms elapsed since last write check.

    13:02:56,152 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:56,224 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    13:02:56,540 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Retrieving service for bundle org.apache.karaf.shell.console and service registration org.apache.felix.framework.ServiceRegistrationImpl@12f8d57

    13:02:56,540 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Method entry: getService, args org.apache.karaf.shell.console.commands.BlueprintCommand@1d3ddab

    13:02:56,541 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component shell-159

    13:02:56,542 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint -

    DB:2.51:Aries Jpa + Hibernate - There Are No Providers Available 7s


    Hello,

    I'm havingproblems trying tostart abundleusingAriesJPABlueprint.

    I'm gettingthe following error.

    13:02:45,711 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence descriptors: in bundle br.teste.dao.aluno_1.0.0

    13:02:45,712 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:45,712 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:45,713 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent INSTALLED

    13:02:45,891 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@14eefbf 10000 ms elapsed since last write check.

    13:02:45,896 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@80387a 10000 ms elapsed since last write check.

    13:02:46,439 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:46,545 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    It seemsthat HibernatePersistenceProviderwas not registeredor is notvisible.

    I amusingfuse4.4.0 with jpa-hibernate feature installed.

    See full log details:

    -

    13:02:45,709 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component blueprintBundleContext

    13:02:45,711 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence descriptors: in bundle br.teste.dao.aluno_1.0.0

    13:02:45,712 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:45,712 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:45,713 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent INSTALLED

    13:02:45,891 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@14eefbf 10000 ms elapsed since last write check.

    13:02:45,896 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@80387a 10000 ms elapsed since last write check.

    13:02:46,439 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:46,545 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    13:02:46,553 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@c155dd 10000 ms elapsed since last write check.

    13:02:46,553 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@ec4789 10000 ms elapsed since last write check.

    13:02:46,664 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@1ae6db3 10000 ms elapsed since last write check.

    13:02:46,664 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@a433d8 10000 ms elapsed since last write check.

    13:02:48,764 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Retrieving service for bundle org.apache.karaf.shell.console and service registration org.apache.felix.framework.ServiceRegistrationImpl@13c5908

    13:02:48,764 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Method entry: getService, args org.apache.karaf.shell.console.commands.BlueprintCommand@1fd682c

    13:02:48,765 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component shell-54

    13:02:48,765 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component blueprintBundleContext

    13:02:48,771 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:48,771 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:48,771 | DEBUG | l Console Thread | Activator | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | checking bundle 323

    13:02:48,772 | DEBUG | l Console Thread | Activator | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | The bundle does not import us: 323

    13:02:48,772 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:48,772 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:48,772 | DEBUG | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | Located Persistence units:

    13:02:48,772 | WARN | l Console Thread | container | ? ? | 308 - org.apache.aries.jpa.container - 0.3.0 | There are no providers available.

    13:02:48,772 | DEBUG | l Console Thread | BundleWatcher | ? ? | 165 - org.ops4j.pax.web.pax-web-extender-war - 1.0.3 | Scanning bundle

    13:02:48,772 | DEBUG | l Console Thread | Deployer | ? ? | 156 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-61 | Checking bundle: 'BR Teste :: Dao :: Aluno (br.teste.dao.aluno)'

    13:02:48,772 | DEBUG | l Console Thread | Deployer | ? ? | 156 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-61 | Bundle 'BR Teste :: Dao :: Aluno (br.teste.dao.aluno)' does not contain any JBI descriptor.

    13:02:48,772 | DEBUG | l Console Thread | Activator | ? ? | 83 - org.apache.camel.camel-core - 2.7.3.fuse-00-61 | Bundle started: br.teste.dao.aluno

    13:02:48,772 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Scanning bundle for configurations...

    13:02:48,772 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Creating an application context for bundle

    13:02:48,772 | INFO | l Console Thread | ultOsgiApplicationContextCreator | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Discovered configurations in bundle

    13:02:48,773 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Asynchronous context creation for bundle

    13:02:48,773 | DEBUG | l Console Thread | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Setting globally defined wait-for-dependencies timeout value=300000 ms, for bundle

    13:02:48,773 | DEBUG | l Console Thread | BlueprintExtender | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Scanning bundle br.teste.dao.aluno for blueprint application

    13:02:48,773 | DEBUG | l Console Thread | BlueprintExtender | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Found blueprint application in bundle br.teste.dao.aluno with paths:

    13:02:48,773 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent RESOLVED

    13:02:48,773 | DEBUG | lixDispatchQueue | aluno | ? ? | 323 - br.teste.dao.aluno - 1.0.0 | BundleEvent STARTED

    13:02:48,774 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state Unknown

    13:02:48,774 | DEBUG | rint Extender: 3 | BlueprintEventDispatcher | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Sending blueprint container event BlueprintEvent[type=CREATING] for bundle br.teste.dao.aluno

    13:02:48,774 | DEBUG | nt Dispatcher: 1 | BlueprintListener | ? ? | 14 - org.apache.karaf.shell.osgi - 2.2.0.fuse-00-61 | Blueprint app state changed to Creating for bundle 323

    13:02:48,774 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Starting first stage of refresh for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:48,774 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Calling preRefresh on OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:48,774 | INFO | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml): startup date ; root of context hierarchy

    13:02:48,774 | INFO | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Application Context service already unpublished

    13:02:48,775 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state WaitForNamespaceHandlers

    13:02:48,775 | DEBUG | rint Extender: 3 | aries | ? ? | 307 - org.apache.aries.jpa.blueprint.aries - 0.3.0 | Creating blueprint injection metadata to inject the context pu into bean property entityManager

    13:02:48,775 | DEBUG | rint Extender: 3 | aries | ? ? | 307 - org.apache.aries.jpa.blueprint.aries - 0.3.0 | Creating a managed persistence context definition for injection

    13:02:48,776 | DEBUG | rint Extender: 3 | context | ? ? | 305 - org.apache.aries.jpa.container.context - 0.3.0 | Registering bundle br.teste.dao.aluno_1.0.0 as a client of persistence unit pu with properties {org.apache.aries.jpa.context.type=TRANSACTION}.

    13:02:48,776 | DEBUG | rint Extender: 3 | context | ? ? | 305 - org.apache.aries.jpa.container.context - 0.3.0 | Registering bundle br.teste.dao.aluno_1.0.0 as a client of persistence unit pu with properties {org.apache.aries.jpa.context.type=TRANSACTION}.

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state Populated

    13:02:48,776 | DEBUG | rint Extender: 3 | AbstractServiceReferenceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Found initial references null for OSGi service (((org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=pu))(objectClass=javax.persistence.EntityManagerFactory))

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Tracking service references:

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Running blueprint container for bundle br.teste.dao.aluno in state WaitForInitialReferences

    13:02:48,776 | INFO | rint Extender: 3 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Bundle br.teste.dao.aluno is waiting for dependencies

    13:02:48,776 | DEBUG | rint Extender: 3 | BlueprintEventDispatcher | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Sending blueprint container event BlueprintEvent[type=GRACE_PERIOD, dependencies=[(((org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=pu))(objectClass=javax.persistence.EntityManagerFactory))]] for bundle br.teste.dao.aluno

    13:02:48,776 | DEBUG | nt Dispatcher: 1 | BlueprintListener | ? ? | 14 - org.apache.karaf.shell.osgi - 2.2.0.fuse-00-61 | Blueprint app state changed to GracePeriod for bundle 323

    13:02:49,090 | INFO | xtenderThread-64 | XmlBeanDefinitionReader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from URL

    13:02:49,091 | DEBUG | xtenderThread-64 | DefaultDocumentLoader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Using JAXP provider

    13:02:49,092 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loading schema mappings from

    13:02:49,092 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loaded schema mappings: {}

    13:02:49,092 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/beans/spring-beans.xsd

    13:02:49,092 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd

    13:02:49,092 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/beans/spring-beans.xsd found inside Spring Beans (org.springframework.beans)

    13:02:49,097 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/osgi/spring-osgi.xsd

    13:02:49,097 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/osgi/config/spring-osgi-1.2.xsd

    13:02:49,097 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/osgi/spring-osgi.xsd found inside spring-osgi-core (org.springframework.osgi.core)

    13:02:49,100 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

    13:02:49,100 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/transaction/config/spring-tx-3.0.xsd

    13:02:49,100 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/tx/spring-tx-3.0.xsd found inside Spring Transaction (org.springframework.transaction)

    13:02:49,101 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving entity for null|http://www.springframework.org/schema/tool/spring-tool-3.0.xsd

    13:02:49,101 | DEBUG | xtenderThread-64 | PluggableSchemaResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Found XML schema in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd

    13:02:49,101 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | XML schema for null|http://www.springframework.org/schema/tool/spring-tool-3.0.xsd found inside Spring Beans (org.springframework.beans)

    13:02:49,103 | DEBUG | xtenderThread-64 | aultBeanDefinitionDocumentReader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loading bean definitions

    13:02:49,103 | DEBUG | xtenderThread-64 | DefaultNamespaceHandlerResolver | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loaded NamespaceHandler mappings: {}

    13:02:49,103 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving namespace handler for http://www.springframework.org/schema/osgi

    13:02:49,103 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Namespace handler for http://www.springframework.org/schema/osgi found inside spring-osgi-core (org.springframework.osgi.core)

    13:02:49,103 | DEBUG | xtenderThread-64 | StaticLabeledEnumResolver | ? ? | 73 - org.springframework.core - 3.0.5.RELEASE | Not strongly caching class because it is not cache-safe

    13:02:49,103 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving namespace handler for http://www.springframework.org/schema/tx

    13:02:49,104 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Namespace handler for http://www.springframework.org/schema/tx found inside Spring Transaction (org.springframework.transaction)

    13:02:49,104 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Trying to resolving namespace handler for http://www.springframework.org/schema/osgi

    13:02:49,104 | DEBUG | xtenderThread-64 | NamespacePlugins | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Namespace handler for http://www.springframework.org/schema/osgi found inside spring-osgi-core (org.springframework.osgi.core)

    13:02:49,105 | DEBUG | xtenderThread-64 | XmlBeanDefinitionReader | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Loaded 9 bean definitions from location pattern

    13:02:49,105 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Bean factory for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml): org.springframework.beans.factory.support.DefaultListableBeanFactory@145cac5: defining beans ; root of factory hierarchy

    13:02:49,105 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Registering BundleContext as a bean named bundleContext

    13:02:49,106 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Pre-refresh completed; determining dependencies...

    13:02:49,106 | DEBUG | xtenderThread-64 | DependencyServiceManager | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Discovered local dependency factories: []

    13:02:49,107 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'txManager'

    13:02:49,107 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'txManager'

    13:02:49,108 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'txManager' to allow for resolving potential circular references

    13:02:49,108 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Invoking afterPropertiesSet() on bean with name 'txManager'

    13:02:49,108 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'txManager'

    13:02:49,110 | DEBUG | xtenderThread-64 | DependencyServiceManager | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | 1 OSGi service dependencies, 0 unsatisfied (for beans []) in OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,110 | INFO | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,110 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Starting stage two for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,110 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Cancelled dependency watchdog...

    13:02:49,120 | DEBUG | xtenderThread-65 | WaiterApplicationContextExecutor | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Completing refresh for OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml)

    13:02:49,122 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,122 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,122 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.aop.config.internalAutoProxyCreator' to allow for resolving potential circular references

    13:02:49,123 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,123 | DEBUG | xtenderThread-65 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Unable to locate MessageSource with name 'messageSource': using default

    13:02:49,123 | DEBUG | xtenderThread-65 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default

    13:02:49,123 | INFO | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@145cac5: defining beans ; root of factory hierarchy

    13:02:49,123 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'txManager'

    13:02:49,123 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'txManager'

    13:02:49,123 | DEBUG | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Creating a single service proxy ...

    13:02:49,123 | DEBUG | xtenderThread-65 | JdkDynamicAopProxy | ? ? | 74 - org.springframework.aop - 3.0.5.RELEASE | Creating JDK dynamic proxy: target source is EmptyTargetSource: no target class, static

    13:02:49,125 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Adding OSGi mandatoryListeners for services matching

    13:02:49,126 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] bound to proxy

    13:02:49,126 | DEBUG | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] bound to proxy

    13:02:49,126 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Calling bind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,127 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Called bind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,127 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | 1..x cardinality - looking for service at startup...

    13:02:49,127 | INFO | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Looking for mandatory OSGi service dependency for bean matching filter (objectClass=org.springframework.transaction.PlatformTransactionManager)

    13:02:49,127 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service retrieved org.apache.aries.transaction.GeronimoPlatformTransactionManager@1ebc96b

    13:02:49,127 | INFO | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Found mandatory OSGi service for bean

    13:02:49,127 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,127 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,127 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.transaction.config.internalTransactionAdvisor' to allow for resolving potential circular references

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' to allow for resolving potential circular references

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,128 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0' to allow for resolving potential circular references

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Invoking afterPropertiesSet() on bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'javaAssistClassLoader'

    13:02:49,129 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'javaAssistClassLoader'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'javaAssistClassLoader' to allow for resolving potential circular references

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'javaAssistClassLoader'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'jpaAdapter'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'jpaAdapter'

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'jpaAdapter' to allow for resolving potential circular references

    13:02:49,130 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Finished creating instance of bean 'jpaAdapter'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating shared instance of singleton bean 'alunoDao'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Creating instance of bean 'alunoDao'

    13:02:49,131 | DEBUG | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Eagerly caching bean 'alunoDao' to allow for resolving potential circular references

    13:02:49,131 | INFO | xtenderThread-65 | DefaultListableBeanFactory | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@145cac5: defining beans ; root of factory hierarchy

    13:02:49,131 | DEBUG | xtenderThread-65 | DisposableBeanAdapter | ? ? | 68 - org.springframework.beans - 3.0.5.RELEASE | Invoking destroy() on bean with name 'txManager'

    13:02:49,131 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Calling unbind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,131 | DEBUG | xtenderThread-65 | OsgiServiceBindingUtils | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Called unbind on org.springframework.osgi.service.importer.support.internal.aop.ServiceProviderTCCLInterceptor$ServiceProviderTCCLListener@ff51f1 w/ reference

    13:02:49,131 | DEBUG | xtenderThread-65 | ServiceDynamicInterceptor | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] was unregistered and unbound from the service proxy

    13:02:49,131 | DEBUG | xtenderThread-65 | OsgiServiceProxyFactoryBean | ? ? | 76 - org.springframework.osgi.core - 1.2.1 | Service reference [[javax.transaction.TransactionManager, javax.transaction.TransactionSynchronizationRegistry, javax.transaction.UserTransaction, org.apache.geronimo.transaction.manager.RecoverableTransactionManager, org.springframework.transaction.PlatformTransactionManager]] was unregistered and unbound from the service proxy

    13:02:49,132 | DEBUG | xtenderThread-65 | OsgiBundleXmlApplicationContext | ? ? | 70 - org.springframework.context - 3.0.5.RELEASE | Post refresh error

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alunoDao' defined in URL : Cannot resolve reference to bean 'jpaTemplate' while setting bean property 'jpaTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[70:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[79:org.springframework.osgi.extender:1.2.1]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]

    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[68:org.springframework.beans:3.0.5.RELEASE]

    ... 17 more

    13:02:49,132 | DEBUG | xtenderThread-65 | BlueprintListener | ? ? | 14 - org.apache.karaf.shell.osgi - 2.2.0.fuse-00-61 | Spring app state changed to Failed for bundle 323

    13:02:49,132 | ERROR | xtenderThread-65 | ContextLoaderListener | ? ? | 79 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=br.teste.dao.aluno, config=osgibundle:/META-INF/spring/*.xml))

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alunoDao' defined in URL : Cannot resolve reference to bean 'jpaTemplate' while setting bean property 'jpaTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[70:org.springframework.context:3.0.5.RELEASE]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[76:org.springframework.osgi.core:1.2.1]

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[79:org.springframework.osgi.extender:1.2.1]

    at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]

    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jpaTemplate' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[68:org.springframework.beans:3.0.5.RELEASE]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[68:org.springframework.beans:3.0.5.RELEASE]

    ... 17 more

    13:02:51,546 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:51,651 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    13:02:55,890 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@14eefbf 10000 ms elapsed since last write check.

    13:02:55,890 | DEBUG | onitor ReadCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | 30000 ms elapsed since last read check.

    13:02:55,896 | DEBUG | onitor ReadCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | 30000 ms elapsed since last read check.

    13:02:55,897 | DEBUG | nitor WriteCheck | InactivityMonitor | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | org.apache.activemq.transport.InactivityMonitor$2@80387a 10001 ms elapsed since last write check.

    13:02:56,152 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint started.

    13:02:56,224 | DEBUG | heckpoint Worker | MessageDatabase | ? ? | 47 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-61 | Checkpoint done.

    13:02:56,540 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Retrieving service for bundle org.apache.karaf.shell.console and service registration org.apache.felix.framework.ServiceRegistrationImpl@12f8d57

    13:02:56,540 | DEBUG | l Console Thread | ServiceRecipe | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Method entry: getService, args org.apache.karaf.shell.console.commands.BlueprintCommand@1d3ddab

    13:02:56,541 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component shell-159

    13:02:56,542 | DEBUG | l Console Thread | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint -

  • RELEVANCY SCORE 2.51

    DB:2.51:Localsessionfactorybean - Could Not Instantiate Bean Class x7


    Hello,

    I am facing a problem with the instantiation of the LocaSessionFactoryBean in a sample Spring 3.0.4 - Hibernate 3.2.6, WebLogic 10.3.3 and Oracle 10g. I am run an web application using JDeveloper 11.1.1.3.0 with the integrated WebLogic Server 11gR1. Trying to make the existing web application that is currently running on Oracle Web Server to run on WebLogic.
    I have gone through other LocalSessionFactoryBean related postings but could not find any solutions for my problem.

    Here's the server.log during web application deployment and startup -

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'pocDaoTarget' defined in class path resource [spring-chbs.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
    ...

    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.j

    ...

    Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:115)

    ...

    Caused by: java.lang.NoClassDefFoundError
    at org.springframework.orm.hibernate3.LocalSessionFac toryBean.class$(LocalSessionFactoryBean.java:174)

    (Note : I have verified that org.springframework.orm.hibernate3.LocalSessionFactoryBean.class exists in org.springframework.orm-3.0.4.RELEASE.jar)

    ...

    Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)

    ...

    (Note : I have verified that org.hibrnate.cfg.Configuration.class exists in hibernate-3.2.6.ga.jar)

    spring-chbs.xml:

    Code:

    --------------------------------------------------------------------------------
    ...
    bean id="pocDaoTarget"
    class="myproj.component.chbs.dao.PocDaoImpl"
    property name="sessionFactory"
    ref bean="sessionFactory"/
    /property
    /bean
    ...
    --------------------------------------------------------------------------------

    spring-j2eeservices.xml :

    Code:

    --------------------------------------------------------------------------------
    ...
    !-- JNDI DataSource for J2EE environments --
    bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"
    property name="jndiName" value="java:comp/env/jdbc/J2EEDS"/
    /bean

    bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
    property name="dataSource"
    ref bean="dataSource"/
    /property
    property name="mappingJarLocations"
    list
    valueWEB-INF/lib/hibernate-config.jar/value
    !--valueclasspath:hibernate-config.jar/value--
    /list
    /property
    property name="hibernateProperties"
    props
    prop key="session_factory_name"HibernateSessionFactory/prop
    prop key="jndi.class"weblogic.jndi.WLInitialContextFactory/prop
    prop key="hibernate.dialect"org.hibernate.dialect.Oracle10gDialect/prop
    prop key="hibernate.show_sql"true/prop
    /props
    /property
    /bean
    ...
    --------------------------------------------------------------------------------

    Any help would be greatly appreciated.

    Thanks

    DB:2.51:Localsessionfactorybean - Could Not Instantiate Bean Class x7

    I should have mentioned that I am trying to migrate an existing web application running on OC4J to WebLogic 11g Application Server. I came about to learn about the WebLogic Application Server SmartUpdate tool. Does anyone have any experience using this tool?
    Any lead to achieve what I'm trying to do would be greatly appreciated.

    Thanks