Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7

2010-01-19 Thread jcaristi

The problem is solved.  It seemed like I really did have the correct
stax-api_1.0_spec jar, so I just started working my way down the stack
trace.  It turned out to be an incorrect version of
org.apache.axiom.om.util.StAXUtils, which was in an unexpected
axiom-api-1.1.1.jar on the classpath.  I also had axiom-api-1.2.8.jar, which
is the correct one for axis2-spring 1.5.1.  Eliminating the incorrect
axiom-api jar fixed it.
-- 
View this message in context: 
http://old.nabble.com/Axis2-1.5.1-Upgrade-Problem-with-Spring-and-Jetty-7-tp27180100p27226760.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7

2010-01-15 Thread Andreas Veithen
The following line indicates that the XMLInputFactory class is not
from the org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1
artifact (Geronimo's version has fewer than 158 lines):

   at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)

Try to figure out where this class is loaded from.

Andreas

On Fri, Jan 15, 2010 at 19:12, jcaristi  wrote:
>
>
> iksrazal wrote:
>>
>>
>> Do you have a "Caused by" section in your stacktrace? Anyways, one
>> thing to check is to make sure you have the right stax-api and
>> wstx-asl jars in your classpath.
>>
>> - R
>>
>>
>
> There is no "caused by" section.
>
> Also, it looks like these jars are dependencies of only the axis2-spring
> jar.  A search of the Maven dependency:tree for "stax" and "wstx" lists only
> one for each, both under axis2-spring.  I checked the WEB-INF lib folder of
> the generated WAR, and there are no other stax or wstx jars there.  Here is
> the axis2-spring section of the dependency tree:
>
> [INFO] +- org.apache.axis2:axis2-spring:jar:1.5.1:compile
> [INFO] |  +- org.apache.ws.commons.axiom:axiom-api:jar:1.2.8:compile
> [INFO] |  |  +-
> org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.1:compile
> [INFO] |  |  +-
> org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.2:compile
> [INFO] |  |  \- jaxen:jaxen:jar:1.1.1:compile
> [INFO] |  +- org.apache.ws.commons.axiom:axiom-impl:jar:1.2.8:compile
> [INFO] |  +- org.apache.ws.commons.axiom:axiom-dom:jar:1.2.8:compile
> [INFO] |  +- xalan:xalan:jar:2.7.0:compile
> [INFO] |  +- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
> [INFO] |  +-
> org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile
> [INFO] |  +- commons-io:commons-io:jar:1.4:compile
> [INFO] |  \- org.apache.axis2:axis2-kernel:jar:1.5.1:compile
> [INFO] |     +-
> org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2:compile
> [INFO] |     +-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile
> [INFO] |     +- javax.servlet:servlet-api:jar:2.3:compile
> [INFO] |     +- commons-fileupload:commons-fileupload:jar:1.2:compile
> [INFO] |     +- wsdl4j:wsdl4j:jar:1.6.2:compile
> [INFO] |     +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.3:compile
> [INFO] |     +- org.apache.woden:woden-api:jar:1.0M8:compile
> [INFO] |     |  \- xerces:xmlParserAPIs:jar:2.6.0:compile
> [INFO] |     \- org.apache.woden:woden-impl-dom:jar:1.0M8:compile
>
>
>
> --
> View this message in context: 
> http://old.nabble.com/Axis2-1.5.1-Upgrade-Problem-with-Spring-and-Jetty-7-tp27180100p27181273.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7

2010-01-15 Thread robert lazarski
On Fri, Jan 15, 2010 at 3:12 PM, jcaristi  wrote:
>
>
> iksrazal wrote:
>>
>>
>> Do you have a "Caused by" section in your stacktrace? Anyways, one
>> thing to check is to make sure you have the right stax-api and
>> wstx-asl jars in your classpath.
>>
>> - R
>>
>>
>
> There is no "caused by" section.
>
> Also, it looks like these jars are dependencies of only the axis2-spring
> jar.  A search of the Maven dependency:tree for "stax" and "wstx" lists only
> one for each, both under axis2-spring.  I checked the WEB-INF lib folder of
> the generated WAR, and there are no other stax or wstx jars there.  Here is
> the axis2-spring section of the dependency tree:
>

Not sure what the current maven deps are for axis2-spring, but
anyways, I can pretty much guarantee those jars have nothing to do
with it, but are an integral part to many other parts of axis2. I'd
look to see if you have those jars / classes in a classloader with a
higher precedence.

axis2-web/HappyAxis.jsp

Will show your path to the stax jars you are using. If those jars are
being used from your WEB-INF/lib then I'm out of ideas.

- R


Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7

2010-01-15 Thread jcaristi


iksrazal wrote:
> 
> 
> Do you have a "Caused by" section in your stacktrace? Anyways, one
> thing to check is to make sure you have the right stax-api and
> wstx-asl jars in your classpath.
> 
> - R
> 
> 

There is no "caused by" section.  

Also, it looks like these jars are dependencies of only the axis2-spring
jar.  A search of the Maven dependency:tree for "stax" and "wstx" lists only
one for each, both under axis2-spring.  I checked the WEB-INF lib folder of
the generated WAR, and there are no other stax or wstx jars there.  Here is
the axis2-spring section of the dependency tree:

[INFO] +- org.apache.axis2:axis2-spring:jar:1.5.1:compile
[INFO] |  +- org.apache.ws.commons.axiom:axiom-api:jar:1.2.8:compile
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.1:compile
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.2:compile
[INFO] |  |  \- jaxen:jaxen:jar:1.1.1:compile
[INFO] |  +- org.apache.ws.commons.axiom:axiom-impl:jar:1.2.8:compile
[INFO] |  +- org.apache.ws.commons.axiom:axiom-dom:jar:1.2.8:compile
[INFO] |  +- xalan:xalan:jar:2.7.0:compile
[INFO] |  +- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
[INFO] |  +-
org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile
[INFO] |  +- commons-io:commons-io:jar:1.4:compile
[INFO] |  \- org.apache.axis2:axis2-kernel:jar:1.5.1:compile
[INFO] | +-
org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2:compile
[INFO] | +-
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile
[INFO] | +- javax.servlet:servlet-api:jar:2.3:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.2:compile
[INFO] | +- wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] | +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.3:compile
[INFO] | +- org.apache.woden:woden-api:jar:1.0M8:compile
[INFO] | |  \- xerces:xmlParserAPIs:jar:2.6.0:compile
[INFO] | \- org.apache.woden:woden-impl-dom:jar:1.0M8:compile



-- 
View this message in context: 
http://old.nabble.com/Axis2-1.5.1-Upgrade-Problem-with-Spring-and-Jetty-7-tp27180100p27181273.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7

2010-01-15 Thread robert lazarski
On Fri, Jan 15, 2010 at 1:55 PM, jcaristi  wrote:
>
> My Axis2/Spring application functions properly on Jetty 7 with Axis2 1.4.1.
> When I attempt to upgrade to Axis2 1.5.1, the Jetty context fails to start
> with the following exceptions.  I have searched and found similar issues on
> Weblogic, but nothing for Jetty.  I did try switching Jetty to prefer the
> parent classloader, but this causes other problems.  I am using version
> 7.0.1.v20091125 of the jetty-maven-plugin. Can someone help?
>
> 2010-01-15 11:35:28.406:WARN::FAILED AxisServlet:
> javax.xml.stream.FactoryConfigurationError: Provider
> javax.xml.stream.XMLInputFactory coul
> d not be instantiated: java.lang.InstantiationException

Do you have a "Caused by" section in your stacktrace? Anyways, one
thing to check is to make sure you have the right stax-api and
wstx-asl jars in your classpath.

- R