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 chaoticinc <ja...@rogers.com> on 2007/05/24 23:45:32 UTC

Re: Transport out has not been set.

I encountered the same problem and found that the issue was caused when the
commons-httpclient-[version].jar was missing. It would be nice if this was
caught with
a ClassNotFoundException instead.

Jason Kania


maskkkk wrote:
> 
> Okay thank you that seemed to at least fix the dependency errors!
> 
> 
> Tony Ambrozie wrote:
>> 
>> The code that I used is yours, with all the imports required.  Below is
>> the
>> relevant section of the pom that I used.  Note: I am writing various
>> Axis2-related code than does more than what you are doing and I am using
>> an
>> "umbrella" pom, so it probably has more dependencies that you need, but
>> it
>> will help establish whether this is a missing dependency issue or not. 
>> To
>> Dims' other post re axis2 jars, this should eliminate any possibility
>> that
>> an Axis2 jar (such as commons*) may be missing from the classpath.  As
>> usual, run mvn test or mvn clean test.
>> 
>> Thanks'
>> 
>>   <dependencies>
>>     <dependency>
>>       <groupId>junit</groupId>
>>       <artifactId>junit</artifactId>
>>       <version>3.8.1</version>
>>       <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>       <groupId>log4j</groupId>
>>       <artifactId>log4j</artifactId>
>>       <version>1.2.9</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.axis2</groupId>
>>         <artifactId>axis2</artifactId>
>>         <version>1.1.1</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.ws.commons.axiom</groupId>
>>         <artifactId>axiom-api</artifactId>
>>         <version>1.2.2</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.ws.commons.axiom</groupId>
>>         <artifactId>axiom-impl</artifactId>
>>         <version>1.2.1</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.ws.commons.axiom</groupId>
>>         <artifactId>axiom-dom</artifactId>
>>         <version>1.2.1</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.ws.commons.schema</groupId>
>>         <artifactId>XmlSchema</artifactId>
>>         <version>1.2</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.ws.commons</groupId>
>>         <artifactId>ws-commons-util</artifactId>
>>         <version>1.0.1</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>wsdl4j</groupId>
>>         <artifactId>wsdl4j</artifactId>
>>         <version>1.6.1</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>xmlbeans</groupId>
>>         <artifactId>xbean</artifactId>
>>         <version>2.1.0</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.axis2</groupId>
>>         <artifactId>axis2-xmlbeans</artifactId>
>>         <version>1.1</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>org.apache.neethi</groupId>
>>         <artifactId>neethi</artifactId>
>>         <version>2.0</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>xml-apis</groupId>
>>         <artifactId>xml-apis</artifactId>
>>         <version>1.0.b2</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>stax</groupId>
>>         <artifactId>stax-api</artifactId>
>>         <version>1.0.1</version>
>>     </dependency>
>>     <dependency>
>>         <groupId>woodstox</groupId>
>>         <artifactId>wstx-asl</artifactId>
>>         <version>2.9.3</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>commons-httpclient</groupId>
>>         <artifactId>commons-httpclient</artifactId>
>>         <version>3.0.1</version>
>>         <scope>test</scope>
>>     </dependency>
>>     <dependency>
>>         <groupId>javax.activation</groupId>
>>         <artifactId>activation</artifactId>
>>         <version>1.1</version>
>>     </dependency>
>> </dependencies>
>>   <repositories>
>>     <repository>
>>       <id>central</id>
>>       <name>Maven Central Repository</name>
>>       <url>http://repo1.maven.org/maven2</url>
>>     </repository>
>>     <repository>
>>       <id>ibiblio</id>
>>       <name>Ibiblio Maven Repository</name>
>>       <url>http://www.ibiblio.org/maven2</url>
>>     </repository>
>>     <repository>
>>       <id>snapshots</id>
>>       <name>Maven Development Repository</name>
>>       <url>http://snapshots.maven.codehaus.org/maven2</url>
>>         <snapshots>
>>           <enabled>true</enabled>
>>         </snapshots>
>>     </repository>
>>     <repository>
>>       <id>apache.snapshots</id>
>>       <name>Maven Plugins Development Repository</name>
>>       <url>http://people.apache.org/maven-snapshot-repository</url>
>>       <snapshots>
>>         <enabled>true</enabled>
>>       </snapshots>
>>     </repository>
>>     <repository>
>>     <id>maven2-repository.dev.java.net</id>
>>     <name>Java.net Repository for Maven</name>
>>     <url>https://maven2-repository.dev.java.net/nonav/repository</url>
>>     <layout>default</layout>
>>     </repository>
>>   </repositories>
>> 
>> 
>> On 2/20/07, maskkkk <le...@hotmail.com> wrote:
>>>
>>>
>>> I do not have an axis2.xml file.  I am invoking the tests in 2 ways and
>>> both
>>> give me the error.  The first way is using the mvn test goal.  And the
>>> second way is to run it as a JUnit Test in Eclipse 3.1 using the JUnit
>>> plugin.  The files I am using are zipped up out at
>>> https://issues.apache.org/jira/browse/AXIS2-2222
>>>
>>> I have been following the Chad Davis thread you mentioned, although it
>>> doesn't seem to ever come to a conclusion.
>>>
>>> Chad seems to indicate that the code got further after he added
>>> axis2.xml.
>>> (I guess...)
>>>
>>> Would it be possible to post the files you have working for me?  and I
>>> could
>>> see if I could get them to work as you stated?
>>>
>>> Thank you,
>>>      Andrew J. Leer
>>>
>>>
>>> Tony Ambrozie wrote:
>>> >
>>> > Andrew, I was able to run your code past the issue you are reporting,
>>> > therefore you either have a configuration or a dependency issue.  Have
>>> you
>>> > modified or removed axis2.xml?  How are you invoking the tests (see
>>> > documentation on how Axis2 finds axis2.xml)?
>>> >
>>> > There was another report of this error that suggested a missing
>>> dependency
>>> > that gets somehow obscured, pls see here:
>>> > http://www.mail-archive.com/axis-user@ws.apache.org/msg23511.html
>>> >
>>> > Incidentally, the code eventually does throw a fault, but that seems
>>> to
>>> be
>>> > SOAPAction related, issue for another time.  BTW, do you really need
>>> the
>>> > "?WSDL" in your endpoint?
>>> >
>>> > Thanks'
>>> >
>>> >
>>> > On 2/19/07, maskkkk <le...@hotmail.com> wrote:
>>> >>
>>> >>
>>> >> I tried removing the setUseSeparateListener(false);
>>> >>
>>> >> That didn't really make a difference...*shrugs*
>>> >>
>>> >> I get the same error.
>>> >>
>>> >> Thank you,
>>> >>    Andrew J. Leer
>>> >>
>>> >>
>>> >> Michele Mazzucco-2 wrote:
>>> >> >
>>> >> >
>>> >> > Andrew,
>>> >> >
>>> >> > there's no need to set the transport out. What you did should be
>>> >> enough.
>>> >> > Just in case, try to remove the
>>> options.setUseSeparateListener(false)
>>> >> > call - it's set to false by default.
>>> >> >
>>> >> > Michele
>>> >> >
>>> >> >
>>> >> > On 19 Feb 2007, at 19:55, maskkkk wrote:
>>> >> >
>>> >> >>
>>> >> >> Now I understand that I've already set the "in" transport
>>> >> >> protocol.  But I
>>> >> >> really do not know how to set the "out" transport protocol or why
>>> I
>>> >> >> have to
>>> >> >> do it.  The client example in the Axis2 documentation
>>> >> >> ( http://ws.apache.org/axis2/1_1_1/quickstartguide.html) does not
>>> >> >> require
>>> >> >> this:
>>> >> >
>>> >> >
>>> >> >
>>> ---------------------------------------------------------------------
>>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a9053257
>>> >>
>>> >> Sent from the Axis - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a9060817
>>> Sent from the Axis - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a10793310
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org