[JBoss Portal] - Re: Cannot see Management and CMS portlet
by portalgeek
Thank you for the response. I have changed the fields in jbp_users, but i do not have jbp_portal_state_entry in my database ( i do not why ?). Even in the jbp_instance table i do not have field 'modifiable'. Below are the tables present in my database and decripition of jbp_instance table.
The problem still presists
Please help.
| mysql> show tables;
| +-------------------------+
| | Tables_in_jbossportal |
| +-------------------------+
| | jbp_cms_cmsentry |
| | jbp_cms_repositoryentry |
| | jbp_cms_version_binval |
| | jbp_cms_version_node |
| | jbp_cms_version_prop |
| | jbp_cms_version_refs |
| | jbp_cms_versionentry |
| | jbp_cms_wsp_binval |
| | jbp_cms_wsp_node |
| | jbp_cms_wsp_prop |
| | jbp_cms_wsp_refs |
| | jbp_context |
| | jbp_instance |
| | jbp_instance_pref |
| | jbp_instance_pref_value |
| | jbp_object_node |
| | jbp_page |
| | jbp_portal |
| | jbp_portal_mode |
| | jbp_portal_object |
| | jbp_portal_object_props |
| | jbp_portal_window_state |
| | jbp_role_membership |
| | jbp_roles |
| | jbp_security_constraint |
| | jbp_security_policy |
| | jbp_user_pref |
| | jbp_user_pref_set |
| | jbp_user_pref_value |
| | jbp_user_prefs_group |
| | jbp_user_prop |
| | jbp_users |
| | jbp_window |
| +-------------------------+
| 33 rows in set (0.09 sec)
|
| mysql> describe jbp_instance;
| +---------------+--------------+------+-----+---------+----------------+
| | Field | Type | Null | Key | Default | Extra |
| +---------------+--------------+------+-----+---------+----------------+
| | PK | bigint(20) | NO | PRI | NULL | auto_increment |
| | ID | varchar(255) | NO | UNI | | |
| | COMPONENT_REF | varchar(255) | YES | | NULL | |
| +---------------+--------------+------+-----+---------+----------------+
| 3 rows in set (0.02 sec)
|
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976032#3976032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976032
19 years, 7 months
[Messaging, JMS & JBossMQ] - Re: Tibco EMS messaging integration fails
by romanchr
Hi all,
I could solve my problems. Originally it seemed to be just one problem but infact there was another onbe coming up after solving the first one (Message "No valid Context.Provider_Url found".
Here is what I came up with:
First problem was that NamingAliases are not working when you try to alias a remote object. Therefore I skipped the alias. We came up with another solution. As stated between the lines I do not think the problem with the NamingAlias has anything to do with Tibco. It just doesn't work when a remote lookup is involved.
The next problem I came across was connected to the class JBossAdapter provided by Tibco. It had some problems setting up the initial context. Instead of using this class I wrote my own Adapter taking care of the context setup.
Now my MDB was able to retreive messages and all is running fine.
Regards
Christoph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976030#3976030
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976030
19 years, 7 months
[JBossWS] - Re: problem throwing SOAPFaultException
by omatzura
ok.. I've fixed this in the 1.0.3 sources locally; in org.jboss.ws.server.ServiceEndpointInvoker#handleInvocationException(Throwable) the handled exception is an MBeanException which wraps a ServerException which wraps the "original" SOAPFaultException.. I added a check for this;
if (th instanceof MBeanException)
| {
| Exception targetEx = ((MBeanException)th).getTargetException();
| if (targetEx instanceof SOAPFaultException)
| {
| throw (SOAPFaultException)targetEx;
| }
| else if( targetEx instanceof ServerException && targetEx.getCause() instanceof SOAPFaultException )
| {
| throw (SOAPFaultException)((ServerException)targetEx).getCause();
| }
| else
| {
| ...
fixed the problem (at least temporarily)..
should I post a bug-report/fix/etc in JIRA?
regards!
/Ole
eviware.com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976026#3976026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976026
19 years, 7 months
[EJB 3.0] - [ClassCastException] problem with merge() for abstract entit
by jtonic
Hi
I have the following hierarchy of entities
MedicalPersonnel (abstract class) (InheritanceType.JOINED)
>--- Nurse (concret class)
>--- Physician (concrett class)
and relation
MedicalPersonnel (OneToMany) MedicalDoc
When I've tried
MedicalPersonnel mp;
/* get a persisted and detached instance of MedicalPersonnel and assign with mp */
mp = em.merge(mp); //ClassCastException
What can I do against this?
Thx in advance, jtonic.
Error StackTrace:
Exception in thread "main" javax.ejb.EJBException: java.lang.ClassCastException: ro.iqbyte.arhimed.model.core.common.entities.adm.Nurse
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
Caused by: java.lang.ClassCastException: ro.iqbyte.arhimed.model.core.common.entities.adm.Nurse
at org.hibernate.type.LongType.set(LongType.java:42)
at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:83)
at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:65)
at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1514)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1576)
at org.hibernate.loader.Loader.doQuery(Loader.java:661)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1785)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
at org.hibernate.loader.entity.EntityLoader.loadByUniqueKey(EntityLoader.java:85)
at org.hibernate.persister.entity.AbstractEntityPersister.loadByUniqueKey(AbstractEntityPersister.java:1565)
at org.hibernate.type.EntityType.loadByUniqueKey(EntityType.java:365)
at org.hibernate.type.EntityType.resolve(EntityType.java:306)
at org.hibernate.type.EntityType.replace(EntityType.java:207)
at org.hibernate.type.TypeFactory.replace(TypeFactory.java:431)
at org.hibernate.event.def.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:282)
at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:246)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:99)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:51)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:679)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:663)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:667)
at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:201)
at org.jboss.ejb3.entity.TransactionScopedEntityManager.merge(TransactionScopedEntityManager.java:181)
at com.titan.services.TitanServiceBean.visitNurse(TitanServiceBean.java:122)
at com.titan.services.TitanServiceBean.visitMedicalPersonnel(TitanServiceBean.java:116)
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:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
at $Proxy0.visitMedicalPersonnel(Unknown Source)
at ro.iqbyte.arhimed.model.teste.Main.visitMedicalPersonnel(Main.java:196)
at ro.iqbyte.arhimed.model.teste.Main.main(Main.java:71)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976025#3976025
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976025
19 years, 7 months