> Can you send a copy of your logfiles w/everything running in DEBUG?
> -pete

ok here goes:

just for background once again - Im using the PhoenixServlet which in turn uses 
the 
SingleAppEmbeddor class. The PhoenixServlet does the following in init():

--- new SingleAppEmbeddor() m_embeddor

--- m_embeddor.parameterize(...) 
ive included all the appropriate parms in the Initialization Parms for the 
servlet, 
which get passed on to m_embeddor.parameterize(...). The sar file gets picked 
up 
and the components get configure(...)d properly, as i see the info in the logs. 
i use 
the following parameters:
~~~
log-destination = PhoenixServlet
log-priority = DEBUG
application-name = CoreWebApp
application-location = /WEB-INF/apps/CoreWebApp.sar
~~~

--- m_embeddor.intialize(...)

--- new Thread( this ).start()
This calls m_embeddor.execute() which in turn calls 
m_embeddor.deployDefaultApplications(). This should setup the single 
application. 

--- getServletContext().setAttribute(Embeddor.ROLE,m_embeddor)
Then PhoenixServlet places the SingleAppEmbeddor in the ServletContext from 
which i access it in another Servlet. 

Ok the SingleAppEmbeddor comes out of the ServletContext fine and the cast to 
SingleAppEmbeddor is ok also. BUUUT when i try to call ANY method on the 
SingleAppEmbeddor which access'  the inner m_application reference i get 
NullPointerExceptions. i.e. 

m_embeddor.lookup(...)
m_embeddor.hasComponent(...)
m_embeddor.list()

The following are my log files. 
******************************************************
/WEB-INF/apps/CoreWebApp/logs/default.log*
*******************************************************
1024430557421 [INFO   ] (CommandRepository): Got config
1024430557437 [INFO   ] (CommandRepository): Added 'DefaultHttpForward.do' 
Command to the repository
1024430557437 [INFO   ] (CommandRepository): Added 'DefaultHttpRedirect.do' 
Command to the repository
1024430557453 [INFO   ] (UserRepository): Got config. Loading users.
1024430557468 [INFO   ] (UserRepository): Added 'bpurvis' to the User Repository
1024430557500 [INFO   ] (CommandDispatcher): Got config
*******************************************************

*********************************
/WEB-INF/logs/phoenix.log*
**********************************
1024430002203 [INFO   ] (Phoenix): Logger started
1024430002453 [INFO   ] (Phoenix.deployer): Installing Sar located at 
file:/G:/Workspace/CVSROOT/CoreWebApp/webApplication/WEB-
INF/apps/CoreWebApp.sar.
1024430002453 [WARN   ] (Phoenix.deployer): The file SAR-INF/config.xml can 
not be extracted from the Sar 
"file:/G:/Workspace/CVSROOT/CoreWebApp/webApplication/WEB-
INF/apps/CoreWebApp.sar" into directory 
G:\Workspace\CVSROOT\CoreWebApp\webApplication\WEB-
INF\apps\CoreWebApp because there is a file in the way.
1024430002453 [WARN   ] (Phoenix.deployer): The file SAR-INF/environment.xml 
can not be extracted from the Sar 
"file:/G:/Workspace/CVSROOT/CoreWebApp/webApplication/WEB-
INF/apps/CoreWebApp.sar" into directory 
G:\Workspace\CVSROOT\CoreWebApp\webApplication\WEB-
INF\apps\CoreWebApp because there is a file in the way.
1024430002703 [WARN   ] (Phoenix.deployer): Warning: BlockInfo for class 
com.bpurvis.webapp.service.DefaultCommandDispatcher redundently specifies role 
name "com.bpurvis.webapp.services.CommandRepository" in dependency when it 
is identical to the name of service. It is recomended that the <role/> section 
be 
elided.
1024430002703 [WARN   ] (Phoenix.deployer): Warning: BlockInfo for class 
com.bpurvis.webapp.service.DefaultCommandDispatcher redundently specifies role 
name "com.bpurvis.webapp.services.UserRepository" in dependency when it is 
identical to the name of service. It is recomended that the <role/> section be 
elided.
1024430002703 [WARN   ] (Phoenix.deployer): Warning: BlockInfo for class 
com.bpurvis.webapp.service.DefaultCommandDispatcher redundently specifies role 
name "com.bpurvis.webapp.services.AuthorizationManager" in dependency when it 
is identical to the name of service. It is recomended that the <role/> section 
be 
elided.
1024430002859 [INFO   ] (Phoenix.deployer): Verifying that the name specified 
for 
Blocks and BlockListeners are valid.
1024430002859 [INFO   ] (Phoenix.deployer): Verifying that the name specified 
for 
Blocks and BlockListeners are unique.
1024430002859 [INFO   ] (Phoenix.deployer): Verifying that the specified 
Dependencies are valid according to BlockInfo.
1024430002859 [INFO   ] (Phoenix.deployer): Verifying that the dependencies of 
Blocks are valid with respect to other Blocks.
1024430002859 [INFO   ] (Phoenix.deployer): Verifying that there are no 
circular 
dependencies between Blocks.
1024430002859 [INFO   ] (Phoenix.deployer): Verifying that the specified Blocks 
have valid types.
1024430003000 [INFO   ] (Phoenix.deployer): Verifying that the specified 
BlockListeners have valid types.
1024430003140 [INFO   ] (Phoenix.kernel.CoreWebApp): 4 Blocks to process for 
phase "startup". Order of processing = [AuthorizationManager, 
CommandRepository, UserRepository, CommandDispatcher].
1024430428468 [INFO   ] (Phoenix.kernel.CoreWebApp): 4 Blocks to process for 
phase "shutdown". Order of processing = [CommandDispatcher, 
AuthorizationManager, CommandRepository, UserRepository].
******************************************************************************************

ok those are the only 2 logs i have setup at the moment. If you wish to see 
config.xml, assembly.xml, or environment.xml please let me know. 

Thanks !

                        BP








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

Reply via email to