[JBoss jBPM] - Re: JBPM3 with tomcat
by vt00098
hi diwa_pv,
follow your steps and finally I encounted such some problems like blow. I use mysql. Can you do me a favor to tell me what is wrong?
org.apache.jasper.JasperException: Cannot get value for expression '#{userBean.userSelectItems}'
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
Regards and thanks.
Vt00098
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993997#3993997
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993997
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - Jboss CMP does not reflect Database
by dani-cas
Greeting,
I am having some issues with jboss CMP feature.
When I first started developing my aplicacion I inserted some data in the DB to test the aplication, adter some development time I hace started to see that the state of the DB is not the same as the jboss CMP state, I know that some tables ARE suppoosed to be different, but some that that was supposed to be erased appeared again. I have tryed to fush the cache from Jboss without much sucess.
To better ilustrate this point I am displaying a select from jboss:
| AbogadoUserName Admision Id NumeroRadicacion
| 7 32423423432
| org.invias.VO.AdmisionAdministrativoVO@1430f3 13
| org.invias.VO.AdmisionAdministrativoVO@199abd1 14
| 21
| org.invias.VO.AdmisionAdministrativoVO@1df43e2 10
| org.invias.VO.AdmisionAdministrativoVO@e1b6ac 11
| 8
| 9
|
The field AbogadoUserName is supposed to be a FK field, yet it is null.
Any idea, how can I restart the CMP engine in jboss?
Thanks for the help
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993991#3993991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993991
19 years, 7 months
[EJB 3.0] - NonUniqueObjectException
by kvbisme
OK, this is too common a scenario to be this confusing.
I have two tables in a database, we will call them Table A and Table B
Table A has an ID field as the primary key and other information
Table B has a composite key of three fields ? let?s call them column B1, B2, and B3 and of course other information.
The relationship of the tables is that an entity in Table A can point to zero or more entities in Table B. And multiple entries in Table A can reference the same entity in table B
Table B knows nothing about Table A.
I have to create my own tables (using the @Table) to appease the DBA. Anyway, I create a join table ? lets call it A_Joins_B with columns ID, B1, B2, and B3.
In my Entity Bean I have:
@OneToMany (cascade=CascadeType.ALL, fetch=FetchType.LAZY)
@JoinTable (name=?A_joins_B?, joinColumns=@JoinColumn(name=?ID?), inverseJoinColumns={@JoinColumn(name=?B1?), @JoinColumn(name=?B2?), @JoinColumn(name=?B3?)}
(p.s. I did try a @ManyToMany as well with the same results)
As soon as I receive a series of records to update ( they arrived batched up in a big collection ) I iterate through the collection, convert each to an entity bean, and then attempt to merge them into the database with the em.merge(obj);
This works until I encounter an update that contains a B entity that has already been referenced by a previous A entity. Then I get the org.hibernate.NonUniqueObjectEception with a message of:
?a different object with the same identifier value was already associated with the session: [org.myexample.entity.B#org.myexample.entity.key.B_PrimaryKey@44 ]?
What am I missing?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993985#3993985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993985
19 years, 7 months
[JBoss jBPM] - Re: 3.2alpha2 unable to load process archives
by dhartford
actually, looking further down the trace I'm gonna go check out a couple of things
| ....
| Caused by: java.lang.ClassCastException: org.jbpm.graph.def.Node_$$_javassist_59
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:126)
| at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:48)
| at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:379)
| at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:3388)
| at org.hibernate.event.def.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:255)
| at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:189)
| at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
| at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
| at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:846)
| at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266)
| at org.hibernate.type.EntityType.resolve(EntityType.java:303)
| at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
| at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
| at org.hibernate.loader.Loader.doQuery(Loader.java:717)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
| at org.hibernate.loader.Loader.doList(Loader.java:2144)
| at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
| at org.hibernate.loader.Loader.list(Loader.java:2023)
| at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
| at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
| at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:780)
| at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993983#3993983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993983
19 years, 7 months
[JBoss Seam] - Re: [OT] Seam and Tomahawk - lost property?
by SmokingAPipe
"gavin.king(a)jboss.com" wrote : I mean, you are free to do what you like. Use Tomahawk, please, that's totally up to you. But if you choose to not take our well-meaning advice, then don't you think its unreasonable to expect us to support your decision by answering lots of forum questions?
In fact it's perfectly reasonable for you to not answer any forum questions. You've already provided a fantastic free open-source framework. That's not required or expected of you. Answering questions on a forum is even less required or expected. We should be happy to get expert-level advice like this on a forum.
As for Tomahawk, I have seen Gavin's (and others) repeated posts that say, "don't use it." I used it and it got me on the wrong track, and now I'm having to spend time ripping it out because it's just not working. The scoop is Icefaces will work with Seam, and Icefaces has some way cooler features than Tomahawk anyway, so after I get my app up and running I'm going to start adding some Icefaces to it.
It's too bad about Tomahawk because it does have some nice things, especially the sortable tables, but it's too painful to make it work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993980#3993980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993980
19 years, 7 months
[JBoss Seam] - Using an @Logger instance outside of a SEAM POJO
by DataGazetteer
I have a feeling I'm doing something very wrong with respect to passing a reference to a log to a non-SEAM object. What happens (running under JBoss AS 4.0.5) is that the first time the non-SEAM object tries to use a log method all log output from the container stops. The application keeps running, and in fact I can remove and add the SEAM application in the deploy directory and have it redeploy but still get no logging output.
Here is fragments of the code from the SEAM app. First, the SEAM-enabled session bean.
| @Stateful
| @Name("search")
| @Scope(ScopeType.SESSION)
| public class SearchAction implements Search {
|
| @Logger
| private Log log;
|
| @In
| ParamStore paramStore;
|
| public String search() throws Exception {
| paramStore.setLog(log);
| log.info("search.search() action called with: #0", q);
| SearchSvc searchSvc = new searchSvc();
| List<String> matchingIds = searchSvc.search(paramStore, q);
|
Next, 'ParamStore' which holds the 'log' value. This is not an SEAM entity bean (e.g., it does not have the @Entity annotation), just a normal JavaBean.
| public class ParamStore {
|
| private Log log;
|
| public ParamStor() { }
|
| public Log getLog() {
| return log;
| }
|
| public void setLog(Log log) {
| this.log = log;
| }
| }
|
And finally a non-SEAM object that tries to make use of it.
| public class SearchSvc {
|
| public List<String> search(ParamStore paramStore, String query)
| throws Exception {
|
| Log log=paramStore.getLog();
| log.warn("This'll never be seen. #0", "And subsequent log messages are not seen.");
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993974#3993974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993974
19 years, 7 months
[EJB 3.0] - Re: Permanent interceptor
by jc7442
Hi,
I'm not sure you can simply add your own domain in the ejb3 interceptors. I just connect on existing one.
If your need is to add your own domain check AOP documentation. From what I remenber it is explain but not so simple to implement.
It looks like that :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE aop PUBLIC
"-//JBoss//DTD JBOSS AOP 1.0//EN"
"http://www.jboss.org/aop/dtd/jboss-aop_1_0.dtd">
...
<!--################################################### -->
<!--My Interceptor-->
<!--typedef name="bmx" expr="class((a)javax.ejb.Remote) OR class((a)javax.ejb.Local)"/-->
<!-- FIN MyInterceptor-->
<!-- ################################################### -->
<!-- ################################################### -->
<!-- My Interceptor-->
<!--interceptor-ref name="fr.biomerieux.interceptor.ExecutionTimeInterceptor"/-->
<interceptor-ref name="fr.biomerieux.interceptor.ExceptionHanlderInterceptor"/>
<!-- FIN My Interceptor-->
<!-- ################################################### -->
<interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
...
<!-- ################################################### -->
<!-- My Interceptor-->
<!--interceptor-ref name="fr.biomerieux.interceptor.ExecutionTimeInterceptor"/-->
<interceptor-ref name="fr.biomerieux.interceptor.ExceptionHanlderInterceptor"/>
<!-- FIN My Interceptor-->
<!-- ################################################### -->
<interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
...
And a intercptor:
public class ExecutionTimeInterceptor implements Interceptor {
/**
* Version number
*/
private final Logger LOGGER = Logger.getLogger(ExecutionTimeInterceptor.class
.getName());
/**
* Log the elapsed time of the execution of a method
*/
public Object invoke(Invocation invocation) throws Throwable {
long start = System.currentTimeMillis();
try {
return invocation.invokeNext();
} finally {
long end = System.currentTimeMillis();
MethodInvocation methodInvocation = (MethodInvocation) invocation;
Method m = methodInvocation.getMethod();
LOGGER.fine(MessageFormat.format(MESSAGE.METHOD_EXECUTION,
new Object[] { m.getDeclaringClass().getName(), m.getName(),
((end - start) / 1000.) }));
}
}
/**
* Return the name of the interceptor
*/
public String getName() {
return ExecutionTimeInterceptor.class.getName();
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993954#3993954
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993954
19 years, 7 months
[Microcontainer] - Microcontainer jboss-beans.xml configuration with 10g
by jcummings
I am unable to set up my microcontainer to work with oracle 10g. I believe it was working with 9i. The exception I'm getting is around the connectionURL property. Below is a chunk of my configuration in the jboss-beans.xml file:
<bean name="myDatasourceBootstrap" class="org.jboss.seam.microcontainer.DataSourceFactory">
| <property name="driverClass">oracle.jdbc.driver.OracleDriver</property>
| <property name="connectionURL">jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraexample1-vip1)(PORT=9999))(ADDRESS=(PROTOCOL=TCP)(HOST=oraexample2-vip1)(PORT=9999))(ADDRESS=(PROTOCOL=TCP)(HOST=oraexample3-vip1)(PORT = 9999))(ADDRESS=(PROTOCOL=TCP)(HOST=oraexample4-vip1)(PORT=9999))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=exampledev)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))</property>
...ect
Here is my exception.
Tests run: 5, Failures: 1, Errors: 0, Skipped: 4, Time elapsed: 3.875 sec <<< FAILURE!
init Time elapsed: 1,166,113,226.089 sec <<< FAILURE!
java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:
*** DEPLOYMENTS IN ERROR: Name -> Error
myDatasourceBootstrap -> org.jboss.joinpoint.spi.JoinpointException: Property connectionURL not found for AbstractBeanInfo(a)a45a24{name=org.jboss.seam.microcontainer.DataSourceFactory classInfo= properties=[password, transactionManager, userName, minSize, maxSize, jndiName, class, connectionUrl, dataSource, blockingTimeout, preparedStatementCacheSize, driverClass, idleTimeout, checkValidConnectionSql] methods=[hashCode, getBlockingTimeout, getDriverClass, getClass, getIdleTimeout, toString, setMaxSize, clone, notifyAll, setMinSize, getJndiName, setPassword, getTransactionManager, getPassword, getPreparedStatementCacheSize, setTransactionManager, setIdleTimeout, setJndiName, getUserName, finalize, getDataSource, setConnectionUrl, setCheckValidConnectionSql, setPreparedStatementCacheSize, getMaxSize, setDriverClass, getMinSize, equals, getCheckValidConnectionSql, getConnectionUrl, wait, wait, wait, setBlockingTimeout, registerNatives, setUserName, notify] constructors=[] events!
=}
*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
myDatasource -> myDatasourceBootstrap{Instantiated:**ERROR**}
at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:95)
at org.jboss.seam.core.Ejb.deploy(Ejb.java:58)
at org.jboss.seam.core.Ejb.startup(Ejb.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
at org.jboss.seam.Component.callComponentMethod(Component.java:1335)
at org.jboss.seam.Component.callCreateMethod(Component.java:1323)
at org.jboss.seam.Component.newInstance(Component.java:1313)
at org.jboss.seam.Component.getInstance(Component.java:1264)
at org.jboss.seam.Component.getInstance(Component.java:1254)
at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
at org.jboss.seam.init.Initialization.init(Initialization.java:196)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:318)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:152)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
at org.testng.TestRunner.privateRun(TestRunner.java:682)
at org.testng.TestRunner.run(TestRunner.java:566)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:220)
at org.testng.SuiteRunner.run(SuiteRunner.java:146)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713)
at org.testng.TestNG.runSuitesLocally(TestNG.java:676)
at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.lang.IllegalStateException: Incompletely deployed:
*** DEPLOYMENTS IN ERROR: Name -> Error
myDatasourceBootstrap -> org.jboss.joinpoint.spi.JoinpointException: Property connectionURL not found for AbstractBeanInfo(a)a45a24{name=org.jboss.seam.microcontainer.DataSourceFactory classInfo= properties=[password, transactionManager, userName, minSize, maxSize, jndiName, class, connectionUrl, dataSource, blockingTimeout, preparedStatementCacheSize, driverClass, idleTimeout, checkValidConnectionSql] methods=[hashCode, getBlockingTimeout, getDriverClass, getClass, getIdleTimeout, toString, setMaxSize, clone, notifyAll, setMinSize, getJndiName, setPassword, getTransactionManager, getPassword, getPreparedStatementCacheSize, setTransactionManager, setIdleTimeout, setJndiName, getUserName, finalize, getDataSource, setConnectionUrl, setCheckValidConnectionSql, setPreparedStatementCacheSize, getMaxSize, setDriverClass, getMinSize, equals, getCheckValidConnectionSql, getConnectionUrl, wait, wait, wait, setBlockingTimeout, registerNatives, setUserName, notify] constructors=[] events!
=}
*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
myDatasource -> myDatasourceBootstrap{Instantiated:**ERROR**}
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:90)
... 40 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993941#3993941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993941
19 years, 7 months