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 Fatima Shabbir <fa...@gmail.com> on 2007/07/12 11:14:23 UTC

Error Running Client

Hi

I am new to axis2, when i am trying to run code from the following URL

http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1

When i compile the java client, it says that it can't find OM Libraries
import org.apache.axiom.om.OMAbstractFactory;
                           ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2: package
org.apache.axiom.om does not exist
import org.apache.axiom.om.OMElement;
                           ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3: package
org.apache.axiom.om does not exist
import org.apache.axiom.om.OMFactory;
                           ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4: package
org.apache.axiom.om does not exist
import org.apache.axiom.om.OMNamespace;
                           ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5: package
org.apache.axis2.addressing does not exist
import org.apache.axis2.addressing.EndpointReference;
                                   ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6: package
org.apache.axis2.client does not exist
import org.apache.axis2.client.Options;
                               ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7: package
org.apache.axis2.client does not exist
import org.apache.axis2.client.ServiceClient;
                               ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
    public static OMElement createPayLoad() {
                  ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot
find symbol
symbol  : class ServiceClient
location: class Scenario1Client
        ServiceClient client = new ServiceClient();
        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot
find symbol
symbol  : class ServiceClient
location: class Scenario1Client
        ServiceClient client = new ServiceClient();
                                   ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot
find symbol
symbol  : class Options
location: class Scenario1Client
        Options opts = new Options();
        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot
find symbol
symbol  : class Options
location: class Scenario1Client
        Options opts = new Options();
                           ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16: cannot
find symbol
symbol  : class EndpointReference
location: class Scenario1Client
        opts.setTo(new EndpointReference("
http://127.0.0.1:8080/axis2/services/MyService"));
                       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
        OMElement res = client.sendReceive(createPayLoad());
        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot
find symbol
symbol  : class OMFactory
location: class Scenario1Client
        OMFactory fac = OMAbstractFactory.getOMFactory();
        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot
find symbol
symbol  : variable OMAbstractFactory
location: class Scenario1Client
        OMFactory fac = OMAbstractFactory.getOMFactory();
                        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27: cannot
find symbol
symbol  : class OMNamespace
location: class Scenario1Client
        OMNamespace omNs = fac.createOMNamespace("
http://ws.apache.org/axis2/xsd", "ns1");
        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
        OMElement method = fac.createOMElement("echo", omNs);
        ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
        OMElement value = fac.createOMElement("value", omNs);
        ^
19 errors

Can anyone tell me where I can download this API, I am using
tomcat6.0.13and axis2
1.2 war files on fedora. Someone suggested that I should install axis2
source, will that solve the problem.

Thanks

Re: Error Running Client

Posted by Fatima Shabbir <fa...@gmail.com>.
i am using java 1.5.0

On 7/12/07, Upul Godage <up...@gmail.com> wrote:
>
> What is the Java version you are using?
>
> On 7/12/07, Fatima Shabbir <fa...@gmail.com> wrote:
> >
> > Hi
> > I have added  the jar files to the Java Class path. When i compile it
> > using javac, there is no error. But now when i do
> >
> > java Scenario1Clinet
> >
> > it gives me this
> >
> > Exception in thread "main" java.lang.NoSuchMethodError: method
> > javax.xml.stream.XMLStreamReader.getAttributeLocalName with signature
> > (I)Ljava.lang.String; was not found.
> >    at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(
> > StAXBuilder.java :160)
> >    at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(
> > StAXOMBuilder.java:227)
> >    at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(
> > StAXOMBuilder.java:253)
> >    at org.apache.axiom.om.impl.builder.StAXOMBuilder.next (
> > StAXOMBuilder.java:135)
> >    at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(
> > OMDocumentImpl.java:127)
> >    at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(
> > StAXOMBuilder.java:328)
> >    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:559)
> >    at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
> > DescriptionBuilder.java:93)
> >    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig (
> > AxisConfigBuilder.java:76)
> >    at
> > org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
> > DeploymentEngine.java:642)
> >    at
> > org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
> > FileSystemConfigurator.java :105)
> >    at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> > (ConfigurationContextFactory.java:60)
> >    at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(
> > ConfigurationContextFactory.java:174)
> >    at org.apache.axis2.client.ServiceClient.initializeTransports(
> > ServiceClient.java:211)
> >    at org.apache.axis2.client.ServiceClient.configureServiceClient(
> > ServiceClient.java:140)
> >    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java
> > :134)
> >    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java
> > :230)
> >    at Scenario1Client.main(Scenario1Client.java:12)
> >
> > I am unable to figure out the problem
> >
> > If anyone can help
> >
> > thanks
> >
> >
> > On 7/12/07, Upul Godage < upulg.dev@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > I think you can find the required jars in axis2 1.2 war's WEB-INF/lib
> > > folder.   Add those jars to Java classpath.
> > >
> > > On 7/12/07, Fatima Shabbir <fa...@gmail.com> wrote:
> > > >
> > > > Hi
> > > >
> > > > I am new to axis2, when i am trying to run code from the following
> > > > URL
> > > >
> > > > http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1
> > > >
> > > > When i compile the java client, it says that it can't find OM
> > > > Libraries
> > > > import org.apache.axiom.om.OMAbstractFactory;
> > > >                            ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2:package
> > > > org.apache.axiom.om does not exist
> > > > import org.apache.axiom.om.OMElement;
> > > >                            ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3:package
> > > > org.apache.axiom.om does not exist
> > > > import org.apache.axiom.om.OMFactory;
> > > >                            ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4:package
> > > > org.apache.axiom.om does not exist
> > > > import org.apache.axiom.om.OMNamespace;
> > > >                            ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5:package
> > > > org.apache.axis2.addressing does not exist
> > > > import org.apache.axis2.addressing.EndpointReference;
> > > >                                    ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6:package
> > > > org.apache.axis2.client does not exist
> > > > import org.apache.axis2.client.Options;
> > > >                                ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7:package
> > > > org.apache.axis2.client does not exist
> > > > import org.apache.axis2.client.ServiceClient;
> > > >                                ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25:cannot find symbol
> > > > symbol  : class OMElement
> > > > location: class Scenario1Client
> > > >     public static OMElement createPayLoad() {
> > > >                   ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol
> > > > symbol  : class ServiceClient
> > > > location: class Scenario1Client
> > > >         ServiceClient client = new ServiceClient();
> > > >         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol
> > > > symbol  : class ServiceClient
> > > > location: class Scenario1Client
> > > >         ServiceClient client = new ServiceClient();
> > > >                                    ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol
> > > > symbol  : class Options
> > > > location: class Scenario1Client
> > > >         Options opts = new Options();
> > > >         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol
> > > > symbol  : class Options
> > > > location: class Scenario1Client
> > > >         Options opts = new Options();
> > > >                            ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16:cannot find symbol
> > > > symbol  : class EndpointReference
> > > > location: class Scenario1Client
> > > >         opts.setTo(new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService
> > > > "));
> > > >                        ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20:cannot find symbol
> > > > symbol  : class OMElement
> > > > location: class Scenario1Client
> > > >         OMElement res = client.sendReceive(createPayLoad());
> > > >         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26:cannot find symbol
> > > > symbol  : class OMFactory
> > > > location: class Scenario1Client
> > > >         OMFactory fac = OMAbstractFactory.getOMFactory();
> > > >         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26:cannot find symbol
> > > > symbol  : variable OMAbstractFactory
> > > > location: class Scenario1Client
> > > >         OMFactory fac = OMAbstractFactory.getOMFactory();
> > > >                         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27:cannot find symbol
> > > > symbol  : class OMNamespace
> > > > location: class Scenario1Client
> > > >         OMNamespace omNs = fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
> > > > "ns1");
> > > >         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28:cannot find symbol
> > > > symbol  : class OMElement
> > > > location: class Scenario1Client
> > > >         OMElement method = fac.createOMElement ("echo", omNs);
> > > >         ^
> > > > /root/Desktop/invoking-
> > > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29:cannot find symbol
> > > > symbol  : class OMElement
> > > > location: class Scenario1Client
> > > >         OMElement value = fac.createOMElement("value", omNs);
> > > >         ^
> > > > 19 errors
> > > >
> > > > Can anyone tell me where I can download this API, I am using
> > > > tomcat6.0.13 and axis2 1.2 war files on fedora. Someone suggested
> > > > that I should install axis2 source, will that solve the problem.
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> >
>

Re: Error Running Client

Posted by Upul Godage <up...@gmail.com>.
What is the Java version you are using?

On 7/12/07, Fatima Shabbir <fa...@gmail.com> wrote:
>
> Hi
> I have added  the jar files to the Java Class path. When i compile it
> using javac, there is no error. But now when i do
>
> java Scenario1Clinet
>
> it gives me this
>
> Exception in thread "main" java.lang.NoSuchMethodError: method
> javax.xml.stream.XMLStreamReader.getAttributeLocalName with signature
> (I)Ljava.lang.String; was not found.
>    at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(
> StAXBuilder.java :160)
>    at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(
> StAXOMBuilder.java:227)
>    at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(
> StAXOMBuilder.java:253)
>    at org.apache.axiom.om.impl.builder.StAXOMBuilder.next (
> StAXOMBuilder.java:135)
>    at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(
> OMDocumentImpl.java:127)
>    at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(
> StAXOMBuilder.java:328)
>    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:559)
>    at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
> DescriptionBuilder.java:93)
>    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig (
> AxisConfigBuilder.java:76)
>    at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
> DeploymentEngine.java:642)
>    at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
> FileSystemConfigurator.java :105)
>    at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:60)
>    at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(
> ConfigurationContextFactory.java:174)
>    at org.apache.axis2.client.ServiceClient.initializeTransports(
> ServiceClient.java:211)
>    at org.apache.axis2.client.ServiceClient.configureServiceClient(
> ServiceClient.java:140)
>    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:134)
>    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:230)
>    at Scenario1Client.main(Scenario1Client.java:12)
>
> I am unable to figure out the problem
>
> If anyone can help
>
> thanks
>
>
> On 7/12/07, Upul Godage < upulg.dev@gmail.com> wrote:
> >
> > Hi,
> >
> > I think you can find the required jars in axis2 1.2 war's WEB-INF/lib
> > folder.   Add those jars to Java classpath.
> >
> > On 7/12/07, Fatima Shabbir <fa...@gmail.com> wrote:
> > >
> > > Hi
> > >
> > > I am new to axis2, when i am trying to run code from the following URL
> > >
> > > http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1
> > >
> > > When i compile the java client, it says that it can't find OM
> > > Libraries
> > > import org.apache.axiom.om.OMAbstractFactory;
> > >                            ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2:package
> > > org.apache.axiom.om does not exist
> > > import org.apache.axiom.om.OMElement;
> > >                            ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3:package
> > > org.apache.axiom.om does not exist
> > > import org.apache.axiom.om.OMFactory;
> > >                            ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4:package
> > > org.apache.axiom.om does not exist
> > > import org.apache.axiom.om.OMNamespace;
> > >                            ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5:package
> > > org.apache.axis2.addressing does not exist
> > > import org.apache.axis2.addressing.EndpointReference;
> > >                                    ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6:package
> > > org.apache.axis2.client does not exist
> > > import org.apache.axis2.client.Options;
> > >                                ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7:package
> > > org.apache.axis2.client does not exist
> > > import org.apache.axis2.client.ServiceClient;
> > >                                ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25:cannot find symbol
> > > symbol  : class OMElement
> > > location: class Scenario1Client
> > >     public static OMElement createPayLoad() {
> > >                   ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol
> > > symbol  : class ServiceClient
> > > location: class Scenario1Client
> > >         ServiceClient client = new ServiceClient();
> > >         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol
> > > symbol  : class ServiceClient
> > > location: class Scenario1Client
> > >         ServiceClient client = new ServiceClient();
> > >                                    ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol
> > > symbol  : class Options
> > > location: class Scenario1Client
> > >         Options opts = new Options();
> > >         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol
> > > symbol  : class Options
> > > location: class Scenario1Client
> > >         Options opts = new Options();
> > >                            ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16:cannot find symbol
> > > symbol  : class EndpointReference
> > > location: class Scenario1Client
> > >         opts.setTo(new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService
> > > "));
> > >                        ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20:cannot find symbol
> > > symbol  : class OMElement
> > > location: class Scenario1Client
> > >         OMElement res = client.sendReceive(createPayLoad());
> > >         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26:cannot find symbol
> > > symbol  : class OMFactory
> > > location: class Scenario1Client
> > >         OMFactory fac = OMAbstractFactory.getOMFactory();
> > >         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26:cannot find symbol
> > > symbol  : variable OMAbstractFactory
> > > location: class Scenario1Client
> > >         OMFactory fac = OMAbstractFactory.getOMFactory();
> > >                         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27:cannot find symbol
> > > symbol  : class OMNamespace
> > > location: class Scenario1Client
> > >         OMNamespace omNs = fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
> > > "ns1");
> > >         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28:cannot find symbol
> > > symbol  : class OMElement
> > > location: class Scenario1Client
> > >         OMElement method = fac.createOMElement ("echo", omNs);
> > >         ^
> > > /root/Desktop/invoking-
> > > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29:cannot find symbol
> > > symbol  : class OMElement
> > > location: class Scenario1Client
> > >         OMElement value = fac.createOMElement("value", omNs);
> > >         ^
> > > 19 errors
> > >
> > > Can anyone tell me where I can download this API, I am using
> > > tomcat6.0.13 and axis2 1.2 war files on fedora. Someone suggested that
> > > I should install axis2 source, will that solve the problem.
> > >
> > > Thanks
> > >
> > >
> > >
> >
>

Re: Error Running Client

Posted by Fatima Shabbir <fa...@gmail.com>.
Hi
I have added  the jar files to the Java Class path. When i compile it using
javac, there is no error. But now when i do

java Scenario1Clinet

it gives me this

Exception in thread "main" java.lang.NoSuchMethodError: method
javax.xml.stream.XMLStreamReader.getAttributeLocalName with signature
(I)Ljava.lang.String; was not found.
   at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(
StAXBuilder.java:160)
   at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(
StAXOMBuilder.java:227)
   at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(
StAXOMBuilder.java:253)
   at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
:135)
   at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(
OMDocumentImpl.java:127)
   at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(
StAXOMBuilder.java:328)
   at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:559)
   at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
DescriptionBuilder.java:93)
   at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
AxisConfigBuilder.java:76)
   at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration
(DeploymentEngine.java:642)
   at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:105)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:60)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContextFactory.java:174)
   at org.apache.axis2.client.ServiceClient.initializeTransports(
ServiceClient.java:211)
   at org.apache.axis2.client.ServiceClient.configureServiceClient(
ServiceClient.java:140)
   at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:134)
   at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:230)
   at Scenario1Client.main(Scenario1Client.java:12)

I am unable to figure out the problem

If anyone can help

thanks


On 7/12/07, Upul Godage <up...@gmail.com> wrote:
>
> Hi,
>
> I think you can find the required jars in axis2 1.2 war's WEB-INF/lib
> folder.   Add those jars to Java classpath.
>
> On 7/12/07, Fatima Shabbir <fa...@gmail.com> wrote:
> >
> > Hi
> >
> > I am new to axis2, when i am trying to run code from the following URL
> >
> > http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1
> >
> > When i compile the java client, it says that it can't find OM Libraries
> > import org.apache.axiom.om.OMAbstractFactory;
> >                            ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2:package
> > org.apache.axiom.om does not exist
> > import org.apache.axiom.om.OMElement;
> >                            ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3:package
> > org.apache.axiom.om does not exist
> > import org.apache.axiom.om.OMFactory;
> >                            ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4:package
> > org.apache.axiom.om does not exist
> > import org.apache.axiom.om.OMNamespace;
> >                            ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5:package
> > org.apache.axis2.addressing does not exist
> > import org.apache.axis2.addressing.EndpointReference;
> >                                    ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6:package
> > org.apache.axis2.client does not exist
> > import org.apache.axis2.client.Options;
> >                                ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7:package
> > org.apache.axis2.client does not exist
> > import org.apache.axis2.client.ServiceClient;
> >                                ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25:cannot find symbol
> > symbol  : class OMElement
> > location: class Scenario1Client
> >     public static OMElement createPayLoad() {
> >                   ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol
> > symbol  : class ServiceClient
> > location: class Scenario1Client
> >         ServiceClient client = new ServiceClient();
> >         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol
> > symbol  : class ServiceClient
> > location: class Scenario1Client
> >         ServiceClient client = new ServiceClient();
> >                                    ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol
> > symbol  : class Options
> > location: class Scenario1Client
> >         Options opts = new Options();
> >         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol
> > symbol  : class Options
> > location: class Scenario1Client
> >         Options opts = new Options();
> >                            ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16:cannot find symbol
> > symbol  : class EndpointReference
> > location: class Scenario1Client
> >         opts.setTo(new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService
> > "));
> >                        ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20:cannot find symbol
> > symbol  : class OMElement
> > location: class Scenario1Client
> >         OMElement res = client.sendReceive(createPayLoad());
> >         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26:cannot find symbol
> > symbol  : class OMFactory
> > location: class Scenario1Client
> >         OMFactory fac = OMAbstractFactory.getOMFactory();
> >         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26:cannot find symbol
> > symbol  : variable OMAbstractFactory
> > location: class Scenario1Client
> >         OMFactory fac = OMAbstractFactory.getOMFactory();
> >                         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27:cannot find symbol
> > symbol  : class OMNamespace
> > location: class Scenario1Client
> >         OMNamespace omNs = fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
> > "ns1");
> >         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28:cannot find symbol
> > symbol  : class OMElement
> > location: class Scenario1Client
> >         OMElement method = fac.createOMElement ("echo", omNs);
> >         ^
> > /root/Desktop/invoking-
> > web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29:cannot find symbol
> > symbol  : class OMElement
> > location: class Scenario1Client
> >         OMElement value = fac.createOMElement("value", omNs);
> >         ^
> > 19 errors
> >
> > Can anyone tell me where I can download this API, I am using
> > tomcat6.0.13 and axis2 1.2 war files on fedora. Someone suggested that I
> > should install axis2 source, will that solve the problem.
> >
> > Thanks
> >
> >
> >
>

Re: Error Running Client

Posted by Upul Godage <up...@gmail.com>.
Hi,

I think you can find the required jars in axis2 1.2 war's WEB-INF/lib
folder.   Add those jars to Java classpath.

On 7/12/07, Fatima Shabbir <fa...@gmail.com> wrote:
>
> Hi
>
> I am new to axis2, when i am trying to run code from the following URL
>
> http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1
>
> When i compile the java client, it says that it can't find OM Libraries
> import org.apache.axiom.om.OMAbstractFactory;
>                            ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2: package
> org.apache.axiom.om does not exist
> import org.apache.axiom.om.OMElement;
>                            ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3: package
> org.apache.axiom.om does not exist
> import org.apache.axiom.om.OMFactory;
>                            ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4: package
> org.apache.axiom.om does not exist
> import org.apache.axiom.om.OMNamespace;
>                            ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5: package
> org.apache.axis2.addressing does not exist
> import org.apache.axis2.addressing.EndpointReference;
>                                    ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6: package
> org.apache.axis2.client does not exist
> import org.apache.axis2.client.Options;
>                                ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7: package
> org.apache.axis2.client does not exist
> import org.apache.axis2.client.ServiceClient;
>                                ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25: cannot
> find symbol
> symbol  : class OMElement
> location: class Scenario1Client
>     public static OMElement createPayLoad() {
>                   ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot
> find symbol
> symbol  : class ServiceClient
> location: class Scenario1Client
>         ServiceClient client = new ServiceClient();
>         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot
> find symbol
> symbol  : class ServiceClient
> location: class Scenario1Client
>         ServiceClient client = new ServiceClient();
>                                    ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot
> find symbol
> symbol  : class Options
> location: class Scenario1Client
>         Options opts = new Options();
>         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot
> find symbol
> symbol  : class Options
> location: class Scenario1Client
>         Options opts = new Options();
>                            ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16: cannot
> find symbol
> symbol  : class EndpointReference
> location: class Scenario1Client
>         opts.setTo(new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService
> "));
>                        ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20: cannot
> find symbol
> symbol  : class OMElement
> location: class Scenario1Client
>         OMElement res = client.sendReceive(createPayLoad());
>         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot
> find symbol
> symbol  : class OMFactory
> location: class Scenario1Client
>         OMFactory fac = OMAbstractFactory.getOMFactory();
>         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot
> find symbol
> symbol  : variable OMAbstractFactory
> location: class Scenario1Client
>         OMFactory fac = OMAbstractFactory.getOMFactory();
>                         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27: cannot
> find symbol
> symbol  : class OMNamespace
> location: class Scenario1Client
>         OMNamespace omNs = fac.createOMNamespace("
> http://ws.apache.org/axis2/xsd", "ns1");
>         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28: cannot
> find symbol
> symbol  : class OMElement
> location: class Scenario1Client
>         OMElement method = fac.createOMElement ("echo", omNs);
>         ^
> /root/Desktop/invoking-
> web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29: cannot
> find symbol
> symbol  : class OMElement
> location: class Scenario1Client
>         OMElement value = fac.createOMElement("value", omNs);
>         ^
> 19 errors
>
> Can anyone tell me where I can download this API, I am using tomcat6.0.13and axis2
> 1.2 war files on fedora. Someone suggested that I should install axis2
> source, will that solve the problem.
>
> Thanks
>
>
>