ClassNotFoundException for Spring class

Hi,
We are migrating application from WebSphere to SAP NetWeaver. Our Web module uses JAAS for authentication.
In the custom login module we are using Spring framework. We are creating BeanFactory using:
[code]BeanFactory beanFactory = new ClassPathXmlApplicationContext ("conf/service-client/client-prop.xml");[/code]
Content of client-prop.xml is :
[code]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
     <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
          <property name="location">
               <value>conf/service-client/client.properties</value>
          </property>
     </bean>
     <bean id="ClientProperty" class="com.mypkg.common.service.bootstrap.types.ServiceClientProperty">
          <property name="url">
               <value>$://$:$/$/services</value>
          </property>
          <property name="namespacePrefix">
               <value>$</value>
          </property>
     </bean>
</beans>[/code]
Now we are getting the exception:
[code]1.5#000FFE10ED0E0043000000030000090C000417A932F6D6B4#1151915378772#com.sap.engine.services.security#sap.com/MyWeb#com.sap.engine.services.security#Guest#2####11191b600a6e11dbca17000ffe10ed0e#SAPEngine_Application_Thread[impl:3]_35##0#0#Error##Java###Exception #1#com.sap.engine.services.security.exceptions.BaseLoginException: Error in some of the login modules.
     at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:146)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.services.security.login.FastLoginContext.login(FastLoginContext.java:152)
     at com.sap.engine.system.SystemLoginModule.login(SystemLoginModule.java:90)
     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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
     at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
     at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
     at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
     at com.mypkg.client.security.actions.LoginAction.executeLogic(LoginAction.java:43)
     at com.mypkg.client.framework.action.Action.execute(Action.java:67)
     at com.mypkg.client.framework.action.Action.execute(Action.java:41)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
     at com.mypkg.client.framework.action.RequestProcessor.processActionPerform(RequestProcessor.java:53)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Caused by: java.lang.ExceptionInInitializerError
     at com.mypkg.common.service.client.ServiceClientFactory.getProxy(ServiceClientFactory.java:131)
     at com.mypkg.common.service.client.ServiceClientFactory.getService(ServiceClientFactory.java:56)
     at com.mypkg.client.security.auth.UPServiceLoginModule.login(UPServiceLoginModule.java:101)
     at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:68)
     ... 37 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'propertyConfigurer' defined in class path resource [conf/service-client/client-prop.xml]: Bean class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] not found; nested exception is com.sap.engine.frame.core.load.SAPClassNotFoundException: org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
     at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:428)
     at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:335)
     at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:266)
     at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:186)
     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:238)
     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)
     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:124)
     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:140)
     at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:103)
     at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:71)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:267)
     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56)
     at com.mypkg.common.service.bootstrap.BootstrapServiceClient.getClientProperty(BootstrapServiceClient.java:119)
     at com.mypkg.common.service.bootstrap.BootstrapServiceClient.<init>(BootstrapServiceClient.java:48)
     at com.mypkg.common.service.bootstrap.BootstrapServiceClient.<clinit>(BootstrapServiceClient.java:39)
     ... 41 more
Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
Loader Info -
ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:com.sap.security.core.ume.service;service:connector;service:dbpool;service:keystore;service:security;service:userstore]
Parent loader name: [Frame ClassLoader]
References:
   library:com.sap.ip.basecomps
   library:core_lib
   common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
   library:servlet
   library:sapxmltoolkit
   library:com.sap.mw.jco
   library:com.sap.util.monitor.jarm
   library:j2eeca
   library:opensql
   interface:security
   interface:log
   interface:shell
   interface:keystore_api
   library:ejb20
   interface:webservices
   library:com.sap.guid
   interface:appcontext
   interface:endpoint_api
   interface:resourceset_api
   interface:resourcecontext_api
   common:service:iiop;service:naming;service:p4;service:ts
   interface:ejbcomponent
   interface:container
   interface:visual_administration
   interface:transactionext
   interface:dsr_ejbcontext_api
   service:timeout
   service:memory
   service:deploy
   library:antlr
   library:jdbdictionary
   library:opensqlextensions
   service:adminadapter
   interface:cross
Resources:
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
com.sap.security.api.sda
com.sap.security.api.perm.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
keystore
keystore.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_saml_service_api.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
webservices_lib
jaxm-api.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
connector
connectorimpl.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
com.sap.security.api.sda
com.sap.security.api.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
com.sap.security.core.ume.service
com.sap.security.core.ume.service.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
com.sap.security.core.sda
com.sap.security.core.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_jaas_test.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_saml_jaas.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
webservices_lib
webservices_lib.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
userstore
userstore.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
com.sap.security.core.sda
com.sap.security.core.tpd.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_https.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_saml_xmlbind.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
dbpool
sqljimpl.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
security
security.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_ssf.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
dbpool
opensqllib.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_jaas.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
services
dbpool
dbpool.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_compat.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_saml_toolkit_api.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
webservices_lib
jaxrpc-api.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_saml_toolkit_core.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_userstore_lib.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
webservices_lib
saaj-api.jar
   E:
usr
sap
J2E
JC00
j2ee
cluster
server0
bin
ext
security.class
tc_sec_saml_util.jar
Loading model: {parent,local,references}
     at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:314)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:219)
     at org.springframework.util.ClassUtils.forName(ClassUtils.java:87)
     at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:64)
     at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:369)
     ... 58 more[/code]
ClassNotFoundException exception is coming for the class: org.springframework.beans.factory.config.PropertyPlaceholderConfigurer but the correponding jar file (spring-beans.jar) exists in the WEB-INF/lib.
Any kind of help will be greatly appreciated.
Regards,
Sagar

Apparently, this question was repeated 3 times in different forums and is answered in the link below:
ClassNotFoundException for Spring class
Regards.

Similar Messages

  • How to change the defaut xmlparser on OC4J Standalone 10.1.3.4 for Spring 3

    Hi All
    I am trying to use OC4J 10.1.3.4 standalone with Spring 3.0 but I keep getting the error
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'It worked fine when I was using Spring 2.5.6
    I have tried to change the parser as described here (http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html). This is not quite ideal as I want to change the parser for the whole server and not just one application and besides, If I cant start the server, I will not be able to change the parser for an application anyway. I say this because the default xml parser (xmlparserV2.jar) throws an exeception if you try to use it with Spring 3.0 i.e.
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'I have had a look on them Oracle Forums(How can I use a 3rd party XML parser such as xerces with OC4J ? and Spring forums and appararently you have to change the XML parser (because the oracle xml parser is buggy!!) by puting the Xerces parser(or any other parser for that matter) on the classpath and then using the following switch
    java -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Xbootclasspath/a:C:\Miscellaneous\xercesImpl.jar -jar oc4j.jarHowever, when I try and start OC4J, I get the following error and I have no idea how to solve this. I have been at this for a couple of weeks but I still not getting any joy.
    [Fatal Error] :-1:-1: Premature end of file.
    2010-01-07 10:29:06.881 ERROR J2EE JCA-01006 Error initializing an ApplicationConnectionManager - ConnectorArchive and Application cannot be null
    2010-01-07 10:29:06.881 ERROR J2EE JCA-01004 {0}
    2010-01-07 10:29:06.881 WARNING J2EE JCA-01013 Error (Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException) while setting up RA for MCF (oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl) for standalone resource adapter 'Oracle JDBC Resource Adapter'
    2010-01-07 10:29:06.881 ERROR J2EE OJR-00105 Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    10/01/07 10:29:06 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors.  Exception is: Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    10/01/07 10:29:06 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
         at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1623)
         at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1573)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2042)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1287)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:362)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:220)
         at com.evermind.server.Application.setConfig(Application.java:454)
         at com.evermind.server.Application.setConfig(Application.java:355)
         at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1603)
         at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1586)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1018)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
         at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:909)
         at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:314)
         at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1178)
         at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:662)
         at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1616)
         ... 12 more
    10/01/07 10:29:06 WARNING: Application.setConfig Application: default is in failed state as initialization failed.
    java.lang.InstantiationException: Error occurred initializing connectors.  Exception is: Exception creating Managed DataSource ConnectorPropertySet.  Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
    10/01/07 10:29:06 Error initializing server: Application: default is in failed state as initialization failed
    10/01/07 10:29:07 Fatal error: server exitingCan anyone help or show me how to change the xml parser please ?
    Thanks in advance!!

    Hi All,
    I have found a way to change the xml parser for my application and NOT the xml parser for the server. I followed the instructions here http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html. In the end, I had to settle for changing the xml parser of my application(i.e. It uses its a custom parser e.g. xerces not the default OC4J parser i.e. xmlparserV2) and not the xml parser for OC4J because it was near impossible to change the xml parser for OC4J and besides, as the OC4J default parser(xmlparserV2) works well with the server and not my application, it made more sense to change the parser for my application (changed to Xerces) and not OC4J. Hope this helps someone else who may come across a similar problem.

  • How to search for available class in given package?

    How to search for available class in given package or sub package?

    Finally i did it. I make hibernate and spring without much configuration. I just pass the package pattern to search for all bean. I named it package pattern injection.
    My website is still under construction yet. It named Jimmy6 Framework.
    The code it just the following for all hibernate and spring bean for the whole project.
    <bean id="sessionFactory" class="com.j6.framework.JAnnotationSessionFactoryBean">
              <property name="annotatationOrHbmXmlPackagePattern">
                   <list>
                        <value>com\.j6\.project.+?\.vo\..+?</value>                    
                   </list>
              </property>               
    <bean id="autoBeanCreatorFactoryManager" class="com.j6.framework.resource.AutoBeanCreatorFactory">
              <property name="packagePatterns">
                   <list>
                        <value>com\.j6\.project\..+?\.manager\..+?</value>
                   </list>
              </property>
         </bean>
         <bean id="autoBeanCreatorFactoryDao" class="com.j6.framework.resource.AutoBeanCreatorFactory">
              <property name="packagePatterns">
                   <list>
                        <value>com\.j6\.project\..+?\.dao\.hibernate.+?</value>
                   </list>
              </property>
         </bean>Feel free to have a look and gv some comments. Thanks :)
    Regards,
    Jimmy6
    Edited by: jimmy6 on Nov 4, 2008 8:15 AM

  • Is it possible for Spring to start the CacheFactory ???

    We would like to avoid the following code in our XXXCoherenceDAO's
    NameCache customerCache = CacheFactory.getCache(com.xx.Customer.class.getName());
    Instead we would like Spring to do the magic of "CacheFactory.getCache()";
    I tried following code in tangsol-coherence-override.xml but it throws Null Pointer Exception in XXXDAO's while accessing the variable name customerCache, which makes sense so how to get this magic happening
    <configurable-cache-factory-config>
      <class-name system-property="tangosol.coherence.cachefactory">
        com.tangosol.coherence.spring.SpringAwareCacheFactory
      </class-name>
      <init-params>
        <init-param>
          <param-type>java.lang.String</param-type>
          <param-value system-property="tangosol.coherence.cacheconfig">
            coherence-cache-config.xml
          </param-value>
        </init-param>
        <init-param id="1">
          <param-type>java.lang.String</param-type>
          <param-value system-property="tangosol.coherence.springconfig">
            application-context.xml
          </param-value>
        </init-param>
      </init-params>
    </configurable-cache-factory-config>

    I am getting following exception while using SpringAwareCacheFactory from the article
    http://wiki.tangosol.com/display/COH35UG/Integrate+CacheFactory+with+Spring
    </class-scheme>) java.lang.ClassNotFoundException: spring-bean:entityCacheStore
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2307)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:2994)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:2857)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1493)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1258)
         at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3492)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.instantiateResourceMap(DistributedCache.CDB:22)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.setCacheName(DistributedCache.CDB:27)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConfigListener.entryInserted(DistributedCache.CDB:15)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:206)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:166)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
         at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.coherence.component.util.collections.WrapperMap.put(WrapperMap.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$ServiceConfigMap.put(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$StorageIdRequest.onReceived(DistributedCache.CDB:45)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: spring-bean:entityCacheStore
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:2976)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2273)
         ... 22 more

  • Get the relative path for java class

    How to get Relative path for java class which is inside in web-inf directory in webapps

    ajay.manchu wrote:
    Hi gimbal2,
    My Requirement is i need to run a java class from batch file,when i created batch file in that i need to mention the complete path of the java class,so instead of mentioning that i want to provide only java class name,thats why i asked that one..
    can u help me regarding that....
    Thanks in advanceI wonder how that would work then. Let's take a fictive example. You have a class com.mycompany.myapp.Foo. This would mean that the class is stored in some directory like this:
    c:/webrootdir/myapp/WEB-INF/classes/com/mycompany/myapp/Foo.classTo be able to run such a class from the commandline using Java, you would have to invoke this command:
    java -cp c:/webrootdir/myapp/WEB-INF/classes com.mycompany.myapp.FooHow would knowing the exact path to this class help you?

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Own LR need LR,Bridge and PS for a class will a new upload effect existing LR?

    HELP please I own LR already don't really want to pay for it again, also concerned with a new Software interfering with existing......but need Bridge and PS for a class...thoughts?

    Moving this discussion to the Adobe Creative Cloud forum.
    Kawachinagano I am sorry you are facing difficulty submitting your redemption code.  Please see Redemption Code Help for information on how to redeem your redemption code for your membership.

  • How to programmatically get the source for a class provided the class name?

    Hello,
    As a quick background, I am providing some tools to potential users of an in-house framework. One is the ability to generate quick prototypes from our existing demo applications. Assume a user downloads our jars and uses them in their project (we are using Eclipse, but that detail should not greatly affect my question). Included in the jars is a demos package that contains ready-to-run classes that serve to exhibit certain functionality. Since many users may just need quick extensions of these demos, I am trying to provide a way for them to be able to create a new project that starts with a copy of the demo class.
    So, the user is provided a list of the existing demos (each one uses a single class). When the user makes their selection, with the knowledge of our framework, I can translate that into what demo class they need (returned as a string of format package.subpack1.subpackn.DemoClassName). What I now want to do is to use that complete class name to get the source (look up the file) for the corresponding class, and copy it into to a new file in their project (the copying into the project can be done easily in Eclipse, so what I need help with is the bolded part). Is there a simple way to get the source given a class path for a class as described above? You may assume the source files are included in the jars for the framework.
    Thanks in advance.

    If there's a file named "package.subpack1.subpackn.DemoClassName.java" in a "demos" directory in the jar, then yes. You'd just use
    InputStream code = getResourceAsStream("/demos.package.subpack1.subpackn.DemoClassName.java");Or if those dots in the name actually separate directory names, i.e. you have a "package" directory under "demos" and a "subpack1" director under that and so on, then:
    InputStream code = getResourceAsStream("/demos/package/subpack1/subpackn/DemoClassName.java");

  • Change  GL account for valuation classes

    This is vasanth . my client has different 5 plants  . he wants to change gl account for valuation class.because the reason is  (rawmaterial of steel&cement is being stored in spares and stores). The g/l account is 23010001 . This gl account has been assingned 13 valuation class . the valuation classes for steels&cement r 3040.3080  and 3090.
    but the valuation area is defined at plant .there r 5 valuation areas . valuation  class for all areas r  3040,3080 and 3090.
    g/l  account  is also same.
    is it advisable to change the g/l account.
    give me  solutions for this  problem.

    Thank u raj,
    as per u 1:1 relation of valuation class and g/l account 203010001 ok. but gl account 203010001 has beeen assigned to 13 valuation class .13 valuation class has more than 500 material masters. but that valuation class 3040,3070,3080 r relates to the steels as well as cement. present my client using the 20301001g/l account for all spares aswell as stells and cement. i am sending my client require ment.
    We need to change the accounting at the time of procurement and  steel & cement.
    At the time of GR
    Stores & Spares Indigenous Dr.
    GR/IR Stores & Spares Ind.
    At the time of issue to vendor location
    Project Stock Dr. (with WBS element)
    Stores & Spares Indigenous
    Actual Consumption
    CWIP A/C Dr.     (With WBS element)
    Project Stock Dr. (with WBS element)
    Change Required
    At the time of GR
    Project Stock Dr. (without any WBS element) instead of Stores & Spares Indigenous
    GR/IR Project Stock.
    At the time of issue to vendor location
    Project Stock Dr. (with WBS element)
    Project Stock (without any WBS element)
    Actual Consumption- The existing entry pattern will be followed.
    Please advice how to map the above and for clarification revert back.
    Thanks&regards,
    vasanth

  • Creat transaction (se93) for Globa class in ABAP Objects

    Hi experts,
           Can any one tell me how to
    creat transaction (se93) for Globa class(se24)  in ABAP Objects
    if ,please assest me how to do it or send me example docu on this
    best Answer will be rewarded
    regards
    fareedas

    hi
    se93->give your transaction ->enter create.
    check the radio button (Method of calss(OO class).press enter.
    in next screen.
    transaction text ;give your own description
    tick the check box OO transaction model.
    give the class name method name which u have created in se 24.which was activated successfully.it should be activated otherwise it will not work.
    under GUI SUPPORT.
    TICK the all 3 check boxes.
    SAP GUI  FOR HTML
                            JAVA
                           WINDOWS.
    then save.
    u should b saved in package(don't forget).
    it was working.
    i have already checked and did it succesfully.
    reward points
    if u have any queries let me know.
    kiran jagana

  • What are the following:1)Cisco 1600 Series IOS WIRELESS LAN RECOVERY. 2)Service Provider Option 60 for Vendor Class Idenfier

    What are the following:1)Cisco 1600 Series IOS WIRELESS LAN RECOVERY. 2)Service Provider Option 60 for Vendor Class Idenfier
    These items are listed with 1600 series AP but I'm unable to understand what are these things & the use of them

    DHCP Option 60:  Go HERE.

  • Not able to created Number Ranges for Asset Classes in AS08

    Dear Friends,
    I am not able create Number Ranges for Asset Classes in AS08.
    It is giving me an error message as company code does not exist.
    When I Check Consistency under path SPRO -> Financial Accounting -> Asset Accounting -> Preparing for Production Startup -> Check Consistency -> Overview Report: Company Codes. I am getting the following
    RSOL  Reliance Sealink One PLtd                                            
    CoCode no. alloc.    NKTR                                                
    Fiscal Year Variant  V3   Apr.- March, 4 special periods                 
    Start 2nd half month 00                                                  
    Transfer date        31.03.2006                                          
    Chart of dep.        TOLL Chart of Depreciation - For Highway Projects   
    Net worth tax        01   Book depreciation as per Compinies Act 1956    
    Enter net book value                                                     
    Status company code  2                                                   
    Current fiscal year  2007                                                
    Doc. type dep. pstng AF   Dep. postings                                  
    > Number range &1 in co.code &2 for doc.type &3 must be defined as internal
    Calc.insur.value                                                         
    Input tax exempt         
    If you see the above first two line you will find the difference is that Company code RSOL in the first line and NKTR company code in the second line.
    Actually CoCode no. alloc. has been wrongly copied as NKTR while copying CoCode it should be RSOL and not NKTR.
    I think because of this wrong allocation it is giving me an error in AS08. Also it is not showing me CoCode in drop down list in AS08.
    Please help me to resolve the problem.
    Thanks
    Rahul Jain

    Look in TC OAOB if the company code is assigned to a chart of depreciation

  • Issue with Report to get Position value for each Class ID.

    Hello Experts,
    m working on a report where I want Position values as on date.
    for an entered date report should give position value(Amount for transaction) for each class Id.
    I m trying using the exit variable but could not reach the output.
    For date I created an exit variable which shoud return the latest position for each class Id.
    Now this exit variable is "ready for Input" . when I debug my code it takes i_step =3 and i_vanm= " " after i_step = 1 and i_vnam = "<variablename>"
    how do I go about to get the solution.
    Guide me to come up with desired output.
    Thanks in Adv.
    Bhavna.

    Hello Experts,
    m working on a report where I want Position values as on date.
    for an entered date report should give position value(Amount for transaction) for each class Id.
    I m trying using the exit variable but could not reach the output.
    For date I created an exit variable which shoud return the latest position for each class Id.
    Now this exit variable is "ready for Input" . when I debug my code it takes i_step =3 and i_vanm= " " after i_step = 1 and i_vnam = "<variablename>"
    how do I go about to get the solution.
    Guide me to come up with desired output.
    Thanks in Adv.
    Bhavna.

  • For all classes used in the alv reports.

    we need the list of required classes used in alv reports this urgent .
    please help me.

    Hi Navid,
    Check <b>SLIS Package/Dev.Class for node Classes</b>,
    here u will find all required <b>classes for ALV including ALV Hierarchical,AVL Tree, ALV HTML.</b>
    Classes.
    CL_ALVHT_HTMLINPUT-> ALV: HTML Input (Control Proxy)
    CL_ALVHT_HTML_PAGE-> ALV HTML Page
    CL_ALVHT_HTML_TEMPLATE-> ALV: HTML Templates
    CL_ALVHT_TAGSTREAM-> ALV
    CL_ALVHT_UI_ELEMENT-> ALV: HTML User Input Element
    CL_ALV_BDS-> BDS Access and Data Retention
    CL_ALV_CHANGED_DATA_PROTOCOL-> Message Log for Data Entry
    CL_ALV_DD_DOUBLE_LISTBOX-> Management Class for two D&D List Boxes
    CL_ALV_DD_LISTBOX-> D&D List Box
    CL_ALV_EVENT_DATA-> Changing Data Container for Events
    CL_ALV_EVENT_TOOLBAR_SET-> ALV Context Menu
    CL_ALV_GRAPHICS-> ALV Graphic (Integration with GFW)
    CL_ALV_GRAPHICS_CU-> Customizing of ALV Graphics
    CL_ALV_LISTBOX_DRAGOBJ->
    CL_ALV_OI BDS-> Access and Data Retention
    CL_ALV_TABLE_CREATE-> Dynamic Creation of ALV Data Table
    CL_ALV_TREE_BASE-> Basis Class ALV Tree Control
    CL_ALV_VARIANT-> ALV Variant Management
    CL_GUI_ALV_GRID-> ALV List Viewer
    CL_GUI_ALV_GRID_BASE-> Basis Class for ALV Grid
    CL_GUI_ALV_TREE-> ALV Tree Control
    Regards,
    Raghav
    Message was edited by:
            Raghavendra  L

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

Maybe you are looking for