DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14374>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14374

findPublicStaticMethod references javax/servlet/ServletContext on Java client

           Summary: findPublicStaticMethod references
                    javax/servlet/ServletContext on Java client
           Product: Axis
           Version: 1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Documentation
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This wasn't a problem w/ Axis 1.0 RC1, but is w/ the released version.  It looks 
like the commons-discovery library that is bundled looks for 
javax/servlet/ServletContext when it issues a SOAP request (I'm using the Amazon 
Web Services code):

[i:\amazonwebservices\javacodesample]java run
Starting Application...
java.lang.NoClassDefFoundError: javax/servlet/ServletContext
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
        at java.lang.Class.getMethod0(Class.java:1746)
        at java.lang.Class.getDeclaredMethod(Class.java:1233)
        at org.apache.commons.discovery.tools.ClassUtils.findPublicStaticMethod(
ClassUtils.java:112)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFac
tory(EngineConfigurationFactoryFinder.java:214)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.access
$300(EngineConfigurationFactoryFinder.java:92)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(
EngineConfigurationFactoryFinder.java:179)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFac
tory(EngineConfigurationFactoryFinder.java:148)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFac
tory(EngineConfigurationFactoryFinder.java:204)
        at org.apache.axis.client.Service.<init>(Service.java:111)
        at com.amazon.soap.axis.AmazonSearchServiceLocator.<init>(AmazonSearchSe
rviceLocator.java:10)
        at KeywordSearchSoap.issueRequest(KeywordSearchSoap.java:27)
        at MainWindow$SoapListener.finished(MainWindow.java:212)
        at AbstractSoapQuery$DataInput.dialogFinished(AbstractSoapQuery.java:184
)
        at AbstractSoapQuery$1.actionPerformed(AbstractSoapQuery.java:173)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
64)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1817)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:419)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:245)
        at java.awt.Component.processMouseEvent(Component.java:5093)
        at java.awt.Component.processEvent(Component.java:4890)
        at java.awt.Container.processEvent(Container.java:1566)
        at java.awt.Component.dispatchEventImpl(Component.java:3598)
        at java.awt.Container.dispatchEventImpl(Container.java:1623)
        at java.awt.Component.dispatchEvent(Component.java:3439)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
        at java.awt.Container.dispatchEventImpl(Container.java:1609)
        at java.awt.Window.dispatchEventImpl(Window.java:1585)
        at java.awt.Component.dispatchEvent(Component.java:3439)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:197)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)


Should probably document what other .jar files are needed because ServletContext 
is not needed for Java client apps.  This problem probably doesn't show up if 
you use Axis on a Java web app server...

Reply via email to