well, i answered my own question.

the root cause of such exception is the using  Web Services 1.0 Library which 
comes with  JBoss-IDE.

there is 4 jar files under Web Services 1.0 library.
the problematic one is saaj-api.jar, under 
\plugins\org.jboss.ide.eclipse.jdt.ws.core_1.5.0.M2\lib\wsi-1.0\

for example, 

  |  try {
  |             return (SOAPConnectionFactory) FactoryFinder.find(SF_PROPERTY,  
                  DEFAULT_SOAP_CONNECTION_FACTORY);
  |         } catch (Exception exception) {
  |             throw new SOAPException("Unable to create SOAP connection 
factory: "
  |                                     + exception.getMessage());
  |         }
  | 

this code seems normal. but under this,  it declares two String constants.

  | private static final String DEFAULT_SOAP_CONNECTION_FACTORY =
  |         "org.apache.axis.soap.SOAPConnectionFactoryImpl";
  | 
  |     private static final String SF_PROPERTY =
  |         "javax.xml.soap.SOAPConnectionFactory";
  | 
  | 

got it?
that is why the application continuously looking for the AXIS stuff.

there is another 2 places, including:
javax.xml.soap.SOAPFactory" "javax.xml.soap.MessageFactory".

i remove the Web Services 1.0 library in Eclipse.
and import jboss-saaj.jar in JBoss installation package.

then this exception is gone.

at last, there are some confusing things here, why is the library coming with 
JBoss-IDE still looking for the Axis stuff. or is my Jboss-Ide too old?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927363#3927363

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927363


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to