axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Williams" <cr...@ip80.com>
Subject RE: It didn't work (part of earlier post)
Date Fri, 24 May 2002 23:19:13 GMT
IT WORKED !!!!! THANK YOU !!!!!

Man I'm so happy .... Just one tiny little question ;-)

I added the -Djava etc to the java console, how do I get around a client
having to download the libraries and also put in the -Djava ?

Craig

> -----Original Message-----
> From: Heitzso [mailto:heitzso@bellsouth.net] 
> Sent: 24 May 2002 20:28
> To: craig@ip80.com
> Subject: Re: It didn't work (part of earlier post)
> 
> 
> just guessing ... but a lot of the problems with axis stem 
> from it's pushing boundaries with standards (good way -- 
> trying to ride the leading edge).  So best to run server side 
> from tomcat 4.0.4, or 4.0.3 with 1.4 jvm with 
> -Djava.endorsed.dirs=axis/lib etc.  All of which is necessary 
> to get the correct xerces/javax.blat etc. jars lined up in 
> the correct order in the jvm.
> 
> Please try running with Sun jdk 1.4.0 plugin for browser, and 
> add the -Djava.endorsed.dirs to the java console for that jvm 
> (control panel, etc.) and point it to the axis/lib directory, 
> finally add a version of xerces to classpath that works for 
> you server side and see what happens.
> 
> 
> 
> On Fri, 2002-05-24 at 15:12, Craig Williams wrote:
> > 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(axtes
> > ta
> > pplet.java:45)
> >         at
> > 
> com.ip80.research.axistest1.axtestapplet.access$000(axtestappl
> et.java:15
> > )
> >         at
> > 
> com.ip80.research.axistest1.axtestapplet$1.actionPerformed(axt
> estapplet.
> > 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(DefaultButt
> onModel.ja
> > va:419)
> >         at
> > 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
> >         at
> > 
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Basic
> ButtonList
> > 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(EventDis
> patchThrea
> > d.java:190)
> >         at
> > 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.
> > 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(Log
> FactoryImp
> > l.java:509)
> >         at
> > 
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> FactoryImp
> > l.java:285)
> >         at
> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400)
> >         at
> > 
> org.apache.axis.configuration.DefaultEngineConfigurationFactor
> y.<clinit>
> > (DefaultEngineConfigurationFactory.java:84)
> >         ... 26 more
> > Caused by: org.apache.commons.logging.LogConfigurationException:
> > java.lang.NullPointerException
> >         at
> > 
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> or(LogFact
> > oryImpl.java:404)
> >         at
> > 
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> FactoryImp
> > 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(LogFa
> ctoryImpl.
> > java:434)
> >         at
> > 
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> or(LogFact
> > oryImpl.java:398)
> >         ... 30 more
> > 
> 
> 
> 


Mime
View raw message