[Clustering/JBoss] - Re: Clustering begginner..please HELP
by sreejava
Hi,
i have read the Apache server configuration documentation. But still i have some doubts regarding some values of atributes of VIRTUAL HOST tag
I am sure about the value i have given for JkMount.
What should be the value of DocumentRoot that i have to specify in the httpd.conf file of Apache2\conf ?. I dont know which directory i have to specify here? The documentation says:-
anonymous wrote : DocumentRoot directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document.(http://httpd.apache.org/docs/2.0/mod/core.html#documentroot)
i tried with the following;-
physical location of the war file (compleate and partial)
blank
deafault (/usr/local/apache/htdocs)
but it shows error while i tried http://155.35.20.209/TestApp as "Document Root [path i tried] does not exist."
IN short
Details of My Node1 are are
IP address of the machine : _._._.209
Name of the node : node1
Name of the application : TestApp.war(deployed in the farm dir)
Name of the welcome file :venkatesh.jsp
Details of tag in httpd.conf in the system _._._.209 is
<VirtualHost _._._.209:80>
| ServerAdmin me(a)abcd.com
| DocumentRoot <PLEASE HELP,I COULD NOT UNDERSTAND>
| ServerName _._._.209
|
| JkMount /TestApp/* loadbalancer
| </VirtualHost>
based on these details provided above can you please tell me,
1. Did i made any mistake in the VIRTUALHOST TAG
if yes,
How it should be? and what is the URL i have to type for testing the load balencing?
MANY MANY THANKS.........please help
sree
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016441#4016441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016441
19Â years, 2Â months
[EJB 3.0] - ClassCastException persist
by CarstenRudat
Hi All,
I have a problem, I cannot understand...
I have two entites in a OneToOne-relationship:
| public class Konto ...
|
| @Id
| @GeneratedValue(strategy=GenerationType.TABLE, generator = "my_generator")
| @Column(name = "id")
| public java.lang.Long getId() {
| return this.id;
| }
|
| @OneToOne(cascade = {CascadeType.PERSIST,
| CascadeType.MERGE}, fetch = FetchType.EAGER)
| @JoinColumns({
| @JoinColumn(name="loanDecPxy_id_fk",
| referencedColumnName="id")
| })
| public LoanDecisionPxy getLoanDecisionPxy() {
| return this.loanDecisionPxy;
| }
|
| public void setLoanDecisionPxy(LoanDecisionPxy loanDecisionPxy) {
| this.loanDecisionPxy = loanDecisionPxy;
| }
| ...
| }
|
|
| and
|
|
| public class LoanDecisionPxy ...
|
| @OneToOne(mappedBy="loanDecisionPxy")
| public Konto getKonto() {
| return this.konto;
| }
|
| public void setKonto(Konto konto) {
| this.konto = konto;
| }
| ...
| }
|
When i persist a "Konto" with a given "LoanDecisionPxy", which was persisted too, I get the following error (when the method ends and the transaction should be committed):
| java.lang.reflect.InvocationTargetException
| 17:08:33,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 17:08:33,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 17:08:33,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 17:08:33,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 17:08:33,500 ERROR [STDERR] at com.genloop.session.base.SessionBase.createAction(SessionBase.java:2504)
| 17:08:33,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 17:08:33,516 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 17:08:33,516 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 17:08:33,516 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.stateful.SessionSynchronizationInterceptor.invoke(SessionSynchronizationInterceptor.java:142)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 17:08:33,516 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 17:08:33,516 ERROR [STDERR] Caused by: java.lang.ClassCastException: de.hanseatic.baufi.unterlagenmgmt.LoanDecisionPxy
| 17:08:33,516 ERROR [STDERR] at org.hibernate.type.LongType.set(LongType.java:42)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:83)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:65)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1513)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1575)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.loader.Loader.doQuery(Loader.java:661)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
| 17:08:33,516 ERROR [STDERR] at org.hibernate.loader.Loader.loadEntity(Loader.java:1784)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.loader.entity.EntityLoader.loadByUniqueKey(EntityLoader.java:85)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.persister.entity.AbstractEntityPersister.loadByUniqueKey(AbstractEntityPersister.java:1581)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.type.EntityType.loadByUniqueKey(EntityType.java:365)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.type.EntityType.resolve(EntityType.java:306)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.type.EntityType.replace(EntityType.java:207)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.type.TypeFactory.replace(TypeFactory.java:437)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:340)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:267)
| 17:08:33,531 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:120)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:687)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:669)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:245)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.cascadeOnMerge(DefaultMergeEventListener.java:390)
| 17:08:33,547 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:266)
|
I debugged the whole thing and I saw in "OneToOneType (extends EntityType)" the property "uniqueKeyPropertyName" for my "Konto" was set to "loanDecisionPxy". I didn't do that (see above).
What can I do?
I use JBoss 4.0.5.GA with build in Hibernate 3.2.GA.
Thanks for help.
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016439#4016439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016439
19Â years, 2Â months
[JBoss Messaging] - Re: JMS Server Locks Up
by clebert.suconicï¼ jboss.com
"rtm333" wrote : Hi Tim,
|
| Thanks for your quick reply.
|
| The first problem, namely the failure to receive any JMS messages and the subsequent timeout exceptions on the server, does not occur when the explicit ip address is specified. In this case, the special client behaves just like any other "normal" client.
|
| I can't be sure whether the server lock-up is really related to this client. Probably yes, as up to now, we have observed the lock-up only when this peculiar client has attempted to connect (without providing the explicit ip address) several times.
|
Makes sense from what I saw in the code...
We are synchronizing sessions hashmap... while the server is also closing the tree.. and on that process we are flushing messages to the client... Because we can't reach the client... we are holding the HashMap locked on setStarted. I will try to create a testcase based in what you said.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016436#4016436
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016436
19Â years, 2Â months
[EJB 3.0] - Transaction issue with separate JBoss jars
by dtseiler
Note: I'm told this is really an EJB3/JPA issue, so I'm posting it here now. Sorry for the *triple* post.
Running JBossAS-4.0.5.GA on Sun JDK 1.5.0_07 on RHEL3.
Recently we have tried to separate our EJB Project out into two parts.
One project to handle all of our persistence and another to handle all
of our service's. The persistence project was set up to serve out
entity objects back through a DAO service. This way our Service project
can just call into our DAO services and retrieve the information that
they would need and allowing for a nice split between two different
types of projects. However, in the process of separating these projects
out we hit some issues with the transaction manager not flushing upon
the call of the flush command.
The flush command is something we greatly rely on as a means to make
sure our data is persisted underneath the proper user in the database
through contexts. It is also the means in which we can allow support of
oracle proxy connections. We achieved this by having a
PrepareDatabaseConnection AOP method; which is executed before and after
a method is called. Allowing for us to set the database context after
the transaction is started and to close the database context before the
transaction ends. Ideally we would have liked to hook it directly onto
the begging and end of the transaction but we couldn't find a great way
to do so. So instead on every one of our services and DAO work we added
the PrepareDatabaseConnection interceptor to properly set our database
context or to configure the connection as a proxy connection. In a
single jar this functionality works great. However, in separate jars we
start to see issues with the database context not being properly set,
which leads to issues with auditing what users changed the data in the
database.
In a single jar the contents flush upon my call to the entity manager to
commit / update the information. However, when these are separate jars
the flush doesn't occur until the transaction manager tells it to flush
and close the transaction. At which point in time the database context
has already been unset leaving no record of which user was actually
using that connection from the connection pool.
Why is it when we move the database code out to a separate jar the
entity managers flush doesn't actually flush the information when it was
requested to?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016434#4016434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016434
19Â years, 2Â months