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.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- 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

Reply via email to