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 Fox Sterling <vi...@hotmail.com> on 2003/11/11 16:20:44 UTC
Errors Compiling Mailets
I was atempting to write my own mailet to access resources in a database. I copied the database connection code from the JDBCVirtualUserTable.java class and atempted to compile. I got a lot of "cannot access" messages for a bunch of classes under the avalon framework. I then tried to compile JDBCVirtualUserTable.java it's self, and still got the "cannot access" messages. Any ideas on what I might be doing wrong to compile these files? I'm using the command line to compile the files.
Re: Errors Compiling Mailets
Posted by Fox Sterling <vi...@hotmail.com>.
Ok, after further investigation, the I did not have the avalon framework jar
file. I had downloaded the binaries on the server, but the source on my
development client. The source download did not contain the avalon frame
work, so I downloaded the binaries.
----- Original Message -----
From: "Lindsay Smith" <li...@wapdat.com>
To: "James Users List" <se...@james.apache.org>
Sent: Tuesday, November 11, 2003 12:53 PM
Subject: RE: Errors Compiling Mailets
> It's likey to be just the class path. There's an article on IBM about
> writing mailets with a useful bit on using ant to build the SAR.
> http://www-106.ibm.com/developerworks/java/library/j-james2.html
>
> <fileset dir="${project.dir}/${temp.dir}/SAR-INF/lib">
> <include name="*.jar"/>
> </fileset>
> <fileset dir="${project.dir}/${james.dir}/lib">
> <include name="*.jar"/>
> </fileset>
>
> This is the classpath part of my ant script.
>
> HTH
> Linds
>
>
> -----Original Message-----
> From: Fox Sterling [mailto:viper_wolf@hotmail.com]
> Sent: 11 November 2003 15:21
> To: James Users List
> Subject: Errors Compiling Mailets
>
>
> I was atempting to write my own mailet to access resources in a database.
I
> copied the database connection code from the JDBCVirtualUserTable.java
class
> and atempted to compile. I got a lot of "cannot access" messages for a
> bunch of classes under the avalon framework. I then tried to compile
> JDBCVirtualUserTable.java it's self, and still got the "cannot access"
> messages. Any ideas on what I might be doing wrong to compile these
files?
> I'm using the command line to compile the files.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Errors Compiling Mailets
Posted by Lindsay Smith <li...@wapdat.com>.
It's likey to be just the class path. There's an article on IBM about
writing mailets with a useful bit on using ant to build the SAR.
http://www-106.ibm.com/developerworks/java/library/j-james2.html
<fileset dir="${project.dir}/${temp.dir}/SAR-INF/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${project.dir}/${james.dir}/lib">
<include name="*.jar"/>
</fileset>
This is the classpath part of my ant script.
HTH
Linds
-----Original Message-----
From: Fox Sterling [mailto:viper_wolf@hotmail.com]
Sent: 11 November 2003 15:21
To: James Users List
Subject: Errors Compiling Mailets
I was atempting to write my own mailet to access resources in a database. I
copied the database connection code from the JDBCVirtualUserTable.java class
and atempted to compile. I got a lot of "cannot access" messages for a
bunch of classes under the avalon framework. I then tried to compile
JDBCVirtualUserTable.java it's self, and still got the "cannot access"
messages. Any ideas on what I might be doing wrong to compile these files?
I'm using the command line to compile the files.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org