You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Ian Huynh <ia...@hubspan.com> on 2003/06/13 00:04:09 UTC

how do i deploy custom mailet without un-jaring the james.sar file?

env: 2.0a3, win2k , jdk 1.3.1
upgrading to 2.1.3 win2k jdk 1.3.1

as part of the upgrade from 2.0a3 to 2.1.3 i'd like to not have to unjar and re-jar the james.sar file
I've noticed on the http://james.apache.org/custom_mailet_2_1.html page, it's possible in 2.1.3 to
not have to fool around with the sar file.

----------------------
1. Download the source distribution, add a jar file containing the custom files to the lib directory of the unpacked source distribution, and build a new .sar file by following the directions here. This new .sar file will now include your custom classes. 

or 

2. Place a jar file containing the custom class files in the lib subdirectory of the James installation. It will also be necessary to unpack the JavaMail and James jar files from the provided .sar file and add them to this directory. 
----------------------

so what i have done is create myCustMailet.jar  and i am placing my mailet jar, james.jar and

c:\james-2.1.3\lib\myCustMailet.jar
c:\james-2.1.3\lib\james.jar    (extracted from james.sar)
c:\james-2.1.3\lib\mail_1_3.jar    (extracted from james.sar)

i also extracted config.xml from james.sar , place it in the dir below and added my mailet in there.

c:\james-2.1.3\apps\james\SAR-INF\config.xml

then restart james I am getting an exception. see below.  

There was an uncaught exception:
---------------------------------------------------------
--- Message ---
org/apache/avalon/cornerstone/services/connection/AbstractHandlerFactory
--- Stack Trace ---
java.lang.NoClassDefFoundError: org/apache/avalon/cornerstone/services/connection/AbstractHandlerFactory
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at org.apache.avalon.phoenix.tools.verifier.SarVerifier.verifyBlockType(SarVerifier.java:365)




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


RE: how do i deploy custom mailet without un-jaring the james.sar file?

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Download the latest version of james(2.2.0a4) and put your jar under
> SAR-INF/lib.

Please note: v2.2 is still under development, and is only a test build.
Although seemingly stable (I'm running it on a live server), it is not a
Release build.

	--- Noel


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


Re: how do i deploy custom mailet without un-jaring the james.sar file?

Posted by Marco Tedone <mt...@jemos.org>.
Download the latest version of james(2.2.0a4) and put your jar under
SAR-INF/lib.

Marco
----- Original Message ----- 
From: "Ian Huynh" <ia...@hubspan.com>
To: <ja...@jakarta.apache.org>
Sent: Thursday, June 12, 2003 11:04 PM
Subject: how do i deploy custom mailet without un-jaring the james.sar file?


env: 2.0a3, win2k , jdk 1.3.1
upgrading to 2.1.3 win2k jdk 1.3.1

as part of the upgrade from 2.0a3 to 2.1.3 i'd like to not have to unjar and
re-jar the james.sar file
I've noticed on the http://james.apache.org/custom_mailet_2_1.html page,
it's possible in 2.1.3 to
not have to fool around with the sar file.

----------------------
1. Download the source distribution, add a jar file containing the custom
files to the lib directory of the unpacked source distribution, and build a
new .sar file by following the directions here. This new .sar file will now
include your custom classes.

or

2. Place a jar file containing the custom class files in the lib
subdirectory of the James installation. It will also be necessary to unpack
the JavaMail and James jar files from the provided .sar file and add them to
this directory.
----------------------

so what i have done is create myCustMailet.jar  and i am placing my mailet
jar, james.jar and

c:\james-2.1.3\lib\myCustMailet.jar
c:\james-2.1.3\lib\james.jar    (extracted from james.sar)
c:\james-2.1.3\lib\mail_1_3.jar    (extracted from james.sar)

i also extracted config.xml from james.sar , place it in the dir below and
added my mailet in there.

c:\james-2.1.3\apps\james\SAR-INF\config.xml

then restart james I am getting an exception. see below.

There was an uncaught exception:
---------------------------------------------------------
--- Message ---
org/apache/avalon/cornerstone/services/connection/AbstractHandlerFactory
--- Stack Trace ---
java.lang.NoClassDefFoundError:
org/apache/avalon/cornerstone/services/connection/AbstractHandlerFactory
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at
org.apache.avalon.phoenix.tools.verifier.SarVerifier.verifyBlockType(SarVeri
fier.java:365)




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





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