SAR file is the Avalon-way.  James is built on top of
Avalon.  There are numerous hacks to deploy a WAR
file.  None of them pretty.  I think one mentioned
earlier in the thread.  Please read the documentation.

Gabor

--- radjesh <[EMAIL PROTECTED]> wrote:

> Hi,
> Thanks for the answers. A JAR file will do the job,
> but the client is insisting on WAR file. Is it
> absolutely not possible to deploy WAR file on James.
> I could not find any article in the web stating
> authoritatively on this issue that WAR file cannot
> be used for deployment in James. So can I take it
> that WAR file deployment is not feasible in James
> and a SAR file is the only option left.
>  
> Thanks in advance
> rajesh
> 
> 
> "Seib, Broc" <[EMAIL PROTECTED]> wrote:(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 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:
> WEB-INF.Classes.com.scb.octopus.mailets
> 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. ( vs. ).
> 
> -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 
> > com.scb.octopus.mailets 
> > 
> > , 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 
> > 
> > WEB-INF.Classes.com.scb.octopus.mailetspackage>
> 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" 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]
> 
> 
> 
> 
> 
> 
> ...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!



Gabor Kincses
Running Mandrake Linux 10.0


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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

Reply via email to