Re: [JBoss-user] Error deploying custom scheduler service

2003-01-15 Thread Meyer-Willner, Bernhard
Thanks. You were correct in your assumption I guess. The interesting this
is:

If the sar with my (MBean) Schedulable implementation and jboss-service.xml
is in the deploy order on startup the scheduler deployment fails, b/c for
some reason an OutOfMemoryError occurs. If I deploy the sar to a running
JBoss it works alright and the scheduler is invoked on the configured
interval.

FYI. I'm using 3.0.4. I'm doing two things in my Schedulable constructor
next to assigning two parameters (standard):

I invoke

try {
  serverIp = java.net.InetAddress.getLocalHost().getHostAddress();
}
catch(java.net.UnknownHostException ex){
  logger.error("IP Error", ex);
}

and call 

DataService ds = ServiceFactory.getDataService();

The ServiceFactory and DataService classes are part of a common.jar which
contains our common classes and is in server/default/lib on startup. Is it
possible that a JAR in lib is not deployed on startup before my SAR is
deployed??

Thanks,
Bernhard

-Original Message -
Von: Scott M Stark [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 11. Januar 2003 03:35
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] Error deploying custom scheduler service


Your target Schedulable is causing an OutOfMemoryError in its ctor I would
say.
The msg says it find the ctor, OR create the instance. The create is failing
due to
the OutOfMemoryError.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Meyer-Willner, Bernhard" <[EMAIL PROTECTED]>
To: "JBoss-User (E-Mail)" <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 10:14 AM
Subject: [JBoss-user] Error deploying custom scheduler service


> Hi,
> 
> I created a custom implementation of the Schedulable interface.
> 
> I tried deploying it as a SAR with the Schedulable implementation included
> or a scheduler-service.xml with the implemention in the JBoss lib
directory.
> scheduler-plugin.jar is in lib, too. Either way I'm getting the stacktrace
> below.
> 
> Since I closely followed the instructions in the JBoss 3.0.4. paid-docs
PDF
> book I can't imagine what I'm doing wrong.



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Error deploying custom scheduler service

2003-01-10 Thread Scott M Stark
Your target Schedulable is causing an OutOfMemoryError in its ctor I would say.
The msg says it find the ctor, OR create the instance. The create is failing due to
the OutOfMemoryError.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Meyer-Willner, Bernhard" <[EMAIL PROTECTED]>
To: "JBoss-User (E-Mail)" <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 10:14 AM
Subject: [JBoss-user] Error deploying custom scheduler service


> Hi,
> 
> I created a custom implementation of the Schedulable interface.
> 
> I tried deploying it as a SAR with the Schedulable implementation included
> or a scheduler-service.xml with the implemention in the JBoss lib directory.
> scheduler-plugin.jar is in lib, too. Either way I'm getting the stacktrace
> below.
> 
> Since I closely followed the instructions in the JBoss 3.0.4. paid-docs PDF
> book I can't imagine what I'm doing wrong.



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Error deploying custom scheduler service

2003-01-10 Thread Meyer-Willner, Bernhard
Hi,

I created a custom implementation of the Schedulable interface.

I tried deploying it as a SAR with the Schedulable implementation included
or a scheduler-service.xml with the implemention in the JBoss lib directory.
scheduler-plugin.jar is in lib, too. Either way I'm getting the stacktrace
below.

Since I closely followed the instructions in the JBoss 3.0.4. paid-docs PDF
book I can't imagine what I'm doing wrong.

This is my scheduler-service.xml:





  

  
  
  

  
true
com.logica.isis.server.common.util.UserSessionRemova
lService
Phoenix,12
java.lang.String,long
NOW
30
-1
  
  


I'm especially surprised about the error message "19:04:51,248 ERROR
[Scheduler] Could not find the constructor or create Schedulable instance"
since my SchedulableClass contains the required constructor with the String
and long arguments.

Also surprised about the OutOfMemoryError since that has never happened
before during deployment. If anybody can shed some light on this, I'd be
more than happy :) !

Thanks,
Bernhard

See this
Stacktrace
--

19:04:49,435 INFO  [MainDeployer] Starting deployment of package:
file:/C:/gb05-
projekte/dbv-winterthur/Tools/lib/jboss/server/default/deploy/scheduler-serv
ice.
xml
19:04:49,505 INFO  [Scheduler] Creating
19:04:49,505 INFO  [Scheduler] Created
19:04:49,515 INFO  [Scheduler] Starting
19:04:51,248 ERROR [Scheduler] Could not find the constructor or create
Schedula
ble instance
19:05:11,407 ERROR [URLDeploymentScanner] Failed to deploy:
org.jboss.deployment
.scanner.URLDeploymentScanner$DeployedURL@c12cc056{
url=file:/C:/gb05-projekte/d
bv-winterthur/Tools/lib/jboss/server/default/deploy/scheduler-service.xml,
deplo
yedLastModified=0 }
org.jboss.deployment.DeploymentException: Could not create deployment:
file:/C:/
gb05-projekte/dbv-winterthur/Tools/lib/jboss/server/default/deploy/scheduler
-ser
vice.xml; - nested throwable: (java.lang.OutOfMemoryError)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:827)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
ploymentScanner.java:656)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:507)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:261)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
65)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:398)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)