[Beginners Corner] - Classloading with jboss_app.xml
by Gitu
Hi,
Am using Jboss5.0 Beta4 . I have two EJB's -e1 and e2 deployed and trying to lookup from one to another. e2 interafce is in \server\all\lib directory. and e1 is doing lookup to e2.
Am also using jboss_app.xml so that jboss will first loads jars from my EAR e1 instead of server\all\lib. It does gets jars from my ear instead of server lib.
| <jboss-app>
| <loader-repository>
| com.avaya:archive=Scheduler.ear
| </loader-repository>
| </jboss-app>
|
|
Lookup is also sucessful. but I need to do another validation if e2 has implemented one of my interface com.my.job Interface. com.my.job is present in server\all\lib. Am using below logic to check this .
| job.class.isAssignableFrom(e2) should return true.
Now this works fine on WAS6.1.It works fine with jboss5.0 also IF e2 interface (not its implementation class ) is part of e1 ear i.e bundled together
But when I move this interface out of ear and put it in server\all\lib , lookup is sucessful but isAssugableFrom fails !
This looks like wrong algorithm of isAssignableFrom.
Hope this isnt confusing .. Can anyone help me with this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149091#4149091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149091
17 years, 11 months
[JBossWS] - Endpoint already registered
by bsisson
I placed the following request for information in the JBoss Tools forum and they refered me to JBossws. I hope someone can help me with this issue.
I am using Eclipse 3.3 and JBoss Tools Core 2.0.1.GA. I created a SEAM Web service (TestWs) which runs correctly. I start JBoss Server from the JBoss Server View. I check the console and I can find a reference to my TestWs Web service. I make some changes to my Web service and then right click on my moduel (within by JBoss Server view) and do a full publish of that service again. This time I do not see a reference to my web service. I'm using the Eclipse web service explorer to test my web service. When I try to use it again (after the changes and the redeploy) I get a could not create deployment - endpoint already registered error (see below). If I completely shutdown Eclipse, reopen and start JBoss Server again it works fine but after the first test (in debug mode) it will get the same message again and I will have to shut down and restart Eclipse again. This is very time consuming and any help would be greatly apprecaited.
11:46:59,969 ERROR [MainDeployer] Could not create deployment: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject.war/
java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=PSDynamicWebProject,endpoint=TestWs
at org.jboss.wsf.framework.management.DefaultEndpointRegistry.register(DefaultEndpointRegistry.java:89)
at org.jboss.wsf.framework.management.ManagedEndpointRegistry.register(ManagedEndpointRegistry.java:59)
at org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect.create(EndpointRegistryDeploymentAspect.java:46)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
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 $Proxy54.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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 $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149088#4149088
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149088
17 years, 11 months
[JBoss jBPM] - advice needed, simultaneously active tasks where there is no
by rossputin
Hi guys,
I am writing to ask for advice or help. We have gone live with JBPM 3.2.1 with a large client, and are suddenly, (or at least have just noticed) that multiple tasks are listed as existing simultaneously where there is no fork.
This is happening across several of our processes. A user will submit his or her task, and instead of just flowing to the next task, in sequence, several are then created and listed as not started.
We have run this application for several months now, but load has recently really picked up as phase two of the project has gone live.
Has anyone else seen anything like this, or does anyone have any theories?
Thanks in advance for your help.
PS we have deployed to Mysql 5, and are running the webapp on tomcat 5.0.28.
Regards
Ross
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149085#4149085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149085
17 years, 11 months