[Management, JMX/JBoss] - Scoped SAR deployed from conf/jboss-service.xml?
by jiwils
I have two MBeans: MBeanA and MBeanB (MBeanA depends on MBeanB).
MBeanA's classes are loaded from JARs in the <server config>/lib directory, but because the timing of its deployment is important, it is actually listed in <server config>/conf/jboss-service.xml.
MBeanB's classes are loaded from a scoped SAR. This is all well and good except that MBeanB is needed by MBeanA. I could use MBean dependencies to get this to work out except that would cause MBeanA's start method to execute much too late.
Is there a way I can deploy a scoped MBean from <server config>/conf/jboss-service.xml? I have considered setting up another deployment scanner that would load before the deploy directory's scanner, but I am not sure that this will accomplish what I really want: MBeanA (and therefore MBeanB) must deploy extremely early in the startup process.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991661#3991661
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991661
19 years, 7 months
[Microcontainer] - Re: JMX Decorator for POJOs - suggestion
by dward@redhat.com
Adrian,
I appreciate your response, though I think "hacky" was a bit strong... :) I merely thought that a jndi-name attribute could serve as a shorthand for the JNDIBinding annotation that you mentioned. It is very similar to the <attribute name="JNDIName"...> element that one can nest under MBean tags. Is that considered "hacky" as well?
Having a shorthand or "easier" way of doing configuration is not unprecedented in JBoss. For example, people used to have to write mbean *-service.xml files to set up datasources in AS. Now they just have to write a *-ds.xml file, which is a simpler syntax, although under the hood it just gets trasnformed. (Or at least that's how it used to be implemented...)
Last, your repsponse addressed putting the POJO in JNDI. I didn't see what the recommended approach is to expose the POJO as a JMX MBean. Is there an <annotation ..> for that is well?
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991656#3991656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991656
19 years, 7 months
[JBoss Seam] - Seam CR1.2 component name and precedence
by venkateshbr
hello,
We have just upgraded our application from Seam 1.1 Beta 2 to jboss-seam-1.1.0.CR2. From then on i am getting this exception when the classes are being scanned by seam during server startup.
21:10:14,775 INFO [Initialization] initializing Seam
21:10:14,785 INFO [Scanner] scanning: C:\devtools\eprocurement-tomcat\webapps\eprocurement\WEB-INF\classes
21:10:19,542 INFO [Scanner] scanning: /C:/devtools/eprocurement-tomcat/webapps/eprocurement/WEB-INF/lib/jboss-seam.jar
21:10:21,505 ERROR [[/eprocurement]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Two components with the same name and precedence: emailSession
at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:351)
at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:500)
at org.jboss.seam.init.Initialization.installScannedClass(Initialization.java:449)
at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:443)
at org.jboss.seam.init.Initialization.init(Initialization.java:426)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
emailSession is an application component defined in components.xml. I pass some properties to this component through components.xml
| <component class="com.OutboundEmailSession">
| <property name="host">emalhost</property>
| <property name="fromAddress">me(a)test.com
| </property>
| <property name="fromName">My Name</property>
| </component>
|
This error disappears when I remove this component declaration from components.xml
I guess when i declare my component in components.xml the component is found twice by seam during initialization
This was working fine when in Beta 2. Is there a change in component precedence which i have to explicitly set for using CR1.2.
regards
Venkatesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991655#3991655
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991655
19 years, 7 months
[Clustering/JBoss] - ERROR [[jsp]] Servlet.service() for servlet jsp threw except
by Rajesh.Gajula
Hi,
i have a cluster implemented with three nodes and Running fine with around 30 applications deployed on Sun OS.
now a days, i can see one instance is causing problem and applications are not accesible when the request went to particular node.
I see the below stack trace in server logs.
INFO | jvm 1 | 2006/12/06 12:14:48 | 12:14:48,878 INFO [WebappClassLoader] Illegal access: this web application instanc
e has been stopped already. Could not load org.jboss.net.protocol.jar.Handler. The eventual following stack trace is caused
by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and
has no functional impact.
INFO | jvm 1 | 2006/12/06 12:14:48 | 12:14:48,878 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
INFO | jvm 1 | 2006/12/06 12:14:48 | java.lang.ThreadDeath
INFO | jvm 1 | 2006/12/06 12:14:48 | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.j
ava:1221)
INFO | jvm 1 | 2006/12/06 12:14:48 | at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
INFO | jvm 1 | 2006/12/06 12:14:48 | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
INFO | jvm 1 | 2006/12/06 12:14:48 | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
INFO | jvm 1 | 2006/12/06 12:14:48 | at java.lang.Class.forName0(Native Method)
INFO | jvm 1 | 2006/12/06 12:14:48 | at java.lang.Class.forName(Class.java:164)
The remaining two nodes in the same cluster will process requests during the time....
The affected node only active after restart...
Can any one help me, why i am getting this "java.lang.ThreadDeath" exception and how to resolve this.
Thanks in advance,
-Rajesh Gajula
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991651#3991651
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991651
19 years, 7 months
[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
19 years, 7 months
[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
19 years, 7 months
[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
19 years, 7 months
[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
19 years, 7 months
[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
19 years, 7 months
[Beginners Corner] - Jboss Oracle DS : Error wrong drivers
by minixman
All i have copied my classes12.zip and ojdbc.jar into the default/server/lib directory restart my jboss and tried to setup an oracle connection in my MDB bean as follows
| DataSource ds = (javax.sql.DataSource) ic.lookup("java:OracleDS");
| oraCon = ds.getConnection();
| logger.info("Initializing Oracle Datasource Connection.");
|
But when i send in a message and try and connect to the DS i get this error.
| 12:11:32,280 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: oracle.jdbc.driver.OracleDriver, url: jdbc:gfmisapp:GrandSlam05:@10.142.204.76:1521:GFMIS)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:565)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:250)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:491)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
|
The libs were copied from my Oracle installation jdbc/lib directory
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991613#3991613
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991613
19 years, 7 months
[EJB 3.0] - EJB QL/ JPQL and search for inheritance
by jrosskopf
Hello,
I have a problem with creating a QL expression for some of my entities. First of all I have an entity "Item" which has a ManyToMany reference to 0..* "Tags" But Tag is just a base class for more complex Entities such as "PlaceMark"
| @Entity
| public class Item implements Serializable{
| private static final long serialVersionUID = -6240744395949853067L;
| .
| .
| .
| /**
| * Get a list of tags associated with the item
| * @return list of tags associated with the item
| */
| @ManyToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE})
| public List<Tag> getTags() {
| return tags;
| }
| public void setTags(List<Tag> tags) {
| this.tags = tags;
| }
| }
|
| @Entity
| @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
| @DiscriminatorColumn(name="dtype", discriminatorType=DiscriminatorType.STRING)
| @DiscriminatorValue("Tag")
| public class Tag implements Serializable{
| private static final long serialVersionUID = 2432906233376577675L;
|
| long gid;
| String name;
| List<Item> items;
|
| @Id
| @GeneratedValue
| public long getGid() {
| return gid;
| }
| public void setGid(long gid) {
| this.gid = gid;
| }
|
| public String getName() {
| return name;
| }
| public void setName(String value) {
| this.name = value;
| }
|
| @ManyToMany(mappedBy="tags", cascade={CascadeType.PERSIST, CascadeType.MERGE})
| public List<Item> getItems() {
| return items;
| }
| public void setItems(List<Item> items) {
| this.items = items;
| }
| }
|
| @Entity
| @DiscriminatorValue("PlaceMark")
| public class PlaceMark extends Tag implements Serializable {
| private static final long serialVersionUID = -6646702308712255267L;
|
| boolean visibibilty;
| LookAt lookAt;
| Point point;
|
| public PlaceMark() {
| super.setName("PlaceMark");
| }
|
| @Embedded
| public LookAt getLookAt() {
| return lookAt;
| }
| public void setLookAt(LookAt lookAt) {
| this.lookAt = lookAt;
| }
|
| @Embedded()
| public Point getPoint() {
| return point;
| }
| public void setPoint(Point point) {
| this.point = point;
| }
|
| public boolean isVisibibilty() {
| return visibibilty;
| }
| public void setVisibibilty(boolean visibibilty) {
| this.visibibilty = visibibilty;
| }
|
| public void setName(String value) {
| }
|
| }
|
So now my question, how can I search for items annotaded with different types of tags in the "Tag" class hierachy?
Thank you in advance.
Regards
---
Joachim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991610#3991610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991610
19 years, 7 months
[The Lizzard's corner] - Re: On the quality of user posts.
by adrian@jboss.org
Arrogant, No
Frustrated, Yes
Incidently, I no longer read these forums (well maybe once a month looking for
potential bug reports). I would be bald from pulling my hair out otherwise. :-)
Maybe when we move to the JBoss Portal version of the forums with
a reasonable system of moderation (that removes these useless posts from the
search index so it becomes usable again), I'll go back to contributing regularly.
On a related story, I had a problem with installing MySQL back in January,
but I couldn't find the answer to the problem, just "a million" posts mostly unanswered,
with a few saying this is an FAQ or use search.
I'd like to thank all those time wasters that obscured the post where it was
really answered (I couldn't find it),
because it made me go through the MySQL source to figure
out what the problem was for myself, so I learnt something.
In fact, it was a none problem, at least for me, just an irrelevant warning. :-)
This just shows the problem is a generic one, not just these forums.
In general, people that have real problems suffer because of the laziness of a
minority.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991608#3991608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991608
19 years, 7 months