[Beginners Corner] - Re: AbstractKernelController Startup Error
by revof11
Sorry... missed a section of the error log:
09:21:26,015 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** DEPLOYMENTS MISSING DEPLOYERS: Name
|
| file:/src/java/Yabas/build/output/jboss/server/yabas/deploy/http-invoker.sar/invoker.war/
| file:/src/java/Yabas/build/output/jboss/server/yabas/deploy/jmx-console.war/
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| jboss:readonly=true,service=invoker,target=Naming,type=http -> java.lang.NoClassDefFoundError: org/jboss/metadata/MetaData
|
| jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor -> java.lang.NoClassDefFoundError: org/jboss/proxy/ClientMethodInterceptor
|
| jboss.jmx:name=MBeanProxyRemote,protocol=jrmp,type=adaptor -> java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jmx.connector.invoker.MBeanProxyRemote
|
| jboss.jmx:name=Invoker,type=adaptor -> java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jmx.connector.invoker.InvokerAdaptorService
|
| jboss:service=invoker,target=Naming,type=http -> java.lang.NoClassDefFoundError: org/jboss/metadata/MetaData
I'm just not following the error well enough to figure out what's going on.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991646#3991646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991646
18 years, 1 month
[Clustering/JBoss] - Clustering NOT working on physical separate boxes.
by rajeshchande
Hello,
I am working on solaris 10(SunOS 5.10 Generic_118822-18 sun4u sparc SUNW,Sun-Fire-V240), jboss 4.0.3sp1, jdk 1.5.0_01-b08. I have configured two nodes "devl-01" and "devl-02" (copy of "all") on the same physical machine. When I start them one by one. The cluster is detected and they see each other. I have following output on the console:
14:54:41,241 INFO [partition-01] All Members : 2 ([3.187.196.86:53043, 3.187.196.86:63043])
| 14:49:25,936 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=228.1.2.4, HA-JNDI address=3.187.196.86:1100
|
so thats fine.
But I have one more node "devl-03" on a separate physical machine (versions of OS, jboss and jdk are the same). When I start this 3rd node, it does not join the existing cluster. I have specified the same partition name, mcast_address and port by specifiying the System properties as : -Djboss.partition.name=partition-01 -Djboss.partition.udpGroup=228.1.2.4"
But after startup the 3rd node has output on console like:
14:51:24,492 INFO [partition-01] All Members : 1 ([3.187.200.23:53043])
| 14:51:24,727 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=228.1.2.4, HA-JNDI address=3.187.200.23:1100
Can any one guide me, why the 3rd node is not joining the cluster?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991644#3991644
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991644
18 years, 1 month
[EJB 3.0] - Re: EJB QL/ JPQL and search for inheritance
by andydale
Joachim,
I have never attmepted to do an instanceof with the inheritance type of a single table per hierarchy. Prehaps you should investigate some other strategies, namely table per subclass as i think this will provide you with the functionality you would like, like so:
| //create query
| Query tmpQuery = mEntityManager.createQuery("FROM Tag t");
|
| //get query result
| ArrayList<Tag> queryResult = (ArrayList<Tag>)tmpQuery.getResultList();
|
| //get iterator
| Iterator it = testList.iterator();
|
| //loop
| while (it.hasNext()) {
| Tag element = (Tag) it.next();
|
| if(element instanceof PlaceMark) {
| //DO STUFF :-)
| }
| }
|
In your top level parent class you just need to annotate like so:
@Inheritance(strategy = InheritanceType.JOINED)
and i just have a getter and setter for the id in this parent class, and not in the sub-classes(children). All you should need to do in the children classes is just extend the parent class.
To persist, just create and persist a child object and it automatically create and persists the parent objet with the correct attributes.
Cheers,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991643#3991643
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991643
18 years, 1 month
[Beginners Corner] - AbstractKernelController Startup Error
by revof11
I am in the process of starting to learn JBoss. After doing the initial reading and running the examples/tutorials, I decided to start my own test project. I decided to follow the basic steps for creating an "as needed" JBoss server setup utilizing my own configuration. However, when attempting to get the JMX console in there, I am getting an AbstractKernelController.
I utilized the following steps to create my project and setup JBoss:
1. Created my project file and did some basic IDE setup
2. Copied a complete unzip of JBoss 5.0.0 Beta 1 to my project directory
3. Deleted the all and default configs
4. Renamed minimal to myproject
5. cd'd to /bin
6. Run sh run.sh -c myproject (starts up just fine, no JMX Console)
7. Run cp -R /server/default/deploy/jmx* /server/myproject/deploy
8. Run sh run.sh -c myproject starts up with the following exception:
08:51:45,644 ERROR [AbstractKernelController] Error installing to Instantiated: name=jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor state=Described mode=Manual requiredState=Configured
| org.jboss.deployment.DeploymentException: Unable to createMBean for jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:141)
| at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
| at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:198)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:320)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:190)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:656)
| at org.jboss.system.ServiceController.install(ServiceController.java:272)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:76)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:44)
| at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53)
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
| at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
| at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
| at org.jboss.Main.boot(Main.java:210)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NoClassDefFoundError: org/jboss/proxy/ClientMethodInterceptor
| at org.jboss.invocation.jrmp.server.JRMPProxyFactory.<init>(JRMPProxyFactory.java:78)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1242)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:197)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:115)
| ... 29 more
| 08:51:45,652 ERROR [AbstractKernelController] Error installing to Instantiated: name=jboss.jmx:name=MBeanProxyRemote,protocol=jrmp,type=adaptor state=Described mode=Manual requiredState=Configured
| org.jboss.deployment.DeploymentException: Unable to createMBean for jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=jrmp
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:141)
| at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
| at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:198)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:320)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:190)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:656)
| at org.jboss.system.ServiceController.install(ServiceController.java:272)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:76)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:44)
| at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53)
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
| at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
| at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
| at org.jboss.Main.boot(Main.java:210)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jmx.connector.invoker.MBeanProxyRemote
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:275)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:406)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1213)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:197)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:115)
| ... 29 more
| 08:51:45,783 ERROR [AbstractKernelController] Error installing to Instantiated: name=jboss.jmx:name=Invoker,type=adaptor state=Described mode=Manual requiredState=Configured
| org.jboss.deployment.DeploymentException: Unable to createMBean for jboss.jmx:type=adaptor,name=Invoker
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:141)
| at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
| at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:198)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:320)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:190)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:656)
| at org.jboss.system.ServiceController.install(ServiceController.java:272)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:76)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:44)
| at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53)
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
| at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
| at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
| at org.jboss.Main.boot(Main.java:210)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jmx.connector.invoker.InvokerAdaptorService
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:275)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:406)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1213)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.system.ServiceCreator.installEmbeddedXMBean(ServiceCreator.java:227)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:119)
| ... 29 more
| 08:51:45,836 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
So...
What files did I miss in the copy?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991642#3991642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991642
18 years, 1 month
[EJB 3.0] - Re: Cyclic depencies
by Nico67
Hi,
I finally found out a syntax for jboss.xml to Ingnore dependency injection.
The jboss.xml file from my previous posts now look like :
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
| http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
| version="3.0">
| <enterprise-beans>
| <session>
| <ejb-name>RegistryServiceBean</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>org.escapek.core.services.impl.RepositoryServiceBean</injection-target-class>
| <injection-target-name>repository</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
| <session>
| <ejb-name>SecurityServiceBean</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>org.escapek.core.services.impl.RegistryServiceBean</injection-target-class>
| <injection-target-name>registryService</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
| <session>
| <ejb-name>TestServiceBean</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>org.escapek.core.services.impl.RegistryServiceBean</injection-target-class>
| <injection-target-name>registry</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
| </enterprise-beans>
| </jboss>
|
For each bean, the ignore-dependency tag tell which class and which field name to ignore in the bean.
Using this setup I managed to start my beans.
Can someone from the dev. could tell me if there's another syntax as i saw it of others posts.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991640#3991640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991640
18 years, 1 month