[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    Re: Custom Mailet Class accessing other jar files
From:       "Serge Knystautas" <sergek () lokitech ! com>
Date:       2001-11-28 4:28:41
[Download RAW message or body]

Shal,

I've got a quick patch that needs some testing that will try to load
mailets/matchers from a 'classes' directory in apps/james, or any jar in the
'lib' directory in apps/james.  I noticed similar hanging problems, and hope
this will make it easier for developers to stick in new mailets/matchers.
(I don't know why the server is hanging... it seems like some odd problem
with the classloader).

Hopefully tomorrow night I can apply the patch, then you can try the latest
from CVS.

Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
----- Original Message -----
From: "Shal Jain" <shal_jain@intertechsys.com>
To: "James Users List" <james-user@jakarta.apache.org>
Sent: Friday, November 16, 2001 11:48 PM
Subject: Re: Custom Mailet Class accessing other jar files


> Got it to work
> I modified the supplied run.bat to pick up the proper folder where the
jars
> were stored.
> However, I would expect to see a ClassDefNotFound exception
> -shal
>
>
> ----- Original Message -----
> From: "Shal Jain" <shal_jain@intertechsys.com>
> To: <james-user@jakarta.apache.org>
> Sent: Friday, November 16, 2001 10:29 PM
> Subject: Custom Mailet Class accessing other jar files
>
>
> > Using James version 2.0a1 I have added a custom mailet class to
james.bar
> > and have it running.
> > However, I am running into the following problem:
> >
> > Within the init() method, if I access classes defined in external jar
> files
> > (mine), James simply hangs
> > There are no exceptions thrown or anyother message given regarding
missing
> > classes.
> >
> > i.e. somewhere in init if I do the following:
> > com.its.mypackage.filer obj = new com.its.mypackage.filer();
> >
> > I have copied these jar files within apps/james/lib as well as within
> > apps/james/blocks but to no avail
> > I'd appreciate any comments
> >
> > -shal
> >
> >
> > Following is the trace.
> >
> > Phoenix 3.1a1-dev
> >
> > James 2.0a1
> > HERE WE GO    <== debug printout
> >    <== At this point the system hangs. CTRL-C issues the following
message
> >
> > JVM exiting abnormally. Shutting down Phoenix.
> > There was an uncaught exception:
> > ---------------------------------------------------------
> > --- Message ---
> > Can't find resource for bundle java.util.PropertyResourceBundle, key
> > embeddor.error.shutdown.failed
> > --- Stack Trace ---
> > java.util.MissingResourceException: Can't find resource for bundle
> > java.util.PropertyResourceBundle, key embeddor.error.shutdown.failed
> >  at java.util.ResourceBundle.getObject(ResourceBundle.java:382)
> >  at java.util.ResourceBundle.getString(ResourceBundle.java:354)
> >  at
> org.apache.avalon.excalibur.i18n.Resources.getString(Resources.java:554)
> >  at
> >
>
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.dispose(Defaul
> > tEmbeddor.java:192)
> >  at
org.apache.avalon.phoenix.frontends.CLIMain.shutdown(CLIMain.java:153)
> >  at
> >
>
org.apache.avalon.phoenix.frontends.CLIMain.forceShutdown(CLIMain.java:141)
> >  at
org.apache.avalon.phoenix.frontends.ShutdownHook.run(CLIMain.java:201)
> > ---------------------------------------------------------
> > The log file may contain further details of error.
> > Please check the configuration files and restart Phoenix.
> > If the problem persists, contact the Avalon project.  See
> > http://jakarta.apache.org/avalon for more information.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:james-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:james-user-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:james-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic