You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@excalibur.apache.org by Ni...@national.com.au on 2005/12/14 05:53:23 UTC

Errors with Example Servlet from SVN




Just been trying to get the examples working using pre compiled JAR files
(cannot build from SVN source because of issues with Firewalls - see
previous post)

in
excalibur-trunk\fortress\examples\src\java\org\apache\avalon\fortress\examples\servlet\servlet.java
 one of the lines for the config is incorrect.
It is
            config.setLoggerManagerConfiguration(
"resource://org/avalon/excalibur/fortress/examples/servlet/ServletContainer.xlog"
 );

but should be
            config.setLoggerManagerConfiguration(
"resource://org/apache/avalon/fortress/examples/servlet/ServletContainer.xlog"
 );

Not sure whether this is a known issue or not (cannot find it on the
bugtracker thingy)

Once fixed I can now talk about the next issue
 [14/12/05 15:51:11:109 EST] 2e5b8b69 ServletInstan E SRVE0100E: Did not
realize  init() exception thrown by servlet Fortress-Example:
javax.servlet.ServletException:
org/apache/excalibur/instrument/manager/DefaultInstrumentManager
      at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)
      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
      at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
      at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
      at
com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
      at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
      at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
      at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
      at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1206)
      at
com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1072)
      at
com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:380)
      at
com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:637)
      at
com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:399)
      at
com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
      at
com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
      at java.util.TimerThread.mainLoop(Timer.java:447)
      at java.util.TimerThread.run(Timer.java:397)
---- Begin backtrace for Nested Throwables
java.lang.InstantiationError:
org/apache/excalibur/instrument/manager/DefaultInstrumentManager
      at
org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)
      at
org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)
      at
org.apache.avalon.fortress.impl.DefaultContainerManager.getInitializedContextManager(DefaultContainerManager.java:87)
      at
org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:74)
      at
org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:68)
      at
org.apache.avalon.fortress.examples.servlet.servlet.init(servlet.java:62)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
      at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
      at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
      at
com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
      at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
      at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
      at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
      at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1206)
      at
com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1072)
      at
com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:380)
      at
com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:637)
      at
com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:399)
      at
com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
      at
com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
      at java.util.TimerThread.mainLoop(Timer.java:447)
      at java.util.TimerThread.run(Timer.java:397)

[14/12/05 15:51:11:124 EST] 2e5b8b69 WebGroup      E SRVE0020E: [Servlet
Error]-[Fortress-Example]: Failed to load servlet:
java.lang.InstantiationError:
org/apache/excalibur/instrument/manager/DefaultInstrumentManager
      at
org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)
      at
org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)
      at
org.apache.avalon.fortress.impl.DefaultContainerManager.getInitializedContextManager(DefaultContainerManager.java:87)
      at
org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:74)
      at
org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:68)
      at
org.apache.avalon.fortress.examples.servlet.servlet.init(servlet.java:62)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
      at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
      at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
      at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
      at
com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
      at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
      at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
      at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
      at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1206)
      at
com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1072)
      at
com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:380)
      at
com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:637)
      at
com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:399)
      at
com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
      at
com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
      at java.util.TimerThread.mainLoop(Timer.java:447)
      at java.util.TimerThread.run(Timer.java:397)

It looks like I am missing something, but not sure what?


Regards,
Nicholas Irving

( +61 3 8641 3236      2 +61 3 8641 6810      :
Nicholas_Z_Irving@national.com.au

Identity Management, Web Applications
Support Technology


National Australia Bank
Floor 4, 500 Bourke Street
Melbourne, Victoria 3000

(Embedded image moved to file: pic17135.jpg)identityCentre Home Page
                                                                            
                                                                            
                                                                            


This email is sent by or on behalf of the named sender identified above. If
you do not wish to receive any email marketing material from this person in
the future, please forward the contents of this email to
unsubscriptions@national.com.au with the word "unsubscribe" in the subject
box. If you do not forward the contents of this email with your
unsubscription then it may not be able to be implemented.  If you wish to
unsubscribe from all central email marketing lists used by our business,
please forward the contents of this email to
unsubscriptions@national.com.au with the message "unsubscribe from all
central email marketing lists" in the subject box.  If you do not forward
the contents of this email with your unsubscription then it may not be able
to be implemented.


The information contained in this email communication may be confidential.
You should only disclose, re-transmit, copy, distribute, act in reliance on
or commercialise the information if you are authorised to do so.  Any views
expressed in this email communication are those of the individual sender,
except where the sender specifically states them to be the views of a
member of the National Australia Bank Group of companies.  Any advice
contained in this e-mail has been prepared without taking into account your
objectives, financial situation or needs. Before acting on any advice in
this e-mail, National Australia Bank Limited recommends that you consider
whether it is appropriate for your circumstances. If this e-mail contains
reference to any financial products, the National recommends you consider
the Product Disclosure Statement (PDS) or other disclosure document  before
making any decisions regarding any products.  The National Australia Bank
Group of companies does not represent, warrant or guarantee that the
integrity of this communication has been maintained nor that the
communication is free of errors, virus or interference.

Re: Errors with Example Servlet from SVN

Posted by Ni...@national.com.au.
okay it seems that the JARS i had were different than those from the
download site, so updated those and found that I was missing some META
information files. Added those, did a refresh in RAD and all worked. Still
have those

DEBUG   11346   [fortress] (): Adding service:
org.apache.excalibur.source.impl.SourceResolver
DEBUG   11346   [fortress] (): Specified service
'org.apache.excalibur.source.impl.SourceResolver' is not available
java.lang.ClassNotFoundException:
org.apache.excalibur.source.impl.SourceResolver

DEBUG   11346   [fortress] (): Adding service:
org.apache.excalibur.source.impl.SourceFactory
DEBUG   11346   [fortress] (): Specified service
'org.apache.excalibur.source.impl.SourceFactory' is not available
java.lang.ClassNotFoundException:
org.apache.excalibur.source.impl.SourceFactory

messages though.

Thanks for all the help, now going to see what else I can do with this
framework.


Regards,
Nicholas Irving

( +61 3 8641 3236      2 +61 3 8641 6810      :
Nicholas_Z_Irving@national.com.au

Identity Management, Web Applications
Support Technology


National Australia Bank
Floor 4, 500 Bourke Street
Melbourne, Victoria 3000

(Embedded image moved to file: pic18361.jpg)identityCentre Home Page
                                                                            
                                                                            
                                                                            




                                                                           
             Nicholas_Z_Irving                                             
             @national.com.au                                              
                                                                        To 
             15/12/2005 09:07          "Excalibur Developers List"         
             AM                        <de...@excalibur.apache.org>          
                                                                        cc 
                                       Excalibur Developers List           
             Please respond to         <de...@excalibur.apache.org>          
                "Excalibur                                         Subject 
             Developers List"          Re: Errors with Example Servlet     
             <dev@excalibur.ap         from SVN                            
                 ache.org>                                                 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hmm, confused now. This is my META-INF/MANIFEST.INF

Manifest-Version: 1.0
Class-Path: lib/avalon-framework-api-4.3.jar
 lib/avalon-framework-impl-4.3.jar
 lib/avalon-logkit-2.1.jar
 lib/bcel-5.1.jar
 lib/commons-beanutils-1.7.0.jar
 lib/commons-collections-3.1.jar
 lib/commons-logging-1.0.4.jar
 lib/concurrent-1.3.4.jar
 lib/d-haven-event-1.0.3.jar
 lib/d-haven-managed-pool-1.0.jar
 lib/excalibur-fortress-container-1.1.jar
 lib/excalibur-fortress-container-api-1.2.jar
 lib/excalibur-fortress-container-impl-1.2.jar
 lib/excalibur-fortress-meta-1.2.jar
 lib/excalibur-instrument-api-2.1.jar
 lib/excalibur-instrument-mgr-api-2.1.jar
 lib/excalibur-instrument-mgr-impl-2.1.jar
 lib/excalibur-lifecycle-api-2.1.jar
 lib/excalibur-lifecycle-impl-2.1.jar
 lib/excalibur-logger-2.1.jar
 lib/excalibur-pool-api-2.1.jar
 lib/excalibur-pool-impl-2.1.jar
 lib/excalibur-sourceresolve-2.1.jar
 lib/excalibur-event-api-current.jar
 lib/excalibur-event-impl-current.jar

so I have the necessary files (as per conversation below)

I did find this though in fortress-examples.log

WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.datasource.JdbcDataSource. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.datasource.J2eeDataSource. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.datasource.InformixDataSource. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.monitor.ActiveMonitor. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.monitor.PassiveMonitor. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.xpath.XPathProcessorImpl. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.xpath.JaxenProcessorImpl. Skipping.
DEBUG   11345   [fortress] (): addRole role: name='resolver',
role='org.apache.excalibur.source.SourceResolver',
class='org.apache.excalibur.source.impl.SourceResolverImpl',
handler='org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler'

WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.impl.JaxpParser. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.impl.XercesParser. Skipping.
DEBUG   11345   [fortress] (): Adding service:
org.apache.avalon.fortress.examples.components.Translator
DEBUG   11345   [fortress] (): Reading meta info for
org.apache.avalon.fortress.examples.components.TranslatorImpl
ERROR   11345   [fortress] (): Meta information for
org.apache.avalon.fortress.examples.components.TranslatorImpl unavailable,
skipping this class.
DEBUG   11345   [fortress] (): Adding service:
org.apache.excalibur.source.impl.SourceResolver
DEBUG   11345   [fortress] (): Specified service
'org.apache.excalibur.source.impl.SourceResolver' is not available
java.lang.ClassNotFoundException:
org.apache.excalibur.source.impl.SourceResolver
            :
            :
            :
DEBUG   11345   [fortress] (): Adding service:
org.apache.excalibur.source.impl.SourceFactory
DEBUG   11345   [fortress] (): Specified service
'org.apache.excalibur.source.impl.SourceFactory' is not available
java.lang.ClassNotFoundException:
org.apache.excalibur.source.impl.SourceFactory
            :
            :
            :
DEBUG   11345   [fortress] (): Adding service:
org.apache.avalon.fortress.examples.extended.components.ExtendedComponent
DEBUG   11345   [fortress] (): Reading meta info for
org.apache.avalon.fortress.examples.extended.components.ExtendedComponentImpl

ERROR   11345   [fortress] (): Meta information for
org.apache.avalon.fortress.examples.extended.components.ExtendedComponentImpl

 unavailable, skipping this class.
DEBUG   11345   [fortress] (): Adding service:
org.apache.excalibur.source.SourceFactory
DEBUG   11345   [fortress] (): Reading meta info for
org.apache.excalibur.source.impl.HTTPSClientSourceFactory
DEBUG   11345   [fortress] (): No dependencies for
org.apache.excalibur.source.impl.HTTPSClientSourceFactory.
DEBUG   11345   [fortress] (): addComponent component:
type='org.apache.excalibur.source.impl.HTTPSClientSourceFactory',
meta='{x-avalon.lifestyle=singleton, x-avalon.name=httpsclient-source}',
role='org.apache.excalibur.source.SourceFactory', with deps=[]
DEBUG   11345   [fortress] (): Could not copy Context parameters.  This may
be Ok depending on other configured context values.
DEBUG   11345   [fortress] (): A preloaded Configuration was not found for
key: impl.instrumentManager.config  This may be Ok depending on other
configured context values.
DEBUG   11345   [fortress] (): A configuration URI was not specified:
impl.instrumentManager.config.uri

but I cannot find org.apache.excalibur.source.impl.SourceResolver in the
source tree, but since I don;t understand the mechanics behind how Fortress
works I could be hitting a brick wall.


Regards,
Nicholas Irving

( +61 3 8641 3236      2 +61 3 8641 6810      :
Nicholas_Z_Irving@national.com.au

Identity Management, Web Applications
Support Technology


National Australia Bank
Floor 4, 500 Bourke Street
Melbourne, Victoria 3000

(Embedded image moved to file: pic03220.jpg)identityCentre Home Page








             Leif Mortenson
             <leiflists@tanuki
             software.com>                                              To
                                       Excalibur Developers List
             14/12/2005 04:56          <de...@excalibur.apache.org>
             PM                                                         cc

                                                                   Subject
             Please respond to         Re: Errors with Example Servlet
                "Excalibur             from SVN
             Developers List"
             <dev@excalibur.ap
                 ache.org>







Nicholas_Z_Irving@national.com.au wrote:
> Once fixed I can now talk about the next issue
>  [14/12/05 15:51:11:109 EST] 2e5b8b69 ServletInstan E SRVE0100E: Did not
> realize  init() exception thrown by servlet Fortress-Example:
> javax.servlet.ServletException:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
>
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)


>       at
>
<snip>
> ---- Begin backtrace for Nested Throwables
> java.lang.InstantiationError:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
>
org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)


>       at
>
org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)


>       at
>
<snip>

What jars are included?  This looks like there is a problem
instantiating the
DefaultInstrumentManager class.  It looks like the class itself is being
found, but not
something that it requires.   So you most likely have the
excalibur-instrument-mgr-impl-2.2-dev.jar
jar, but may be missing excalibur-instrument-mgr-api-2.1.jar, or
excalibur-instrument-api-2.1.jar.
If the http connector is being configured in the instrument config file
(as it should be)  Then you
will also need the excalibur-instrument-mgr-http-2.1.jar jar.  But that
is not what is causing the
problem you are currently seeing.  The manager also relies on the
framework api and impl jars
so those will also need to be available.

Cheers,
Leif


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org

(See attached file: pic03220.jpg)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org

Re: Errors with Example Servlet from SVN

Posted by Ni...@national.com.au.
Hmm, confused now. This is my META-INF/MANIFEST.INF

Manifest-Version: 1.0
Class-Path: lib/avalon-framework-api-4.3.jar
 lib/avalon-framework-impl-4.3.jar
 lib/avalon-logkit-2.1.jar
 lib/bcel-5.1.jar
 lib/commons-beanutils-1.7.0.jar
 lib/commons-collections-3.1.jar
 lib/commons-logging-1.0.4.jar
 lib/concurrent-1.3.4.jar
 lib/d-haven-event-1.0.3.jar
 lib/d-haven-managed-pool-1.0.jar
 lib/excalibur-fortress-container-1.1.jar
 lib/excalibur-fortress-container-api-1.2.jar
 lib/excalibur-fortress-container-impl-1.2.jar
 lib/excalibur-fortress-meta-1.2.jar
 lib/excalibur-instrument-api-2.1.jar
 lib/excalibur-instrument-mgr-api-2.1.jar
 lib/excalibur-instrument-mgr-impl-2.1.jar
 lib/excalibur-lifecycle-api-2.1.jar
 lib/excalibur-lifecycle-impl-2.1.jar
 lib/excalibur-logger-2.1.jar
 lib/excalibur-pool-api-2.1.jar
 lib/excalibur-pool-impl-2.1.jar
 lib/excalibur-sourceresolve-2.1.jar
 lib/excalibur-event-api-current.jar
 lib/excalibur-event-impl-current.jar

so I have the necessary files (as per conversation below)

I did find this though in fortress-examples.log

WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.datasource.JdbcDataSource. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.datasource.J2eeDataSource. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.datasource.InformixDataSource. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.monitor.ActiveMonitor. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.avalon.excalibur.monitor.PassiveMonitor. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.xpath.XPathProcessorImpl. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.xpath.JaxenProcessorImpl. Skipping.
DEBUG   11345   [fortress] (): addRole role: name='resolver',
role='org.apache.excalibur.source.SourceResolver',
class='org.apache.excalibur.source.impl.SourceResolverImpl',
handler='org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler'
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.impl.JaxpParser. Skipping.
WARN    11345   [fortress] (): Unable to load class
org.apache.excalibur.xml.impl.XercesParser. Skipping.
DEBUG   11345   [fortress] (): Adding service:
org.apache.avalon.fortress.examples.components.Translator
DEBUG   11345   [fortress] (): Reading meta info for
org.apache.avalon.fortress.examples.components.TranslatorImpl
ERROR   11345   [fortress] (): Meta information for
org.apache.avalon.fortress.examples.components.TranslatorImpl unavailable,
skipping this class.
DEBUG   11345   [fortress] (): Adding service:
org.apache.excalibur.source.impl.SourceResolver
DEBUG   11345   [fortress] (): Specified service
'org.apache.excalibur.source.impl.SourceResolver' is not available
java.lang.ClassNotFoundException:
org.apache.excalibur.source.impl.SourceResolver
            :
            :
            :
DEBUG   11345   [fortress] (): Adding service:
org.apache.excalibur.source.impl.SourceFactory
DEBUG   11345   [fortress] (): Specified service
'org.apache.excalibur.source.impl.SourceFactory' is not available
java.lang.ClassNotFoundException:
org.apache.excalibur.source.impl.SourceFactory
            :
            :
            :
DEBUG   11345   [fortress] (): Adding service:
org.apache.avalon.fortress.examples.extended.components.ExtendedComponent
DEBUG   11345   [fortress] (): Reading meta info for
org.apache.avalon.fortress.examples.extended.components.ExtendedComponentImpl
ERROR   11345   [fortress] (): Meta information for
org.apache.avalon.fortress.examples.extended.components.ExtendedComponentImpl
 unavailable, skipping this class.
DEBUG   11345   [fortress] (): Adding service:
org.apache.excalibur.source.SourceFactory
DEBUG   11345   [fortress] (): Reading meta info for
org.apache.excalibur.source.impl.HTTPSClientSourceFactory
DEBUG   11345   [fortress] (): No dependencies for
org.apache.excalibur.source.impl.HTTPSClientSourceFactory.
DEBUG   11345   [fortress] (): addComponent component:
type='org.apache.excalibur.source.impl.HTTPSClientSourceFactory',
meta='{x-avalon.lifestyle=singleton, x-avalon.name=httpsclient-source}',
role='org.apache.excalibur.source.SourceFactory', with deps=[]
DEBUG   11345   [fortress] (): Could not copy Context parameters.  This may
be Ok depending on other configured context values.
DEBUG   11345   [fortress] (): A preloaded Configuration was not found for
key: impl.instrumentManager.config  This may be Ok depending on other
configured context values.
DEBUG   11345   [fortress] (): A configuration URI was not specified:
impl.instrumentManager.config.uri

but I cannot find org.apache.excalibur.source.impl.SourceResolver in the
source tree, but since I don;t understand the mechanics behind how Fortress
works I could be hitting a brick wall.


Regards,
Nicholas Irving

( +61 3 8641 3236      2 +61 3 8641 6810      :
Nicholas_Z_Irving@national.com.au

Identity Management, Web Applications
Support Technology


National Australia Bank
Floor 4, 500 Bourke Street
Melbourne, Victoria 3000

(Embedded image moved to file: pic03220.jpg)identityCentre Home Page
                                                                            
                                                                            
                                                                            




                                                                           
             Leif Mortenson                                                
             <leiflists@tanuki                                             
             software.com>                                              To 
                                       Excalibur Developers List           
             14/12/2005 04:56          <de...@excalibur.apache.org>          
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Errors with Example Servlet     
                "Excalibur             from SVN                            
             Developers List"                                              
             <dev@excalibur.ap                                             
                 ache.org>                                                 
                                                                           
                                                                           
                                                                           




Nicholas_Z_Irving@national.com.au wrote:
> Once fixed I can now talk about the next issue
>  [14/12/05 15:51:11:109 EST] 2e5b8b69 ServletInstan E SRVE0100E: Did not
> realize  init() exception thrown by servlet Fortress-Example:
> javax.servlet.ServletException:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
>
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)

>       at
>
<snip>
> ---- Begin backtrace for Nested Throwables
> java.lang.InstantiationError:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
>
org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)

>       at
>
org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)

>       at
>
<snip>

What jars are included?  This looks like there is a problem
instantiating the
DefaultInstrumentManager class.  It looks like the class itself is being
found, but not
something that it requires.   So you most likely have the
excalibur-instrument-mgr-impl-2.2-dev.jar
jar, but may be missing excalibur-instrument-mgr-api-2.1.jar, or
excalibur-instrument-api-2.1.jar.
If the http connector is being configured in the instrument config file
(as it should be)  Then you
will also need the excalibur-instrument-mgr-http-2.1.jar jar.  But that
is not what is causing the
problem you are currently seeing.  The manager also relies on the
framework api and impl jars
so those will also need to be available.

Cheers,
Leif


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org


Re: Errors with Example Servlet from SVN

Posted by Leif Mortenson <le...@tanukisoftware.com>.
Nicholas_Z_Irving@national.com.au wrote:
> Once fixed I can now talk about the next issue
>  [14/12/05 15:51:11:109 EST] 2e5b8b69 ServletInstan E SRVE0100E: Did not
> realize  init() exception thrown by servlet Fortress-Example:
> javax.servlet.ServletException:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)
>       at
>   
<snip>
> ---- Begin backtrace for Nested Throwables
> java.lang.InstantiationError:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
> org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)
>       at
> org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)
>       at
>   
<snip>

What jars are included?  This looks like there is a problem 
instantiating the
DefaultInstrumentManager class.  It looks like the class itself is being 
found, but not
something that it requires.   So you most likely have the 
excalibur-instrument-mgr-impl-2.2-dev.jar
jar, but may be missing excalibur-instrument-mgr-api-2.1.jar, or 
excalibur-instrument-api-2.1.jar.
If the http connector is being configured in the instrument config file 
(as it should be)  Then you
will also need the excalibur-instrument-mgr-http-2.1.jar jar.  But that 
is not what is causing the
problem you are currently seeing.  The manager also relies on the 
framework api and impl jars
so those will also need to be available.

Cheers,
Leif


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org


Re: Errors with Example Servlet from SVN

Posted by J Aaron Farr <ja...@gmail.com>.
The issue is that the build currently doesn't include those needed
files in the jars.  I'll see if I can fix that tomorrow.

On 12/13/05, Nicholas_Z_Irving@national.com.au
<Ni...@national.com.au> wrote:
>
>
>
>
> Just been trying to get the examples working using pre compiled JAR files
> (cannot build from SVN source because of issues with Firewalls - see
> previous post)
>
> in
> excalibur-trunk\fortress\examples\src\java\org\apache\avalon\fortress\examples\servlet\servlet.java
>  one of the lines for the config is incorrect.
> It is
>             config.setLoggerManagerConfiguration(
> "resource://org/avalon/excalibur/fortress/examples/servlet/ServletContainer.xlog"
>  );
>
> but should be
>             config.setLoggerManagerConfiguration(
> "resource://org/apache/avalon/fortress/examples/servlet/ServletContainer.xlog"
>  );
>
> Not sure whether this is a known issue or not (cannot find it on the
> bugtracker thingy)
>
> Once fixed I can now talk about the next issue
>  [14/12/05 15:51:11:109 EST] 2e5b8b69 ServletInstan E SRVE0100E: Did not
> realize  init() exception thrown by servlet Fortress-Example:
> javax.servlet.ServletException:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)
>       at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
>       at
> com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
>       at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
>       at
> com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
>       at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
>       at
> com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
>       at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
>       at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
>       at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
>       at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1206)
>       at
> com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1072)
>       at
> com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:380)
>       at
> com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:637)
>       at
> com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:399)
>       at
> com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
>       at
> com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
>       at java.util.TimerThread.mainLoop(Timer.java:447)
>       at java.util.TimerThread.run(Timer.java:397)
> ---- Begin backtrace for Nested Throwables
> java.lang.InstantiationError:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
> org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)
>       at
> org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)
>       at
> org.apache.avalon.fortress.impl.DefaultContainerManager.getInitializedContextManager(DefaultContainerManager.java:87)
>       at
> org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:74)
>       at
> org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:68)
>       at
> org.apache.avalon.fortress.examples.servlet.servlet.init(servlet.java:62)
>       at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>       at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
>       at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
>       at
> com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
>       at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
>       at
> com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
>       at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
>       at
> com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
>       at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
>       at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
>       at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
>       at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1206)
>       at
> com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1072)
>       at
> com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:380)
>       at
> com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:637)
>       at
> com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:399)
>       at
> com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
>       at
> com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
>       at java.util.TimerThread.mainLoop(Timer.java:447)
>       at java.util.TimerThread.run(Timer.java:397)
>
> [14/12/05 15:51:11:124 EST] 2e5b8b69 WebGroup      E SRVE0020E: [Servlet
> Error]-[Fortress-Example]: Failed to load servlet:
> java.lang.InstantiationError:
> org/apache/excalibur/instrument/manager/DefaultInstrumentManager
>       at
> org.apache.avalon.fortress.util.ContextManager.initializeInstrumentManager(ContextManager.java:988)
>       at
> org.apache.avalon.fortress.util.ContextManager.initialize(ContextManager.java:247)
>       at
> org.apache.avalon.fortress.impl.DefaultContainerManager.getInitializedContextManager(DefaultContainerManager.java:87)
>       at
> org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:74)
>       at
> org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(DefaultContainerManager.java:68)
>       at
> org.apache.avalon.fortress.examples.servlet.servlet.init(servlet.java:62)
>       at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>       at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
>       at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
>       at
> com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
>       at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
>       at
> com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
>       at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
>       at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
>       at
> com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1279)
>       at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
>       at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392)
>       at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211)
>       at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1206)
>       at
> com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1072)
>       at
> com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:380)
>       at
> com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:637)
>       at
> com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:399)
>       at
> com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
>       at
> com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
>       at java.util.TimerThread.mainLoop(Timer.java:447)
>       at java.util.TimerThread.run(Timer.java:397)
>
> It looks like I am missing something, but not sure what?
>
>
> Regards,
> Nicholas Irving
>
> ( +61 3 8641 3236      2 +61 3 8641 6810      :
> Nicholas_Z_Irving@national.com.au
>
> Identity Management, Web Applications
> Support Technology
>
>
> National Australia Bank
> Floor 4, 500 Bourke Street
> Melbourne, Victoria 3000
>
> (Embedded image moved to file: pic17135.jpg)identityCentre Home Page
>
>
>
>
>
> This email is sent by or on behalf of the named sender identified above. If
> you do not wish to receive any email marketing material from this person in
> the future, please forward the contents of this email to
> unsubscriptions@national.com.au with the word "unsubscribe" in the subject
> box. If you do not forward the contents of this email with your
> unsubscription then it may not be able to be implemented.  If you wish to
> unsubscribe from all central email marketing lists used by our business,
> please forward the contents of this email to
> unsubscriptions@national.com.au with the message "unsubscribe from all
> central email marketing lists" in the subject box.  If you do not forward
> the contents of this email with your unsubscription then it may not be able
> to be implemented.
>
>
> The information contained in this email communication may be confidential.
> You should only disclose, re-transmit, copy, distribute, act in reliance on
> or commercialise the information if you are authorised to do so.  Any views
> expressed in this email communication are those of the individual sender,
> except where the sender specifically states them to be the views of a
> member of the National Australia Bank Group of companies.  Any advice
> contained in this e-mail has been prepared without taking into account your
> objectives, financial situation or needs. Before acting on any advice in
> this e-mail, National Australia Bank Limited recommends that you consider
> whether it is appropriate for your circumstances. If this e-mail contains
> reference to any financial products, the National recommends you consider
> the Product Disclosure Statement (PDS) or other disclosure document  before
> making any decisions regarding any products.  The National Australia Bank
> Group of companies does not represent, warrant or guarantee that the
> integrity of this communication has been maintained nor that the
> communication is free of errors, virus or interference.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
> For additional commands, e-mail: dev-help@excalibur.apache.org
>
>
>


--
  jaaron

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org