[JBoss Portal] - Re: JBoss Portal 2.6 Alpha 2 Release
by swestbom
Ok, got it build, but it won't deploy correctly (trunk from late this AM)
15:40:27,258 ERROR [MainDeployer] Could not start deployment: file:/C:/workspace/JBossPortal/server/default/deploy/jboss-portal.sar/conf/data/default-object.xml
org.jboss.deployment.DeploymentException: String index out of range: -27; - nested throwable: (java.lang.StringIndexOutOfBoundsException: String index out of range: -27)
at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:99)
at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy148.deploy(Unknown Source)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.registerFactory(ServerDeployer.java:119)
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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy102.registerFactory(Unknown Source)
at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.registerFactory(AbstractDeploymentFactory.java:110)
at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.startService(AbstractDeploymentFactory.java:149)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy130.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -27
at java.lang.String.substring(Unknown Source)
at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.toString(PortalObjectMetaData.java:274)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at org.jboss.portal.core.deployment.jboss.ObjectDeployment.org$jboss$portal$core$deployment$jboss$ObjectDeployment$doStart$aop(ObjectDeployment.java:239)
at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
at org.jboss.portal.core.deployment.jboss.ObjectDeployment.doStart(ObjectDeployment.java)
at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:94)
... 150 more
15:40:27,258 ERROR [ServerDeployer] Failed to deploy setup url file:/C:/workspace/JBossPortal/server/default/deploy/jboss-portal.sar/conf/data/default-object.xml
15:40:27,274 WARN [ObjectDeployment] Cannot create portal object Portal[default] because the parent '/' that the deployment descriptor references does not exist
15:40:27,274 WARN [ObjectDeployment] Cannot create portal object Page[News] because the parent '/default' that the deployment descriptor references does not exist
15:40:27,274 ERROR [PortalDeploymentInfoContext] Failed to deploy url file:/C:/workspace/JBossPortal/server/default/deploy/jboss-portal.sar/conf/data/default-object.xml
15:40:27,649 INFO [HbmBinder] Mapping collection: org.jboss.portal.core.impl.portlet.state.PersistentPortletState.entries -> JBP_PORTLET_STATE_ENTRY
15:40:27,649 INFO [HbmBinder] Mapping collection: org.jboss.portal.core.impl.portlet.state.PersistentPortletState.children -> JBP_PORTLET_STATE
15:40:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017878#4017878
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017878
19Â years, 2Â months
[Messaging, JMS & JBossMQ] - java.lang.IllegalArgumentException: Can't schedule a null Ti
by jurivrljicak
hi,
On migrating mq to messaging 1.0.1 sp4. Had success in testing, but when moving to cluster i do get
16:44:49,783 ERROR [ConnectionAspect] Caught exception from connection
java.lang.IllegalArgumentException: Can't schedule a null TimerTask
at org.jboss.util.TimerQueue.schedule(TimerQueue.java:77)
at org.jboss.remoting.Lease.updateLease(Lease.java:95)
at org.jboss.remoting.ServerInvoker.updateClientLease(ServerInvoker.java:872)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:763)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:72)
at org.jboss.remoting.ConnectionValidator.checkConnection(ConnectionValidator.java:146)
at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:112)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
16:44:49,784 WARN [JmsManagedConnection] Handling jms exception failure: org.jboss.resource.adapter.jms.JmsManagedConnection@1f5173f
javax.jms.JMSException: Throwable received from underlying connection
at org.jboss.jms.client.container.ConnectionAspect.handleConnectionException(ConnectionAspect.java:203)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:137)
16:44:49,785 ERROR [ConnectionAspect] Caught exception from connection
java.lang.IllegalArgumentException: Can't schedule a null TimerTask
at org.jboss.util.TimerQueue.schedule(TimerQueue.java:77)
at org.jboss.remoting.Lease.updateLease(Lease.java:95)
at org.jboss.remoting.ServerInvoker.updateClientLease(ServerInvoker.java:872)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:763)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:72)
at org.jboss.remoting.ConnectionValidator.checkConnection(ConnectionValidator.java:146)
at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:112)
at java.util.TimerThread.mainLoop(Timer.java:432)
i cant find the error, please, thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017869#4017869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017869
19Â years, 2Â months
[JBossWS] - Re: JBoss 4.0.5--JAX-RPC has Issues?
by russray
When I look at the reponse within the Web Services Explorer I see this:
| --------------------------------------------------------------------------------
|
| The SOAP response failed schema validation. Please switch to the source view for the SOAP response in XML format
|
| --------------------------------------------------------------------------------
|
I've turned on the debugging for web services and I see this when the service is ran:
| --------------------------------------------------------------------------------
| [11:36:14,125] [DEBUG] [SOAPMessageDispatcher] [getDispatchDestination: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [SOAPBindingProvider] [unbindRequestMessage: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [EndpointInvocation] [setRequestParamValue: [name=userId,value=org.jboss.ws.soap.SOAPContentElement]][11:36:14,156] [DEBUG] [EndpointInvocation] [setRequestParamValue: [name=operId,value=org.jboss.ws.soap.SOAPContentElement]][11:36:14,156] [DEBUG] [OperationMetaData] [Get java method for: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [OperationMetaData] [Found best matching java method: public abstract java.lang.String com.company.dept.product.webservice.WebServiceImpl_SEI.getDepartments(java.lang.String,java.lang.String) throws java.lang.Exception][11:36:14,156] [DEBUG] [ServiceEndpointInvokerJSE] [invokeServiceEndpoint: getDepartments][11:36:14,156] [DEBUG] [OperationMetaData] [Get java method for: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [OperationMetaData] [Found best matching java method: public abstract java.lang.String com.company.dept.product.webservice.WebServiceImpl_SEI.getDepartments(java.lang.String,java.lang.String) throws java.lang.Exception][11:36:14,156] [DEBUG] [EndpointInvocation] [getRequestPayload][11:36:14,156] [DEBUG] [EndpointInvocation] [getRequestParamValue: userId][11:36:14,156] [DEBUG] [SOAPContentElement] [getObjectValue [xmlType={http://www.w3.org/2001/XMLSchema}string,javaType=class java.lang.String]][11:36:14,171] [DEBUG] [SimpleDeserializer] [deserialize: [xmlName=userId,xmlType={http://www.w3.org/2001/XMLSchema}string]][11:36:1... [DEBUG] [ServiceEndpoint] [END handleRequest: jboss.ws:context=ProjectForWebService,endpoint=WebServiceImpl][11:36:14,484] [DEBUG] [MessageContextAssociation] [popMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@10771a6]
| --------------------------------------------------------------------------------
|
So we are getting to the Web Services, I make a deduction here. However, we are not completing the operation.
Russ
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017867#4017867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017867
19Â years, 2Â months
[JBoss Seam] - Re: EntityHome persist problem
by codelion
Pete,
To get the problem I saw you need to do this as I got to do when I started from a seam-generated project a couple weeks ago (things changed in seam-gen since, I think now there is join instead of begin):
>From a list view (with query) go to create new entity page with a propagation begin, then with a link that doesn't end the conversation (someone else on the project put a tree of top level commands into a div for all pages) go somewhere else, soon through links come to the list again (but not "back", just following links as usual), at which time you still have the same conversation that "began", go to create new entity page (with same propagation begin), and you have a problem. For the heck of it put the id of the factory made instance up next to the id of the home.instance and they were different! I saw it. I repeated it. Why a new home? I'm not sure. But why not a new factory made instance? I guess the one from when the conversation began last time here still was around, so no call to factory method.
My solution was twofold:
1) I stopped using the factory made instance.
2) I for now don't go there with a propagation begin. I'm still trying to get a full understanding of what I'll want to do with conversations. Let's say I'm in a conversation to do something, what are all the possible ways out, and how to I get 100% certainty of behavior at all possible exits. That should include a team member putting "any kind of non-seam aware link" into a part of the page that I just include, or "almost any kind of link".
I've mentioned this before in http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010984
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017864#4017864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017864
19Â years, 2Â months
[Security & JAAS/JBoss] - Compare a VarBinary Password
by aeguzmanv
Hi, I'm trying to Authenticate a user using DatabaseLoginModule, but the password is stored in a binary datatype field of SQL.
When I do the authentication JBoss always throw me the following errors: Bad password for username=user
I've been used the same security configuration but the password stored is a varchar datatype fields and its works perfect.
Does any one knows if their is a special feature to configure to compare binary password instead of text in JBoss ??
login-config.xml
<application-policy name = "Servipago-domain">
<login-module code = "com.servi.seguridad.jboss.ServiDatabaseServerLoginModule" flag="required">
<module-option name = "dsJndiName">java:/ServiDS</module-option>
<module-option name = "principalsQuery">
SELECT Co_Clave AS Password FROM Usuario_Sistema_Internet WHERE Di_Correo=?
</module-option>
<module-option name = "rolesQuery">
SELECT r.de_rol AS Role, 'Roles' FROM rol r, usuario_sistema_internet usi WHERE usi.di_correo= ? AND usi.co_rol = r.co_rol
</module-option>
<module-option name = "hashAlgorithm">MD5</module-option>
<module-option name = "password-stacking">useFirstPass</module-option>
</login-module>
</application-policy>
Thanks in advance..
Alejandro
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017863#4017863
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017863
19Â years, 2Â months
[JBoss jBPM] - Hibernate + LazyLoading + Custom Task
by Dennys
Hi!
I have a problem with Customizing task instances...
looked at UserGuide...
Chapter 11. Task management
11.10. Customizing task instances
I implemented one Custom Task, but when the jbpm engine search a task instance
| JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
| TaskInstance taskInstance = (TaskInstance)
| jbpmContext.loadTaskInstance(id);
|
the method loadTaskInstance return TaskInstance...
it must have returned the CustomTaskInstance!!!
Orinigal mapping...
|
| <class name="org.jbpm.taskmgmt.exe.TaskInstance"
| table="JBPM_TASKINSTANCE"
| discriminator-value="T">
| <id name="id" column="ID_"><generator class="native" /></id>
| <discriminator type="char" column="CLASS_"/>
|
| ....
|
My solution mapping...
|
| <class name="org.jbpm.taskmgmt.exe.TaskInstance"
| table="JBPM_TASKINSTANCE"
| discriminator-value="T" lazy="false">
| <id name="id" column="ID_"><generator class="native" /></id>
| <discriminator type="char" column="CLASS_"/>
|
|
set the property lazy to false....
Thus to only obtain with that jbpm engine return CustomTaskInstance!!!
A better way exists to make with that jbpm engine return CustomTaskInstance ??
Tks!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017851#4017851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017851
19Â years, 2Â months