(1) Why must you create a WAR file? What's wrong with a plain JAR file?
James doesn't take WAR files. Is this merely a build issue of creating
an additional JAR file?

(2) Understanding the usage of the mailetpackage and matcherpackage
blocks in the config:

These merely allow you to use "shorthand" in your mailet blocks in the
config file. E.g., the block <mailet match="Foo"> just says "Foo",
rather than "com.domain.x.Foo". The mailet/matcherpackage blocks just
says what namespace(s) to try when attempting to load the class.

When you say:
<mailetpackage>WEB-INF.Classes.com.scb.octopus.mailets</mailetpackage>
This is a misunderstanding of how it works. It has nothing to do with
the physical location of the class, and only to do with locating the
class in a java package/namespace.

(3) Are you writing a matcher or a mailet? Don't add your package to the
wrong block in the config. ( <mailetpackage> vs. <matcherpackage> ).

-broc


> -----Original Message-----
> From: radjesh [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 1:59 PM
> To: James Users List
> Subject: RE: Is deployment of WAR file possible in Apache James ?
> 
> 
> Hi,
>    yes i have used mailets in addition to java code. I  built 
> my application and created a jar  file  and placed it in 
> JAMES_HOME/apps/james/SAR-INF/lib directory.It did work fine, 
> now i when i I  built my application and created a WAR  file  
> and placed it in JAMES_HOME/apps/james/SAR-INF/lib directory 
> and if i start the James server, am getting the following error 
> "nested exception is:
> java.lang.ClassNotFoundException: Requested mailet not found: 
> AckDelRejService. looked in [, com.scb.octopus.mailets., 
> org.apache.james.transport.mailets.]"
>  
> eventhough i specify the path clearly as 
> <mailetpackage>com.scb.octopus.mailets</mailetpackage> 
>  
> , the mailets are located in 
> WEB-INF/Classes/com/scb/octopus/mailets and it is not able to 
> identify it. If i mention the path as 
>  
> <mailetpackage>WEB-INF.Classes.com.scb.octopus.mailets</mailet
package> that wuold mean am trying to chnage the > package name . I
teven tried it and now its saying it cannot 
> find the mailet in 
> WEB-INF/Classes/com/scb/octopus/mailets. Its just that i need 
> to deploy my applciation as WAR file in Apache James. Any 
> help would be most appreciated.
>  
>  
>  Thanks in advance
>  Rajesh
> 
> 
> "Seib, Broc" <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I built my application as a JAR file and placed it in
> > James. When i start James server it is running fine, when i 
> > build my application as a WAR file and run James Server, it 
> > says it cannot load the mailets as it cannot identify the 
> > mailets location although i have specified it correctly in 
> > config.xml. Can WAR file be deployed in James. Can somebody 
> > please help?
> > 
> > Thanks in advance
> > Rajesh
> 
> I presume you are writing a mailet. You should be creating a 
> simple jar file containing your classes. I've placed my 
> mailet jar files in the JAMES_HOME/apps/james/SAR-INF/lib directory.
> 
> -broc
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> ...life is what we make it, always has been, always will be. 
>    Good Day    
> 
>  
> 
> 
> 
> 
>               
> ---------------------------------
> Do you Yahoo!?
>  Yahoo! Small Business - Try our new resources site! 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to