[Installation, Configuration & DEPLOYMENT] - Dependency problem with Scheduler
by amedina
Hi,
i was trying to implement a Scheduler on jboss 4.0.5, but have some problems with the dependency.
i have added the following code to the scheduler-service.xml:
| <mbean code="org.jboss.varia.scheduler.Scheduler"
| name=":service=Scheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">com.middleware.scheduler.CacheCleaner</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">30000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| <depends>jboss.j2ee:module=myapp-ejb.jar,service=EjbModule</depends>
| </mbean>
|
The CacheCleaner class is located inside the myapp-ejb.jar, which is deployed within an ear-file.
the ear-file, as well as the scheduler-service.xml are located in the jboss-deploy-directory, when i start jboss i get the following error message:
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss:service=Scheduler
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=SchedulableClass value=com.middleware.scheduler.CacheCleaner on mbean jboss:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class com.middleware.scheduler.CacheCleaner is not not found)
|
now, if i do some trivial changes to the scheduler-service.xml(add a whitespace), the code of CacheCleaners perform()-Method gets executed immediately.
So i guess there is something wrong with the depends attribute, but i don't know what.
here is the snapshot of the jmx-console:
| jboss.j2ee
|
| * jndiName=ejb/ProgressManager,plugin=pool,service=EJB
| * jndiName=ejb/ProgressManager,service=EJB
| * jndiName=ejb/SessionManager,plugin=cache,service=EJB
| * jndiName=ejb/SessionManager,plugin=pool,service=EJB
| * jndiName=ejb/SessionManager,service=EJB
| * jndiName=ejb/SystemSessionManager,plugin=cache,service=EJB
| * jndiName=ejb/SystemSessionManager,plugin=pool,service=EJB
| * jndiName=ejb/SystemSessionManager,service=EJB
| * module=myapp-ejb.jar,service=EjbModule
| * service=ClientDeployer
| * service=EARDeployer
| * service=EARDeployment,url='myapp.ear'
|
i've found in the wiki
http://wiki.jboss.org/wiki/HowCanAnMBeanDependOnASessionBean
that it is also possible to set the depends attribute directly to the ejb:
| <depends>jboss.j2ee:jndiName=ejb/SessionManager,service=EJB</depends>
|
unfortunately the result is the same. so what am i doing wrong here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173334#4173334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173334
16 years, 3 months
[JBoss jBPM] - error start JBOSS Application Server
by miafonso2123
Help me!!!!!!!!!!!
error start application server JBPM jbpm-jpdl-3.2.3
anonymous wrote : ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\BICJava\jbpm-jpdl-3.2.3\server
|
| JAVA: C:\Arquivos de programas\Java\jdk1.5.0_08\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
| ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: C:\Arquivos de programas\Java\jdk1.5.0_08\lib\tools.jar;C:\BICJava\
| jbpm-jpdl-3.2.3\server\bin\run.jar
|
| ===============================================================================
|
| 13:35:56,062 WARN [Server] Caught Throwable Error, this probably means we've al
| ready set the URLStreamHAndlerFactory before
| 13:35:56,109 INFO [Server] Starting JBoss (MX MicroKernel)...
| 13:35:56,109 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
| JBoss_4_2_2_GA date=200710221139)
| 13:35:56,125 INFO [Server] Home Dir: C:\BICJava\jbpm-jpdl-3.2.3\server
| 13:35:56,125 INFO [Server] Home URL: file:/C:/BICJava/jbpm-jpdl-3.2.3/server/
| 13:35:56,125 INFO [Server] Patch URL: null
| 13:35:56,125 INFO [Server] Server Name: jbpm
| 13:35:56,125 INFO [Server] Server Home Dir: C:\BICJava\jbpm-jpdl-3.2.3\server\s
| erver\jbpm
| 13:35:56,125 INFO [Server] Server Home URL: file:/C:/BICJava/jbpm-jpdl-3.2.3/se
| rver/server/jbpm/
| 13:35:56,125 INFO [Server] Server Log Dir: C:\BICJava\jbpm-jpdl-3.2.3\server\se
| rver\jbpm\log
| 13:35:56,125 INFO [Server] Server Temp Dir: C:\BICJava\jbpm-jpdl-3.2.3\server\s
| erver\jbpm\tmp
| 13:35:56,125 INFO [Server] Root Deployment Filename: jboss-service.xml
| 13:35:56,328 WARN [BasicMBeanRegistry] preRegister() failed for JMImplementatio
| n:type=MBeanServerDelegate:
| java.lang.NoSuchFieldError: TRACE
| at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
| java:85)
| at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
| at org.jboss.mx.server.AbstractMBeanInvoker.initAttributeContexts(Abstra
| ctMBeanInvoker.java:1009)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.initAttributeContexts(Model
| MBeanInvoker.java:597)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
| oker.java:647)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
| icMBeanRegistry.java:697)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:211)
| at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
| at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
| BuilderImpl.java:71)
| at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
| .java:316)
| at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
| ory.java:219)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Failed to boot JBoss:
| java.lang.RuntimeException: Cannot create MBeanServer
| at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:239)
| at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
| BuilderImpl.java:71)
| at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
| .java:316)
| at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
| ory.java:219)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.management.NotCompliantMBeanException: Cannot register MBean: J
| MImplementation:type=MBeanServerDelegate
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:314)
| at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
| ... 8 more
| Caused by: javax.management.RuntimeErrorException
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
| icMBeanRegistry.java:725)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:211)
| ... 9 more
| Caused by: java.lang.NoSuchFieldError: TRACE
| at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
| java:85)
| at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
| at org.jboss.mx.server.AbstractMBeanInvoker.initAttributeContexts(Abstra
| ctMBeanInvoker.java:1009)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.initAttributeContexts(Model
| MBeanInvoker.java:597)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
| oker.java:647)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
| icMBeanRegistry.java:697)
| ... 10 more
| Pressione qualquer tecla para continuar. . .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173330#4173330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173330
16 years, 3 months
[JBoss Portal] - Error displaying new additional property for user profile in
by asaitov
Environment: jboss-portal-2.6.6.GA-bundled
Hi
I have add new property into user profile (as described in JBossPortalReferenceGuide, part 17.3.3 for "gender" property) and set [into resource bundle] localized values for property list values that differs from keys for items in 'portal-identity.sar/conf/identity-ui-configuration.xml'. In result, value of new property is saved into profile, but not displayed correctly (every time displayed empty value) when user edit his profile on portal page. So user needs select "gender" property every time when he edit his profile.
All steps maden according part 17.3.3 of JBossPortalReferenceGuide.
In resource bundles added lines:
| IDENTITY_GENDER=Gender
|
| IDENTITY_DYNAMIC_VALUE_MALE=Male
| IDENTITY_DYNAMIC_VALUE_FEMALE=Female
|
for english and localized messages for other languages.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173325#4173325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173325
16 years, 3 months