You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mark Hauchwitz <mh...@freightgate.com> on 2002/05/24 19:15:10 UTC
axis exception
Hi!
I have a curious problem....if I try to invoke methods through axis I get an
internal server error now, although it already worked, but I don't remember
what I changed. ;-)
It throws the exception shown below. My Catalina-classpath is shown below as
well.
If somebody has a solution for this, please respond....
Thanks!!
-Mark.
Ps: org.w3c.dom.Node should be in xerces.jar or jdom.jar ...
set FG_CLASSPATH=d:\Program Files\Development\Apache Tomcat
4.0\soap\crimson.jar;%FG_CLASSPATH%;
set FG_CLASSPATH=%FG_JARDIR%\various\mysql.jar
set
FG_CLASSPATH=%FG_CLASSPATH%;%FG_JARDIR%\various\XML\soap-2_2\lib\soap.jar
set FG_CLASSPATH=%FG_CLASSPATH%;%FG_JARDIR%\various
set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\servlets\addressbook
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\soap\bsf.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\soap\js.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\soap\mail.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\soap\activation.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\soap\activation.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\common\lib\axis.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\common\lib\jaxrpc.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\common\lib\log4j-core.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\common\lib\tt-bytecode.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\common\lib\wsdl4j.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\common\lib\jaxm.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\jdom\jdom-b8\build\jdom.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\jdom\jdom-b8\build\xerces.jar
set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\servlets\soap-2_2
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\webapps\soap\WEB-INF\classes
set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat
4.0\webapps\soap\WEB-INF\classes\org\apache\soap
set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\ws
set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\ws_session
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)
root cause
java.lang.NoClassDefFoundError: org/w3c/dom/Node
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at
org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(Servi
ceDesc.java:504)
at
org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(Servi
ceDesc.java:488)
at
org.apache.axis.description.ServiceDesc.getOperations(ServiceDesc.java:286)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)
AW: How does Axis know what the deployment server is ?
Posted by Till Woerner <ti...@twoerner.de>.
;-)
If you do not specify anything it uses
http://localhost:8080/axis/servlet/AxisServlet
as the default path to its servlet.
(If you are interested in the possible command line parameters for
AdminCLient look into the API docs.)
Greetings,
Till
--
Caught in our narrowminded believe...
-------------------------------------
Till Woerner
Berlin, Germany
EMail:till@twoerner.de
ICQ#: 7162410
> -----Ursprüngliche Nachricht-----
> Von: Craig Williams [mailto:craig@ip80.com]
> Gesendet: Freitag, 24. Mai 2002 21:01
> An: axis-user@xml.apache.org
> Betreff: How does Axis know what the deployment server is ?
>
>
> I just deployment my first test service using a wsdd file.
>
> How did AdminClient know what server/port to deploy on to ?
>
> Craig
>
It didn't work (part of earlier post)
Posted by Craig Williams <cr...@ip80.com>.
Ok, I got my web service working and tested it from a Swing GUI. Works
great.
I then created a SwingApplet and used the identical code and get the
following error.
Code below; Error at the end of email.
/*
* axtestapplet.java
*
* Created on 24 May 2002, 20:06
*/
package com.ip80.research.axistest1;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.rpc.namespace.QName;
/**
*
* @author Administrator
*/
public class axtestapplet extends javax.swing.JApplet {
/** Creates new form axtestapplet */
public axtestapplet() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jButton1 = new javax.swing.JButton();
jButton1.setText("jButton1");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt)
{
jButton1ActionPerformed(evt);
}
});
getContentPane().add(jButton1, java.awt.BorderLayout.NORTH);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
{
try {
String endpoint =
"http://water:8080/axis/services/axtest1";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint)
);
call.setOperationName(new QName("http://soapinterop.org/",
"sayHello"));
String ret = (String) call.invoke( new Object[] {} );
jButton1.setText(ret);
} catch (Exception e) {
}
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
// End of variables declaration
}
THE ERROR IS AS FOLLOWS;
java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.<init>(Service.java:109)
at
com.ip80.research.axistest1.axtestapplet.jButton1ActionPerformed(axtesta
pplet.java:45)
at
com.ip80.research.axistest1.axtestapplet.access$000(axtestapplet.java:15
)
at
com.ip80.research.axistest1.axtestapplet$1.actionPerformed(axtestapplet.
java:33)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractB
utton.java:1820)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.ja
va:419)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonList
ener.java:258)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1380)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Component.dispatchEvent(Component.java:3367)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
at java.awt.Container.dispatchEventImpl(Container.java:1423)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea
d.java:190)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.
java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:509)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:285)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400)
at
org.apache.axis.configuration.DefaultEngineConfigurationFactory.<clinit>
(DefaultEngineConfigurationFactory.java:84)
... 26 more
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:404)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:502)
... 29 more
Caused by: java.lang.NullPointerException
at
sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.
java:434)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:398)
... 30 more
How does Axis know what the deployment server is ?
Posted by Craig Williams <cr...@ip80.com>.
I just deployment my first test service using a wsdd file.
How did AdminClient know what server/port to deploy on to ?
Craig
Some applet guidance
Posted by Craig Williams <cr...@ip80.com>.
Ok, firstly - I'm a user jax-rpc user, I'm trying to move into something
a little faster for development so I've installed axis today. Plus I
have an interesting issue and I'm hoping I can overcome it with axis.
I want to call my webservices from an applet running in a browser.
What will the dependancies be for the client, eg: what must I include in
the applet JAR file ?
Will the client-side axis JAR's work in this fasion ? Why do I ask ...
Well;
JAX-RPC,WASP and various others all don't - the clientside classes cause
some security issues that noone seems to know how to overcome, btw: this
is a signed applet.
So ... Is this possible ?
Thanks !
Craig