[JCA/JBoss] - NoSuchMethodError XAManagedConnectionFactory.getValidateOnMa
by prashantpk
I have a XA datasource that throws this exception. any idea ?
INFO | jvm 1 | 2008/01/30 14:43:20 | 14:43:20,342 WARN [JBossManagedConnectionPool] Throwable while trying to match ManagedConnection, destroying connection: org.jboss.reso
urce.connectionmanager.TxConnectionManager$TxConnectionEventListener@15b6382[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@e1fbe3 handles=0 lastUse=12017
22200317 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@60090d context=org.jboss.resource.connectionmanager.Intern
alManagedConnectionPool@f23ad3 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@e1fbe3 txSync=null]
INFO | jvm 1 | 2008/01/30 14:43:20 | java.lang.NoSuchMethodError: org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getValidateOnMatch()Z
INFO | jvm 1 | 2008/01/30 14:43:20 | at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.matchManagedConnections(XAManagedConnectionFactory.java:191)
INFO | jvm 1 | 2008/01/30 14:43:20 | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:187)
INFO | jvm 1 | 2008/01/30 14:43:20 | at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:417)
INFO | jvm 1 | 2008/01/30 14:43:20 | at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:324)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124948#4124948
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124948
18 years, 2 months
[JBoss Seam] - extra jars needed when deploying a Seam 2.0.1.CR2 app into J
by charles.crouch@jboss.com
I'm seeing that I need to include a bunch of jars (jbpm-jpdl.jar, drools-core.jar, jboss-cache.jar, jgroups.jar) that my Seam application doesn't use when deploying the app into a recent revision of JBAS5 (r69477).
When deploying the app onto a CR of Seam 2.0 and JBAS4.2 this didn't occur.
For example without jbpm-jpdl.jar in web-inf/lib I get the following:
org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/usr/apps/jboss/jboss-5.0.0.r69477/server/defau
| lt/deploy/embedded-console.war
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:
| 65)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java
| :142)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NoClassDefFoundError: Lorg/jbpm/graph/exe/ProcessInstance;
| at java.lang.Class.getDeclaredFields0(Native Method)
| at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
| at java.lang.Class.getDeclaredFields(Class.java:1715)
| at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.processClass(AbstractComponentProcessor.java:252
| )
| at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.processClass(AbstractComponentProcessor.java:202
| )
| at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.process(AbstractComponentProcessor.java:143)
| at org.jboss.metadata.annotation.creator.web.WebComponentProcessor.process(WebComponentProcessor.java:60)
| at org.jboss.metadata.annotation.creator.web.WebComponentProcessor.process(WebComponentProcessor.java:42)
| at org.jboss.metadata.annotation.creator.web.Web25MetaDataCreator.create(Web25MetaDataCreator.java:68)
| at org.jboss.deployment.AnnotationMetaDataDeployer.processJBossWebMetaData(AnnotationMetaDataDeployer.java:222)
| at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:171)
| at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| ... 22 more
|
|
Could this be because org\jboss\seam\pageflow\Pageflow.java has got the following attribute?
private ProcessInstance processInstance;
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124947#4124947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124947
18 years, 2 months
[JBoss Messaging] - Understanding JBoss Messaging and SPOF (Single Point of Fail
by seattle.golfer
Hi All,
I've been away from JBoss for about 4+ years (working in Weblogic), and am finally coming back home.
I'm trying to get a better handle on JBoss Messaging's clustering capabilities. They way I read the documentation/installation guide, you still need to have a shared database instance. From the 1.4B1 docs, "For a clustered installation it is mandatory that a shared database is available to all nodes in the cluster."
Which (to me) appears to be Single Point of Failure (SPOF). I realize the database itself could be clustered, but still..
Also, additional reading, such as this statement from Tim's (old) blog post (http://blogs.jboss.com/blog/tfox/?permalink=State_of_the_art_clustering_w...) states : "But there's another way we can increase the "durability" of a message without storing it to disk at all, and that's by replicating it in memory between different nodes. If the cluster is well constructed with good hardware, UPS etc then we can reach sufficiently levels of durability for many applications.". This is exactly what I'm after.
So, which is it? Can I cluster a topic without a shared database or not? How about with a local database on each node in the cluster?
That being said, here's the problem I'm trying to solve.. A distributed topic that lives on N nodes. There are a few producers that live on each Node. There are also M consumers that don't care if the topic is clustered or not. Additionally, I don't want a SPOF, nor do I want to mess with a central database with clustering enabled.
Am I chasing a unicorn here? Is this even possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124943#4124943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124943
18 years, 2 months
Re: [jboss-user] hitting a specific node from the cluster
by Nestor Urquiza
Just to update this thread take a look at
http://jira.jboss.com/jira/browse/JBAS-2568
Bottom line attribute emptySessionPath must be set to "false" for the
specific connector. That will make tomcat respond to the request using
an internally generated cookie.
As stated there though this might come with problems for portlets and
other web apps that rely on session sharing between them.
On 10/26/07, Nestor Urquiza <nestor.urquiza at gmail.com> wrote:
> So I have found my own answer, basically if the request is made using
> Cookie: JSESSIONID=.<node name>
>
> The curious part is that when a request is made and the proper node
> responds the session Id keeps being ".<node name>". I would expect the
> cookie to be rewritten by the server but it never does.
>
> This makes me think about an attack possibility. If a hacker somehow
> manage to redirect a user with that session Id to a cluster
> environment he could potentially access user sensitive data because in
> fact he knows the user session?
>
> I have done even tests from two different IPs and my program kept the
> session with the two requests using the same ".node3C1" session Id:
>
> [Fri Oct 26 10:22:04 2007] [30497:26304] [debug]
> ajp_done::jk_ajp_common.c (2194): recycling connection pool slot=0 for
> worker node3C1
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> wc_maintain::jk_worker.c (318): Maintaining worker node1C1
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> service::jk_lb_worker.c (735): service sticky_session=1 id='.node3C1'
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> get_most_suitable_worker::jk_lb_worker.c (634): searching worker for
> partial sessionid .node3C1
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> get_most_suitable_worker::jk_lb_worker.c (642): searching worker for
> session route node3C1
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> get_most_suitable_worker::jk_lb_worker.c (655): found worker node3C1
> (node3C1) for route node3C1 and partial sessionid .node3C1
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> service::jk_lb_worker.c (755): service worker=node3C1
> jvm_route=node3C1
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> ajp_service::jk_ajp_common.c (1734): processing node3C1 with 2 retries
> [Fri Oct 26 10:22:35 2007] [30495:26304] [debug]
> ajp_done::jk_ajp_common.c (2194): recycling connection pool slot=0 for
> worker node3C1
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> wc_maintain::jk_worker.c (318): Maintaining worker node1C1
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> service::jk_lb_worker.c (735): service sticky_session=1 id='.node3C1'
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> get_most_suitable_worker::jk_lb_worker.c (634): searching worker for
> partial sessionid .node3C1
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> get_most_suitable_worker::jk_lb_worker.c (642): searching worker for
> session route node3C1
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> get_most_suitable_worker::jk_lb_worker.c (655): found worker node3C1
> (node3C1) for route node3C1 and partial sessionid .node3C1
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> service::jk_lb_worker.c (755): service worker=node3C1
> jvm_route=node3C1
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> ajp_service::jk_ajp_common.c (1734): processing node3C1 with 2 retries
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (892): 00f0 30 00
> 06 00 07 6E 6F 64 65 33 43 31 00 FF 00 00 - 0....node3C1....
> [Fri Oct 26 10:23:15 2007] [30496:26304] [debug]
> ajp_done::jk_ajp_common.c (2194): recycling connection pool slot=0 for
> worker node3C1
>
> Any ideas about how to make the server force the creation of a brand
> new random session id after receiving any request using a non existing
> session id?
>
> Thanks!,
>
> -Nestor
>
>
> On 10/15/07, Nestor Urquiza <nestor.urquiza at gmail.com> wrote:
> > Hello guys,
> >
> > Just new to JBoss World so if this is not the right list please be
> > kind and advise where should I post the question.
> >
> > Currently we have a cluster formed of three nodes, each of them in
> > separate machines. I want to be able to target a specific node from my
> > HTTP request. Is there any HTTP Header/GET/POST param that would allow
> > me to make one node respond to my request?
> >
> > Thanks in advance,
> >
> > -Nestor
> >
>
18 years, 2 months