Spring vs JEE

Hi,
Today when companies have to create a Java development environment, what is the best way to go?
Let�s say that a senior team would maintain this environment, and that this environment would spread everywhere in the company for creating every web applications (Intranet, Internet, ....). That�s why the choice of this environment is so important as it won�t change for the next 5 or 10 years.
Today I see 2 solutions:
1. The unspecified Java solution: Tomcat web server + Spring Framework (MVC, ...)
2. The specified professional JEE solution: A JEE app server (Glassfish, Jboss or Websphere,...) + an MVC framework (Spring, or Struts2, ...)

[Here are some|http://google.com/search?q=spring+vs+jsf].
That suggested, there is IMHO no Spring or JSF. You can perfectly integrate them altogether.

Similar Messages

  • Spring + weblogic. NamedQuery not found

    I've posted this at the [Spring forum|http://forum.springframework.org/showthread.php?t=67389] as well(, just wanted to try here too...
    We're new to about all of the technology we're working with, and we're having a hard time to get it all right. Please bear with us...
    We are developing a web application in JDeveloper 11g, using the integrated WebLogic Server and trying to configure Spring correctly. We don't have any experience with Spring, so we're just looking at examples and trying to figure it out. When running the application on the server, it seems that we get a connection to the database, but there are no Spring instances visible in the console...and when loading a jsf page, we get this error:
    12.feb.2009 10:51:16 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: ADFc: Det oppstod et uventet unntak: javax.ejb.EJBException, mld=EJB Exception: : java.lang.IllegalArgumentException: NamedQuery of name: CseAnalysis.findAll not found.
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getDatabaseQuery(EJBQueryImpl.java:454)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setAsSQLReadQuery(EJBQueryImpl.java:117)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:503)
         at no.csam.plexus.configmanager.lab.dao.LabDAOImpl.queryCseAnalysisFindAll(LabDAOImpl.java:166)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy110.queryCseAnalysisFindAll(Unknown Source)
         at no.csam.plexus.configmanager.lab.service.LabEJBBean.queryCseAnalysisFindAll(LabEJBBean.java:111)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    Here are some snippets of code:
    EntityBean:
    @Entity
    @NamedQueries({
    @NamedQuery(name = "CseAnalysis.findAll", query = "select o from CseAnalysis o")
    @Table(name = "CSE_ANALYSIS")
    @IdClass(CseAnalysisPK.class)
    public class CseAnalysis implements Serializable {
    DAO:
    @Transactional
    @Repository
    public class LabDAOImpl implements LabDAO{
    @PersistenceContext
    private EntityManager em;
    /** <code>select o from CseLabAnalysis o</code> */
    public List<CseLabAnalysis> queryCseLabAnalysisFindAll() {
    return em.createNamedQuery("CseLabAnalysis.findAll").getResultList();
    SessionBean:
    @Stateless(name = "LabEJB", mappedName = "LabEJBBean")
    @PersistenceContext(name="CM_Service/EntityManager",unitName="CM_Service")
    @Remote
    @Local
    public class LabEJBBean extends AbstractStatelessSessionBean implements LabEJB, LabEJBLocal {
    private LabDAO labDAO;
    public LabEJBBean(){}
    protected void onEjbCreate() {
    labDAO = (LabDAO)getBeanFactory().getBean("labDAO");
    public List<CseLabAnalysis> queryCseLabAnalysisFindAll() {
    return labDAO.queryCseLabAnalysisFindAll();
    Spring config:
    <jee:jndi-lookup id="entityManagerFactory"
    jndi-name="java:comp/env/persistenceUnit"/>
    <bean id="transactionManager"
    class="org.springframework.transaction.jta.WebLogicJtaTransactionManager"/>
    <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
    <bean id="LabEJB" class="no.csam.plexus.configmanager.lab.service.LabEJBBean">
    <property name="labDAO" ref="labDAO"/>
    </bean>
    <bean id="labDAO" class="no.csam.plexus.configmanager.lab.dao.LabDAOImpl"></bean>
    <tx:annotation-driven/>
    persistence.xml:
    <persistence-unit name="CM_Service" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/ODSDS</jta-data-source>
    <properties>
    <property name="eclipselink.logging.level" value="FINE"/>
    <property name="javax.persistence.jtaDataSource"
    value="jdbc/ODSDS"/>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    </properties>
    </persistence-unit>
    Any hints or guidance will be appriciated.
    Thanks in advance

    Hi,
    if you have no experience with Spring, how did you get your application developed ? Anyway, I suggest you try the WLS forum here on OTN since the server configuration is not in the domain of JDeveloper
    WebLogic Server - General
    Frank

  • EJB Spec Question regarding classloading

    Some time ago I posted a message on "The Serverside" asking whether "Spring violates JEE spec". Of course I meant especially the EJB spec:
    http://www.theserverside.com/news/thread.tss?thread_id=50477#267459
    A huge discussion started especially regarding the following statement in the spec:
    "The enterprise bean must not attempt to create a class loader; obtain the current class loader;
    set the context class loader; set security manager; create a new security manager; stop the
    JVM; or change the input, output, and error streams."
    There was a lot of discussion. Someone then pointed to the following page:
    http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html
    There I can read something which confused me:
    "Contrary to common belief, most of the Java Reflection API can be used from EJB components. For example, loadClass() and invoke() can both be used by enterprise beans. Only certain reflection methods are forbidden."
    Is the writer of this article wrong? Or is true? But then why does the spec make this general restriction?
    I hope someone can shed some light on this. I'd really like to have an answer to that.
    Regards
    Oliver

    I am guessing it would throw an exception as it would not be able to map to fields it was not aware of. Maybe that is why...?How should it not be able, since I am telling it explicitly which fields to map to with @FieldResult ?
    And moreover.. what harm can it be there if I map the fields as I want ?
    I'm not trying just to justify the correctness of the spec, which I can hardly assume.. I need a strong argument.
    Edited by: javaUserMuser on May 12, 2009 6:48 AM
    Edited by: javaUserMuser on May 12, 2009 6:49 AM

  • How to tell client disconection reason when invoke disconnect() on the server side.

    Is there any way to tell client the reason for disconect when I call disconect() on the server side. its some way like using error object as optional parameter to include reject reason when invode rejectConnection

    Ignore the JSRs for now.
    Follow the JavaEE tutorial.
    http://docs.oracle.com/javaee/6/tutorial/doc/
    The answers to many of your questions will be clear to you once you have completed the tutorial.
    I also like the tutorials here (they are a little dated, but still mostly relevant as the core JEE6 specs that the tutorial relies on were released over 5 years ago and JEE7 is yet to be released).
    https://schuchert.wikispaces.com/EJB+3+and+Java+Persistence+API
    zonski has a spring+javafx focused tutorial if you would prefer to learn and use Spring than JEE (they are differing technologies which cover pretty much the same functional set):
    http://www.zenjava.com/series/building-jee-applications-in-javafx-2-0/
    JavaFX is a client side framework so there is not much you would do with it on the server side.
    It seems like there is a ton of "JSR's" for different tasks, and I'm not sure exactly what I need, and all that, so I'm really confusedNobody needs all of JEE, just use the bits that you want that are a good fit for whatever project you are doing - don't try to use everything at once.
    A lot of the stuff can be learnt and used in isolation.
    Selected relevant topics, might be (in the order that I would consider them):
    Persistence: http://docs.oracle.com/javaee/6/tutorial/doc/bnbpy.html
    Java Servlet Technology: http://docs.oracle.com/javaee/6/tutorial/doc/bnafd.html
    JAX-RS web services: http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
    Contexts and Dependency Injection: http://docs.oracle.com/javaee/6/tutorial/doc/gjbnr.html
    Enterprise Beans: http://docs.oracle.com/javaee/6/tutorial/doc/bnblr.html

  • Spring and TopLink/JPA on OC4J 10.1.3.4.0

    Our configuration worked fine on OC4J 10.1.3.1 (linux) and 10.1.3.3 (windows). We have a problem with JPA (toplink essentials--not eclipselink) on OC4J 10.1.3.4.0 using Spring (2.0.7 and 2.5.6). We found that it was trying to connect to the default OracleDS data source(there were 2 connections in toplink essentials for some reason), but once we defined an OracleDS, it gave us this error:
    javax.servlet.ServletException: javax.faces.el.EvaluationException: Error getting property 'experiments' from bean of type gov.llnl.nif.dataviz.mssar.web.ExperimentListBean: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException:
    Exception Description: Cannot use an EntityTransaction while using JTA.
    Our persistence.xml looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
         <persistence-unit name="mssar">
              <class>gov.llnl.nif.dataviz.mssar.model.ExperimentInfo</class>
              <class>gov.llnl.nif.dataviz.mssar.model.UsePlan</class>
         <properties>
         <property name="toplink.cache.shared.gov.llnl.nif.dataviz.mssar.model.ExperimentInfo" value="false"/>
         <property name="toplink.cache.shared.gov.llnl.nif.dataviz.mssar.model.UsePlan" value="false"/>
         </properties>
         </persistence-unit>
    </persistence>
    Our orm.xml looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0">
    </entity-mappings>
    Our spring configuration looks like:
    <?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:jee="http://www.springframework.org/schema/jee"
    xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
         http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
         default-autowire="byName">
    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="dataSource" ref="dataSource"/>
    <property name="jpaVendorAdapter">
    <bean class="org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter">
    <property name="showSql" value="true"/>
    <property name="databasePlatform" value="oracle.toplink.essentials.platform.database.oracle.OraclePlatform"/>
    </bean>
    </property>
    <property name="loadTimeWeaver">
         <bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver"/>
    </property>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="jdbc/SSARDS"/>
    <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="entityManagerFactory" ref="entityManagerFactory" />
         <property name="dataSource" ref="dataSource" />
    </bean>
         <bean id="experimentsQueryBuilder" class="gov.llnl.nif.dataviz.mssar.dao.jpa.ExperimentsQueryBuilderJpa"/>
         <bean id="experimentsDao" class="gov.llnl.nif.dataviz.mssar.dao.jpa.ExperimentsDaoJpa"/>
         <bean id="experimentListManager" class="gov.llnl.nif.dataviz.mssar.service.impl.ExperimentListManagerImpl"/>
    </beans>
    ExperimentInfo.java mapping looks like:
    @Entity
    @Table(name = "EXPERIMENT_IDS")
    public class ExperimentInfo implements ExperimentInformation {
         @Id
         @Column(name="EXPERIMENT_ID")
         String experimentId;
         @Column(name="EXPERIMENT_DESCRIPTION")
         String expDescription;
         @Column(name="STATUS")
         String status;
         @Column(name="EXPERIMENT_PI")
         String expPI;
         //Date lpomDate;
         //Date settingsDate;
         @Column(name="LPOM_DATE")
         Timestamp lpomDate;
         @Column(name="SETTINGS_DATE")
         Timestamp settingsDate;     
    UsePlan.java looks like:
    @Entity
    @Table(name="USE_PLAN")
    public class UsePlan extends BasePlan implements PlanData, Serializable {
         static final long serialVersionUID = -1555327955428351924L;
         @Id
         @Column(name="EXP_SHOT_ID")
         String expShotId;
         @Id
         @Column(name="LOCATION")
         String location;
         @Id
         @Column(name="INFO_VAR")
         String infoVar;
         @Id
         @Column(name="USE_ITEM_NAME")
         String useItemName;
         @Column(name="USE_PRIORITY")
         String usePriority;
    ExperimentListManagerImpl looks like:
    @Transactional(readOnly=true)
    public class ExperimentListManagerImpl implements ExperimentListManager {
    This is a read-only app but it should not use the cache.
    Our Dao Looks like:
    public class ExperimentsDaoJpa extends JpaDaoSupport implements ExperimentsDao {
    private QueryBuilder experimentsQueryBuilder;
    public List<ExperimentInfo> shotsByQueryBean(ExperimentsQueryBean queryBean, String sortColumn, boolean ascending) {
         try {
              getJpaTemplate().flush();
              experimentsQueryBuilder.buildQuery(queryBean);
         experimentsQueryBuilder.setSortColumn(sortColumn, ascending);
         List<ExperimentInfo> result = getJpaTemplate().findByNamedParams(experimentsQueryBuilder.getQuery().toString(), experimentsQueryBuilder.getParams());
         // pull new results from database
         /*for (ExperimentInfo ei : result) {
              getJpaTemplate().refresh(ei);
         return result;
         } catch (Throwable t) {
              t.printStackTrace();
              return null;
         public void setExperimentsQueryBuilder(QueryBuilder experimentsQueryBuilder) {
              this.experimentsQueryBuilder = experimentsQueryBuilder;
    Thanks,
    John Carlson

    We also had this problem. We have changed the TransactionManager.
    Replace the JPATransactionManager with the JTATransactionManager.
    <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" />
    If you are using JTA you can't use the JPA Transaction Manager. It doesn't support JTA.
    Found it on a forum of Spring. (http://forum.springframework.org/showthread.php?t=48191)
    Dennis

  • Using WebLogic JMS Wrappers with Spring

    Hi,
    I was just wondering if anyone used WebLogic JMS wrappers with Spring?
    I am using WebLogic configured to have Sonic as my Foreign JNDI Provider. Weblogic provide me with specific entries on the admin console to set information such as the JNDI name of the Sonic Connection Factory. If I specify this JNDI name in the Spring config, and call getConnection() then I will get back a new connection each time.
    I don't want this, I want to cache the connection (as connections are expensive in Sonic). This is where the WebLogic JMS wrappers come in, they can handle the pooling for me but the only way I can see to use them is via a resource-ref. It is possible for Spring to get a handle onto these wrappers or should I use Spring's own pooling mechanism instead?
    P.S. I've also asked this question on the Spring forum
    Thanks for any help
    Mandy

    Maybe you have already tried the following:
    <beans xmlns:jee="http://www.springframework.org/schema/jee" ... >
    <jee:jndi-lookup id="connectionFactory" jndi-name="jms.ConnectionFactory">
    <jee:environment>
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://localhost:7001
    </jee:environment>
    </jee:jndi-lookup>
    </beans>
    an alternative is to use the JNDI template
    <beans ... >
    <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
    <property name="environment">
    <props>
    <prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
    <prop key="java.naming.provider.url">t3://localhost:7001</prop>
    </props>
    </property>
    </bean>
    <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiTemplate" ref="jndiTemplate" />
    <property name="jndiName"><value>jms.ConnectionFactory</value></property>
    </bean>
    </beans>

  • Need Help in JNDI Datasource using tomcat and spring

    Hi,
    I am trying to connect my local database using JNDI datasource in tomcat and spring
    I have done the below configuration in Tomcat 7 server:
    In tomcat server.xml (Path: E:\apache-tomcat-7.0.35\conf) I added the below configuration
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/myApp" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:hr@localhost:1521:XE>"
    username="testUser" password="password"
    maxActive="10" maxIdle="5"
    maxWait="60000" removeAbandoned="true"
    removeAbandonedTimeout="60" logAbandoned="true"/>
    In web.xml, I have added the below config:
    <resource-ref>
    <description>Oracle Spring JNDI Datasource</description>
    <res-ref-name>jdbc/myApp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    And in my Spring context xml (ws-context.xml), added below config:
    <bean name="myDataSourceInJndi" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/myApp"/>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="/jdbc/myApp" resource-ref="true"/>
    In my Java code, I am trying the below code to connect DataBase:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource) envCtx.lookup("jdbc/myApp");
    ds.getConnection();
    But I am getting the below exception while executing ****ds.getConnection();***
    java.lang.IllegalStateException: Connection factory returned null from createConnection
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:584)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at com.wipro.spring.impl.EmployeeImpl.getDetails(EmployeeImpl.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
    at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    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)
    Can you please me to resolve this issue? Am I missing any configuration or any mistake in my java code please suggest your suggestions.
    Thanks

    Hi,
    I am trying to connect my local database using JNDI datasource in tomcat and spring
    I have done the below configuration in Tomcat 7 server:
    In tomcat server.xml (Path: E:\apache-tomcat-7.0.35\conf) I added the below configuration
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/myApp" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:hr@localhost:1521:XE>"
    username="testUser" password="password"
    maxActive="10" maxIdle="5"
    maxWait="60000" removeAbandoned="true"
    removeAbandonedTimeout="60" logAbandoned="true"/>
    In web.xml, I have added the below config:
    <resource-ref>
    <description>Oracle Spring JNDI Datasource</description>
    <res-ref-name>jdbc/myApp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    And in my Spring context xml (ws-context.xml), added below config:
    <bean name="myDataSourceInJndi" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/myApp"/>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="/jdbc/myApp" resource-ref="true"/>
    In my Java code, I am trying the below code to connect DataBase:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource) envCtx.lookup("jdbc/myApp");
    ds.getConnection();
    But I am getting the below exception while executing ****ds.getConnection();***
    java.lang.IllegalStateException: Connection factory returned null from createConnection
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:584)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at com.wipro.spring.impl.EmployeeImpl.getDetails(EmployeeImpl.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
    at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    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)
    Can you please me to resolve this issue? Am I missing any configuration or any mistake in my java code please suggest your suggestions.
    Thanks

  • BlazeDS/Security/Spring/NonBlazeDS/NonSpring/Confusion Oh My

    I'm new to Flex (coming over from the pure JEE world.) One of the first things that is needed for any application is security authentication/authorization. I've been extremely disappointed, though, in the lack of good examples with best practices on how to handle this, or if there is a book that covers it well let me know and I'll purchase it.
    I'm working with BlazeDS at the moment (but not opposed to scrapping it.)
    I have managed to finally get a security setup using blazeds-spring integration working, but their forum is a ghost town so it makes me think that there aren't many people using it. The docs are also extremely vague. Had it not been for some stuff that I was able to pull from these two tutorials by the same author http://www.adobe.com/devnet/flex/articles/flex_security.html#ach-setscr  http://www.gridshore.nl/2009/05/24/integrate-flex-security-in-mate-using-the-spring-blazed s-integration-project/ I would have been completely lost. Even though it's 'mostly' working, so much is unknown to me, and because the reference doc http://static.springsource.org/spring-flex/docs/1.0.x/reference/html/index.html is so short it doesn't cover a lot of what is going on.
    I'm not even 100% certain I want to use Spring though (It seems to actually black-box too much and in some ways overcomplicate things with a lot of configuration), yet I want my application be portable across containers. Where are the examples on the best way to set things up? The blazeds reference doc chapter seems to gloss over a lot, and only confuses me a bit more. I'd like to see some real examples.
    As an example of some things that I'd like to see:
    1) When not using Spring security, where is a concrete implementation of handling authentication and authorization (with/without blazeDS - I just want a good best practice example of how things are handled)?
    2) How are people dealing with session time outs? (user clicking around in application and then they happen to make a server call but their session is gone. Do you simply poll every few minutes to keep the session alive?)
    3) Are people putting up a filter up before the blazeDS filter to check the user's session is valid? If the session isn't valid and you've set up a filter, what happens on the flex side of things if the filter finds an invalid session? It can only redirect for forward so how does it trigger the client flex app that it needs to invalidate its internal storage of an authenticated user and hence needs to redisplay the login page. I know how to set things up in a traditional java web app, but I'm a bit stumped here... I only have one main "FooBar.swf" file, so when the sesison filter realizes the user's session timed out where do I "go" - can I somehow just redirect to the same main page "FooBar.swf" and somehow Flex can be aware that "Hey ok some event happened so I need to invalidate my flex user and present the login page (login component)"
    Thanks for any suggestions/help on what to look at for best practices.

    Hi,
    Did you got any ideas on this one? As a newcomer to Flex/BlazeDS I'd like hear those?
    I'll add my thoughts to the discussion you started.
    2) How are people dealing with session time outs? (user clicking around
    in application and then they happen to make a server call but their
    session is gone. Do you simply poll every few minutes to keep the
    session alive?)
    I check the session in a filter for each request. If there's no valid session, the filter sends a response message to flex app which shows it as a Alert message.I'm not (yet) using blaze, but I don't see why it wouldn't work.
    If you want, you can configure the session timeout in the web.xml of your web app, so no need to poll. It would be nice to get asynchronous event from the server side when the session times out. This requires to use the pub/sub method of blaze or java messaging on a servlet.
    The web.xml of the blazeDS samples has the following lines
    <!-- Http Flex Session attribute and binding listener support -->
        <listener>
            <listener-class>flex.messaging.HttpFlexSession</listener-class>
        </listener>
    To me this indicates that you can define a listener for the session somehow. It would be nice to know more about this.
    3) Are people putting up a filter up before the blazeDS filter to check
    the user's session is valid? If the session isn't valid and you've set
    up a filter, what happens on the flex side of things if the filter
    finds an invalid session? It can only redirect for forward so how does
    it trigger the client flex app that it needs to invalidate its internal
    storage of an authenticated user and hence needs to redisplay the login
    page. I know how to set things up in a traditional java web app, but
    I'm a bit stumped here... I only have one main "FooBar.swf" file, so
    when the sesison filter realizes the user's session timed out where do
    I "go" - can I somehow just redirect to the same main page "FooBar.swf"
    and somehow Flex can be aware that "Hey ok some event happened so I
    need to invalidate my flex user and present the login page (login
    component)"
    Why not just have different swfs? When the session is not valid, redirect to login.html (a wrapper for login component).
    If I have understood correctly, Flex uses HTTP GET method to communicate with the browser. So it might be possible to send parameters to the app after the filter. Also, using java script and external interface might be helpful here.

  • Spring and Jms message: no message in the queue

    Hi all,
    this is my application
    Spring 3.0.5 + Oc4j 10.1.3.3 + Oracle DB + Oracle Aq
    This is the flow:
    1. Update datas
    2. Send jms message
    The application updates correctly datas, in the same transaction sends a message to an oracle jms queue but the queue table is empty.
    Transaction starts with method avvService.updateStatoService()
    This is a log snapshot
    2013-02-07 11:04:48,982 [DEBUG] org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:365) CLIENT: HOST: - Creating new transaction with name [it.mycompany.gevi.service.avvenimenti.AvvenimentoService.updateStatoAvvenimentoService]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,-java.lang.Exception
    2013-02-07 11:04:52,340 [DEBUG] it.mycompany.service.qbuilder.logic.QBUpdateService.doExecute(QBUpdateService.java:62) CLIENT: HOST: - DAO.updateService - getStatement 
    2013-02-07 11:04:52,340 [INFO] it.mycompany.service.qbuilder.logic.QBUpdateService.doExecute(QBUpdateService.java:62) CLIENT: HOST: - DAO - SQL is:
              UPDATE TABLE_NAME
              SET STATO = ?
              WHERE COD = ?
    2013-02-07 11:04:52,918 [INFO] it.mycompany.service.qbuilder.logic.QBUpdateService.doExecute(QBUpdateService.java:62) CLIENT: HOST: - DAO - {1=1, 2=1200300146}
    2013-02-07 11:04:52,949 [INFO] it.mycompany.gevi.service.GenericService.updateService(GenericService.java:50) CLIENT: HOST: - Risultato updateService:1
    2013-02-07 11:04:52,965 [DEBUG] org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:470) CLIENT: HOST: - Participating in existing transaction
    2013-02-07 11:04:53,730 [DEBUG] org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:464) CLIENT: HOST: - Executing callback on JMS Session: oracle.jms.AQjmsSession@ee2a92
    2013-02-07 11:04:54,167 [DEBUG] org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:567) CLIENT: HOST: - Sending created message: oracle.jms.AQjmsTextMessage@27fdb9
    2013-02-07 11:04:54,526 [INFO] it.mycompany.gevi.service.JMSSenderService.sendMessage(JMSSenderService.java:64) CLIENT: HOST: - JSM Message Sent!
    2013-02-07 11:04:54,526 [DEBUG] org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:752) CLIENT: HOST: - Initiating transaction commit Spring bean configuration 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:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xmlns:p="http://www.springframework.org/schema/p"
         xmlns:jee="http://www.springframework.org/schema/jee"
         xmlns:orcl="http://www.springframework.org/schema/data/orcl"
         xmlns:context="http://www.springframework.org/schema/context"
         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/aop
              http://www.springframework.org/schema/aop/spring-aop-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/task
              http://www.springframework.org/schema/task/spring-task-3.0.xsd
              http://www.springframework.org/schema/data/orcl
              http://www.springframework.org/schema/data/orcl/spring-data-orcl-1.0.xsd
              http://www.springframework.org/schema/jee
              http://www.springframework.org/schema/jee/spring-jee-3.0.xsd"
         default-lazy-init="true" default-autowire="byName">
         <jee:jndi-lookup id="geviDs" jndi-name="jdbc/DBGeviDS" />
         <jee:jndi-lookup id="geviAqAdmDs" jndi-name="jdbc/AQAdmGeviDS" />
         <orcl:aq-jms-connection-factory id="topicConnectionFactory" data-source="geviAqAdmDs"
          connection-factory-type="TOPIC_CONNECTION" />
         <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
              <property name="sessionTransacted" value="true"/>
            <property name="connectionFactory" ref="topicConnectionFactory"/>
            <property name="explicitQosEnabled" value="true"/>
            <property name="timeToLive" value="60000"/>
            <property name="pubSubDomain" value="true"/>
            <property name="defaultDestinationName" value="VR_INFO_VAR_TOPIC"/>
        </bean>
         <tx:jta-transaction-manager/>
         <tx:annotation-driven transaction-manager="transactionManager"  proxy-target-class="true" />
         <aop:config>
              <aop:pointcut id="genericServiceMethods" expression="execution(* it.mycompany.gevi.service..*Service.*(..))" />
              <aop:advisor pointcut-ref="genericServiceMethods" advice-ref="txServiceAdvice"/>
         </aop:config>
         <tx:advice id="txServiceAdvice" transaction-manager="transactionManager">
              <tx:attributes>
                   <tx:method name="read*Service" read-only="true"/>
                 <!-- Other methods use the default transaction settings (see below) -->
                 <tx:method name="insertReturning*Service"    propagation="REQUIRED" />
                 <tx:method name="create*Service" propagation="REQUIRED" rollback-for="java.lang.Exception"/>
                 <tx:method name="delete*Service" propagation="REQUIRED" rollback-for="java.lang.Exception"/>
                 <tx:method name="update*Service" propagation="REQUIRED" rollback-for="java.lang.Exception"/>
                 <tx:method name="sendMessage" propagation="REQUIRED" rollback-for="java.lang.Exception" />
              </tx:attributes>
         </tx:advice>
         <bean name="genericService" class="it.mycompany.gevi.service.GenericService" />
         <bean name="avvService" class="it.mycompany.gevi.service.avvenimenti.AvvenimentoService"/>
         <bean name="jmsSender" class="it.mycompany.gevi.service.JMSSenderService" >
              <property name="jmsTemplate" ref="jmsTemplate"/>
         </bean>
    </beans>Thanks in advance.

    Hi all,
    this is my application
    Spring 3.0.5 + Oc4j 10.1.3.3 + Oracle DB + Oracle Aq
    This is the flow:
    1. Update datas
    2. Send jms message
    The application updates correctly datas, in the same transaction sends a message to an oracle jms queue but the queue table is empty.
    Transaction starts with method avvService.updateStatoService()
    This is a log snapshot
    2013-02-07 11:04:48,982 [DEBUG] org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:365) CLIENT: HOST: - Creating new transaction with name [it.mycompany.gevi.service.avvenimenti.AvvenimentoService.updateStatoAvvenimentoService]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,-java.lang.Exception
    2013-02-07 11:04:52,340 [DEBUG] it.mycompany.service.qbuilder.logic.QBUpdateService.doExecute(QBUpdateService.java:62) CLIENT: HOST: - DAO.updateService - getStatement 
    2013-02-07 11:04:52,340 [INFO] it.mycompany.service.qbuilder.logic.QBUpdateService.doExecute(QBUpdateService.java:62) CLIENT: HOST: - DAO - SQL is:
              UPDATE TABLE_NAME
              SET STATO = ?
              WHERE COD = ?
    2013-02-07 11:04:52,918 [INFO] it.mycompany.service.qbuilder.logic.QBUpdateService.doExecute(QBUpdateService.java:62) CLIENT: HOST: - DAO - {1=1, 2=1200300146}
    2013-02-07 11:04:52,949 [INFO] it.mycompany.gevi.service.GenericService.updateService(GenericService.java:50) CLIENT: HOST: - Risultato updateService:1
    2013-02-07 11:04:52,965 [DEBUG] org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:470) CLIENT: HOST: - Participating in existing transaction
    2013-02-07 11:04:53,730 [DEBUG] org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:464) CLIENT: HOST: - Executing callback on JMS Session: oracle.jms.AQjmsSession@ee2a92
    2013-02-07 11:04:54,167 [DEBUG] org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:567) CLIENT: HOST: - Sending created message: oracle.jms.AQjmsTextMessage@27fdb9
    2013-02-07 11:04:54,526 [INFO] it.mycompany.gevi.service.JMSSenderService.sendMessage(JMSSenderService.java:64) CLIENT: HOST: - JSM Message Sent!
    2013-02-07 11:04:54,526 [DEBUG] org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:752) CLIENT: HOST: - Initiating transaction commit Spring bean configuration 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:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xmlns:p="http://www.springframework.org/schema/p"
         xmlns:jee="http://www.springframework.org/schema/jee"
         xmlns:orcl="http://www.springframework.org/schema/data/orcl"
         xmlns:context="http://www.springframework.org/schema/context"
         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/aop
              http://www.springframework.org/schema/aop/spring-aop-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/task
              http://www.springframework.org/schema/task/spring-task-3.0.xsd
              http://www.springframework.org/schema/data/orcl
              http://www.springframework.org/schema/data/orcl/spring-data-orcl-1.0.xsd
              http://www.springframework.org/schema/jee
              http://www.springframework.org/schema/jee/spring-jee-3.0.xsd"
         default-lazy-init="true" default-autowire="byName">
         <jee:jndi-lookup id="geviDs" jndi-name="jdbc/DBGeviDS" />
         <jee:jndi-lookup id="geviAqAdmDs" jndi-name="jdbc/AQAdmGeviDS" />
         <orcl:aq-jms-connection-factory id="topicConnectionFactory" data-source="geviAqAdmDs"
          connection-factory-type="TOPIC_CONNECTION" />
         <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
              <property name="sessionTransacted" value="true"/>
            <property name="connectionFactory" ref="topicConnectionFactory"/>
            <property name="explicitQosEnabled" value="true"/>
            <property name="timeToLive" value="60000"/>
            <property name="pubSubDomain" value="true"/>
            <property name="defaultDestinationName" value="VR_INFO_VAR_TOPIC"/>
        </bean>
         <tx:jta-transaction-manager/>
         <tx:annotation-driven transaction-manager="transactionManager"  proxy-target-class="true" />
         <aop:config>
              <aop:pointcut id="genericServiceMethods" expression="execution(* it.mycompany.gevi.service..*Service.*(..))" />
              <aop:advisor pointcut-ref="genericServiceMethods" advice-ref="txServiceAdvice"/>
         </aop:config>
         <tx:advice id="txServiceAdvice" transaction-manager="transactionManager">
              <tx:attributes>
                   <tx:method name="read*Service" read-only="true"/>
                 <!-- Other methods use the default transaction settings (see below) -->
                 <tx:method name="insertReturning*Service"    propagation="REQUIRED" />
                 <tx:method name="create*Service" propagation="REQUIRED" rollback-for="java.lang.Exception"/>
                 <tx:method name="delete*Service" propagation="REQUIRED" rollback-for="java.lang.Exception"/>
                 <tx:method name="update*Service" propagation="REQUIRED" rollback-for="java.lang.Exception"/>
                 <tx:method name="sendMessage" propagation="REQUIRED" rollback-for="java.lang.Exception" />
              </tx:attributes>
         </tx:advice>
         <bean name="genericService" class="it.mycompany.gevi.service.GenericService" />
         <bean name="avvService" class="it.mycompany.gevi.service.avvenimenti.AvvenimentoService"/>
         <bean name="jmsSender" class="it.mycompany.gevi.service.JMSSenderService" >
              <property name="jmsTemplate" ref="jmsTemplate"/>
         </bean>
    </beans>Thanks in advance.

  • Integration of Weblogic Server 10.3 and Spring 2.5

    Hello.
    I read that Weblogic 10.3 supports a Spring extension which allows Web component creation using Spring framework.
    http://e-docs.bea.com/wls/docs103/programming/spring.html#wp1079570
    Has anybody tried this?
    In particuar, documentation says:
    "Enable the Spring extension by setting the <component-factory-class-name> element to org.springframework.jee.interfaces.SpringComponentFactory. This element exists in EJB, Web, and application descriptors."
    Which descriptor for a Web application? web.xml? weblogic.xml? I tried both but I received validation errors.
    Can anyone explain this part a little better?
    Regards
    Davide

    I've been trying to get this to work... No luck as of yet...
    My problem now is that I get this exception when I don't have pitchfork-1.0-m5.jar on the my domains classpath.
    <30.mar.2009 kl 17.37 CEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.ClassNotFoundException: org.springframework.jee.spi.PitchforkUtilsImpl
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    Truncated. see log file for complete stacktrace
    However if I put it on wls calsspath I get a AbstractMethodError:
    <30.mar.2009 kl 12.59 CEST> <Warning> <EJB> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
    java.lang.AbstractMethodError: org.springframework.jee.intercept.CachingAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(Lorg/springfr
    amework/aop/framework/Advised;Ljava/lang/reflect/Method;Ljava/lang/ClassLjava/util/List;.
    java.lang.AbstractMethodError: org.springframework.jee.intercept.CachingAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(Lorg/springfra
    mework/aop/framework/Advised;Ljava/lang/reflect/Method;Ljava/lang/ClassLjava/util/List;
    I've tried various tips found http://forum.springframework.org/showthread.php?t=38361 and also tried setting the “component-factory-class-name” tag in weblogic-ejb-jar.xml and weblogic-application.xml but still get ClassNotFoundException.
    Gaute

  • Weblogic Error -  Spring tags

    I'm getting an error when i try to access a page with spring taglibs.
    During the deploy there are not any error.
    Error:
    personAdd.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
    Weblogic: 12c
    Sts: 2.9.1
    Has anyone had this error ??
    i already read some solutions in foruns like add this at weblogic.xml but doesn't work:
    <wls:container-descriptor>
              <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
         </wls:container-descriptor>
    <wls:container-descriptor>
    <wls:index-directory-enabled>true</wls:index-directory-enabled>
    </wls:container-descriptor>

    I encounter the same problem:
    I and my colleagues have the same issue. Our taglibs are not found by Weblogic 12c (12.1.1) if we use STS 3.2 and 3.3 to deploy our multi-module web application (using Java 7). If for deployment we use an order Eclipse JEE release, IntelliJ IDEA or the admin console, everything runs fine. The only taglib that seems to be found is the standard JSTL taglib. For all others, we get an error like this:
    javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/pages/index.jsp
    index.jsp:2:22: Error in "C:\Development\tmp\portal-intern\web\src\main\webapp\WEB-INF\pages\include.jsp" at line 5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    --%><%@ include file="/WEB-INF/pages/include.jsp"%><%--
                         ^--------------------------^
    index.jsp:2:22: Error in "C:\Development\tmp\portal-intern\web\src\main\webapp\WEB-INF\pages\include.jsp" at line 6: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    --%><%@ include file="/WEB-INF/pages/include.jsp"%><%--
                         ^--------------------------^
    index.jsp:2:22: Error in "C:\Development\tmp\portal-intern\web\src\main\webapp\WEB-INF\pages\include.jsp" at line 7: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    --%><%@ include file="/WEB-INF/pages/include.jsp"%><%--
                         ^--------------------------^
    index.jsp:2:22: Error in "C:\Development\tmp\portal-intern\web\src\main\webapp\WEB-INF\pages\include.jsp" at line 8: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    --%><%@ include file="/WEB-INF/pages/include.jsp"%><%--
                         ^--------------------------^
    index.jsp:2:22: Error in "C:\Development\tmp\portal-intern\web\src\main\webapp\WEB-INF\pages\include.jsp" at line 9: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    --%><%@ include file="/WEB-INF/pages/include.jsp"%><%--
                         ^--------------------------^
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
      at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:453)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:364)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:564)
      at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:263)
    The lines before #5 are these:
    <%-- these are the taglibs used in the prototype, these are included on each page --%><%--
    --%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--
    --%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--
    --%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%--
    And after that, we have our MVC framework and the display taglib with entries like this:
    --%><%@ taglib prefix="d" uri="http://displaytag.sf.net" %><%--
    The comments are not the root cause as they just prevent blank newlines at the beginning of our rendered HTML.
    What does work is the STS together with Weblogic 10.3 and 11g. It seems to be a specific problem with the combination of Oracle Weblogic 12c and its support within STS / Eclipse. I already did an update to OEPE 5.3.0 and a fresh workspace and project checkout, but the result is still the same.
    If you need more detailled information, I will happily provide them.
    Kind regards,
    Marcus

  • WebLogic 11g and Spring beens injected into EJB

    All,
    I am getting an error injecting spring managed beans into EJB's within WebLogic 11g. I am using an interceptor extending the SpringBeanAutowiringInterceptor to set the context name by overriding the getBeanFactoryLocatorKey method. This is configured within the ejb-jar.xml file as an interceptor-binding for all ejb's. The beanRefContext.xml is in the root of the ejb jar and on the class path.
    The application deploys however when I can the remote ejb interface the following error occurs. The remote interface and model passed on the method call are deployed within a ejb-client jar file that within both the ejb and web applications class path. The ejb and web app are deployed separately i.e. the web app is deployed as a war out with the ejb ear.
    Does anyone have an idea on what is causing this? I suspect it is something to do with the class loaders / classpath and where the sping managed context is being loaded from. The Spring jars are deployed within the root of the ear and referenced within the Class-Path manifest.
    Regards
    Neil
    javax.ejb.EJBException: A error occurred the server; nested exception is:
         weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]; nested exception is: java.rmi.ServerError: A error occurred the server; nested exception is:
         weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:112)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
         at $Proxy212.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy213.validatePostcode(Unknown Source)
         at sandpit.web.PostcodeValidationController.onSubmit(PostcodeValidationController.java:59)
         at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
         at org.springframework.web.servlet.mvc.CancellableFormController.processFormSubmission(CancellableFormController.java:140)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleInvalidSubmit(AbstractFormController.java:671)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:272)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.rmi.ServerError: A error occurred the server; nested exception is:
         weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:220)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl_1031_WLStub.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         ... 36 more
    Caused by: weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]
         at weblogic.rmi.internal.ServerRequest.unmarshalThrowable(ServerRequest.java:357)
         at weblogic.rmi.internal.ServerRequest.getThrowable(ServerRequest.java:62)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:203)
         ... 44 more
    Caused by: java.io.InvalidClassException: org.springframework.beans.BeansException; local class incompatible: stream classdesc serialVersionUID = 5951866628951717299, local class serialVersionUID = -2725566157126749441
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
         at weblogic.rmi.internal.ServerRequest.unmarshalThrowable(ServerRequest.java:352)
         ... 46 more

    After some tinkering with this I am now getting a different error. I believe the error has changed as I am now deploying Spring 2.5.3 with my EJB. Does anyone have an idea on what is causing this?
    Note I have also deployed the code onto OC4J and it works fine.
    Regards
    Neil
    Error 500--Internal Server Error
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         org.springframework.jee.interfaces.LifecycleCallbackException: Failure to invoke public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) on bean class class sandpit.ejb.interceptor.SandpitSpringBeanAutowiringInterceptor_ei72e8_Impl with args: [com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$LifecycleEventCallbackInvocationContext@bc6ac]; nested exception is: org.springframework.jee.interfaces.LifecycleCallbackException: Failure to invoke public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) on bean class class sandpit.ejb.interceptor.SandpitSpringBeanAutowiringInterceptor_ei72e8_Impl with args: [com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$LifecycleEventCallbackInvocationContext@bc6ac]
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:109)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
         at $Proxy156.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy97.validatePostcode(Unknown Source)
         at sandpit.web.PostcodeValidationController.onSubmit(PostcodeValidationController.java:56)
         at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
         at org.springframework.web.servlet.mvc.CancellableFormController.processFormSubmission(CancellableFormController.java:140)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleInvalidSubmit(AbstractFormController.java:671)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:272)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: org.springframework.jee.interfaces.LifecycleCallbackException: Failure to invoke public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) on bean class class sandpit.ejb.interceptor.SandpitSpringBeanAutowiringInterceptor_ei72e8_Impl with args: [com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$LifecycleEventCallbackInvocationContext@bc6ac]
         at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:335)
         at com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata.invokeLifecycleMethods(InterceptionMetadata.java:580)
         at com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$AdvisorChainProxyControl.invokeLifecycleMethod(InterceptionMetadata.java:547)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:106)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy157.invokeLifecycleMethod(Unknown Source)
         at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:196)
         at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:121)
         at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:148)
         at weblogic.ejb.container.internal.BaseRemoteObject.preInvoke(BaseRemoteObject.java:227)
         at weblogic.ejb.container.internal.StatelessRemoteObject.preInvoke(StatelessRemoteObject.java:52)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl.validatePostcode(AddressEJB_vk8fj2_AddressEJBImpl.java:39)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl_1031_WLStub.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         ... 36 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:332)
         ... 63 more
    Caused by: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.findMethod(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineRequiredStatus(AutowiredAnnotationBeanPostProcessor.java:347)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$1.doWith(AutowiredAnnotationBeanPostProcessor.java:294)
         at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:283)
         at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:260)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:287)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.processInjection(AutowiredAnnotationBeanPostProcessor.java:268)
         at org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(SpringBeanAutowiringInterceptor.java:101)
         ... 68 more

  • Building JEE apps with JFX

    Based on recent interest in the topic, I'm putting together a blog series on building business applications with JavaFX 2, using popular JEE technologies:
    http://zenjava.com
    Currently the focus is on using Spring (annotation based config - ZERO XML) to achieve Dependency Injection with FXML and controllers. I'm planning however to eventually cover topics such as threading (with screen blocking while busy), client-server (using web services and spring remoting), databases (using hibernate and spring transactions) and authentication, security (using spring security) and various other bits and pieces.
    The intent is to provide a guide for people wanting to work with these tools, but also to get community feedback and suggestions on best practices. I look forward to your comments.

    Hi Zonski,
    That sounds like a great idea. I have a similar setup with a current live application written in JavaFx (Script) 1.3 and Java, which will need to be converted across to the latest JavaFX (perhaps Visage) next year. Similar but not exactly the same. The application uses Spring remoting and also Spring Security, with XML for configuration. For the ORM Cayenne is used.
    ~ Chris

  • WLS 10, pitchfork & Spring

    Christian shows us how to get access to the appContext within EJB3's with WLS 9 and pitchfork in the following post.
    http://springide.org/blog/2006/05/24/implementing-jee-with-spring-and-weblogic/
    In the comments, however, he says on Jun 11, 2007 that
    "Yes, I tested the example, but it didn’t work [in WLS 10.0]. There is a way to enable advanced Spring features in Bea WebLogic 10 (including AOP support), but this is not public right now and definitely not yet supported by BEA. Stay tuned for an upcoming BEA announcement."
    My questions is:
    Should we use the Spring abstract EJB base classes and ContextJndiBeanFactoryLocator/ContextSingletonBeanFactoryLocator to access the applicationContext in our EJB3's in WLS 10? There is at least 1 post on the Spring forum saying that this support is only for EJB2 (http://forum.springframework.org/showthread.php?t=47338).
    Thanks for any help,

    Thanks for your reply.
    Hmmm interesting.
    We have 4 servers with WLS 10.3.1. - they were all installed using the package installer with 32bit JVM/s. They were all configured to use the included 32bit JRockit; so the JVM being used by WLS is the same for all servers. The only difference between environments is that 3 are on Win08 SP2 and 1 is on Win08 SP1.
    My original post incorrectly states that the oddity was occuring with SP1 - in fact of the 4 servers the one on SP1 is reporting the OS correct and the 3 on SP2 are reporting the OS wrong.
    I checked the logs both on one SP2 server and on the SP1 server: both logs have
    os.arch = x86
    os.name = Windows Vista
    So "all" of the servers have that log entry with the OS wrong, but as stated the SP1 WLS reports the OS correctly in the Servers/Monitoring section of the console.
    Ignoring the misreporting in the log entry the law of differences would suggest maybe it's something to do with Win08 SP2 vs SP1 ???
    Or some weird combination because we also have WLS 10.3.2. with 32bit JRockit, one on Win08 SP1 and one on Win08 SP2 - they "both" report the OS correctly both in the log and via the servers monitoring page.
    RT

  • Interacting with adapters from Spring Component, especially db adapter

    hello everybody,
    I try to interact with adapters from my Spring component. I actually try to start my query and to receive the result in my Spring Component.
    I've already search for documentation about api to communicate with it or documentation about the classes created during the db adapter creation... But .. no result..
    So I'm trying to do it my self but I encounter some problems when I'm trying to call the query on the dbAdapter and trying to "play" with the classes created by the db adapter.
    Could anyone say me HOW we can interact with adapters from Spring component (in the class bean)?
    Also, how can I access to the variables? Is there an equivalent of "getVariableData" and "setVariableData" that I can use in the Spring Component? with which jar and/or import?
    I copy/paste what I've already done.
    So My Composite contains a Web Service "getStatusByCC" which is linked to a Mediator. The Mediator calls the Spring Component "SprinCallDB" and the Spring Component is linked to a database adapter called "getCreditValidation". The transformation in the mediator component is correct (I test it without the call to the db and it works fine)
    First, there is the classes created and added to my project by the db adapter :
    Creditcardinfo.java
    package com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for Creditcardinfo complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * &lt;complexType name="Creditcardinfo">
    * &lt;complexContent>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;element name="ccnumber">
    * &lt;simpleType>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
    * &lt;maxLength value="20"/>
    * &lt;/restriction>
    * &lt;/simpleType>
    * &lt;/element>
    * &lt;element name="status" minOccurs="0">
    * &lt;simpleType>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
    * &lt;maxLength value="20"/>
    * &lt;/restriction>
    * &lt;/simpleType>
    * &lt;/element>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "Creditcardinfo", propOrder = {
    "ccnumber",
    "status"
    public class Creditcardinfo {
    @XmlElement(required = true)
    protected String ccnumber;
    protected String status;
    * Gets the value of the ccnumber property.
    * @return
    * possible object is
    * {@link String }
    public String getCcnumber() {
    return ccnumber;
    * Sets the value of the ccnumber property.
    * @param value
    * allowed object is
    * {@link String }
    public void setCcnumber(String value) {
    this.ccnumber = value;
    * Gets the value of the status property.
    * @return
    * possible object is
    * {@link String }
    public String getStatus() {
    return status;
    * Sets the value of the status property.
    * @param value
    * allowed object is
    * {@link String }
    public void setStatus(String value) {
    this.status = value;
    CreditcardinfoCollection.java
    package com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for CreditcardinfoCollection complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * &lt;complexType name="CreditcardinfoCollection">
    * &lt;complexContent>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;element name="Creditcardinfo"
    * type="{http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation}Creditcardinfo" maxOccurs="unbounded" minOccurs="0"/>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "CreditcardinfoCollection", propOrder = {
    "creditcardinfo"
    public class CreditcardinfoCollection {
    @XmlElement(name = "Creditcardinfo")
    protected List<Creditcardinfo> creditcardinfo;
    * Gets the value of the creditcardinfo property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the creditcardinfo property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getCreditcardinfo().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Creditcardinfo }
    public List<Creditcardinfo> getCreditcardinfo() {
    if (creditcardinfo == null) {
    creditcardinfo = new ArrayList<Creditcardinfo>();
    return this.creditcardinfo;
    GetCreditValidationSelectCcnb.java
    package com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for getCreditValidationSelect_ccnb complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * &lt;complexType name="getCreditValidationSelect_ccnb">
    * &lt;complexContent>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;element name="ccnb" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "getCreditValidationSelect_ccnb", propOrder = {
    "ccnb"
    public class GetCreditValidationSelectCcnb {
    @XmlElement(required = true)
    protected String ccnb;
    * Gets the value of the ccnb property.
    * @return
    * possible object is
    * {@link String }
    public String getCcnb() {
    return ccnb;
    * Sets the value of the ccnb property.
    * @param value
    * allowed object is
    * {@link String }
    public void setCcnb(String value) {
    this.ccnb = value;
    ObjectFactory.java
    package com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation;
    import javax.xml.bind.JAXBElement;
    import javax.xml.bind.annotation.XmlElementDecl;
    import javax.xml.bind.annotation.XmlRegistry;
    import javax.xml.namespace.QName;
    * This object contains factory methods for each
    * Java content interface and Java element interface
    * generated in the com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation package.
    * <p>An ObjectFactory allows you to programatically
    * construct new instances of the Java representation
    * for XML content. The Java representation of XML
    * content can consist of schema derived interfaces
    * and classes representing the binding of schema
    * type definitions, element declarations and model
    * groups. Factory methods for each of these are
    * provided in this class.
    @XmlRegistry
    public class ObjectFactory {
    private final static QName CreditcardinfoCollectionQNAME = new QName("http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation", "CreditcardinfoCollection");
    private final static QName GetCreditValidationSelectCcnbInputParametersQNAME = new QName("http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation", "getCreditValidationSelect_ccnbInputParameters");
    * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation
    public ObjectFactory() {
    * Create an instance of {@link CreditcardinfoCollection }
    public CreditcardinfoCollection createCreditcardinfoCollection() {
    return new CreditcardinfoCollection();
    * Create an instance of {@link GetCreditValidationSelectCcnb }
    public GetCreditValidationSelectCcnb createGetCreditValidationSelectCcnb() {
    return new GetCreditValidationSelectCcnb();
    * Create an instance of {@link Creditcardinfo }
    public Creditcardinfo createCreditcardinfo() {
    return new Creditcardinfo();
    * Create an instance of {@link JAXBElement }{@code <}{@link CreditcardinfoCollection }{@code >}}
    @XmlElementDecl(namespace = "http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation", name = "CreditcardinfoCollection")
    public JAXBElement<CreditcardinfoCollection> createCreditcardinfoCollection(CreditcardinfoCollection value) {
    return new JAXBElement<CreditcardinfoCollection>(_CreditcardinfoCollection_QNAME, CreditcardinfoCollection.class, null, value);
    * Create an instance of {@link JAXBElement }{@code <}{@link GetCreditValidationSelectCcnb }{@code >}}
    @XmlElementDecl(namespace = "http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation", name = "getCreditValidationSelect_ccnbInputParameters")
    public JAXBElement<GetCreditValidationSelectCcnb> createGetCreditValidationSelectCcnbInputParameters(GetCreditValidationSelectCcnb value) {
    return new JAXBElement<GetCreditValidationSelectCcnb>(_GetCreditValidationSelectCcnbInputParameters_QNAME, GetCreditValidationSelectCcnb.class, null, value);
    package-info.java
    @javax.xml.bind.annotation.XmlSchema(namespace = "http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
    package com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation;
    GetCreditValidation_ptt.java
    package getcreditvalidation.validationforccwithspring.creditcardvalidation.db.adapter.pcbpel.com.oracle.xmlns;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebResult;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.jws.soap.SOAPBinding.ParameterStyle;
    import javax.xml.bind.annotation.XmlSeeAlso;
    import javax.xml.ws.Action;
    // !DO NOT EDIT THIS FILE!
    // This source file is generated by Oracle tools
    // Contents may be subject to change
    // For reporting problems, use the following
    // Version = Oracle WebServices (11.1.1.0.0, build 111209.0821.28162)
    @WebService(targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CreditCardValidation/validationForCCWithSpring/getCreditValidation",
    name="getCreditValidation_ptt")
    @XmlSeeAlso(
    { com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation.ObjectFactory.class })
    public interface GetCreditValidation_ptt
    @WebMethod
    @SOAPBinding(parameterStyle=ParameterStyle.BARE)
    @Action(input="http://xmlns.oracle.com/pcbpel/adapter/db/CreditCardValidation/validationForCCWithSpring/getCreditValidation/getCreditValidation_ptt/getCreditValidationSelectRequest",
    output="http://xmlns.oracle.com/pcbpel/adapter/db/CreditCardValidation/validationForCCWithSpring/getCreditValidation/getCreditValidation_ptt/getCreditValidationSelectResponse")
    @WebResult(targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation",
    partName="CreditcardinfoCollection", name="CreditcardinfoCollection")
    public com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation.CreditcardinfoCollection getCreditValidationSelect(@WebParam(targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/getCreditValidation",
    partName="getCreditValidationSelect_inputParameters", name="getCreditValidationSelect_ccnbInputParameters")
    com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation.GetCreditValidationSelectCcnb getCreditValidationSelect_inputParameters);
    Here there is the classes linked to the Spring Component and the configuration file :
    SpringCallDB
    <?xml version="1.0" encoding="windows-1252" ?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://xmlns.oracle.com/weblogic/weblogic-sca META-INF/weblogic-sca.xsd">
    <!--Spring Bean definitions go here-->
    <sca:service name="CCSpringService" target="CCSpringImpl"
    type="validationForCC.spring.service.api.ISpringCCService"/>
    <bean id="CCSpringImpl" class="validationForCC.spring.service.impl.SpringCCServiceImpl">
    <property name="dbRequest" ref="getCreditValidation"/>
    </bean>
    <sca:reference type="getcreditvalidation.validationforccwithspring.creditcardvalidation.db.adapter.pcbpel.com.oracle.xmlns.GetCreditValidation_ptt"
    name="getCreditValidation"/>
    </beans>
    CreditCardNumber.java
    package validationForCC.spring.model;
    public class CreditCardNumber {
    private String ccNumber;
    public CreditCardNumber() {
    super();
    public void setCcNumber(String nb){
    this.ccNumber = nb;
    public String getCcNumber(){
    return ccNumber;
    Response.java
    package validationForCC.spring.model;
    public class Response {
    String reply;
    public Response() {
    super();
    public void setReply(String rep){
    this.reply = rep;
    public String getReply(){
    return reply;
    ISpringCCService.java
    package validationForCC.spring.service.api;
    import validationForCC.spring.model.CreditCardNumber;
    import validationForCC.spring.model.Response;
    public interface ISpringCCService {
    * @param ccn
    * @return
    public Response getCCStatus(CreditCardNumber ccn);
    SpringCCServiceImpl.java
    package validationForCC.spring.service.impl;
    import com.oracle.xmlns.pcbpel.adapter.db.top.getcreditvalidation.*;
    import java.util.List;
    import javax.jws.WebParam;
    import validationForCC.spring.model.CreditCardNumber;
    import validationForCC.spring.model.Response;
    public class SpringCCServiceImpl {
    public SpringCCServiceImpl() {
    super();
    private getcreditvalidation.validationforccwithspring.creditcardvalidation.db.adapter.pcbpel.com.oracle.xmlns.GetCreditValidation_ptt dbRequest;
    public Response getCCStatus(CreditCardNumber ccn){
    Response resp = new Response();
    CreditcardinfoCollection resultSet;
    GetCreditValidationSelectCcnb selectCCNb = new GetCreditValidationSelectCcnb();
    selectCCNb.setCcnb(ccn.getCcNumber());
    resultSet = dbRequest.getCreditValidationSelect(selectCCNb);
    resp.setReply((resultSet.getCreditcardinfo().get(0).getStatus()));
    return resp;
    public getcreditvalidation.validationforccwithspring.creditcardvalidation.db.adapter.pcbpel.com.oracle.xmlns.GetCreditValidation_ptt getDbRequest(){
    return dbRequest;
    public void setDbRequest(getcreditvalidation.validationforccwithspring.creditcardvalidation.db.adapter.pcbpel.com.oracle.xmlns.GetCreditValidation_ptt dbReq){
    this.dbRequest = dbReq;
    So, the line which is the cause of the error is the following :
    resultSet = dbRequest.getCreditValidationSelect(selectCCNb);
    in the SpringCCServiceImpl.java class
    And there is the error I obtain :
    +weblogic.sca.api.ScaException: java.lang.RuntimeException: BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by Exception [EclipseLink-6003] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.QueryException Exception Description: The number of arguments provided to the query for execution does not match the number of arguments in the query definition. Query: ReadAllQuery(name="getCreditValidationSelect" referenceClass=Creditcardinfo ). See root exception for the specific exception. This exception is considered not retriable, likely due to a modelling mistake. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by Exception [EclipseLink-6003] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.QueryException Exception Description: The number of arguments provided to the query for execution does not match the number of arguments in the query definition. Query: ReadAllQuery(name="getCreditValidationSelect" referenceClass=Creditcardinfo ). See root exception for the specific exception. This exception is considered not retriable, likely due to a modelling mistake. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    java.lang.RuntimeException: BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by Exception [EclipseLink-6003] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.QueryException Exception Description: The number of arguments provided to the query for execution does not match the number of arguments in the query definition. Query: ReadAllQuery(name="getCreditValidationSelect" referenceClass=Creditcardinfo ). See root exception for the specific exception. This exception is considered not retriable, likely due to a modelling mistake. ". The invoked JCA adapter raised a resource exception. Please examine the above error message ca
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by Exception [EclipseLink-6003] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.QueryException Exception Description: The number of arguments provided to the query for execution does not match the number of arguments in the query definition. Query: ReadAllQuery(name="getCreditValidationSelect" referenceClass=Creditcardinfo ). See root exception for the specific exception. This exception is considered not retriable, likely due to a modelling mistake. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. +
    Any idea is welcome! :)
    If you have great urls to communicate with adapters and variables from spring component, don't hesitate to post it!
    Thanks in advance,
    Sophie
    Edited by: 953383 on Sep 18, 2012 6:41 AM
    Edited by: 953383 on Sep 18, 2012 6:43 AM
    Edited by: 953383 on Sep 18, 2012 6:46 AM

    Hello,
    Finally, I can interact with my db adapter.
    But, I ask you the following question : is there any documentation on the manner to interact with adapters and other component of the suite and on all classes generated?
    Thanks in advance,
    Sophie

Maybe you are looking for

  • Creation of TO for Material Document

    Hi All, I am doing an initial stock entry  into the storage location using MB1C Txn Code and movement type 561.This storage location is attached to a warehouse also.After creating the material Document, i am trying to create a Transfer order using LT

  • Not Copying From iTunes to iPod, No Error Message

    I am having a very annoyingly difficult time. I am trying to add music to my iPod like I have been for years now. For some reason, iTunes is simply not letting me. I try to drag and drop a playlist onto my iPod, and the playlist is created on the iPo

  • Does Crypto call admission control only apply to dynamic SAs?

    Hi, In my DMVPN phase 2 implementation, I have implemented crypto call admission control for IKE SAs on my spokes. This limit is set to 20 which is enough for my network. I have three hubs per region and site-to-site connectivity is only enabled on o

  • Display of only Tool bar in ALV without displaying the table

    Hi Experts, I defined a custom container and split it into 2 containers and used one for Top of page and the other for displaying the ALV. Now I want to export the entire report to excel sheet. So is there any method for having the Tool bar set for t

  • Sm30 modification

    I have made a modification of the function module for an actualization table view in SM30, now my problem is that i have seen that there is 2 tables TOTAL and EXTRACT, in total internal table there is all the lines of the maintained view, but when i