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 "Yegor A. Yenikeev" <ye...@youwinit.com.ua> on 2002/08/16 22:15:47 UTC

RMI remote manager

Hello All,

I've downloaded latest james sources from
anoncvs@cvs.apache.org:/home/cvspublic.

My target is to make a servlet for remote management using RMI.
I've already studied this mailing list:
http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=james-user_jakarta_apache_org&restrict=&exclude=&words=rmi

I definitely have a prob building James with
RMIRemoteManager support.

I'm using command like this:
build -buildfile proposals\rmi-remotemanager\build.xml >build.log
Output is:

James Build System
-------------------
Buildfile: proposals\rmi-remotemanager\build.xml

setup-properties:

prepare:

prepare-proposal:
Building with proposal 
Copying 6 files to D:\home\TopGun\Projects\James\jakarta-james\build\src
Copying 2 files to D:\home\TopGun\Projects\James\jakarta-james\build\conf

compile:
Compiling 6 source files to D:\home\TopGun\Projects\James\jakarta-james\build\classes
Note: sun.tools.javac.Main has been deprecated.
1 warning
RMI Compiling 1 class to D:\home\TopGun\Projects\James\jakarta-james\build\classes
RMI Compiling 1 class to D:\home\TopGun\Projects\James\jakarta-james\build\classes

block-archive:
Building jar: D:\home\TopGun\Projects\James\jakarta-james\build\lib\james.bar
Building jar: D:\home\TopGun\Projects\James\jakarta-james\build\lib\james-rmi-client.jar

auxiliary-jars:

sar:
Building jar: D:\home\TopGun\Projects\James\jakarta-james\build\lib\james.sar

dist-lite:
Deleting directory D:\home\TopGun\Projects\James\jakarta-james\dist\apps\james
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\apps
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\bin
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 3 files to D:\home\TopGun\Projects\James\jakarta-james\dist\lib
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist\conf
Copying 2 files to D:\home\TopGun\Projects\James\jakarta-james\dist\conf
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist
Copying 1 file to D:\home\TopGun\Projects\James\jakarta-james\dist

main:

BUILD SUCCESSFUL

Total time: 8 seconds

Then i'm going to the dist directory and trying to start James.
The output is:

There was an uncaught exception:
---------------------------------------------------------
--- Message ---
Service class "org.apache.avalon.phoenix.Block" specified for Block named "James" is not implemented by Block cla
ss (org.apache.james.James).
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException: Service class "org.apache.avalon.phoenix.Block" specifi
ed for Block named "James" is not implemented by Block class (org.apache.james.James).
        at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:183)
        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:467)
        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:461)
        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:449)
        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddo
r.java:439)
        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:182)
        at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:115)
        at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:101)
        at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:88)
        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:51)
Caused by: org.apache.avalon.phoenix.tools.verifier.VerifyException: Service class "org.apache.avalon.phoenix.Blo
ck" specified for Block named "James" is not implemented by Block class (org.apache.james.James).
        at org.apache.avalon.phoenix.tools.verifier.SarVerifier.verifyBlockType(SarVerifier.java:354)
        at org.apache.avalon.phoenix.tools.verifier.SarVerifier.verifyBlocksType(SarVerifier.java:313)
        at org.apache.avalon.phoenix.tools.verifier.SarVerifier.verifySar(SarVerifier.java:102)
        at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:157)
        ... 14 more

It seems like the build have been done properly and James class is
present in the sar file.

SAR file contains in the apache.org.james:
..                         ╕
client                     ╕
context                    ╕
core                       ╕
dnsserver                  ╕
mailrepository             ╕
nntpserver                 ╕
pop3server                 ╕
remotemanager              ╕
security                   ╕
services                   ╕
smtpserver                 ╕
testing                    ╕
transport                  ╕
userrepository             ╕
util                       ╕
AccessControlException.clas}
AuthenticationException.cla}
AuthorizationException.clas}
BaseConnectionHandler.class╕
Constants.class            ╕
James.class                ╕
James.xinfo                ╕
JamesMBean.class           ╕
JamesMBean.mxinfo          ╕
Main.class                 ╕


Could you please help with explanation?

You may contact me directly by e-mail if you don't want to open this
topic in the mail-list again. Here is my e-mail: mailto:yegor@youwinit.com.ua

-- 
Thanks in advance! Yegor.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: RMI remote manager

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Andrew C. Oliver wrote:
> Just clarifying.
> 
> Noel J. Bergman wrote:
> 
>>> Just for the record (as a dumb user) I'm totally against making the RMI
>>> manager replace the standard one.
>>
>>
>>
>> Where was a suggestion that would be done?  The most likely 
>> "replacement" is
>> based upon JMX, since Phoenix is now JMX-enabled, and that hasn't even 
>> been
>> discussed yet.

I'm quite confident that it'll be based on JMX.
With the latest Phoenix it'll be easy to do it, and it will be 
consistent with the management stuff of other Phoenix apps.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: RMI remote manager

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Just clarifying.

Noel J. Bergman wrote:
>>Just for the record (as a dumb user) I'm totally against making the RMI
>>manager replace the standard one.
> 
> 
> Where was a suggestion that would be done?  The most likely "replacement" is
> based upon JMX, since Phoenix is now JMX-enabled, and that hasn't even been
> discussed yet.
> 
>         --- Noel





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI remote manager

Posted by Danny Angus <da...@apache.org>.
I don't think there's any danger of that, I understand that it was intended
to allow people to build remote administration into other apps, and I'm
tempted, but too busy, to use it as the basis for a GUI admin app.
d.

> -----Original Message-----
> From: news [mailto:news@main.gmane.org]On Behalf Of Andrew C. Oliver
> Sent: 18 August 2002 15:36
> To: james-user@jakarta.apache.org
> Subject: Re: RMI remote manager
>
>
> Just for the record (as a dumb user) I'm totally against making the RMI
> manager replace the standard one.  There are MANY MANY reasons why (I
> can go through them if they are not obvious)
>
> -Andy
>
> Noel J. Bergman wrote:
> > Danny,
> >
> > I might have missed it, but I thought that I had diff'd the
> assembly files
> > without seeing a problem.
> >
> > 	--- Noel
> >
> > -----Original Message-----
> > From: Danny Angus [mailto:danny@apache.org]
> > Sent: Friday, August 16, 2002 18:42
> > To: James Users List
> > Subject: RE: RMI remote manager
> >
> >
> > I don't think paul attempted anything in proposals
> >
> >
> >>-----Original Message-----
> >>From: Noel J. Bergman [mailto:noel@devtech.com]
> >>Sent: 16 August 2002 21:47
> >>To: James Users List; Yegor A. Yenikeev
> >>Subject: RE: RMI remote manager
> >>
> >>
> >>Did you pickup everything from the James CVS, including the new Phoenix?
> >>They dropped Block in favor of Component.  Paul Hammant updated
> the James
> >>tree back on June 3.
> >>
> >>        --- Noel
> >
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI remote manager

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Just for the record (as a dumb user) I'm totally against making the RMI
> manager replace the standard one.

Where was a suggestion that would be done?  The most likely "replacement" is
based upon JMX, since Phoenix is now JMX-enabled, and that hasn't even been
discussed yet.

        --- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: RMI remote manager

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Just for the record (as a dumb user) I'm totally against making the RMI 
manager replace the standard one.  There are MANY MANY reasons why (I 
can go through them if they are not obvious)

-Andy

Noel J. Bergman wrote:
> Danny,
> 
> I might have missed it, but I thought that I had diff'd the assembly files
> without seeing a problem.
> 
> 	--- Noel
> 
> -----Original Message-----
> From: Danny Angus [mailto:danny@apache.org]
> Sent: Friday, August 16, 2002 18:42
> To: James Users List
> Subject: RE: RMI remote manager
> 
> 
> I don't think paul attempted anything in proposals
> 
> 
>>-----Original Message-----
>>From: Noel J. Bergman [mailto:noel@devtech.com]
>>Sent: 16 August 2002 21:47
>>To: James Users List; Yegor A. Yenikeev
>>Subject: RE: RMI remote manager
>>
>>
>>Did you pickup everything from the James CVS, including the new Phoenix?
>>They dropped Block in favor of Component.  Paul Hammant updated the James
>>tree back on June 3.
>>
>>        --- Noel
> 





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI remote manager

Posted by "Noel J. Bergman" <no...@devtech.com>.
Danny,

I might have missed it, but I thought that I had diff'd the assembly files
without seeing a problem.

	--- Noel

-----Original Message-----
From: Danny Angus [mailto:danny@apache.org]
Sent: Friday, August 16, 2002 18:42
To: James Users List
Subject: RE: RMI remote manager


I don't think paul attempted anything in proposals

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 16 August 2002 21:47
> To: James Users List; Yegor A. Yenikeev
> Subject: RE: RMI remote manager
>
>
> Did you pickup everything from the James CVS, including the new Phoenix?
> They dropped Block in favor of Component.  Paul Hammant updated the James
> tree back on June 3.
>
>         --- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI remote manager

Posted by Danny Angus <da...@apache.org>.
I don't think paul attempted anything in proposals

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 16 August 2002 21:47
> To: James Users List; Yegor A. Yenikeev
> Subject: RE: RMI remote manager
> 
> 
> Did you pickup everything from the James CVS, including the new Phoenix?
> They dropped Block in favor of Component.  Paul Hammant updated the James
> tree back on June 3.
> 
>         --- Noel
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI remote manager

Posted by "Noel J. Bergman" <no...@devtech.com>.
Did you pickup everything from the James CVS, including the new Phoenix?
They dropped Block in favor of Component.  Paul Hammant updated the James
tree back on June 3.

        --- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>