[JBoss-user] [EJB/JBoss] - Problem with JBoss Scheduler. Please help me!!!

2006-05-16 Thread fighter79
Hi.
I have a problem with the JBoss scheduler.
I follow these phases:
1- Create a session bean that implements Schedulable.
2- Implement the method "perform" and put there the code to be executed by 
Scheduler
3- Create a jboss-service.xml and put this file in a sar file.

Then during of deploy return me this error:

ERROR [Scheduler$Listener] Handling a Scheduler call failed
java.lang.NullPointerException
at 
org.jboss.mx.loading.UnifiedClassLoader.findResources(UnifiedClassLoader.java:395)
at java.lang.ClassLoader.getResources(ClassLoader.java:851)
at com.sun.naming.internal.VersionHelper12$5.run(VersionHelper12.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sun.naming.internal.VersionHelper12.getResources(VersionHelper12.java:142)
at 
com.sun.naming.internal.ResourceManager.getApplicationResources(ResourceManager.java:468)
at 
com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:159)
at javax.naming.InitialContext.init(InitialContext.java:215)
at javax.naming.InitialContext.(InitialContext.java:175)
at sistemiMW.ejb.RestartTimerBean.perform(RestartTimerBean.java:114)
at 
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1263)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
at $Proxy8.handleNotification(Unknown Source)
at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:98)
at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:83)
at javax.management.timer.Timer.sendNotifications(Timer.java:441)
at javax.management.timer.Timer.access$000(Timer.java:31)
at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)


In method perform i call a business method of an entity bean.

Any ideas to solving this problem?

Please help me.

Thank you.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943361#3943361

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943361


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Scheduler Jboss

2006-05-16 Thread fighter79
Hi dimitris.
Therefore which is my problem? I don't understand what you tell me. How can i 
solve this problem?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943284#3943284

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943284


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] [Management, JMX/JBoss] - Re: Scheduler Jboss

2006-05-13 Thread fighter79
Hello. I have the problem with the scheduler.
I follow these phases:
1- Create a session bean that implements Schedulable.
2- Implements the method "perform" and put there the code to be executedby 
Scheduler
3- create a jboss-service.xml and put this file in a sar file.

Then during of deploy return me this error:

ERROR [Scheduler$Listener] Handling a Scheduler call failed
java.lang.NullPointerException
at 
org.jboss.mx.loading.UnifiedClassLoader.findResources(UnifiedClassLoader.java:395)
at java.lang.ClassLoader.getResources(ClassLoader.java:851)
at 
com.sun.naming.internal.VersionHelper12$5.run(VersionHelper12.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sun.naming.internal.VersionHelper12.getResources(VersionHelper12.java:142)
at 
com.sun.naming.internal.ResourceManager.getApplicationResources(ResourceManager.java:468)
at 
com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:159)
at javax.naming.InitialContext.init(InitialContext.java:215)
at javax.naming.InitialContext.(InitialContext.java:175)
at sistemiMW.ejb.RestartTimerBean.perform(RestartTimerBean.java:114)
at 
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1263)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
at $Proxy8.handleNotification(Unknown Source)
at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:98)
at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:83)
at javax.management.timer.Timer.sendNotifications(Timer.java:441)
at javax.management.timer.Timer.access$000(Timer.java:31)
at 
javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
at 
org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)


In method perform i call a business method of an entity bean.

Any ideas to solving this problem?

Thank you.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943213#3943213

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943213


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user