Re: [jboss-user] [JBoss Microcontainer Development POJO Server] - Implementing a non-flat deployment for Weld Integration
by Flavia Rainone
Flavia Rainone [http://community.jboss.org/people/flavia.rainone%40jboss.com] replied to the discussion
"Implementing a non-flat deployment for Weld Integration"
To view the discussion, visit: http://community.jboss.org/message/546050#546050
--------------------------------------------------------------
> Ales Justin wrote:
>
> > Now, the main question that I have is how to create the Archives for the jars in the lib dir? And how to have those jars scanned for XML files?
> We could do it per invocation.
> e.g. (pseudo code)
>
> Class<?> beanClass = ...; // parameter from Deployment::loadBeanDeploymentArchive
> BDA bda = getBDA(beanClass);
> *if* (bda == *null*)
> {
> URL jarURL = getJarURL(beanClass);
> URL beansXML = getBeansXML(jarURL);
> *if* (beansXML == *null*)
> *return* *null*;
>
> // TODO ... some sort of simple embedded Weld scanning mechanism
> }
>
I thought we should provide a Deployment/BDA structure for Weld on AS startup, for all jars in the lib that contain the beans.xml file? Just like we do for all archives that are deployed.
And, then, in a latter moment, if Weld requests for a class that lies in a lib jar that lacks the bean.xml, yes, we should look for the lib jar and create the BDA accordingly?
> Ales Justin wrote:
>
>
> Since I guess we don't to do much for those jars; e.g. they should not have JEE components?
+1
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546050#546050]
Start a new discussion in JBoss Microcontainer Development POJO Server at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
[Datasource Configuration] - Jboss-Ibatis-Spring-Oracle Class Cast Exception
by Rizwan P
Rizwan P [http://community.jboss.org/people/RizwanP] created the discussion
"Jboss-Ibatis-Spring-Oracle Class Cast Exception"
To view the discussion, visit: http://community.jboss.org/message/546032#546032
--------------------------------------------------------------
Hi All,
Currently I deployed my application as a webapplication on jboss.
I am using the Spring-Ibatis DAO layer for communicating with the Oracle database.
If I used the database connection without creating datasource with the help of SqlMapConfig file it gives me proper values and my applicaiton works.
But, If i used the dataSource creation approach i am facing the problem of class cast exception. Providing the stack trace for more reference.
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check The accountParams
--- Check the parameter mapping for 'names' property.
--- Cause: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.driver.OracleConnection.
Please let me know how to resolve this issue for retrieving the connection of Oracle type for above problem? :-/
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546032#546032]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [jBPM Development] - JBPM-2694 and JBPM-2798
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"JBPM-2694 and JBPM-2798"
To view the discussion, visit: http://community.jboss.org/message/546024#546024
--------------------------------------------------------------
> HuiSheng Xu wrote:
>
> Actually, before I saw the Martin's patch, I have just create a patch just as same as you mentioned, But I am worried if people have to configure JTA twice, both in hibernate.cfg.xml and jbpm.cfg.xml, they could make mistake. So I think Martin's patch may be better.
Yes, that is a potential risk but in fact you are configuring two different components (hibernate and jbpm) I would say that having that configuration in jbpm.cfg.xml makes it not so tightly connected to hibernate and can be better in long term.
> HuiSheng Xu wrote:
>
> About JBPM-2798, I am really not sure if this is caused by the compositeIds(), so I think we could deplay this issue and wait for somebody to clarify it.
Fine with that. Would be good if some one could give a try with latest trunk version if that is still an issue.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546024#546024]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months