Title: Apache Tomcat/5.5.9 - Error<br>> report
Hi,

I am having the same issue, with a different service (a generated one). In my .aar, I have all the package subdirectories, including schemaorg_apache_xmlbeans, directly under the top level of the jar (no classes directory). The .xsb files should be in the classpath there, right? (The .aar is an exploded deployment, which I have found to work so far).

I can elaborate more on the structure of the .aar if required - I am desperate to get this problem solved.

Thanks

Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
Hi,
For XMLbeans you'll have to add the generated xsb files to the
classpath. if you've used the jar.client ant target then there should
be xmlbeans-packaged.jar file in the build folder. Add that to the
classpath and that should solve the problem :)

Ajith

On 6/15/06, Jan Bauer Nielsen <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I am an Axis2 novice and I am therefore trying to work my way through
> the examples provided in the Axis2 userguide, but I am having getting
> the data binding examples to work.
>
> I am currently working on a debian sarge install with a Java 2 Standard
> Edition (build 1.5.0_06-b05). Axis2 v1.0 is deployed on a Geronimo v1.0
> web application server.
>
> I created the skeleton using the following command:
>
> % sh WSDL2Java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d
> xmlbeans -o ../samples -p org.apache.axis2.userguide
>
> I added the code suggested to Axis2SampleDocLitServiceSkeleton.java and
> then ran
>
> % ant jar.server
>
> Finally I successfully deployed the service, I am not so sure it is
> working though. Testing from SOAP::Lite gives me
>
> Request:
> POST /axis2/services/Axis2SampleDocLitService HTTP/1.1 TE:
> deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml
> Accept: multipart/*
> Accept: application/soap
> Host: localhost:8080
> User-Agent: SOAP::Lite/Perl/0.67
> Content-Length: 459
> Content-Type: text/xml; charset=utf-8
> SOAPAction: "#echoString"
>
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> xsi:type="xsd:string">Axis2
> Echo

>
>
> Response:
> HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1
> Content-Type: text/html;charset=utf-8
> Content-Length: 1901
> Date: Thu, 15 Jun 2006 10:56:29 GMT
> Connection: close
>
>
>

HTTP Status 500 -



> noshade="noshade">
type Exception report
message
>
description The server encountered an internal
> error () that prevented it from fulfilling this
> request.
exception
org.apache.axiom.om.OMException
> org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
> org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
> org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
> org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>
note The full stack trace of the root cause is
> available in the Apache Tomcat/5.5.9 logs.


> noshade="noshade">

Apache Tomcat/5.5.9


>
> So obviously I have done something wrong somewhere?
>
>
> As a further ado I also tried to build a client stub
>
> % sh WSDL2Java.sh -uri
> ../samples/build/classes/META-INF/Axis2SampleDocLitService.wsdl -d
> xmlbeans -o ../samples -p org.apache.axis2.userguide
>
> % jar.client
>
> I then wrote this simple client class:
>
> import org.apache.axis2.userguide.*;
>
> public class Client {
> public static void main(String[] args) {
> try {
> Axis2SampleDocLitServiceStub stub = new
> Axis2SampleDocLitServiceStub(null,
> "http://localhost:8080/axis2/services/Axis2SampleDocLitService");
>
> EchoStringParamDocument reqDoc =
> EchoStringParamDocument.Factory.newInstance();
>
> reqDoc.setEchoStringParam("Axis2 Echo");
> EchoStringReturnDocument resDoc = stub.EchoString(reqDoc);
> System.out.println(resDoc.getEchoString());
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> which I am unable to compile with the following command:
>
> % javac -classpath
> .:/home/jbn/axis2-std-1.0-bin/samples/build/lib/Axis2SampleDocLitService-test-client.jar:/home/jbn/axis2-std-1.0-bin/lib/annogen-0.1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axiom-api-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axiom-dom-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axiom-impl-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axis2-adb-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axis2-codegen-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axis2-jibx-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axis2-kernel-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axis2-tools-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/axis2-xmlbeans-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/backport-util-concurrent-2.1.jar:/home/jbn/axis2-std-1.0-bin/lib/commons-codec-1.3.jar:/home/jbn/axis2-std-1.0-bin/lib/commons-fileupload-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/commons-httpclient-3.0.jar:/home/jbn/axis2-std-1.0-bin/lib/commons-logging-1.0.4.jar:/home/jbn/axis2-std-1.0-bin/lib/geronimo-spec-activation-1.0.2-rc4.jar:/home/jbn/axis2- s
td
> -1.0-bin/lib/geronimo-spec-javamail-1.3.1-rc5.jar:/home/jbn/axis2-std-1.0-bin/lib/geronimo-spec-jms-1.1-rc4.jar:/home/jbn/axis2-std-1.0-bin/lib/jaxen-1.1-beta-8.jar:/home/jbn/axis2-std-1.0-bin/lib/jaxme2-0.5.1.jar:/home/jbn/axis2-std-1.0-bin/lib/jaxmeapi-0.5.1.jar:/home/jbn/axis2-std-1.0-bin/lib/jaxmejs-0.5.1.jar:/home/jbn/axis2-std-1.0-bin/lib/jaxmexs-0.5.1.jar:/home/jbn/axis2-std-1.0-bin/lib/log4j-1.2.13.jar:/home/jbn/axis2-std-1.0-bin/lib/neethi-1.0.1.jar:/home/jbn/axis2-std-1.0-bin/lib/servletapi-2.3.jar:/home/jbn/axis2-std-1.0-bin/lib/stax-api-1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/stax-utils-20060501.jar:/home/jbn/axis2-std-1.0-bin/lib/wsdl4j-1.5.2.jar:/home/jbn/axis2-std-1.0-bin/lib/wstx-asl-2.9.3.jar:/home/jbn/axis2-std-1.0-bin/lib/xbean-2.1.0.jar:/home/jbn/axis2-std-1.0-bin/lib/XmlSchema-1.0.2.jar
> Client.java
>
> Client.java:8: cannot find symbol
> symbol : class EchoStringParamDocument
> location: class Client
> EchoStringParamDocument reqDoc =
> EchoStringParamDocument.Factory.newInstance();
> ^
> Client.java:8: package EchoStringParamDocument does not exist
> EchoStringParamDocument reqDoc =
> EchoStringParamDocument.Factory.newInstance();
> ^
> Client.java:11: cannot find symbol
> symbol : class EchoStringReturnDocument
> location: class Client
> EchoStringReturnDocument resDoc = stub.EchoString(reqDoc);
> ^
> 3 errors
>
>
> Any pointers to what I might possibly be doing wrong are most welcome.
>
> Kind regards,
> --
> Jan Bauer Nielsen
> Center of Knowledge Technology, Technical Knowledge Center of Denmark
> Anker Engelunds Vej 1, Postboks 777, 2800 Kongens Lyngby, Denmark
> Direct: (+45) 4525 7221, [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to