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 Stefan Wagner <wi...@web.de> on 2002/06/03 15:01:35 UTC

Re: Error with BeanSerializer

Am Donnerstag, 30. Mai 2002 16:55 schrieben Sie:
> you will have to change the set classpath.sh file in tomcat/bin directory
> and set the java.endorsed.dirs to point to the your "lib" in which you keep
> ur jar file of the service.
> eg:
> in setclasspath.sh
> -Djava.endorsed.dirs=<path_to_axis_lib>:<whatever_was_there_earlier>

I don't have a setclasspath.sh. I try to run Axis on Tomcat 4.0.1. Is this a 
problem? 

And I thought the java.endorsed.dirs setting is only necessary if I use JDK 
1.4, but I've got 1.3. Is it a good idea to upgrade to 1.4?

> also make sure that the classpath in setclasspath.sh has everything you
> wanted in ur classpath.
> Once you make the changes you will have to restart your tomcat server.
>
> This should fix you problem. You can also see in the "logs" directory in
> tomcat to find out what exactly is the problem.
>
> Abhishek
>
>
>
>
>
> You may also want to try the hint re
> -Djava.endorsed.dirs=path_to_axis_lib
>
> ----- Original Message -----
> From: "Stefan Wagner" <wi...@web.de>
> To: <ax...@xml.apache.org>
> Sent: Thursday, May 30, 2002 9:24 AM
> Subject: Error with BeanSerializer
>
>
> Hi!
>
> I try to use Java2WSDL and WSDL2Java. I created a simple bean which I want
> to
> return from a method of my service. When I invoke the service with a tester
> I
> get the following exception:
>
> Exception in thread "main" Internal Server Error
>         at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:518)
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java
>: 71)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:174)
>         at org.apache.axis.client.Call.invoke(Call.java:1905)
>         at org.apache.axis.client.Call.invoke(Call.java:1690)
>         at org.apache.axis.client.Call.invoke(Call.java:1608)
>         at org.apache.axis.client.Call.invoke(Call.java:1169)
>         at
> direct.AnatomyServiceSoapBindingStub.getComponent(AnatomyServiceSoapBinding
>S tub.java:118)
>         at direct.Tester.main(Tester.java:9)
>
> What am I doing wrong?
>
> Cheers,
> Stefan