[Installation, Configuration & DEPLOYMENT] - Re: MBean configuration - ClassLoader issue
by tprime
My configuration xml are like below:
application.xml
| <application>
| <display-name>My Cool Ear</display-name>
| <module><java>some.jar</java></module>
| <module><java>other.jar</java></module>
| </application>
|
jboss-aap.xml
| <jboss-app>
| <module><service>quartz.sar</service></module>
| </jboss-app>
|
jboss-service.xml
| <server>
| <classpath codebase="." archives="*"/>
|
| <mbean code="org.quartz.ee.jmx.jboss.QuartzService"
| name="user:service=QuartzService,name=QuartzService">
|
| <depends>jboss.jca:name=@db.datasource.jndi@,service=LocalTxCM</depend s>
|
| <depends>jboss.jca:name=@db.datasource.jndi@,service=DataSourceBindin g</depends>
|
| <attribute name="JndiName">@quartz.scheduler.jndi@</attribute>
| <attribute name="Properties">
| standard stuff here, detail omitted
| </attribute>
| </mbean>
| </server>
|
I have being looking around for the solution and reading the docs and DTDs. I have tried adding following to both jboss-app.xml and jboss-service.xml. It Does not seem to work in any configuration.
| <loader-repository>
| my.test:loader=myapp.ear
| </loader-repository>
|
Also i tried to set the parameter java2ParentDelegation. Nothing seem to working at the moment.
pike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119660#4119660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119660
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - MBean configuration - ClassLoader issue
by tprime
I having problem using configuring Quartz MBean. Specifically having problem with JBoss Class Loading.
Enviorment:
OS: Linux (Ubuntu 7.10)
Jboss: 4.0.4 GA
Java: 1.5
I have very simple ear with following content:
| myapp.ear
| |--------- META-INF
| | |------------- application.xml (reference modules some.jar and other.jar)
| | |------------- jboss-app.xml (reference to service archive myquartz.sar)
| |
| |--------- some.jar
| | |------------- my.test.SomeJob1 (Does not use any external class)
| | |------------- my.test.SomeJob2 (references/uses my.test.OtherBean)
| |
| |--------- other.jar
| | |------------- my.test.OtherBean
| |
| |--------- myquartz.sar
| |--------- META-INF
| |------------- jboss-service.xml (initialize Quartz MBean)
|
If i use only my.test.SomeJob1 which does not reference any external class then everything works great.
(Quartz Scheduler is properly started and jobs get trigger properly too)
But if i use my.test.SomeJob2 which uses an external class in Other.jar(in the same ear)
It throws following ClassLoader complain it can not find my.test.OtherBean.
| [main] - 01/14/2008 09:09:55 [QuartzService] ERROR: org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.JobPersistenceException: Couldn't recover jobs: No ClassLoaders found for: com.illuminatics.accounting.organization.Organization [See nested exception: java.lang.ClassNotFoundException: No ClassLoaders found for: my.test.OtherBean]]
| at org.quartz.impl.jdbcjobstore.JobStoreSupport.schedulerStarted(JobStoreSupport.j ava:512)
| at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:396)
| at org.quartz.impl.StdScheduler.start(StdScheduler.java:147)
| at org.quartz.ee.jmx.jboss.QuartzService.startService(QuartzService.java:239)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav a:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport .java:245)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15 5)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9 78)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
| .
| .
| .
| * Nested Exception (Underlying Cause) ---------------
| org.quartz.JobPersistenceException: Couldn't recover jobs: No ClassLoaders found for: com.illuminatics.accounting.organization.Organization [See nested exception: java.lang.ClassNotFoundException: No ClassLoaders found for: com.illuminatics.accounting.organization.Organization]
| at org.quartz.impl.jdbcjobstore.JobStoreSupport.recoverJobs(JobStoreSupport.java:7 17)
| at org.quartz.impl.jdbcjobstore.JobStoreCMT.recoverJobs(JobStoreCMT.java:186)
| at org.quartz.impl.jdbcjobstore.JobStoreSupport.schedulerStarted(JobStoreSupport.j ava:510)
| at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:396)
| at org.quartz.impl.StdScheduler.start(StdScheduler.java:147)
| at org.quartz.ee.jmx.jboss.QuartzService.startService(QuartzService.java:239)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav a:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport .java:245)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15 5)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9 78)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
|
Why can Jboss find the the my.test.OtherBean? Does any one have any suggestion to resolve this issue?
i have been searching for the solution for good time now.
pike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119659#4119659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119659
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: JBOSS AS 5.0.0.beta3 and JMS - where are we?
by dimitris@jboss.org
>From the 5.0.0.Beta3 release notes:
...
JBoss Messaging is a high performance JMS provider in the JBoss Enterprise Middleware Stack (JEMS), included with JBoss 5 as the default messaging provider. It is also the backbone of the JBoss ESB infrastructure. JBoss Messaging is a complete rewrite of JBossMQ, which is the default JMS provider for the JBoss AS 4.x series.
...
messaging, v1.4.0.SP1
Some examples queues can be found in ./deploy/messaging/destinations-service.xml
>From the 4.2.1.GA release notes:
...
JBoss Web v2.x is the web container in JBossAS 4.2, an implementation based on Apache Tomcat that includes the Apache Portable Runtime (APR) and Tomcat native technologies to achieve scalability and performance characteristics that match and exceed the Apache Http server. In the absence of the native libraries, JBoss Web falls back to the standard non-native connector mode. The native libraries need to be downloaded and installed separately in JBOSS_HOME/bin/native.
...
Tomcat 6 is now bundled as part of JBoss Web. deploy/jbossweb-tomcat55.sar has been replaced by deploy/jboss-web.deployer.
...
If you follow from the release notes the link to:
https://svn.jboss.org/repos/jbossas/tags/JBoss_4_2_1_GA/build/build-third...
You'll see:
| <componentref name="jboss/web" version="2.0.0.GA" />
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119657#4119657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119657
18 years, 3 months
[JBoss Tools (users)] - Something seems wrong with generated filenames.
by mikeeprice
Using Eclipse
Version: 3.3.1.1
Build id: M20071023-1652
with Jboss 4.2.2, Seam 2.0.1-SNAPSHOT from last week, Java jre1.6.0_03, JBossTools-200801131613-nightly-ALL-win32
I used Seam Create Entity to create an entity with class name Person.
I then ran Seam Generate Entities (isn't this the CRUD generation?) using the Person Entity I just created.
Three of the view files created were
person.xhtml
PersonEdit.xhtml
personList.xhtml
Notice the lower case first letters on person and personList.
All the generated references to person and personList have capital P's. Such as in /layout/menu.xhtml
| <s:link view="/PersonList.xhtml"
| value="Person List"
and in /PersonEdit.page.xml
<navigation from-action="#{personHome.persist}">
| <end-conversation/>
| <redirect view-id="/Person.xhtml"/>
| </navigation>
|
| <navigation from-action="#{personHome.update}">
| <end-conversation/>
| <redirect view-id="/Person.xhtml"/>
| </navigation>
|
| <navigation from-action="#{personHome.remove}">
| <end-conversation/>
| <redirect view-id="/PersonList.xhtml"/>
| </navigation>
of course then I get "The requested resource (/workfirst/PersonList.seam) is not available".
Is this something I am doing wrong or is it something wrong in the generation process?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119654#4119654
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119654
18 years, 3 months